newgem 0.29.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/History.txt +15 -1
  2. data/Manifest.txt +7 -22
  3. data/README.rdoc +55 -33
  4. data/Rakefile +22 -7
  5. data/app_generators/newgem/newgem_generator.rb +23 -23
  6. data/app_generators/newgem/templates/Rakefile +27 -3
  7. data/app_generators/newgem/templates/lib/module.rb +1 -1
  8. data/bin/newgem +12 -2
  9. data/config/website.yml +2 -0
  10. data/features/development.feature +22 -0
  11. data/features/executable_generator.feature +6 -6
  12. data/features/expected_outputs/newgem.out +2 -9
  13. data/features/install_cucumber.feature +11 -0
  14. data/features/install_website.feature +13 -0
  15. data/features/newgem_cli.feature +60 -0
  16. data/features/steps/cli.rb +125 -36
  17. data/features/steps/env.rb +4 -2
  18. data/lib/newgem/support/tasks.rb +10 -0
  19. data/lib/newgem/tasks.rb +1 -0
  20. data/lib/newgem.rb +5 -5
  21. data/newgem_generators/install_website/install_website_generator.rb +12 -9
  22. data/newgem_generators/install_website/templates/config/website.yml.sample.erb +2 -0
  23. data/newgem_generators/install_website/templates/script/txt2html +5 -16
  24. data/newgem_generators/install_website/templates/tasks/website.rake +34 -4
  25. data/rubygems_generators/executable/templates/test/test_cli.rb.erb +1 -1
  26. data/script/txt2html +5 -16
  27. data/tasks/deployment.rake +5 -6
  28. data/tasks/website.rake +34 -6
  29. data/test/test_install_website_generator.rb +1 -0
  30. data/test/test_newgem_generator.rb +0 -10
  31. data/website/index.html +27 -22
  32. data/website/index.txt +30 -19
  33. data/website/rubyforge.html +2 -2
  34. data/website/version.js +0 -4
  35. metadata +35 -67
  36. data/Todo.txt +0 -4
  37. data/app_generators/newgem/templates/config/hoe.rb +0 -82
  38. data/app_generators/newgem/templates/config/requirements.rb +0 -15
  39. data/app_generators/newgem/templates/lib/version.rb +0 -10
  40. data/app_generators/newgem/templates/setup.rb +0 -1585
  41. data/app_generators/newgem/templates/tasks/deployment.rake +0 -34
  42. data/app_generators/newgem/templates/tasks/environment.rake +0 -7
  43. data/app_generators/newgem/templates/tasks/website.rake +0 -9
  44. data/config/hoe.rb +0 -62
  45. data/features/cli.feature +0 -28
  46. data/features/steps/executable_generator.rb +0 -0
  47. data/lib/newgem/version.rb +0 -9
  48. data/rubygems_generators/install_rspec_stories/USAGE +0 -5
  49. data/rubygems_generators/install_rspec_stories/install_rspec_stories_generator.rb +0 -54
  50. data/rubygems_generators/install_rspec_stories/templates/all.rb +0 -8
  51. data/rubygems_generators/install_rspec_stories/templates/steps.rb +0 -13
  52. data/rubygems_generators/install_rspec_stories/templates/story.story +0 -9
  53. data/script/txt2html.rb +0 -70
  54. data/script/txt2js +0 -59
  55. data/setup.rb +0 -1585
  56. data/tasks/generator_report.rake +0 -19
  57. data/test/test_install_rspec_stories_generator.rb +0 -45
data/website/index.html CHANGED
@@ -39,7 +39,7 @@
39
39
 
40
40
  <div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
41
41
  <p>Get Version</p>
42
- <a href="http://rubyforge.org/projects/newgem" class="numbers">0.29.0</a>
42
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">1.0.0</a>
43
43
  <p>Featured in</p>
44
44
  <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
45
45
  </div>
@@ -75,27 +75,24 @@ $ newgem wizzo
75
75
  create config
76
76
  create doc
77
77
  create lib
78
- create log
79
78
  create script
80
79
  create tasks
81
- create test
82
- create tmp
83
80
  create lib/wizzo
84
81
  create History.txt
85
- create License.txt
86
82
  create Rakefile
87
- create README.txt
88
- create setup.rb
83
+ create README.rdoc
84
+ create PostInstall.txt
89
85
  create lib/wizzo.rb
90
86
  create lib/wizzo/version.rb
91
87
  create config/hoe.rb
92
88
  create config/requirements.rb
93
- create log/debug.log
94
89
  create tasks/deployment.rake
95
90
  create tasks/environment.rake
96
91
  create tasks/website.rake
97
- create test/test_helper.rb
98
- create test/test_wizzo.rb
92
+ dependency install_test_unit
93
+ create test
94
+ create test/test_helper.rb
95
+ create test/test_wizzo.rb
99
96
  dependency install_website
100
97
  create website/javascripts
101
98
  create website/stylesheets
@@ -115,15 +112,15 @@ $ newgem wizzo
115
112
  exists script
116
113
  create script/generate
117
114
  create script/destroy
115
+ create script/console
118
116
  create Manifest.txt
119
117
  readme readme
120
118
  Important
121
119
  =========
122
120
 
123
121
  * Open config/hoe.rb
124
- * Update missing details (gem description, dependent gems, etc.)
125
- </pre>
126
- <p>As of 0.10.0 &#8211; you can generate test::unit or rspec test stubs via the <code>-T</code> or <code>--test-with</code> options. For example, <code>-T rspec</code> generates a <code>spec</code> folder with some test stubs.</p>
122
+ * Update missing details (gem description, dependent gems, etc.)</pre>
123
+ <p>You can generate test::unit or rspec test stubs via the <code>-T</code> or <code>--test-with</code> options. For example, <code>-T rspec</code> generates a <code>spec</code> folder with some test stubs.</p>
127
124
  <h3>Setup</h3>
128
125
  <p>Now modify the constants at the top of <strong>config/hoe.rb</strong>, with your name, email and the location where you&#8217;ll host your website for the gem. The defaults are tied to RubyForge for uploading the gems and the website (see below).</p>
129
126
  <h3>Create code and tests</h3>
@@ -168,14 +165,22 @@ Important
168
165
  </pre>
169
166
  <p>The two paragraphs will be automatically picked up by the following release process and documented against the release on RubyForge site. To see an example of the end result, look at the <a href="http://newgem.rubyforge.org/rdoc/files/History_txt.html"><strong>History</strong> page for newgem</a>.</p>
170
167
  <p>The History.txt notes for your first release have already been started for you.</p>
171
- <h3>Release the gem and upload the website and rdocs</h3>
172
- <p>Run <code>rake deploy VERSION=X.Y.Z</code> after you&#8217;ve done all these steps. It does the following:</p>
173
- <ol>
174
- <li>Uploads your website to rubyforge</li>
175
- <li>Uploads your rdocs to rubyforge</li>
176
- <li>Packages and uploads your gem to RubyForge</li>
177
- </ol>
178
- <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>
168
+ <h3>Release the website (optional)</h3>
169
+ <p>By default, <code>newgem</code> installs a one-page website to promote your RubyGem. (You can disable this <br />
170
+ with the -W option). Once you have changed the gem version number, you can push the latest<br />
171
+ website to rubyforge (or any target host) with a rake task.</p>
172
+ <p>Check the file <code>config/website.yml</code> and give it your rubyforge username if necessary. Also, <br />
173
+ if you want to put your website on a different host than rubyforge.org you can change the <br />
174
+ <code>username@host</code> and <code>/path/to/www</code> in this file.</p>
175
+ <p>Then rsync the website files with:</p>
176
+ <pre>rake website</pre>
177
+ <p>This will also generate RDocs and put them in the <code>doc</code> subfolder. Perhaps link to it in your<br />
178
+ website.</p>
179
+ <h3>Release the gem</h3>
180
+ <p>Run <code>rake release VERSION=X.Y.Z</code> after you&#8217;ve done all these steps. It packages <br />
181
+ and uploads your gem to RubyForge.</p>
182
+ <p>It can take 20 minutes to an hour before new gem releases are available via the gem installer. <br />
183
+ But when they are ready, everyone will be able to download and install your gem using:</p>
179
184
  <pre>sudo gem install #gem_name#</pre>
180
185
  <p>If your GEM_NAME and RUBYFORGE_PROJECT name are the same, then:</p>
181
186
  <ul>
@@ -225,7 +230,7 @@ rake install_gem</pre>
225
230
  <h2>Contact</h2>
226
231
  <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
227
232
  <p class="coda">
228
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 23rd September 2008<br>
233
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 26th October 2008<br>
229
234
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
230
235
  </p>
231
236
  </div>
data/website/index.txt CHANGED
@@ -28,27 +28,24 @@ $ newgem wizzo
28
28
  create config
29
29
  create doc
30
30
  create lib
31
- create log
32
31
  create script
33
32
  create tasks
34
- create test
35
- create tmp
36
33
  create lib/wizzo
37
34
  create History.txt
38
- create License.txt
39
35
  create Rakefile
40
- create README.txt
41
- create setup.rb
36
+ create README.rdoc
37
+ create PostInstall.txt
42
38
  create lib/wizzo.rb
43
39
  create lib/wizzo/version.rb
44
40
  create config/hoe.rb
45
41
  create config/requirements.rb
46
- create log/debug.log
47
42
  create tasks/deployment.rake
48
43
  create tasks/environment.rake
49
44
  create tasks/website.rake
50
- create test/test_helper.rb
51
- create test/test_wizzo.rb
45
+ dependency install_test_unit
46
+ create test
47
+ create test/test_helper.rb
48
+ create test/test_wizzo.rb
52
49
  dependency install_website
53
50
  create website/javascripts
54
51
  create website/stylesheets
@@ -68,16 +65,16 @@ $ newgem wizzo
68
65
  exists script
69
66
  create script/generate
70
67
  create script/destroy
68
+ create script/console
71
69
  create Manifest.txt
72
70
  readme readme
73
71
  Important
74
72
  =========
75
73
 
76
74
  * Open config/hoe.rb
77
- * Update missing details (gem description, dependent gems, etc.)
78
- </pre>
75
+ * Update missing details (gem description, dependent gems, etc.)</pre>
79
76
 
80
- As of 0.10.0 - you can generate test::unit or rspec test stubs via the <code>-T</code> or <code>--test-with</code> options. For example, <code>-T rspec</code> generates a <code>spec</code> folder with some test stubs.
77
+ You can generate test::unit or rspec test stubs via the <code>-T</code> or <code>--test-with</code> options. For example, <code>-T rspec</code> generates a <code>spec</code> folder with some test stubs.
81
78
 
82
79
  h3. Setup
83
80
 
@@ -143,7 +140,6 @@ h3. Setup your environment to upload to RubyForge.
143
140
 
144
141
  There are several steps you need to perform initially to "setup your environment for uploading gems to RubyForge":rubyforge.html.
145
142
 
146
-
147
143
  h3. Document changes in History.txt
148
144
 
149
145
  Between each version of your gem, you probably changed something. You should document this in the <code>History.txt</code> file. For each new release, you need to add two paragraphs that look like this:
@@ -161,15 +157,30 @@ The two paragraphs will be automatically picked up by the following release proc
161
157
 
162
158
  The History.txt notes for your first release have already been started for you.
163
159
 
164
- h3. Release the gem and upload the website and rdocs
160
+ h3. Release the website (optional)
161
+
162
+ By default, <code>newgem</code> installs a one-page website to promote your RubyGem. (You can disable this
163
+ with the -W option). Once you have changed the gem version number, you can push the latest
164
+ website to rubyforge (or any target host) with a rake task.
165
+
166
+ Check the file <code>config/website.yml</code> and give it your rubyforge username if necessary. Also,
167
+ if you want to put your website on a different host than rubyforge.org you can change the
168
+ <code>username@host</code> and <code>/path/to/www</code> in this file.
169
+
170
+ Then rsync the website files with:
171
+
172
+ <pre>rake website</pre>
173
+
174
+ This will also generate RDocs and put them in the <code>doc</code> subfolder. Perhaps link to it in your
175
+ website.
165
176
 
166
- Run <code>rake deploy VERSION=X.Y.Z</code> after you've done all these steps. It does the following:
177
+ h3. Release the gem
167
178
 
168
- # Uploads your website to rubyforge
169
- # Uploads your rdocs to rubyforge
170
- # Packages and uploads your gem to RubyForge
179
+ Run <code>rake release VERSION=X.Y.Z</code> after you've done all these steps. It packages
180
+ and uploads your gem to RubyForge.
171
181
 
172
- 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:
182
+ It can take 20 minutes to an hour before new gem releases are available via the gem installer.
183
+ But when they are ready, everyone will be able to download and install your gem using:
173
184
 
174
185
  <pre>sudo gem install #gem_name#</pre>
175
186
 
@@ -39,7 +39,7 @@
39
39
 
40
40
  <div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
41
41
  <p>Get Version</p>
42
- <a href="http://rubyforge.org/projects/newgem" class="numbers">0.29.0</a>
42
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">1.0.0</a>
43
43
  <p>Featured in</p>
44
44
  <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
45
45
  </div>
@@ -227,7 +227,7 @@ OPTIONS
227
227
  specify whether release_notes/changes are preformatted
228
228
  </pre>
229
229
  <p class="coda">
230
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 16th June 2008<br>
230
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 26th October 2008<br>
231
231
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
232
232
  </p>
233
233
  </div>
data/website/version.js CHANGED
@@ -1,4 +0,0 @@
1
- // Version JS file
2
- var version = "0.29.0";
3
-
4
- document.write(" - " + version);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,48 +9,58 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-19 00:00:00 -02:00
12
+ date: 2008-10-26 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: RedCloth
16
+ name: activesupport
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 4.0.0
23
+ version: 2.0.2
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
- name: syntax
26
+ name: rubigen
27
27
  type: :runtime
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.0
33
+ version: 1.3.3
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
- name: activesupport
36
+ name: hoe
37
37
  type: :runtime
38
38
  version_requirement:
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 2.0.2
43
+ version: 1.8.0
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
- name: rubigen
46
+ name: RedCloth
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 4.0.0
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: syntax
47
57
  type: :runtime
48
58
  version_requirement:
49
59
  version_requirements: !ruby/object:Gem::Requirement
50
60
  requirements:
51
61
  - - ">="
52
62
  - !ruby/object:Gem::Version
53
- version: 1.3.0
63
+ version: 1.0.0
54
64
  version:
55
65
  - !ruby/object:Gem::Dependency
56
66
  name: hoe
@@ -62,7 +72,7 @@ dependencies:
62
72
  - !ruby/object:Gem::Version
63
73
  version: 1.8.0
64
74
  version:
65
- description: Make your own gems at home
75
+ description: Quickly bundle any Ruby libraries into a RubyGem and share it with the world, your colleagues, or perhaps just with yourself amongst your projects.
66
76
 
67
77
  RubyGems are centrally stored, versioned, and support dependencies between other gems, so they are the ultimate way to bundle libraries, executables, associated tests, examples, and more.
68
78
 
69
79
  Within this gem, you get one thing - <code>newgem</code> - an executable to create your own gems. Your new gems will include designated folders for Ruby code, test files, executables, and even a default website page for you to explain your project, and which instantly uploads to RubyForge website (which looks just like this one by default)
70
80
  email:
71
81
  - drnicwilliams@gmail.com
72
82
  executables:
@@ -73,9 +83,11 @@ extra_rdoc_files:
73
83
  - History.txt
74
84
  - Manifest.txt
75
85
  - PostInstall.txt
76
- - Todo.txt
86
+ - README.rdoc
77
87
  - app_generators/newgem/templates/History.txt
78
88
  - app_generators/newgem/templates/PostInstall.txt
89
+ - app_generators/newgem/templates/README.rdoc
90
+ - app_generators/newgem_simple/templates/README.rdoc
79
91
  - newgem_generators/install_website/templates/website/index.txt
80
92
  - newgem_theme_generators/long_box_theme/templates/website/index.txt
81
93
  - rubygems_generators/extconf/templates/README.txt
@@ -89,23 +101,15 @@ files:
89
101
  - PostInstall.txt
90
102
  - README.rdoc
91
103
  - Rakefile
92
- - Todo.txt
93
104
  - app_generators/newgem/newgem_generator.rb
94
105
  - app_generators/newgem/templates/History.txt
95
106
  - app_generators/newgem/templates/PostInstall.txt
96
107
  - app_generators/newgem/templates/README.rdoc
97
108
  - app_generators/newgem/templates/Rakefile
98
- - app_generators/newgem/templates/config/hoe.rb
99
- - app_generators/newgem/templates/config/requirements.rb
100
109
  - app_generators/newgem/templates/lib/module.rb
101
- - app_generators/newgem/templates/lib/version.rb
102
110
  - app_generators/newgem/templates/readme
103
111
  - app_generators/newgem/templates/script/console.erb
104
112
  - app_generators/newgem/templates/script/win_script.cmd
105
- - app_generators/newgem/templates/setup.rb
106
- - app_generators/newgem/templates/tasks/deployment.rake
107
- - app_generators/newgem/templates/tasks/environment.rake
108
- - app_generators/newgem/templates/tasks/website.rake
109
113
  - app_generators/newgem_simple/USAGE
110
114
  - app_generators/newgem_simple/newgem_simple_generator.rb
111
115
  - app_generators/newgem_simple/templates/LICENSE
@@ -120,24 +124,27 @@ files:
120
124
  - bundles/RubyGem.tmbundle/Snippets/History header.tmSnippet
121
125
  - bundles/RubyGem.tmbundle/Syntaxes/Rdoc.tmLanguage
122
126
  - bundles/RubyGem.tmbundle/info.plist
123
- - config/hoe.rb
127
+ - config/website.yml
124
128
  - cucumber_generators/feature/USAGE
125
129
  - cucumber_generators/feature/feature_generator.rb
126
130
  - cucumber_generators/feature/templates/feature.erb
127
131
  - cucumber_generators/feature/templates/steps.erb
128
- - features/cli.feature
132
+ - features/development.feature
129
133
  - features/executable_generator.feature
130
134
  - features/expected_outputs/newgem.out
135
+ - features/install_cucumber.feature
136
+ - features/install_website.feature
137
+ - features/newgem_cli.feature
131
138
  - features/steps/cli.rb
132
139
  - features/steps/env.rb
133
- - features/steps/executable_generator.rb
134
140
  - lib/newgem.rb
135
141
  - lib/newgem/quick_template.rb
136
142
  - lib/newgem/rubyforge.rb
143
+ - lib/newgem/support/tasks.rb
137
144
  - lib/newgem/tasks.rb
138
- - lib/newgem/version.rb
139
145
  - newgem_generators/install_website/USAGE
140
146
  - newgem_generators/install_website/install_website_generator.rb
147
+ - newgem_generators/install_website/templates/config/website.yml.sample.erb
141
148
  - newgem_generators/install_website/templates/script/txt2html
142
149
  - newgem_generators/install_website/templates/script/win_script.cmd
143
150
  - newgem_generators/install_website/templates/tasks/website.rake
@@ -180,11 +187,6 @@ files:
180
187
  - rubygems_generators/install_rspec/templates/spec/spec.opts
181
188
  - rubygems_generators/install_rspec/templates/spec/spec_helper.rb
182
189
  - rubygems_generators/install_rspec/templates/tasks/rspec.rake
183
- - rubygems_generators/install_rspec_stories/USAGE
184
- - rubygems_generators/install_rspec_stories/install_rspec_stories_generator.rb
185
- - rubygems_generators/install_rspec_stories/templates/all.rb
186
- - rubygems_generators/install_rspec_stories/templates/steps.rb
187
- - rubygems_generators/install_rspec_stories/templates/story.story
188
190
  - rubygems_generators/install_test_unit/USAGE
