newgem 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/History.txt +9 -0
  2. data/Manifest.txt +9 -1
  3. data/Rakefile +2 -1
  4. data/TODO.markdown +9 -3
  5. data/app_generators/newgem/newgem_generator.rb +5 -1
  6. data/app_generators/newgem/templates/README.rdoc +1 -1
  7. data/app_generators/newgem/templates/Rakefile +2 -1
  8. data/app_generators/newgem_simple/templates/Rakefile +1 -1
  9. data/bin/newgem +1 -1
  10. data/features/development.feature +5 -5
  11. data/features/executable_generator.feature +46 -29
  12. data/features/extconf.feature +27 -26
  13. data/features/install_cucumber.feature +29 -19
  14. data/features/install_website.feature +6 -6
  15. data/features/newgem_cli.feature +86 -42
  16. data/features/rubygem_tasks.feature +26 -18
  17. data/features/step_definitions/cli_steps.rb +22 -17
  18. data/features/step_definitions/common_steps.rb +45 -67
  19. data/features/step_definitions/rubygems_steps.rb +1 -1
  20. data/features/support/cli.rb +8 -0
  21. data/features/support/common.rb +29 -0
  22. data/features/support/env.rb +2 -7
  23. data/features/support/matchers.rb +11 -0
  24. data/lib/newgem.rb +1 -1
  25. data/lib/newgem/rubyforge-ext.rb +1 -1
  26. data/newgem_generators/install_website/install_website_generator.rb +1 -1
  27. data/newgem_generators/install_website/templates/features/website.feature +4 -4
  28. data/newgem_theme_generators/long_box_theme/long_box_theme_generator.rb +1 -1
  29. data/rubygems_generators/executable/executable_generator.rb +1 -1
  30. data/rubygems_generators/executable/templates/spec/cli_spec.rb.erb +2 -2
  31. data/rubygems_generators/executable/templates/test/test_cli.rb.erb +2 -2
  32. data/rubygems_generators/extconf/extconf_generator.rb +1 -1
  33. data/rubygems_generators/install_cucumber/install_cucumber_generator.rb +2 -0
  34. data/rubygems_generators/install_cucumber/templates/features/development.feature +5 -5
  35. data/rubygems_generators/install_cucumber/templates/features/step_definitions/common_steps.rb +45 -67
  36. data/rubygems_generators/install_cucumber/templates/features/support/common.rb +29 -0
  37. data/rubygems_generators/install_rspec/install_rspec_generator.rb +1 -1
  38. data/rubygems_generators/install_rspec/templates/spec.rb +1 -1
  39. data/rubygems_generators/install_rspec/templates/spec/spec_helper.rb +1 -1
  40. data/rubygems_generators/install_rspec/templates/tasks/rspec.rake +1 -1
  41. data/rubygems_generators/install_shoulda/USAGE +5 -0
  42. data/rubygems_generators/install_shoulda/install_shoulda_generator.rb +35 -0
  43. data/rubygems_generators/install_shoulda/templates/tasks/shoulda.rake +15 -0
  44. data/rubygems_generators/install_shoulda/templates/test/test.rb +13 -0
  45. data/rubygems_generators/install_shoulda/templates/test/test_helper.rb +9 -0
  46. data/rubygems_generators/install_test_unit/install_test_unit_generator.rb +1 -1
  47. data/script/destroy +1 -1
  48. data/script/generate +1 -1
  49. data/test/test_generator_helper.rb +1 -1
  50. data/website/index.html +2 -2
  51. data/website/rubyforge.html +2 -2
  52. metadata +21 -6
  53. data/features/expected_outputs/newgem.out +0 -27
@@ -0,0 +1,15 @@
1
+ begin
2
+ require 'shoulda'
3
+ rescue LoadError
4
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
5
+ require 'shoulda'
6
+ end
7
+
8
+ require 'rake/testtask'
9
+
10
+ desc "Run the shoulda test under /spec"
11
+ Rake::TestTask.new do |t|
12
+ t.libs << "test"
13
+ t.test_files = FileList['spec/*_spec.rb']
14
+ t.verbose = true
15
+ end
@@ -0,0 +1,13 @@
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ class <%= gem_name.capitalize! %>Test < Test::Unit::TestCase
4
+ context "A <%= gem_name %> instance" do
5
+ setup do
6
+
7
+ end
8
+
9
+ should "run" do
10
+ # raise "write your specs!"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ begin
2
+ require 'shoulda'
3
+ rescue LoadError
4
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
5
+ require 'shoulda'
6
+ end
7
+
8
+ $:.unshift(File.dirname(__FILE__) + '/../lib')
9
+ require '<%= gem_name %>'
@@ -8,7 +8,7 @@ class InstallTestUnitGenerator < RubiGen::Base
8
8
  super
9
9
  @destination_root = File.expand_path(destination_root)
10
10
  @gem_name = base_name
11
- @module_name = @gem_name.camelcase
11
+ @module_name = @gem_name.gsub('-','_').camelize
12
12
  extract_options
13
13
  end
14
14
 
@@ -4,7 +4,7 @@ APP_ROOT = File.join(File.dirname(__FILE__), '..')
4
4
  begin
5
5
  require 'rubigen'
6
6
  rescue LoadError
7
- require 'rubygems'
7
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
8
8
  require 'rubigen'
9
9
  end
10
10
  require 'rubigen/scripts/destroy'
@@ -4,7 +4,7 @@ APP_ROOT = File.join(File.dirname(__FILE__), '..')
4
4
  begin
