Sha256: c3f9b67e478b6cb235f5c9fecce2d66a7d15cd0de8c90d08083ea607112fe9d1

Contents?: true

Size: 478 Bytes

Versions: 19

Compression:

Stored size: 478 Bytes

Contents

require 'rubygems/dependency'

module Bundler
  class Dependency < Gem::Dependency
    attr_reader :autorequire
    attr_reader :groups

    def initialize(name, version, options = {}, &blk)
      super(name, version)

      @autorequire = nil
      @groups      = Array(options["group"] || :default).map { |g| g.to_sym }
      @source      = options["source"]

      if options.key?('require')
        @autorequire = Array(options['require'] || [])
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
bundler-0.9.23 lib/bundler/dependency.rb
bundler-0.9.22 lib/bundler/dependency.rb
bundler-0.9.21 lib/bundler/dependency.rb
bundler-0.9.20 lib/bundler/dependency.rb
bundler-0.9.19 lib/bundler/dependency.rb
bundler-0.9.18 lib/bundler/dependency.rb
bundler-0.9.17 lib/bundler/dependency.rb
bundler-0.9.16 lib/bundler/dependency.rb
bundler-0.9.15 lib/bundler/dependency.rb
bundler-0.9.14 lib/bundler/dependency.rb
bundler-0.9.13 lib/bundler/dependency.rb
bundler-0.9.12 lib/bundler/dependency.rb
bundler-0.9.11 lib/bundler/dependency.rb
bundler-0.9.10 lib/bundler/dependency.rb
bundler-0.9.9 lib/bundler/dependency.rb
bundler-0.9.8 lib/bundler/dependency.rb
bundler-0.9.7 lib/bundler/dependency.rb
bundler-0.9.6 lib/bundler/dependency.rb
bundler-0.9.5 lib/bundler/dependency.rb