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 CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.14.2 2007-11-03
2
+
3
+ * Application generator inserts scopes passed in at cmd line, not app name
4
+ * Generated gems have default testing scope: test_unit
5
+
1
6
  == 0.14.1 2007-10-18
2
7
 
3
8
  * Added manifest:refresh rake task to recreate Manifest.txt with all files
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
@@ -52,7 +52,7 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
52
52
  ['RedCloth','>=3.0.4'],
53
53
  ['syntax','>=1.0.0'],
54
54
  ['activesupport','>=1.4.2'],
55
- ['rubigen','>=1.0.6']
55
+ ['rubigen','>=1.0.8']
56
56
  ]
57
57
  #p.spec_extras - A hash of extra values to set in the gemspec.
58
58
  end
@@ -2,7 +2,7 @@ module Newgem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 14
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -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, "<%= name %>"],
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.1</a>
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>, 17th October 2007<br>
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>
@@ -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.1</a>
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>
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.14.1";
2
+ var version = "0.14.2";
3
3
  MagicAnnouncement.show('compositekeys', version);
data/website/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.14.1";
2
+ var version = "0.14.2";
3
3
 
4
4
  document.write(" - " + version);
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.1
7
- date: 2007-10-18 00:00:00 +10:00
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.6
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)