Sha256: 8172bf9598e56fdcde4fcaebd1af13427ff2d933a8a9da61ead1ecf3f5833701

Contents?: true

Size: 401 Bytes

Versions: 6

Compression:

Stored size: 401 Bytes

Contents

require "bundler/remote_specification"

module Bundler
  class StubSpecification < RemoteSpecification
    def self.from_stub(stub)
      spec = new(stub.name, stub.version, stub.platform, nil)
      spec.stub = stub
      spec
    end

    attr_accessor :stub

    def to_yaml
      _remote_specification.to_yaml
    end

  private

    def _remote_specification
      stub.to_spec
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
bundler-1.11.2 lib/bundler/stub_specification.rb
bundler-1.11.1 lib/bundler/stub_specification.rb
bundler-1.11.0 lib/bundler/stub_specification.rb
bundler-1.11.0.pre.2 lib/bundler/stub_specification.rb
bundler-1.11.0.pre.1 lib/bundler/stub_specification.rb
shopify-bundler-1.10.7 lib/bundler/stub_specification.rb