newgem 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/Rakefile +18 -2
- data/lib/newgem/version.rb +1 -1
- data/scripts/txt2html +1 -1
- data/templates/Rakefile +16 -2
- data/website/index.html +6 -3
- data/website/rubyforge.html +3 -3
- data/website/version-raw.js +1 -1
- data/website/version.js +1 -1
- metadata +2 -2
data/History.txt
CHANGED
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 =
|
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
|
-
|
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
|
data/lib/newgem/version.rb
CHANGED
data/scripts/txt2html
CHANGED
data/templates/Rakefile
CHANGED
@@ -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 =
|
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
|
data/website/index.html
CHANGED
@@ -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.
|
36
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.3</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘newgem’</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’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>,
|
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>
|
data/website/rubyforge.html
CHANGED
@@ -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.
|
36
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">0.9.3</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ using ‘rubyforge’</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>,
|
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>
|
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-04-
|
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
|