summaryrefslogtreecommitdiff
path: root/lib/bundler/dependency.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/dependency.rb')
-rw-r--r--lib/bundler/dependency.rb2
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'] || [])