newgem 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 1.5.1 2009-07-01
2
+
3
+ * Fixed "newgem --help" to not show backtrace summary
4
+
1
5
  === 1.5.0 2009-06-15
2
6
 
3
7
  * support for hoe 2.0+ DSL
@@ -46,9 +46,9 @@ class NewgemGenerator < RubiGen::Base
46
46
  record do |m|
47
47
  # Root directory and all subdirectories.
48
48
  m.directory ''
49
- BASEDIRS.each { |path| m.directory path }
50
-
51
49
  m.directory "lib/#{gem_name}"
50
+ m.directory 'script'
51
+
52
52
 
53
53
  # Root
54
54
  m.template_copy_each %w( History.txt Rakefile README.rdoc PostInstall.txt )
@@ -97,6 +97,11 @@ class NewgemGenerator < RubiGen::Base
97
97
  end
98
98
 
99
99
  protected
100
+ def usage(message = usage_message)
101
+ puts @option_parser
102
+ exit
103
+ end
104
+
100
105
  def banner
101
106
  <<-EOS
102
107
  Take any library or Rails plugin or command line application,
@@ -180,11 +185,4 @@ EOS
180
185
  end
181
186
  runtime_args
182
187
  end
183
-
184
- # Installation skeleton. Intermediate directories are automatically
185
- # created so don't sweat their absence here.
186
- BASEDIRS = %w(
187
- lib
188
- script
189
- )
190
188
  end
@@ -6,7 +6,7 @@ require './lib/<%= gem_name %>'
6
6
 
7
7
  Hoe.plugin :newgem
8
8
  <%= enable_website ? '' : '# ' %>Hoe.plugin :website
9
- <%= enable_cucumber ? '' : '# ' %>Hoe.plugin :cucumber_features
9
+ <%= enable_cucumber ? '' : '# ' %>Hoe.plugin :cucumberfeatures
10
10
 
11
11
  # Generate all the Rake tasks
12
12
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
@@ -8,7 +8,7 @@ Feature: RubyGems have features to be described and tested
8
8
  Given default env variables setup for name and email
9
9
  And an existing newgem scaffold [called "my_project"]
10
10
  When I invoke "install_cucumber" generator with arguments ""
11
- And I enable hoe plugin "cucumber_features"
11
+ And I enable hoe plugin "cucumberfeatures"
12
12
  Then folder "features/step_definitions" is created
13
13
  Then folder "features/support" is created
14
14
  And file "features/development.feature" is created
@@ -22,7 +22,7 @@ Feature: RubyGems have features to be described and tested
22
22
  Given default env variables setup for name and email
23
23
  And an existing newgem scaffold [called "my_project"]
24
24
  When I invoke "install_cucumber" generator with arguments ""
25
- And I enable hoe plugin "cucumber_features"
25
+ And I enable hoe plugin "cucumberfeatures"
26
26
  Then gem file "features/step_definitions/common_steps.rb" and generated file "features/step_definitions/common_steps.rb" should be the same
27
27
  Then gem file "features/support/common.rb" and generated file "features/support/common.rb" should be the same
28
28
  Then gem file "features/support/matchers.rb" and generated file "features/support/matchers.rb" should be the same
@@ -32,7 +32,7 @@ Feature: RubyGems have features to be described and tested
32
32
  Given default env variables setup for name and email
33
33
  And an existing newgem scaffold [called "my_project"]
34
34
  And I invoke "install_cucumber" generator with arguments ""
35
- And I enable hoe plugin "cucumber_features"
35
+ And I enable hoe plugin "cucumberfeatures"
36
36
  And I invoke task "rake manifest"
37
37
  When I invoke task "rake features"
38
38
  Then task "rake features" is executed successfully
@@ -18,9 +18,8 @@ Feature: Can run "newgem" to create RubyGem scaffolds
18
18
  And I should see
19
19
  """
20
20
  create
21
- create lib
22
- create script
23
21
  create lib/my_project
22
+ create script
24
23
  create History.txt
25
24
  create Rakefile
26
25
  create README.rdoc
@@ -114,4 +113,15 @@ Feature: Can run "newgem" to create RubyGem scaffolds
114
113
  Scenario: Run newgem and show current version number
115
114
  When newgem is executed only with options "--version"
116
115
  Then shows version number
116
+
117
+ Scenario: Display help
118
+ When newgem is executed only with options "--help"
119
+ Then I should see
120
+ """
121
+ Usage: newgem
122
+ """
123
+ But I should not see
124
+ """
125
+ rubigen/options.rb
126
+ """
117
127
 
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Newgem
5
- VERSION = '1.5.0'
5
+ VERSION = '1.5.1'
6
6
  end
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.5.0
4
+ version: 1.5.1
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-06-30 00:00:00 +10:00
12
+ date: 2009-07-04 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency