-
-
Save nakajima/132505 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Rails::Initializer.run do |config| | |
| # Require the latest version of haml | |
| config.gem "haml" | |
| # Require a specific version of chronic | |
| config.gem "chronic", :version => '0.2.3' | |
| # Require a gem from a non-standard repo | |
| config.gem "hpricot", :source => "http://code.whytheluckystiff.net" | |
| # Require a gem that needs to require a file different than the gem's name | |
| # I.e. if you normally load the gem with require 'aws/s3' instead of | |
| # require 'aws-s3' then you would need to specify the :lib option | |
| config.gem "aws-s3", :lib => "aws/s3" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Rails::Initializer.run do |config| | |
| %w|haml chronic hpricot aws-s3|.each do |gem| | |
| config.gem gem | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # haml is for Communists | |
| module Communist | |
| COLOR = :RED | |
| def method_missing(sym, *args, &block) | |
| sym == :red_bastard? | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment