newgem 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -16,6 +16,7 @@ templates/app.rb
16
16
  templates/scripts/txt2html
17
17
  templates/setup.rb
18
18
  templates/test.rb
19
+ templates/website/index.html
19
20
  templates/website/index.txt
20
21
  templates/website/javascripts/rounded_corners_lite.inc.js
21
22
  templates/website/stylesheets/screen.css
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
 
@@ -2,7 +2,7 @@ module Newgem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -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>
@@ -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. Licence
24
+ h2. License
25
25
 
26
- This code is free to use under the terms of the MIT licence.
26
+ This code is free to use under the terms of the MIT license.
27
27
 
28
28
  h2. Contact
29
29
 
@@ -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.3</a>
36
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.4</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;newgem&#8217;</h1>
39
39
 
@@ -134,15 +134,17 @@ NOW - update wizzo/Rakefile with gem description, etc
134
134
  <p>If you don&#8217;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&#8217;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 release VERSION=X.Y.Z</code> after you&#8217;ve done all these steps, and your gem will be repackaged and released to RubyForge.</p>
233
+ <p>Run <code>rake deploy VERSION=X.Y.Z</code> after you&#8217;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>Licence</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> licence.</p>
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>, 18th April 2007<br>
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>
@@ -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 release VERSION=X.Y.Z</code> after you've done all these steps, and your gem will be repackaged and released to RubyForge.
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. Licence
182
+ h2. License
181
183
 
182
- This code is free to use under the terms of the MIT licence.
184
+ This code is free to use under the terms of the MIT license.
183
185
 
184
186
  h2. Contact
185
187
 
@@ -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.3</a>
36
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.4</a>
37
37
  </div>
38
38
  <h1>&#x2192; using &#8216;rubyforge&#8217;</h1>
39
39
 
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.9.3";
2
+ var version = "0.9.4";
3
3
  MagicAnnouncement.show('compositekeys', version);
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.9.3";
2
+ var version = "0.9.4";
3
3
 
4
4
  document.write(" - " + version);
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.3
7
- date: 2007-04-20 00:00:00 +02:00
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