Sha256: c41803cc739865869f48d48d4997a3709259aae0d0aad0737bbaa3bd5c0c9408

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 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

4 entries across 4 versions & 1 rubygems

Version Path
bundler-1.10.6 lib/bundler/stub_specification.rb
bundler-1.10.5 lib/bundler/stub_specification.rb
bundler-1.10.4 lib/bundler/stub_specification.rb
bundler-1.10.3 lib/bundler/stub_specification.rb