newgem 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,10 @@
1
+ +++ 0.9.3 20/4/2007
2
+
3
+ + 1 minor enhancement
4
+ + Added 'deploy' task that generates website AND release new gem
5
+ + 1 website fix
6
+ + Fixed download link
7
+
1
8
  +++ 0.9.2 18/4/2007
2
9
 
3
10
  + 1 minor improvement:
data/Rakefile CHANGED
@@ -16,9 +16,10 @@ DESCRIPTION = "Make your own gems at home"
16
16
  GEM_NAME = "newgem" # what ppl will type to install your gem
17
17
  RUBYFORGE_PROJECT = "newgem"
18
18
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
19
+ DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
19
20
 
20
21
  REV = nil #File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
21
- VERS = ENV['VERSION'] || (Newgem::VERSION::STRING + (REV ? ".#{REV}" : ""))
22
+ VERS = Newgem::VERSION::STRING + (REV ? ".#{REV}" : "")
22
23
  CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
23
24
  RDOC_OPTS = ['--quiet', '--title', "newgem documentation",
24
25
  "--opname", "index.html",
@@ -76,4 +77,19 @@ task :load_consts do
76
77
  ENV['GEM_NAME'] = GEM_NAME
77
78
  ENV['RUBYFORGE_PROJECT'] = RUBYFORGE_PROJECT
78
79
  ENV['HOMEPATH'] = HOMEPATH
79
- end
80
+ ENV['DOWNLOAD_PATH'] = DOWNLOAD_PATH
81
+ end
82
+
83
+ desc 'Release the website and new gem version'
84
+ task :deploy => [:check_version, :website, :release]
85
+
86
+ task :check_version do
87
+ unless ENV['VERSION']
88
+ puts 'Must pass a VERSION=x.y.z release version'
89
+ exit
90
+ end
91
+ unless ENV['VERSION'] == VERS
92
+ puts "Please update your version.rb to match the release version, currently #{VERS}"
93
+ exit
94
+ end
95
+ end
@@ -2,7 +2,7 @@ module Newgem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -32,7 +32,7 @@ end
32
32
  require File.dirname(__FILE__) + '/../lib/newgem/version.rb'
33
33
 
34
34
  version = Newgem::VERSION::STRING
35
- download = ENV['HOMEPAGE']
35
+ download = ENV['DOWNLOAD_PATH']
36
36
 
37
37
  if ARGV.length >= 1
38
38
  src, template = ARGV
@@ -17,11 +17,11 @@ DESCRIPTION = "description of gem"
17
17
  GEM_NAME = '#{gem_name}' # what ppl will type to install your gem
18
18
  RUBYFORGE_PROJECT = '#{gem_name}' # The unix name for your project
19
19
  HOMEPATH = "http://\#{RUBYFORGE_PROJECT}.rubyforge.org"
20
-
20
+ DOWNLOAD_PATH = "http://rubyforge.org/projects/\#{RUBYFORGE_PROJECT}"
21
21
 
22
22
  NAME = "#{gem_name}"
23
23
  REV = nil # UNCOMMENT IF REQUIRED: File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
24
- VERS = ENV['VERSION'] || (#{module_name}::VERSION::STRING + (REV ? ".\#{REV}" : ""))
24
+ VERS = #{module_name}::VERSION::STRING + (REV ? ".\#{REV}" : "")
25
25
  CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
26
26
  RDOC_OPTS = ['--quiet', '--title', '#{gem_name} documentation',
27
27
  "--opname", "index.html",
@@ -73,3 +73,17 @@ end
73
73
 
74
74
  desc 'Generate and upload website files'
75
75
  task :website => [:website_generate, :website_upload]
76
+
77
+ desc 'Release the website and new gem version'
78
+ task :deploy => [:check_version, :website, :release]
79
+
80
+ task :check_version do
81
+ unless ENV['VERSION']
82
+ puts 'Must pass a VERSION=x.y.z release version'
83
+ exit
84
+ end
85
+ unless ENV['VERSION'] == VERS
86
+ puts "Please update your version.rb to match the release version, currently \#{VERS}"
87
+ exit
88
+ end
89
+ end
@@ -31,9 +31,9 @@
31
31
  <div id="main">
32
32
 
33
33
  <h1>New Gem Generator</h1>
34
- <div id="version" class="clickable" onclick='document.location = ""; return false'>
34
+ <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return false'>
35
35
  Get Version
36
- <a href="" class="numbers">0.9.1</a>
36
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.3</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;newgem&#8217;</h1>
39
39
 
@@ -128,6 +128,9 @@ NOW - update wizzo/Rakefile with gem description, etc
128
128
  <p>Run the rake task <code>rake website_generate</code> to convert all your website txt files into html files.</p>
129
129
 
130
130
 
131
+ <p><span class="caps">NOTE</span>: Currently, the initial <code>index.txt</code> file includes my details not yours. Currently you need to change this manually.</p>
132
+
133
+
131
134
  <p>If you don&#8217;t want a website, remove the <code>website</code> related files from the Manifest.txt.</p>
132
135
 
133
136
 
@@ -282,7 +285,7 @@ other stories and things.</p>
282
285
 
283
286
  <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
284
287
  <p class="coda">
285
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 17th April 2007<br>
288
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 18th April 2007<br>
286
289
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
287
290
  </p>
288
291
  </div>
@@ -31,9 +31,9 @@
31
31
  <div id="main">
32
32
 
33
33
  <h1>New Gem Generator</h1>
34
- <div id="version" class="clickable" onclick='document.location = ""; return false'>
34
+ <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return false'>
35
35
  Get Version
36
- <a href="" class="numbers">0.9.1</a>
36
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.3</a>
37
37
  </div>
38
38
  <h1>&#x2192; using &#8216;rubyforge&#8217;</h1>
39
39
 
@@ -261,7 +261,7 @@ OPTIONS
261
261
  specify whether release_notes/changes are preformatted
262
262
  </pre>
263
263
  <p class="coda">
264
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 17th April 2007<br>
264
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 18th April 2007<br>
265
265
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
266
266
  </p>
267
267
  </div>
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.9.1";
2
+ var version = "0.9.3";
3
3
  MagicAnnouncement.show('compositekeys', version);
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.9.1";
2
+ var version = "0.9.3";
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.2
7
- date: 2007-04-18 00:00:00 +02:00
6
+ version: 0.9.3
7
+ date: 2007-04-20 00:00:00 +02:00
8
8
  summary: Make your own gems at home
9
9
  require_paths:
10
10
  - lib