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 +5 -0
- data/app_generators/newgem/templates/tasks/deployment.rake +7 -0
- data/config/hoe.rb +1 -1
- data/lib/newgem/version.rb +1 -1
- data/rubygems_generators/application_generator/templates/readme +8 -13
- data/tasks/deployment.rake +7 -0
- data/website/index.html +2 -9
- data/website/index.txt +0 -5
- data/website/rubyforge.html +1 -1
- data/website/version-raw.js +1 -1
- data/website/version.js +1 -1
- metadata +3 -3
data/History.txt
CHANGED
@@ -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
data/lib/newgem/version.rb
CHANGED
@@ -1,24 +1,19 @@
|
|
1
|
-
How to create a Generator (aka
|
1
|
+
How to create a Generator (aka Application Generator)
|
2
2
|
======================================
|
3
3
|
|
4
|
-
1. DONE - Run the generator: script/generate
|
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
|
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
|
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.
|
15
|
-
|
16
|
-
|
17
|
-
|
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.
|
data/tasks/deployment.rake
CHANGED
@@ -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.
|
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 – 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 – 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></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>,
|
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).
|
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.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>
|
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-10-
|
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.
|
222
|
+
version: 1.0.6
|
223
223
|
version:
|
224
224
|
- !ruby/object:Gem::Dependency
|
225
225
|
name: hoe
|