diff options
author | Carl Lerche <carllerche@mac.com> | 2010-06-05 22:47:59 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-06-05 22:47:59 -0700 |
commit | 89f1db5f7002bd5e9434a95c6dc53c3cb796970e (patch) | |
tree | 5d4b093d998ecde1c475bd05e93f2d74ec209220 /lib/bundler/dependency.rb | |
parent | 19ad4e1b9a1cfcc5a9ccfd806f7a7a0069d1e9d9 (diff) | |
download | bundler-89f1db5f7002bd5e9434a95c6dc53c3cb796970e.tar.gz |
Make SpecSet#for smart about platforms
Diffstat (limited to 'lib/bundler/dependency.rb')
-rw-r--r-- | lib/bundler/dependency.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/dependency.rb b/lib/bundler/dependency.rb index 295c82b5ec..dacf991e04 100644 --- a/lib/bundler/dependency.rb +++ b/lib/bundler/dependency.rb @@ -5,6 +5,7 @@ module Bundler class Dependency < Gem::Dependency attr_reader :autorequire attr_reader :groups + attr_reader :platforms def initialize(name, version, options = {}, &blk) super(name, version) @@ -12,6 +13,7 @@ module Bundler @autorequire = nil @groups = Array(options["group"] || :default).map { |g| g.to_sym } @source = options["source"] + @platforms = [] if options.key?('require') @autorequire = Array(options['require'] || []) |