5
5
  require 'rubigen'
6
6
  rescue LoadError
7
- require 'rubygems'
7
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
8
8
  require 'rubigen'
9
9
  end
10
10
  require 'rubigen/scripts/generate'
@@ -23,7 +23,7 @@ end
23
23
  begin
24
24
  require 'rubigen'
25
25
  rescue LoadError
26
- require 'rubygems'
26
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
27
27
  require 'rubigen'
28
28
  end
29
29
  require 'rubigen/helpers/generator_test_helper'
@@ -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">1.2.3</a>
42
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">1.3.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>
@@ -225,7 +225,7 @@ rake install_gem</pre>
225
225
  <h2>Contact</h2>
226
226
  <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
227
227
  <p class="coda">
228
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 8th November 2008<br>
228
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 29th December 2008<br>
229
229
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
230
230
  </p>
231
231
  </div>
@@ -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">1.2.3</a>
42
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">1.3.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>, 26th October 2008<br>
230
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 29th December 2008<br>
231
231
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
232
232
  </p>
233
233
  </div>
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: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-17 00:00:00 +08:00
12
+ date: 2009-05-03 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -82,7 +82,12 @@ dependencies:
82
82
  - !ruby/object:Gem::Version
83
83
  version: 1.8.0
84
84
  version:
85
- 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.
86
85
 
87
86
  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.
88
87
 
89
88
  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)
89
+ description: |-
90
+ Quickly bundle any Ruby libraries into a RubyGem and share it with the world, your colleagues, or perhaps just with yourself amongst your projects.
91
+
92
+ 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.
93
+
94
+ 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)
90
95
  email:
91
96
  - drnicwilliams@gmail.com
92
97
  executables:
@@ -142,7 +147,6 @@ files:
142
147
  - cucumber_generators/feature/templates/steps.erb
143
148
  - features/development.feature
144
149
  - features/executable_generator.feature
145
- - features/expected_outputs/newgem.out
146
150
  - features/extconf.feature
147
151
  - features/install_cucumber.feature
148
152
  - features/install_website.feature
@@ -151,7 +155,10 @@ files:
151
155
  - features/step_definitions/cli_steps.rb
152
156
  - features/step_definitions/common_steps.rb
153
157
  - features/step_definitions/rubygems_steps.rb
158
+ - features/support/cli.rb
159
+ - features/support/common.rb
154
160
  - features/support/env.rb
161
+ - features/support/matchers.rb
155
162
  - lib/hoe-patched.rb
156
163
  - lib/newgem.rb
157
164
  - lib/newgem/quick_template.rb
@@ -199,6 +206,7 @@ files:
199
206
  - rubygems_generators/install_cucumber/install_cucumber_generator.rb
200
207
  - rubygems_generators/install_cucumber/templates/features/development.feature
201
208
  - rubygems_generators/install_cucumber/templates/features/step_definitions/common_steps.rb
209
+ - rubygems_generators/install_cucumber/templates/features/support/common.rb
202
210
  - rubygems_generators/install_cucumber/templates/features/support/env.rb.erb
203
211
  - rubygems_generators/install_jruby/USAGE
204
212
  - rubygems_generators/install_jruby/install_jruby_generator.rb
@@ -209,6 +217,11 @@ files:
209
217
  - rubygems_generators/install_rspec/templates/spec/spec.opts
210
218
  - rubygems_generators/install_rspec/templates/spec/spec_helper.rb
211
219
  - rubygems_generators/install_rspec/templates/tasks/rspec.rake
220
+ - rubygems_generators/install_shoulda/USAGE
221
+ - rubygems_generators/install_shoulda/install_shoulda_generator.rb
222
+ - rubygems_generators/install_shoulda/templates/tasks/shoulda.rake
223
+ - rubygems_generators/install_shoulda/templates/test/test.rb
224
+ - rubygems_generators/install_shoulda/templates/test/test_helper.rb
212
225
  - rubygems_generators/install_test_unit/USAGE
213
226
  - rubygems_generators/install_test_unit/install_test_unit_generator.rb
214
227
  - rubygems_generators/install_test_unit/templates/test/test.rb
@@ -252,6 +265,8 @@ files:
252
265
  - website/version.txt
253
266
  has_rdoc: true
254
267
  homepage: http://newgem.rubyforge.org
268
+ licenses: []
269
+
255
270
  post_install_message: PostInstall.txt
256
271
  rdoc_options:
257
272
  - --main
@@ -273,9 +288,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
288
  requirements: []
274
289
 
275
290
  rubyforge_project: newgem
276
- rubygems_version: 1.3.1
291
+ rubygems_version: 1.3.2
277
292
  signing_key:
278
- specification_version: 2
293
+ specification_version: 3
279
294
  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
280
295
  test_files:
281
296
  - test/test_executable_generator.rb
@@ -1,27 +0,0 @@
1
- create
2
- create doc
3
- create lib
4
- create script
5
- create tasks
6
- create lib/my_project
7
- create History.txt
8
- create Rakefile
9
- create README.rdoc
10
- create PostInstall.txt
11
- create lib/my_project.rb
12
- dependency install_test_unit
13
- create test
14
- create test/test_helper.rb
15
- create test/test_my_project.rb
16
- dependency install_rubigen_scripts
17
- exists script
18
- create script/generate
19
- create script/destroy
20
- create script/console
21
- create Manifest.txt
22
- readme readme
23
- Important
24
- =========
25
-
26
- * Open Rakefile
27
- * Update missing details (gem description, dependent gems, etc.)