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 +4 -0
- data/Manifest.txt +6 -6
- data/features/install_cucumber.feature +5 -3
- data/features/{steps/cli.rb → step_definitions/cli_steps.rb} +0 -0
- data/features/{steps/common.rb → step_definitions/common_steps.rb} +0 -0
- data/features/{steps/rubygems.rb → step_definitions/rubygems_steps.rb} +0 -0
- data/features/{steps → support}/env.rb +0 -0
- data/lib/newgem.rb +1 -1
- data/rubygems_generators/executable/templates/lib/app/cli.rb.erb +1 -1
- data/rubygems_generators/install_cucumber/install_cucumber_generator.rb +4 -3
- data/rubygems_generators/install_cucumber/templates/features/{steps/common.rb → step_definitions/common_steps.rb} +0 -0
- data/rubygems_generators/install_cucumber/templates/features/{steps → support}/env.rb.erb +0 -0
- data/test/test_install_cucumber_generator.rb +2 -2
- metadata +9 -9
data/History.txt
CHANGED
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/
|
44
|
-
features/
|
45
|
-
features/
|
46
|
-
features/
|
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/
|
94
|
-
rubygems_generators/install_cucumber/templates/features/
|
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/
|
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/
|
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/
|
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
|
File without changes
|
File without changes
|
File without changes
|
data/lib/newgem.rb
CHANGED
@@ -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/
|
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/
|
22
|
-
m.template 'features/
|
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
|
|
File without changes
|
File without changes
|
@@ -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/
|
31
|
-
assert_generated_file("features/
|
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.
|
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:
|
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.
|
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/
|
152
|
-
- features/
|
153
|
-
- features/
|
154
|
-
- features/
|
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/
|
202
|
-
- rubygems_generators/install_cucumber/templates/features/
|
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
|