Skip to content

Instantly share code, notes, and snippets.

component_name = Rails.root.to_s.split("/")[-3]
component_root = Rails.root.to_s.gsub("spec/dummy", "")
gemspec = <<-EOS
s.add_development_dependency \"rspec-rails\"
s.test_files = Dir["spec/**/*"]
EOS
inject_into_file "#{component_root}/#{component_name}.gemspec",
@fernandes
fernandes / cobra.md
Last active June 19, 2020 16:22
COBRA - Component-Based Rails Applications

Component-Based Rails Applications (#cobra)

What is it?

Cobra is a way to organize your rails application, imagine it like a new way for packaging your rails apps

These are my annotations based on work of @shageman and @benjaminleesmith from Pivotal

Baby steps

@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
class SignUpPage
def initialize
current_path.should == sign_up_path
end
def with_email(email)
fill_in "Login", :with => email
end
def with_password(password, confirmation = password)