diff options
author | Andre Arko <andre@arko.net> | 2015-05-30 18:23:13 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-05-30 18:23:13 -0700 |
commit | d46c78455b358aef295642d2421f3696fb365721 (patch) | |
tree | 45a97f3a9404f106d3d70107fe8f0e098734f4d4 | |
parent | 6817f3ad86bceb5f56108a67d3a1f7b11d78dc69 (diff) | |
download | bundler-d46c78455b358aef295642d2421f3696fb365721.tar.gz |
oh man :stuck_out_tongue_closed_eyes:
-rw-r--r-- | lib/bundler/stub_specification.rb | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/lib/bundler/stub_specification.rb b/lib/bundler/stub_specification.rb index 53db25c7ed..be73c9096b 100644 --- a/lib/bundler/stub_specification.rb +++ b/lib/bundler/stub_specification.rb @@ -1,21 +1,23 @@ require 'bundler/remote_specification' -class StubSpecification < RemoteSpecification - def self.from_stub(stub) - spec = new(stub.name, stub.version, stub.platform, nil) - spec.stub = stub - spec - end +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 + attr_accessor :stub - def to_yaml - _remote_specification.to_yaml - end + def to_yaml + _remote_specification.to_yaml + end -private + private - def _remote_specification - stub.to_spec + def _remote_specification + stub.to_spec + end end -end +end
\ No newline at end of file |