Class: Gem::Specification

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/gem_ext.rb,
lib/bundler/resolver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject

Returns the value of attribute location.



15
16
17
# File 'lib/bundler/gem_ext.rb', line 15

def location
  @location
end

#sourceObject

Returns the value of attribute source.



14
15
16
# File 'lib/bundler/gem_ext.rb', line 14

def source
  @source
end

Instance Method Details

#full_gem_pathObject



25
26
27
28
29
30
31
# File 'lib/bundler/gem_ext.rb', line 25

def full_gem_path
  if defined?(@location) && @location
    @location
  else
    full_gem_path_without_location
  end
end

#full_gem_path_without_locationObject



24
# File 'lib/bundler/gem_ext.rb', line 24

alias full_gem_path_without_location full_gem_path

#required_byObject



15
16
17
# File 'lib/bundler/resolver.rb', line 15

def required_by
  @required_by ||= []
end

#specification_versionObject

Hack to fix github’s strange marshal file



20
21
22
# File 'lib/bundler/gem_ext.rb', line 20

def specification_version
  @specification_version && @specification_version.to_i
end