Class: Gem::Specification

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#no_bundleObject Also known as: no_bundle?

Returns the value of attribute no_bundle.



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

def no_bundle
  @no_bundle
end

#sourceObject

Returns the value of attribute source.



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

def source
  @source
end

Instance Method Details

#full_gem_pathObject



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

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

#full_gem_path_without_locationObject



25
# File 'lib/bowline/bundler/gem_ext.rb', line 25

alias full_gem_path_without_location full_gem_path

#required_byObject



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

def required_by
  @required_by ||= []
end

#specification_versionObject

Hack to fix github’s strange marshal file



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

def specification_version
  @specification_version && @specification_version.to_i
end