newgem 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/Manifest.txt +1 -0
- data/Rakefile +3 -0
- data/bin/newgem +1 -1
- data/lib/newgem/version.rb +1 -1
- data/templates/Rakefile +4 -0
- data/templates/website/index.html +11 -0
- data/templates/website/index.txt +2 -2
- data/website/index.html +10 -8
- data/website/index.txt +7 -5
- data/website/rubyforge.html +1 -1
- data/website/version-raw.js +1 -1
- data/website/version.js +1 -1
- metadata +3 -2
data/History.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
+++ 0.9.4
|
2
|
+
|
3
|
+
+ 3 minor enhancement
|
4
|
+
+ 'Licence' => 'License' (thx Peter Burns)
|
5
|
+
+ Generates a blank index.html so that 'rake package' works straight away
|
6
|
+
+ Includes :local_deploy which does tasks :website_generate and :install_gem
|
7
|
+
|
1
8
|
+++ 0.9.3 20/4/2007
|
2
9
|
|
3
10
|
+ 1 minor enhancement
|
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
@@ -83,6 +83,9 @@ end
|
|
83
83
|
desc 'Release the website and new gem version'
|
84
84
|
task :deploy => [:check_version, :website, :release]
|
85
85
|
|
86
|
+
desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
|
87
|
+
task :local_deploy => [:website_generate, :install_gem]
|
88
|
+
|
86
89
|
task :check_version do
|
87
90
|
unless ENV['VERSION']
|
88
91
|
puts 'Must pass a VERSION=x.y.z release version'
|
data/bin/newgem
CHANGED
@@ -52,7 +52,7 @@ lib_project_name = project_name + '/lib/' + project_name
|
|
52
52
|
version = project_name + "/lib/" + project_name + "/version.rb"
|
53
53
|
readme, setup = %w(README.txt setup.rb).
|
54
54
|
collect {|f| project_name + '/' + f}
|
55
|
-
template_files = %w(Rakefile Manifest.txt History.txt scripts/txt2html website/index.txt website/template.rhtml)
|
55
|
+
template_files = %w(Rakefile Manifest.txt History.txt scripts/txt2html website/index.txt website/index.html website/template.rhtml)
|
56
56
|
copy_files = %w(website/javascripts/rounded_corners_lite.inc.js website/stylesheets/screen.css)
|
57
57
|
|
58
58
|
|
data/lib/newgem/version.rb
CHANGED
data/templates/Rakefile
CHANGED
@@ -77,6 +77,9 @@ task :website => [:website_generate, :website_upload]
|
|
77
77
|
desc 'Release the website and new gem version'
|
78
78
|
task :deploy => [:check_version, :website, :release]
|
79
79
|
|
80
|
+
desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
|
81
|
+
task :local_deploy => [:website_generate, :install_gem]
|
82
|
+
|
80
83
|
task :check_version do
|
81
84
|
unless ENV['VERSION']
|
82
85
|
puts 'Must pass a VERSION=x.y.z release version'
|
@@ -87,3 +90,4 @@ task :check_version do
|
|
87
90
|
exit
|
88
91
|
end
|
89
92
|
end
|
93
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
4
|
+
<title>#{gem_name}</title>
|
5
|
+
|
6
|
+
</head>
|
7
|
+
<body id="body">
|
8
|
+
<p>This page has not yet been created for RubyGem <code>#{gem_name}</code></p>
|
9
|
+
<p>To the developer: To generate it, update website/index.txt and run the rake task <code>website</code> to generate this <code>index.html</code> file.</p>
|
10
|
+
</body>
|
11
|
+
</html>
|
data/templates/website/index.txt
CHANGED
@@ -21,9 +21,9 @@ h2. Forum
|
|
21
21
|
|
22
22
|
"http://groups.google.com/group/#{gem_name}":http://groups.google.com/group/#{gem_name}
|
23
23
|
|
24
|
-
h2.
|
24
|
+
h2. License
|
25
25
|
|
26
|
-
This code is free to use under the terms of the MIT
|
26
|
+
This code is free to use under the terms of the MIT license.
|
27
27
|
|
28
28
|
h2. Contact
|
29
29
|
|
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 = "http://rubyforge.org/projects/newgem"; return false'>
|
35
35
|
Get Version
|
36
|
-
<a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.
|
36
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.4</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘newgem’</h1>
|
39
39
|
|
@@ -134,15 +134,17 @@ NOW - update wizzo/Rakefile with gem description, etc
|
|
134
134
|
<p>If you don’t want a website, remove the <code>website</code> related files from the Manifest.txt.</p>
|
135
135
|
|
136
136
|
|
137
|
-
<p>Make sure you’ve generated the <code>website/index.html</code> file before continuing to package and release your gem (unless you remove it from the Manifest.txt).</p>
|
138
|
-
|
139
|
-
|
140
137
|
<h2>Package and test locally</h2>
|
141
138
|
|
142
139
|
|
143
140
|
<p>Before releasing a new version of a gem, it is a great idea to install the gem locally and do some sanity checks. You know, to limit the chance of you looking like a noob.</p>
|
144
141
|
|
145
142
|
|
143
|
+
<pre>rake local_deploy</pre>
|
144
|
+
|
145
|
+
<p>This generates the website into your website folder, and locally installs the gem, ready for testing and local use.</p>
|
146
|
+
|
147
|
+
|
146
148
|
<h3>Change the gems version number</h3>
|
147
149
|
|
148
150
|
|
@@ -228,7 +230,7 @@ NOW - update wizzo/Rakefile with gem description, etc
|
|
228
230
|
<h3>Release the gem</h3>
|
229
231
|
|
230
232
|
|
231
|
-
<p>Run <code>rake
|
233
|
+
<p>Run <code>rake deploy VERSION=X.Y.Z</code> after you’ve done all these steps, and your gem will be repackaged and released to RubyForge, <span class="caps">PLUS</span> your website will be released with the latest version number.</p>
|
232
234
|
|
233
235
|
|
234
236
|
<p>It can take an hour or two before new gem releases are available via the gem installer. But when they are ready, everyone will be able to download and install your gem using:</p>
|
@@ -274,10 +276,10 @@ other stories and things.</p>
|
|
274
276
|
<p><a href="http://groups.google.com/group/new-gem-generator">http://groups.google.com/group/new-gem-generator</a></p>
|
275
277
|
|
276
278
|
|
277
|
-
<h2>
|
279
|
+
<h2>License</h2>
|
278
280
|
|
279
281
|
|
280
|
-
<p>This code is free to use under the terms of the <span class="caps">MIT</span>
|
282
|
+
<p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
|
281
283
|
|
282
284
|
|
283
285
|
<h2>Contact</h2>
|
@@ -285,7 +287,7 @@ other stories and things.</p>
|
|
285
287
|
|
286
288
|
<p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
|
287
289
|
<p class="coda">
|
288
|
-
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>,
|
290
|
+
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 10th May 2007<br>
|
289
291
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
290
292
|
</p>
|
291
293
|
</div>
|
data/website/index.txt
CHANGED
@@ -76,12 +76,14 @@ NOTE: Currently, the initial <code>index.txt</code> file includes my details not
|
|
76
76
|
|
77
77
|
If you don't want a website, remove the <code>website</code> related files from the Manifest.txt.
|
78
78
|
|
79
|
-
Make sure you've generated the <code>website/index.html</code> file before continuing to package and release your gem (unless you remove it from the Manifest.txt).
|
80
|
-
|
81
79
|
h2. Package and test locally
|
82
80
|
|
83
81
|
Before releasing a new version of a gem, it is a great idea to install the gem locally and do some sanity checks. You know, to limit the chance of you looking like a noob.
|
84
82
|
|
83
|
+
<pre>rake local_deploy</pre>
|
84
|
+
|
85
|
+
This generates the website into your website folder, and locally installs the gem, ready for testing and local use.
|
86
|
+
|
85
87
|
h3. Change the gems version number
|
86
88
|
|
87
89
|
The version number is set in the file <code>lib/#gem name#/version.rb</code>. Update it as appropriate with major, minor and bug fix numbers. This value will be used when generating your website, for example.
|
@@ -146,7 +148,7 @@ Or use the task <code>rake website</code>, which performs both the generation an
|
|
146
148
|
|
147
149
|
h3. Release the gem
|
148
150
|
|
149
|
-
Run <code>rake
|
151
|
+
Run <code>rake deploy VERSION=X.Y.Z</code> after you've done all these steps, and your gem will be repackaged and released to RubyForge, PLUS your website will be released with the latest version number.
|
150
152
|
|
151
153
|
It can take an hour or two before new gem releases are available via the gem installer. But when they are ready, everyone will be able to download and install your gem using:
|
152
154
|
|
@@ -177,9 +179,9 @@ h2. Forum
|
|
177
179
|
|
178
180
|
"http://groups.google.com/group/new-gem-generator":http://groups.google.com/group/new-gem-generator
|
179
181
|
|
180
|
-
h2.
|
182
|
+
h2. License
|
181
183
|
|
182
|
-
This code is free to use under the terms of the MIT
|
184
|
+
This code is free to use under the terms of the MIT license.
|
183
185
|
|
184
186
|
h2. Contact
|
185
187
|
|
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 = "http://rubyforge.org/projects/newgem"; return false'>
|
35
35
|
Get Version
|
36
|
-
<a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.
|
36
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.4</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ using ‘rubyforge’</h1>
|
39
39
|
|
data/website/version-raw.js
CHANGED
data/website/version.js
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: newgem
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.9.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.9.4
|
7
|
+
date: 2007-05-10 00:00:00 +02:00
|
8
8
|
summary: Make your own gems at home
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -47,6 +47,7 @@ files:
|
|
47
47
|
- templates/scripts/txt2html
|
48
48
|
- templates/setup.rb
|
49
49
|
- templates/test.rb
|
50
|
+
- templates/website/index.html
|
50
51
|
- templates/website/index.txt
|
51
52
|
- templates/website/javascripts/rounded_corners_lite.inc.js
|
52
53
|
- templates/website/stylesheets/screen.css
|