newgem 1.2.3 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.3.0 2009-03-17
2
+
3
+ * install_cucumber: using layout like Rails' cucumber generator: features/support/env.rb + features/step_definitions/common_steps.rb
4
+
1
5
  == 1.2.3 2008-12-29
2
6
 
3
7
  * 'rake features' uses --format progress now
data/Manifest.txt CHANGED
@@ -40,10 +40,10 @@ features/install_cucumber.feature
40
40
  features/install_website.feature
41
41
  features/newgem_cli.feature
42
42
  features/rubygem_tasks.feature
43
- features/steps/cli.rb
44
- features/steps/common.rb
45
- features/steps/env.rb
46
- features/steps/rubygems.rb
43
+ features/step_definitions/cli_steps.rb
44
+ features/step_definitions/common_steps.rb
45
+ features/step_definitions/rubygems_steps.rb
46
+ features/support/env.rb
47
47
  lib/hoe-patched.rb
48
48
  lib/newgem.rb
49
49
  lib/newgem/quick_template.rb
@@ -90,8 +90,8 @@ rubygems_generators/extconf/templates/test/test.rb.erb
90
90
  rubygems_generators/install_cucumber/USAGE
91
91
  rubygems_generators/install_cucumber/install_cucumber_generator.rb
92
92
  rubygems_generators/install_cucumber/templates/features/development.feature
93
- rubygems_generators/install_cucumber/templates/features/steps/common.rb
94
- rubygems_generators/install_cucumber/templates/features/steps/env.rb.erb
93
+ rubygems_generators/install_cucumber/templates/features/step_definitions/common_steps.rb
94
+ rubygems_generators/install_cucumber/templates/features/support/env.rb.erb
95
95
  rubygems_generators/install_jruby/USAGE
96
96
  rubygems_generators/install_jruby/install_jruby_generator.rb
97
97
  rubygems_generators/install_jruby/templates/tasks/jruby.rake
@@ -7,15 +7,17 @@ Feature: RubyGems have features to be described and tested
7
7
  Scenario: Install Cucumber into a RubyGem
8
8
  Given an existing newgem scaffold [called 'my_project']
9
9
  When 'install_cucumber' generator is invoked with arguments ''
10
- Then folder 'features/steps' is created
10
+ Then folder 'features/step_definitions' is created
11
+ Then folder 'features/support' is created
11
12
  And file 'features/development.feature' is created
12
- And file 'features/steps/common.rb' is created
13
+ And file 'features/support/env.rb' is created
14
+ And file 'features/step_definitions/common_steps.rb' is created
13
15
  And file 'tasks/cucumber.rake' is not created as it is loaded via newgem itself
14
16
 
15
17
  Scenario: NewGem and generated gems should share some common files
16
18
  Given an existing newgem scaffold [called 'my_project']
17
19
  When 'install_cucumber' generator is invoked with arguments ''
18
- Then gem file 'features/steps/common.rb' and generated file 'features/steps/common.rb' should be the same
20
+ Then gem file 'features/step_definitions/common_steps.rb' and generated file 'features/step_definitions/common_steps.rb' should be the same
19
21
  Then gem file 'features/development.feature' and generated file 'features/development.feature' should be the same
20
22
 
21
23
  Scenario: Installed Cucumber includes a 'rake features' task
File without changes
data/lib/newgem.rb CHANGED
@@ -4,5 +4,5 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require "hoe-patched"
5
5
 
6
6
  module Newgem
7
- VERSION = '1.2.3'
7
+ VERSION = '1.3.0'
8
8
  end
@@ -36,7 +36,7 @@ module <%= module_name %>
36
36
  path = options[:path]
37
37
 
38
38
  # do stuff
39
- puts "To update this executable, look in lib/<%= bin_name %>/cli.rb"
39
+ stdout.puts "To update this executable, look in lib/<%= bin_name %>/cli.rb"
40
40
  end
41
41
  end
42
42
  end
@@ -16,10 +16,11 @@ class InstallCucumberGenerator < RubiGen::Base
16
16
  record do |m|
17
17
  script_options = { :chmod => 0755, :shebang => options[:shebang] == DEFAULT_SHEBANG ? nil : options[:shebang] }
18
18
 
19
- m.directory 'features/steps'
19
+ m.directory 'features/step_definitions'
20
+ m.directory 'features/support'
20
21
  m.file 'features/development.feature', 'features/development.feature'
21
- m.file 'features/steps/common.rb', 'features/steps/common.rb'
22
- m.template 'features/steps/env.rb.erb', 'features/steps/env.rb'
22
+ m.file 'features/step_definitions/common_steps.rb', 'features/step_definitions/common_steps.rb'
23
+ m.template 'features/support/env.rb.erb', 'features/support/env.rb'
23
24
  end
24
25
  end
25
26
 
@@ -27,8 +27,8 @@ class TestInstallCucumberGenerator < Test::Unit::TestCase
27
27
 
28
28
  def test_generator_without_options
29
29
  run_generator('install_cucumber', [], sources)
30
- assert_directory_exists("features/steps")
31
- assert_generated_file("features/steps/env.rb") do |body|
30
+ assert_directory_exists("features/step_definitions")
31
+ assert_generated_file("features/support/env.rb") do |body|
32
32
  assert_match(/#{PROJECT_NAME}/, body)
33
33
  end
34
34
  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.2.3
4
+ version: 1.3.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: 2008-12-29 00:00:00 +10:00
12
+ date: 2009-03-17 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.5.1
33
+ version: 1.5.2
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: hoe
@@ -148,10 +148,10 @@ files:
148
148
  - features/install_website.feature
149
149
  - features/newgem_cli.feature
150
150
  - features/rubygem_tasks.feature
151
- - features/steps/cli.rb
152
- - features/steps/common.rb
153
- - features/steps/env.rb
154
- - features/steps/rubygems.rb
151
+ - features/step_definitions/cli_steps.rb
152
+ - features/step_definitions/common_steps.rb
153
+ - features/step_definitions/rubygems_steps.rb
154
+ - features/support/env.rb
155
155
  - lib/hoe-patched.rb
156
156
  - lib/newgem.rb
157
157
  - lib/newgem/quick_template.rb
@@ -198,8 +198,8 @@ files:
198
198
  - rubygems_generators/install_cucumber/USAGE
199
199
  - rubygems_generators/install_cucumber/install_cucumber_generator.rb
200
200
  - rubygems_generators/install_cucumber/templates/features/development.feature
201
- - rubygems_generators/install_cucumber/templates/features/steps/common.rb
202
- - rubygems_generators/install_cucumber/templates/features/steps/env.rb.erb
201
+ - rubygems_generators/install_cucumber/templates/features/step_definitions/common_steps.rb
202
+ - rubygems_generators/install_cucumber/templates/features/support/env.rb.erb
203
203
  - rubygems_generators/install_jruby/USAGE
204
204
  - rubygems_generators/install_jruby/install_jruby_generator.rb
205
205
  - rubygems_generators/install_jruby/templates/tasks/jruby.rake