Class: Gem::Specification

Inherits:
Object
  • Object
show all
Defined in:
lib/gemdev.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load_devel(path) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/gemdev.rb', line 18

def self.load_devel(path)	
gemspecs = []
fail "NESTED Specification.load calls not allowed!" if @@gather
@@gather = proc do |gs| 
    gs.full_gem_path = path
    gemspecs << gs
end

# load any gemspecs
  specs = Dir.glob( File.expand_path(File.join(path, "gemspecs/*.gemspec")) ).collect do |spec|
    File.read(spec)
  end
  
eval(specs.join("\n"))
gemspecs
  ensure
  @@gather = nil
end

Instance Method Details

#full_gem_pathObject

The full path to the gem (install path + full name).

return
String

the full gem path



10
11
12
# File 'lib/gemdev.rb', line 10

def full_gem_path
  @full_gem_path || File.join(installation_path, "gems", full_name)
end

#full_gem_path=(input) ⇒ Object



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

def full_gem_path=(input)
 @full_gem_path = input
end