Class: Gem::Specification
- Inherits:
-
Object
- Object
- Gem::Specification
- Defined in:
- lib/bowline/bundler/gem_ext.rb,
lib/bowline/bundler/resolver.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#no_bundle ⇒ Object
(also: #no_bundle?)
Returns the value of attribute no_bundle.
-
#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.
14 15 16 |
# File 'lib/bowline/bundler/gem_ext.rb', line 14 def location @location end |
#no_bundle ⇒ Object 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 |
#source ⇒ Object
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_path ⇒ Object
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_location ⇒ Object
25 |
# File 'lib/bowline/bundler/gem_ext.rb', line 25 alias full_gem_path_without_location full_gem_path |
#required_by ⇒ Object
15 16 17 |
# File 'lib/bowline/bundler/resolver.rb', line 15 def required_by @required_by ||= [] end |
#specification_version ⇒ Object
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 |