Class: Gem::Specification
- Inherits:
-
Object
- Object
- Gem::Specification
- Defined in:
- lib/bundler/gem_ext.rb,
lib/bundler/resolver.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
- #full_gem_path ⇒ Object
- #full_gem_path_without_location ⇒ Object
- #required_by ⇒ Object
-
#specification_version ⇒ Object
Hack to fix github’s strange marshal file.
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
15 16 17 |
# File 'lib/bundler/gem_ext.rb', line 15 def location @location end |
#source ⇒ Object
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_path ⇒ Object
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_location ⇒ Object
24 |
# File 'lib/bundler/gem_ext.rb', line 24 alias full_gem_path_without_location full_gem_path |
#required_by ⇒ Object
15 16 17 |
# File 'lib/bundler/resolver.rb', line 15 def required_by @required_by ||= [] end |
#specification_version ⇒ Object
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 |