Sha256: 66251708f59f21dc0412da42d6bef16aa36a1bfb42fc2187a0449f79e1d15ccb

Contents?: true

Size: 601 Bytes

Versions: 94

Compression:

Stored size: 601 Bytes

Contents

module Bundler
  class DepProxy

    attr_reader :required_by, :__platform, :dep

    def initialize(dep, platform)
      @dep, @__platform, @required_by = dep, platform, []
    end

    def hash
      @hash ||= dep.hash
    end

    def ==(o)
      dep == o.dep && __platform == o.__platform
    end

    alias eql? ==

    def type
      @dep.type
    end

    def name
      @dep.name
    end

    def requirement
      @dep.requirement
    end

    def to_s
      "#{name} (#{requirement}) #{__platform}"
    end

  private

    def method_missing(*args)
      @dep.send(*args)
    end

  end
end

Version data entries

94 entries across 94 versions & 3 rubygems

Version Path
bundler-1.8.9 lib/bundler/dep_proxy.rb
bundler-1.8.8 lib/bundler/dep_proxy.rb
bundler-1.7.15 lib/bundler/dep_proxy.rb
bundler-1.8.7 lib/bundler/dep_proxy.rb
bundler-1.8.6 lib/bundler/dep_proxy.rb
bundler-1.7.14 lib/bundler/dep_proxy.rb
bundler-1.8.5 lib/bundler/dep_proxy.rb
bundler-1.8.4 lib/bundler/dep_proxy.rb
bundler-1.8.3 lib/bundler/dep_proxy.rb
bundler-1.8.2 lib/bundler/dep_proxy.rb
bundler-1.8.1 lib/bundler/dep_proxy.rb
bundler-1.8.0 lib/bundler/dep_proxy.rb
bundler-1.7.13 lib/bundler/dep_proxy.rb
bundler-1.8.0.pre lib/bundler/dep_proxy.rb
bundler-1.7.12 lib/bundler/dep_proxy.rb
bundler-1.7.11 lib/bundler/dep_proxy.rb
bundler-1.7.10 lib/bundler/dep_proxy.rb
bundler-1.7.9 lib/bundler/dep_proxy.rb
bundler-1.7.8 lib/bundler/dep_proxy.rb
bundler-1.7.7 lib/bundler/dep_proxy.rb