newgem 0.9.0 → 0.9.1
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.
- data/History.txt +5 -0
- data/bin/newgem +0 -1
- data/lib/newgem/version.rb +1 -1
- data/templates/Rakefile +5 -5
- data/website/index.html +10 -2
- data/website/index.txt +4 -0
- data/website/rubyforge.html +1 -1
- data/website/version-raw.js +1 -1
- data/website/version.js +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/bin/newgem
CHANGED
|
@@ -121,7 +121,6 @@ Dir.mkdir bin
|
|
|
121
121
|
if OPTIONS[:bin_name]
|
|
122
122
|
bin_names_list = OPTIONS[:bin_name].split(',')
|
|
123
123
|
template = File.open(templates + 'app.rb','r') {|f| f.readlines.join}
|
|
124
|
-
p template
|
|
125
124
|
bin_names_list.each do |bin_name|
|
|
126
125
|
puts "creating: " + bin + '/' + bin_name
|
|
127
126
|
File.open(bin + '/' + bin_name, 'w') do |file|
|
data/lib/newgem/version.rb
CHANGED
data/templates/Rakefile
CHANGED
|
@@ -11,11 +11,11 @@ require 'hoe'
|
|
|
11
11
|
include FileUtils
|
|
12
12
|
require File.join(File.dirname(__FILE__), 'lib', '#{gem_name}', 'version')
|
|
13
13
|
|
|
14
|
-
AUTHOR =
|
|
14
|
+
AUTHOR = '#{author}' # can also be an array of Authors
|
|
15
15
|
EMAIL = "your contact email for bug fixes and info"
|
|
16
16
|
DESCRIPTION = "description of gem"
|
|
17
|
-
GEM_NAME =
|
|
18
|
-
RUBYFORGE_PROJECT =
|
|
17
|
+
GEM_NAME = '#{gem_name}' # what ppl will type to install your gem
|
|
18
|
+
RUBYFORGE_PROJECT = '#{gem_name}' # The unix name for your project
|
|
19
19
|
HOMEPATH = "http://\#{RUBYFORGE_PROJECT}.rubyforge.org"
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ NAME = "#{gem_name}"
|
|
|
23
23
|
REV = nil # UNCOMMENT IF REQUIRED: File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
|
|
24
24
|
VERS = ENV['VERSION'] || (#{module_name}::VERSION::STRING + (REV ? ".\#{REV}" : ""))
|
|
25
25
|
CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
|
|
26
|
-
RDOC_OPTS = ['--quiet', '--title',
|
|
26
|
+
RDOC_OPTS = ['--quiet', '--title', '#{gem_name} documentation',
|
|
27
27
|
"--opname", "index.html",
|
|
28
28
|
"--line-numbers",
|
|
29
29
|
"--main", "README",
|
|
@@ -66,7 +66,7 @@ task :website_upload do
|
|
|
66
66
|
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
|
|
67
67
|
host = "\#{config["username"]}@rubyforge.org"
|
|
68
68
|
remote_dir = "/var/www/gforge-projects/\#{RUBYFORGE_PROJECT}/"
|
|
69
|
-
# remote_dir = "/var/www/gforge-projects/\#{RUBYFORGE_PROJECT}
|
|
69
|
+
# remote_dir = "/var/www/gforge-projects/\#{RUBYFORGE_PROJECT}/\#{GEM_NAME}"
|
|
70
70
|
local_dir = 'website'
|
|
71
71
|
sh %{rsync -av \#{local_dir}/ \#{host}:\#{remote_dir}}
|
|
72
72
|
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 false'>
|
|
35
35
|
Get Version
|
|
36
|
-
<a href="" class="numbers">0.9.
|
|
36
|
+
<a href="" class="numbers">0.9.1</a>
|
|
37
37
|
</div>
|
|
38
38
|
<h1>→ ‘newgem’</h1>
|
|
39
39
|
|
|
@@ -247,6 +247,14 @@ NOW - update wizzo/Rakefile with gem description, etc
|
|
|
247
247
|
<p>Remember, the Rakefile is yours to extend as you please with more rake tasks, such as the <code>website</code> tasks already added.</p>
|
|
248
248
|
|
|
249
249
|
|
|
250
|
+
<h2>Related articles</h2>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<ul>
|
|
254
|
+
<li><a href="http://drnicwilliams.com/2006/10/11/generating-new-gems/">Original blog article and tutorial</a></li>
|
|
255
|
+
</ul>
|
|
256
|
+
|
|
257
|
+
|
|
250
258
|
<h2>Dr Nic’s Blog</h2>
|
|
251
259
|
|
|
252
260
|
|
|
@@ -271,7 +279,7 @@ other stories and things.</p>
|
|
|
271
279
|
|
|
272
280
|
<p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
|
|
273
281
|
<p class="coda">
|
|
274
|
-
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>,
|
|
282
|
+
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 15th April 2007<br>
|
|
275
283
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
|
276
284
|
</p>
|
|
277
285
|
</div>
|
data/website/index.txt
CHANGED
|
@@ -160,6 +160,10 @@ See them all with:
|
|
|
160
160
|
|
|
161
161
|
Remember, the Rakefile is yours to extend as you please with more rake tasks, such as the <code>website</code> tasks already added.
|
|
162
162
|
|
|
163
|
+
h2. Related articles
|
|
164
|
+
|
|
165
|
+
* "Original blog article and tutorial":http://drnicwilliams.com/2006/10/11/generating-new-gems/
|
|
166
|
+
|
|
163
167
|
h2. Dr Nic's Blog
|
|
164
168
|
|
|
165
169
|
"http://www.drnicwilliams.com":http://www.drnicwilliams.com - for future announcements and
|
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 false'>
|
|
35
35
|
Get Version
|
|
36
|
-
<a href="" class="numbers">0.9.
|
|
36
|
+
<a href="" class="numbers">0.9.1</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-04-
|
|
6
|
+
version: 0.9.1
|
|
7
|
+
date: 2007-04-16 00:00:00 +02:00
|
|
8
8
|
summary: Make your own gems at home
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|