Class: Licensed::Sources::Bundler::MissingSpecification
- Inherits:
-
Gem::BasicSpecification
- Object
- Gem::BasicSpecification
- Licensed::Sources::Bundler::MissingSpecification
- Defined in:
- lib/licensed/sources/bundler.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#requirement ⇒ Object
(also: #version)
readonly
Returns the value of attribute requirement.
Instance Method Summary collapse
- #dependencies ⇒ Object
- #error ⇒ Object
- #gem_dir ⇒ Object
- #gems_dir ⇒ Object
- #homepage ⇒ Object
-
#initialize(name:, requirement:) ⇒ MissingSpecification
constructor
A new instance of MissingSpecification.
- #platform ⇒ Object
- #source ⇒ Object
- #summary ⇒ Object
Constructor Details
#initialize(name:, requirement:) ⇒ MissingSpecification
Returns a new instance of MissingSpecification.
14 15 16 17 |
# File 'lib/licensed/sources/bundler.rb', line 14 def initialize(name:, requirement:) @name = name @requirement = requirement end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'lib/licensed/sources/bundler.rb', line 12 def name @name end |
#requirement ⇒ Object (readonly) Also known as: version
Returns the value of attribute requirement.
12 13 14 |
# File 'lib/licensed/sources/bundler.rb', line 12 def requirement @requirement end |
Instance Method Details
#dependencies ⇒ Object
19 20 21 |
# File 'lib/licensed/sources/bundler.rb', line 19 def dependencies [] end |
#error ⇒ Object
35 36 37 |
# File 'lib/licensed/sources/bundler.rb', line 35 def error "could not find #{name} (#{requirement}) in any sources" end |
#gem_dir ⇒ Object
28 |
# File 'lib/licensed/sources/bundler.rb', line 28 def gem_dir; end |
#gems_dir ⇒ Object
29 30 31 |
# File 'lib/licensed/sources/bundler.rb', line 29 def gems_dir Gem.dir end |
#homepage ⇒ Object
33 |
# File 'lib/licensed/sources/bundler.rb', line 33 def homepage; end |
#platform ⇒ Object
27 |
# File 'lib/licensed/sources/bundler.rb', line 27 def platform; end |
#source ⇒ Object
23 24 25 |
# File 'lib/licensed/sources/bundler.rb', line 23 def source nil end |
#summary ⇒ Object
32 |
# File 'lib/licensed/sources/bundler.rb', line 32 def summary; end |