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.
13 14 15 16 |
# File 'lib/licensed/sources/bundler.rb', line 13 def initialize(name:, requirement:) @name = name @requirement = requirement end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/licensed/sources/bundler.rb', line 11 def name @name end |
#requirement ⇒ Object (readonly) Also known as: version
Returns the value of attribute requirement.
11 12 13 |
# File 'lib/licensed/sources/bundler.rb', line 11 def requirement @requirement end |
Instance Method Details
#dependencies ⇒ Object
18 19 20 |
# File 'lib/licensed/sources/bundler.rb', line 18 def dependencies [] end |
#error ⇒ Object
34 35 36 |
# File 'lib/licensed/sources/bundler.rb', line 34 def error "could not find #{name} (#{requirement}) in any sources" end |
#gem_dir ⇒ Object
27 |
# File 'lib/licensed/sources/bundler.rb', line 27 def gem_dir; end |
#gems_dir ⇒ Object
28 29 30 |
# File 'lib/licensed/sources/bundler.rb', line 28 def gems_dir Gem.dir end |
#homepage ⇒ Object
32 |
# File 'lib/licensed/sources/bundler.rb', line 32 def homepage; end |
#platform ⇒ Object
26 |
# File 'lib/licensed/sources/bundler.rb', line 26 def platform; end |
#source ⇒ Object
22 23 24 |
# File 'lib/licensed/sources/bundler.rb', line 22 def source nil end |
#summary ⇒ Object
31 |
# File 'lib/licensed/sources/bundler.rb', line 31 def summary; end |