bruce (owner)

Revisions

gist: 60075 Download_button fork
public
Public Clone URL: git://gist.github.com/60075.git
Embed All Files: show embed
environment.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module GitHubbyGems
  
  def gem(name, options = {})
    if options[:github]
      default_options = {:lib => name.split('-', 2).last,
                         :source => 'http://gems.github.com'}
      options = default_options.merge(options)
    end
    super(name, options)
  end
  
end
 
Rails::Initializer.run do |config|
 
  # ...
  config.extend GitHubbyGems
  config.gem 'haml'
  config.gem 'right_aws'
  config.gem 'thoughtbot-paperclip', :github => true
  config.gem 'mojombo-god', :github => true
  config.gem 'jbarnette-intercession', :github => true
  # ...
 
end