189
191
  - rubygems_generators/install_test_unit/install_test_unit_generator.rb
190
192
  - rubygems_generators/install_test_unit/templates/test/test.rb
@@ -192,14 +194,10 @@ files:
192
194
  - script/destroy
193
195
  - script/generate
194
196
  - script/txt2html
195
- - script/txt2html.rb
196
- - script/txt2js
197
- - setup.rb
198
197
  - tasks/bundles.rake
199
198
  - tasks/cucumber.rake
200
199
  - tasks/deployment.rake
201
200
  - tasks/environment.rake
202
- - tasks/generator_report.rake
203
201
  - tasks/website.rake
204
202
  - test/fixtures/home/.rubyforge/auto-config.yml
205
203
  - test/fixtures/home/.rubyforge/user-config.yml
@@ -211,7 +209,6 @@ files:
211
209
  - test/test_install_cucumber_generator.rb
212
210
  - test/test_install_jruby_generator.rb
213
211
  - test/test_install_rspec_generator.rb
214
- - test/test_install_rspec_stories_generator.rb
215
212
  - test/test_install_test_unit_generator.rb
216
213
  - test/test_install_website_generator.rb
217
214
  - test/test_newgem_generator.rb
@@ -232,39 +229,11 @@ files:
232
229
  - website/version.js
233
230
  - website/version.txt
234
231
  has_rdoc: true
235
- homepage: http://newgem.rubyforge.org
236
- post_install_message: |+
237
-
238
- USAGE: newgem project_name
239
- HELP/OPTIONS: newgem -h
240
-
241
-
242
- newgem uses config from your ~/.rubyforge/user-config.yml file
243
- You can add the following key/values to this file:
244
- full_name : Dr Nic Williams
245
- email : drnicwilliams@gmail.com
246
- github_username: drnic
247
-
248
- To create the ~/.rubyforge/user-config.yml file run:
249
- rubyforge setup (deletes your username and password, so run sparingly!)
250
- edit ~/.rubyforge/user-config.yml
251
- rubyforge config
252
-
253
- Whenever you create a new RubyForge.org project, re-run:
254
- rubyforge config
255
-
256
-
257
- Did you know you have script/generate generators?
258
- application_generator, component_generator, executable,
259
- extconf, install_cucumber, install_jruby, install_rspec,
260
- install_website, test_unit
261
-
262
- Have fun making RubyGems!
263
-
264
-
232
+ homepage: http://newgem.rubyforge.org
233
+ post_install_message: PostInstall.txt
265
234
  rdoc_options:
266
235
  - --main
267
- - README.txt
236
+ - README.rdoc
268
237
  require_paths:
269
238
  - lib
270
239
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -285,7 +254,7 @@ rubyforge_project: newgem
285
254
  rubygems_version: 1.3.0
286
255
  signing_key:
287
256
  specification_version: 2
288
- summary: Make your own gems at home
257
+ summary: Quickly bundle any Ruby libraries into a RubyGem and share it with the world, your colleagues, or perhaps just with yourself amongst your projects
289
258
  test_files:
290
259
  - test/test_executable_generator.rb
291
260
  - test/test_extconf_generator.rb
@@ -295,7 +264,6 @@ test_files:
295
264
  - test/test_install_cucumber_generator.rb
296
265
  - test/test_install_jruby_generator.rb
297
266
  - test/test_install_rspec_generator.rb
298
- - test/test_install_rspec_stories_generator.rb
299
267
  - test/test_install_test_unit_generator.rb
300
268
  - test/test_install_website_generator.rb
301
269
  - test/test_newgem_generator.rb
