newgem 0.14.0 → 0.14.1

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.1 2007-10-18
2
+
3
+ * Added manifest:refresh rake task to recreate Manifest.txt with all files
4
+ * Corrected the generated readme for application generators
5
+
1
6
  == 0.14.0 2007-10-14
2
7
 
3
8
  * application_generator includes the install_rubigen_scripts generator
@@ -25,3 +25,10 @@ desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
25
25
  task :install_gem_no_doc => [:clean, :package] do
26
26
  sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
27
27
  end
28
+
29
+ namespace :manifest do
30
+ desc 'Recreate Manifest.txt to include ALL files'
31
+ task :refresh do
32
+ `rake check_manifest | patch -p0 > Manifest.txt`
33
+ end
34
+ end
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.4']
55
+ ['rubigen','>=1.0.6']
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 = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -1,24 +1,19 @@
1
- How to create a Generator (aka Component Generator)
1
+ How to create a Generator (aka Application Generator)
2
2
  ======================================
3
3
 
4
- 1. DONE - Run the generator: script/generate component_generator foobar rubygems
4
+ 1. DONE - Run the generator: script/generate application_generator myapp
5
5
  2. Using the generated test class, assert what directories, files, classes etc should
6
6
  be generated.
7
- 3. Add these files into the rubygems_genearators/foobar/templates folder. Your files can use
7
+ 3. Add these files into the app_genearators/myapp/templates folder. Your files can use
8
8
  ERb (that is, <%= ... %>).
9
- 4. Specify who the files in /templates are copied/templated at generation time within rubygems_genearators/foobar/foobar_generators.rb's #manifest method.
9
+ 4. Specify who the files in /templates are copied/templated at generation time within app_genearators/myapp/myapp_generators.rb's #manifest method.
10
10
  Use m.file for files to copy over.
11
11
  Use m.template for files containing ERb. Create attr_reader accessors for any variables your
12
12
  templates need access to.
13
13
  5. Run unit tests.
14
- 6. If your generator uses other generators (m.dependency "gen-name", [arg1, arg2], :option1 => 'value')
15
- it should only use generates from the same scope ('rubygems' in this example),
16
- otherwise RubiGen may not be able to find the dependent generators.
17
- 7. Update your Manifest.txt with the new files (if you are using Hoe; using newgem? it uses Hoe; so you need to do this)
18
- 8. Build and install your RubyGem locally. Run: rake install_gem
19
- 9. Go to a work area whose script/generate is scoped to 'rubygems' (e.g. a RubyGem scaffold created by newgem has a script/generate that can use rubygems, newgem, and newgem_template scoped generators)
20
- 10. Run "script/generate" and your generator should appear in the list of available generators.
21
- 11. Run "script/generate foobar" to see the options and usage information for your generator.
22
- 12. Run "script/generator foobar arguments" to execute the generator.
14
+ 6. Update your Manifest.txt with the new files (rake manifest:refresh)
15
+ 7. Build and install your RubyGem locally. Run: rake install_gem
16
+ 8. Go to a directory where you can create new test apps.
17
+ 9. Run 'myapp [path]' and your application skeleton will be created.
23
18
 
24
19
  See this message again using the -h/--help option.
@@ -25,3 +25,10 @@ desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
25
25
  task :install_gem_no_doc => [:clean, :package] do
26
26
  sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
27
27
  end
28
+
29
+ namespace :manifest do
30
+ desc 'Recreate Manifest.txt to include ALL files'
31
+ task :refresh do
32
+ `rake check_manifest | patch -p0 > Manifest.txt`
33
+ end
34
+ end
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.0</a>
36
+ <a href="" class="numbers">0.14.1</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>
@@ -105,7 +105,6 @@ $ newgem wizzo
105
105
  create website/index.txt
106
106
  create website/index.html
107
107
  create script/txt2html
108
- overwrite tasks/website.rake? [Ynaqd]
109
108
  force tasks/website.rake
110
109
  dependency plain_theme
111
110
  exists website/javascripts
@@ -126,15 +125,9 @@ Important
126
125
  * Update missing details (gem description, dependent gems, etc.)
127
126
  </pre>
128
127
 
129
- <p><strong>tasks/website.rake</strong> will be written twice in newgem version 0.13.5. Simply hit enter to accept the default option (overwrite).</p>
130
-
131
-
132
128
  <p>As of 0.10.0 &#8211; you can generate test::unit or rspec test stubs via the <code>-t</code> or <code>--test-with</code> options. For example, <code>-t rspec</code> generates a <code>spec</code> folder with some test stubs.</p>
133
129
 
134
130
 
135
- <p>As of 0.11.0 &#8211; you can generate <code>wizzo/trunk|branches|tags</code> subfolders using the <code>-s</code> or <code>--svn</code> options. If used, the generated files will be populated within <code>&lt;gemname&gt;/trunk</code></p>
136
-
137
-
138
131
  <h3>Setup</h3>
139
132
 
140
133
 
@@ -343,7 +336,7 @@ other stories and things.</p>
343
336
 
344
337
  <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
345
338
  <p class="coda">
346
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 14th October 2007<br>
339
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 17th October 2007<br>
347
340
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
348
341
  </p>
349
342
  </div>
data/website/index.txt CHANGED
@@ -57,7 +57,6 @@ $ newgem wizzo
57
57
  create website/index.txt
58
58
  create website/index.html
59
59
  create script/txt2html
60
- overwrite tasks/website.rake? [Ynaqd]
61
60
  force tasks/website.rake
62
61
  dependency plain_theme
63
62
  exists website/javascripts
@@ -78,12 +77,8 @@ Important
78
77
  * Update missing details (gem description, dependent gems, etc.)
79
78
  </pre>
80
79
 
81
- *tasks/website.rake* will be written twice in newgem version 0.13.5. Simply hit enter to accept the default option (overwrite).
82
-
83
80
  As of 0.10.0 - you can generate test::unit or rspec test stubs via the <code>-t</code> or <code>--test-with</code> options. For example, <code>-t rspec</code> generates a <code>spec</code> folder with some test stubs.
84
81
 
85
- As of 0.11.0 - you can generate <code>wizzo/trunk|branches|tags</code> subfolders using the <code>-s</code> or <code>--svn</code> options. If used, the generated files will be populated within <code><gemname>/trunk</code>
86
-
87
82
  h3. Setup
88
83
 
89
84
  Now modify the constants at the top of *config/hoe.rb*, with your name, email and the location where you'll host your website for the gem. The defaults are tied to RubyForge for uploading the gems and the website (see below).
@@ -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.0</a>
36
+ <a href="" class="numbers">0.14.1</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.0";
2
+ var version = "0.14.1";
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.0";
2
+ var version = "0.14.1";
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.0
7
- date: 2007-10-17 00:00:00 +10:00
6
+ version: 0.14.1
7
+ date: 2007-10-18 00:00:00 +10:00
8
8
  summary: Make your own gems at home
9
9
  require_paths:
10
10
  - lib
@@ -219,7 +219,7 @@ dependencies:
219
219
  requirements:
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
- version: 1.0.4
222
+ version: 1.0.6
223
223
  version:
224
224
  - !ruby/object:Gem::Dependency
225
225
  name: hoe