Class: Licensed::Bundler::MissingSpecification
- Inherits:
-
Gem::BasicSpecification
- Object
- Gem::BasicSpecification
- Licensed::Bundler::MissingSpecification
- Includes:
- Bundler::MatchPlatform
- Defined in:
- lib/licensed/sources/bundler/missing_specification.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #dependencies ⇒ Object
- #error ⇒ Object
- #gem_dir ⇒ Object
- #gems_dir ⇒ Object
- #homepage ⇒ Object
-
#initialize(name:, version:, platform:, source:) ⇒ MissingSpecification
constructor
A new instance of MissingSpecification.
- #summary ⇒ Object
Constructor Details
#initialize(name:, version:, platform:, source:) ⇒ MissingSpecification
Returns a new instance of MissingSpecification.
19 20 21 22 23 24 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 19 def initialize(name:, version:, platform:, source:) @name = name @version = version @platform = platform @source = source end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 18 def name @name end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
18 19 20 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 18 def platform @platform end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
18 19 20 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 18 def source @source end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
18 19 20 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 18 def version @version end |
Instance Method Details
#dependencies ⇒ Object
26 27 28 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 26 def dependencies [] end |
#error ⇒ Object
37 38 39 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 37 def error "could not find #{name} (#{version}) in any sources" end |
#gem_dir ⇒ Object
30 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 30 def gem_dir; end |
#gems_dir ⇒ Object
31 32 33 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 31 def gems_dir Gem.dir end |
#homepage ⇒ Object
35 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 35 def homepage; end |
#summary ⇒ Object
34 |
# File 'lib/licensed/sources/bundler/missing_specification.rb', line 34 def summary; end |