data/Todo.txt DELETED
@@ -1,4 +0,0 @@
1
- == Todo list
2
- * can generate rspec default tests (or still test::unit tests) using --with-test=rspec [thx Robby Russell]
3
- * website components are now optional (-w/--no-website)
4
- * release name generator ("red moom", "flying leopard")
@@ -1,82 +0,0 @@
1
- require '<%= gem_name %>/version'
2
-
3
- AUTHOR = '<%= author %>' # can also be an array of Authors
4
- EMAIL = "<%= email %>"
5
- DESCRIPTION = "description of gem"
6
- GEM_NAME = '<%= gem_name %>' # what ppl will type to install your gem
7
- RUBYFORGE_PROJECT = '<%= project_name %>' # The unix name for your project
8
- HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9
- DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
10
- EXTRA_DEPENDENCIES = [
11
- # ['activesupport', '>= 1.3.1']
12
- ] # An array of rubygem dependencies [name, version]
13
- EXTRA_DEV_DEPENDENCIES = [
14
- # ['rspec', '>= 1.1.5']
15
- ] # An array of rubygem dependencies [name, version]
16
-
17
- @config_file = "~/.rubyforge/user-config.yml"
18
- @config = nil
19
- RUBYFORGE_USERNAME = "unknown"
20
- def rubyforge_username
21
- unless @config
22
- begin
23
- @config = YAML.load(File.read(File.expand_path(@config_file)))
24
- rescue
25
- puts <<-EOS
26
- ERROR: No rubyforge config file found: #{@config_file}
27
- Run 'rubyforge setup' to prepare your env for access to Rubyforge
28
- - See http://newgem.rubyforge.org/rubyforge.html for more details
29
- EOS
30
- exit
31
- end
32
- end
33
- RUBYFORGE_USERNAME.replace @config["username"]
34
- end
35
-
36
-
37
- REV = nil
38
- # UNCOMMENT IF REQUIRED:
39
- # REV = YAML.load(`svn info`)['Revision']
40
- VERS = <%= module_name %>::VERSION::STRING + (REV ? ".#{REV}" : "")
41
- RDOC_OPTS = ['--quiet', '--title', '<%= gem_name %> documentation',
42
- "--opname", "index.html",
43
- "--line-numbers",
44
- "--main", "README",
45
- "--inline-source"]
46
-
47
- class Hoe
48
- def extra_deps
49
- @extra_deps.reject! { |x| Array(x).first == 'hoe' }
50
- @extra_deps
51
- end
52
- end
53
-
54
- # Generate all the Rake tasks
55
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
56
- $hoe = Hoe.new(GEM_NAME, VERS) do |p|
57
- p.developer(AUTHOR, EMAIL)
58
- p.description = DESCRIPTION
59
- p.summary = DESCRIPTION
60
- p.url = HOMEPATH
61
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
62
- p.test_globs = ["test/**/test_*.rb"]
63
- p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
64
-
65
- # == Optional
66
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
67
- p.extra_deps = EXTRA_DEPENDENCIES
68
- p.extra_dev_deps = EXTRA_DEV_DEPENDENCIES
69
-
70
- <% if is_jruby -%>
71
- # JRuby gem created, e.g. <%= gem_name %>-X.Y.Z-jruby.gem
72
- p.spec_extras = { :platform => 'jruby' } # A hash of extra values to set in the gemspec.
73
- <% else -%>
74
- p.spec_extras = {} # A hash of extra values to set in the gemspec.
75
- <% end -%>
76
- end
77
-
78
- CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
79
- PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
80
- $hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
81
- $hoe.rsync_args = '-av --delete --ignore-errors'
82
- $hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
@@ -1,15 +0,0 @@
1
- require 'fileutils'
2
- include FileUtils
3
-
4
- require 'rubygems'
5
- %w[rake hoe newgem rubigen].each do |req_gem|
6
- begin
7
- require req_gem
8
- rescue LoadError
9
- puts "This Rakefile requires the '#{req_gem}' RubyGem."
10
- puts "Installation: gem install #{req_gem} -y"
11
- exit
12
- end
13
- end
14
-
15
- $:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
@@ -1,10 +0,0 @@
1
- module <%= module_name %>
2
- module VERSION #:nodoc:
3
- MAJOR = <%= version[0] || '0' %>
4
- MINOR = <%= version[1] || '0' %>
5
- TINY = <%= version[2] || '0' %>
6
-
7
- STRING = [MAJOR, MINOR, TINY].join('.')
8
- self
9
- end
10
- end