newgem 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Manifest.txt +0 -2
- data/config/hoe.rb +1 -1
- data/lib/newgem/version.rb +1 -1
- data/rubygems_generators/application_generator/application_generator_generator.rb +4 -1
- data/rubygems_generators/application_generator/templates/generator.rb +2 -2
- data/script/generate +1 -1
- data/website/index.html +2 -2
- data/website/rubyforge.html +1 -1
- data/website/version-raw.js +1 -1
- data/website/version.js +1 -1
- metadata +3 -5
- data/app_generators/newgem/templates/script/destroy +0 -15
- data/app_generators/newgem/templates/script/generate +0 -14
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -15,8 +15,6 @@ app_generators/newgem/templates/config/requirements.rb
|
|
15
15
|
app_generators/newgem/templates/empty.log
|
16
16
|
app_generators/newgem/templates/module.rb
|
17
17
|
app_generators/newgem/templates/readme
|
18
|
-
app_generators/newgem/templates/script/destroy
|
19
|
-
app_generators/newgem/templates/script/generate
|
20
18
|
app_generators/newgem/templates/setup.rb
|
21
19
|
app_generators/newgem/templates/spec.opts
|
22
20
|
app_generators/newgem/templates/spec.rb
|
data/config/hoe.rb
CHANGED
data/lib/newgem/version.rb
CHANGED
@@ -2,12 +2,15 @@ class ApplicationGeneratorGenerator < RubiGen::Base
|
|
2
2
|
|
3
3
|
default_options
|
4
4
|
|
5
|
-
attr_reader :name, :class_name, :generator_path
|
5
|
+
attr_reader :name, :class_name, :generator_path, :scopes, :scope_str
|
6
6
|
|
7
7
|
def initialize(runtime_args, runtime_options = {})
|
8
8
|
super
|
9
9
|
usage if args.empty?
|
10
10
|
@name = args.shift
|
11
|
+
@scopes = args
|
12
|
+
@scopes = [name] if scopes.blank?
|
13
|
+
@scope_str = scopes.map { |scope| "'#{scope}'" }.join ', '
|
11
14
|
@class_name = "#{name}_generator".camelize
|
12
15
|
@generator_path = "app_generators"
|
13
16
|
extract_options
|
@@ -24,8 +24,8 @@ class <%= class_name %> < RubiGen::Base
|
|
24
24
|
# Create stubs
|
25
25
|
# m.template "template.rb", "some_file_after_erb.rb"
|
26
26
|
# m.file "file", "some_file_copied"
|
27
|
-
|
28
|
-
m.dependency "install_rubigen_scripts", [destination_root,
|
27
|
+
|
28
|
+
m.dependency "install_rubigen_scripts", [destination_root, <%= scope_str %>],
|
29
29
|
:shebang => options[:shebang], :collision => :force
|
30
30
|
end
|
31
31
|
end
|
data/script/generate
CHANGED
@@ -10,5 +10,5 @@ end
|
|
10
10
|
require 'rubigen/scripts/generate'
|
11
11
|
|
12
12
|
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! :rubygems, :newgem
|
13
|
+
RubiGen::Base.use_component_sources! :rubygems, :newgem, :test_unit
|
14
14
|
RubiGen::Scripts::Generate.new.run(ARGV)
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>New Gem Generator</h1>
|
34
34
|
<div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="" class="numbers">0.14.
|
36
|
+
<a href="" class="numbers">0.14.2</a>
|
37
37
|
<p>Featured in</p>
|
38
38
|
<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
|
39
39
|
</div>
|
@@ -336,7 +336,7 @@ other stories and things.</p>
|
|
336
336
|
|
337
337
|
<p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
|
338
338
|
<p class="coda">
|
339
|
-
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>,
|
339
|
+
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 16th October 2007<br>
|
340
340
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
341
341
|
</p>
|
342
342
|
</div>
|
data/website/rubyforge.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>New Gem Generator</h1>
|
34
34
|
<div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="" class="numbers">0.14.
|
36
|
+
<a href="" class="numbers">0.14.2</a>
|
37
37
|
<p>Featured in</p>
|
38
38
|
<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
|
39
39
|
</div>
|
data/website/version-raw.js
CHANGED
data/website/version.js
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4.3
|
|
3
3
|
specification_version: 1
|
4
4
|
name: newgem
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.14.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.14.2
|
7
|
+
date: 2007-11-04 00:00:00 -04:00
|
8
8
|
summary: Make your own gems at home
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -46,8 +46,6 @@ files:
|
|
46
46
|
- app_generators/newgem/templates/empty.log
|
47
47
|
- app_generators/newgem/templates/module.rb
|
48
48
|
- app_generators/newgem/templates/readme
|
49
|
-
- app_generators/newgem/templates/script/destroy
|
50
|
-
- app_generators/newgem/templates/script/generate
|
51
49
|
- app_generators/newgem/templates/setup.rb
|
52
50
|
- app_generators/newgem/templates/spec.opts
|
53
51
|
- app_generators/newgem/templates/spec.rb
|
@@ -219,7 +217,7 @@ dependencies:
|
|
219
217
|
requirements:
|
220
218
|
- - ">="
|
221
219
|
- !ruby/object:Gem::Version
|
222
|
-
version: 1.0.
|
220
|
+
version: 1.0.8
|
223
221
|
version:
|
224
222
|
- !ruby/object:Gem::Dependency
|
225
223
|
name: hoe
|
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.join(File.dirname(__FILE__), '..')
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy
|
11
|
-
'
|
12
|
-
|
13
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
14
|
-
RubiGen::Base.use_component_sources! :rubygems, :newgem, :newgem_theme
|
15
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.join(File.dirname(__FILE__), '..')
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! :rubygems, :newgem, :newgem_theme
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|