Permalink
Browse files

Make it easy to use local gems

  • Loading branch information...
1 parent 8de76c1 commit 20cedd36a950a966df501f107c76e5b4ae7a3839 @ihough ihough committed Nov 8, 2011
Showing with 6 additions and 5 deletions.
  1. +6 −5 Gemfile
View
11 Gemfile
@@ -1,8 +1,9 @@
-gem 'emitter', :path => ENV['LOCAL_EMITTER'] if ENV['LOCAL_EMITTER']
-gem 'sniff', :path => ENV['LOCAL_SNIFF'] if ENV['LOCAL_SNIFF']
-gem 'earth', :path => ENV['LOCAL_EARTH'] if ENV['LOCAL_EARTH']
-gem 'data_miner', :path => ENV['LOCAL_DATA_MINER'] if ENV['LOCAL_DATA_MINER']
-gem 'force_schema', :path => ENV['LOCAL_FORCE_SCHEMA'] if ENV['LOCAL_FORCE_SCHEMA']
+ENV.each do |name, value|
+ if /^LOCAL_(.+)/.match(name)
+ gem $1.downcase, :path => value
+ end
+end
+
source :rubygems
gemspec :path => '.'

0 comments on commit 20cedd3

Please sign in to comment.