Class: Licensed::Sources::Bundler::MissingSpecification

Inherits:
Gem::BasicSpecification
  • Object
show all
Defined in:
lib/licensed/sources/bundler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/licensed/sources/bundler.rb', line 11

def name
  @name
end

#requirementObject (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

#dependenciesObject



18
19
20
# File 'lib/licensed/sources/bundler.rb', line 18

def dependencies
  []
end

#errorObject



34
35
36
# File 'lib/licensed/sources/bundler.rb', line 34

def error
  "could not find #{name} (#{requirement}) in any sources"
end

#gem_dirObject



27
# File 'lib/licensed/sources/bundler.rb', line 27

def gem_dir; end

#gems_dirObject



28
29
30
# File 'lib/licensed/sources/bundler.rb', line 28

def gems_dir
  Gem.dir
end

#homepageObject



32
# File 'lib/licensed/sources/bundler.rb', line 32

def homepage; end

#platformObject



26
# File 'lib/licensed/sources/bundler.rb', line 26

def platform; end

#sourceObject



22
23
24
# File 'lib/licensed/sources/bundler.rb', line 22

def source
  nil
end

#summaryObject



31
# File 'lib/licensed/sources/bundler.rb', line 31

def summary; end