bmizerany (owner)

Forks

Revisions

gist: 132396 Download_button fork
public
Public Clone URL: git://gist.github.com/132396.git
Embed All Files: show embed
A.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
B.rb #
1
2
3
4
5
Rails::Initializer.run do |config|
  %w|haml chronic hpricot aws-s3|.each do |gem|
    config.gem gem
  end
end