diff options
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/dependency.rb | 9 | ||||
-rw-r--r-- | lib/bundler/dsl.rb | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/lib/bundler/dependency.rb b/lib/bundler/dependency.rb index a62808d23c..153f363de5 100644 --- a/lib/bundler/dependency.rb +++ b/lib/bundler/dependency.rb @@ -54,15 +54,6 @@ module Bundler :x64_mingw_23 => Gem::Platform::X64_MINGW }.freeze - REVERSE_PLATFORM_MAP = {}.tap do |reverse_platform_map| - PLATFORM_MAP.each do |key, value| - reverse_platform_map[value] ||= [] - reverse_platform_map[value] << key - end - - reverse_platform_map.each {|_, platforms| platforms.freeze } - end.freeze - def initialize(name, version, options = {}, &blk) type = options["type"] || :runtime super(name, version, type) diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index 4ef64e1258..355c39ee56 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -60,7 +60,7 @@ module Bundler "#{file}. Make sure you can build the gem, then try again" end - gem spec.name, :path => path, :glob => glob, :platforms => Bundler::Dependency::REVERSE_PLATFORM_MAP[spec.platform] + gem spec.name, :path => path, :glob => glob group(development_group) do spec.development_dependencies.each do |dep| |