Skip to content

Commit

Permalink
[#20]For the new auto dependency stuff, make sure we skip system gems
Browse files Browse the repository at this point in the history
  • Loading branch information
rkononov authored and rkononov committed Jan 20, 2012
1 parent e813f21 commit a72f904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/iron_worker/config.rb
Expand Up @@ -31,6 +31,9 @@ class Config
:force_upload,
:beta # for setting beta feature flags

def self.system_gems
['bson_ext','curb','em-http-request','eventmachine','mysql2','net-scp','net-sftp','net-ssh','nokogiri','rmagick','sqlite3','typhoeus']
end

def initialize
@global_attributes = {}
Expand Down
2 changes: 1 addition & 1 deletion lib/iron_worker/service.rb
Expand Up @@ -125,7 +125,7 @@ def gem_dependencies(list_of_gems)
Gem::Specification.all.collect { |s| index<<s }
list = Bundler::Resolver.resolve(filtered_deps, index)
list.each do |gemspec|
next if list_of_gems.keys.include?(gemspec.name)
next if list_of_gems.keys.include?(gemspec.name) || Config.system_gems.include?(gemspec.name)
gi = IronWorker::MergeHelper.create_gem_info(gemspec.name, gemspec.version.version)
dependendent_gems[gemspec.name] = gi
end
Expand Down

0 comments on commit a72f904

Please sign in to comment.