markbates-gemtronics 0.4.6.20090824113640 → 0.4.7.20090826163642
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/gemtronics/definition.rb +20 -0
- data/lib/gemtronics/manager.rb +1 -1
- metadata +2 -2
@@ -19,6 +19,16 @@ module Gemtronics
|
|
19
19
|
# method built dynamically. This is just a stub for RDoc.
|
20
20
|
end
|
21
21
|
|
22
|
+
# Returns true/false if the gem should be installed with ri. Defaults to <tt>false</tt>.
|
23
|
+
def ri?
|
24
|
+
# method built dynamically. This is just a stub for RDoc.
|
25
|
+
end
|
26
|
+
|
27
|
+
# Set whether the gem should be installed with ri.
|
28
|
+
def ri=(x)
|
29
|
+
# method built dynamically. This is just a stub for RDoc.
|
30
|
+
end
|
31
|
+
|
22
32
|
# Returns an Array of files that should be required. Defaults to <tt>[<name>]</tt>
|
23
33
|
def require_list
|
24
34
|
return [self.name] unless self.has_key?(:require)
|
@@ -50,6 +60,14 @@ module Gemtronics
|
|
50
60
|
# gd.install_command #=> 'gem install configatron --source=http://gems.rubyforge.org --version=2.3.0'
|
51
61
|
def install_command
|
52
62
|
cmd = "gem install #{self.name} --source=#{self.source}"
|
63
|
+
unless self.ri?
|
64
|
+
cmd << ' --no-ri'
|
65
|
+
end
|
66
|
+
|
67
|
+
unless self.rdoc?
|
68
|
+
cmd << ' --no-rdoc'
|
69
|
+
end
|
70
|
+
|
53
71
|
unless self.version.match(/^(\>\=|\>)/)
|
54
72
|
cmd << " --version=#{self.version}"
|
55
73
|
end
|
@@ -105,6 +123,8 @@ module Gemtronics
|
|
105
123
|
build_method(:version, '>=0.0.0')
|
106
124
|
build_method(:source, 'http://gems.rubyforge.org')
|
107
125
|
build_method(:load?, true, :load)
|
126
|
+
build_method(:ri?, false, :ri)
|
127
|
+
build_method(:rdoc?, false, :rdoc)
|
108
128
|
|
109
129
|
end # Definition
|
110
130
|
end # Gemtronics
|
data/lib/gemtronics/manager.rb
CHANGED
@@ -5,7 +5,7 @@ module Gemtronics
|
|
5
5
|
# A Hash of the default options that are applied to all the gems.
|
6
6
|
# These options can be overidden at both the group and the individual
|
7
7
|
# gem level.
|
8
|
-
GLOBAL_DEFAULT_OPTIONS = {:load => true, :version => '>=0.0.0', :source => 'http://gems.rubyforge.org'}
|
8
|
+
GLOBAL_DEFAULT_OPTIONS = {:load => true, :version => '>=0.0.0', :source => 'http://gems.rubyforge.org', :ri => false, :rdoc => false}
|
9
9
|
|
10
10
|
# A Hash of all the groups that have been defined.
|
11
11
|
attr_accessor :groups
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markbates-gemtronics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7.20090826163642
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markbates
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-26 00:00:00 -07:00
|
13
13
|
default_executable: gemtronics
|
14
14
|
dependencies: []
|
15
15
|
|