Class: Licensed::Bundler::MissingSpecification

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#platformObject (readonly)

Returns the value of attribute platform.



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

def platform
  @platform
end

#sourceObject (readonly)

Returns the value of attribute source.



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

def source
  @source
end

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

#dependenciesObject



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

def dependencies
  []
end

#errorObject



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_dirObject



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

def gem_dir; end

#gems_dirObject



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

def gems_dir
  Gem.dir
end

#homepageObject



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

def homepage; end

#summaryObject



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

def summary; end