bddgen 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +9 -0
- data/Gemfile.lock +1 -1
- data/README.markdown +1 -0
- data/features/generate_project.feature +11 -11
- data/lib/bddgen/app.rb +1 -1
- data/lib/bddgen/version.rb +1 -1
- data/templates/lib/{version.erb → project/version.erb} +0 -0
- metadata +5 -5
data/CHANGELOG
CHANGED
@@ -1,6 +1,15 @@
|
|
1
|
+
0.2.1 - December 1, 2010
|
2
|
+
=========================
|
3
|
+
|
4
|
+
Bugfixes
|
5
|
+
---------
|
6
|
+
* Running `bddgen project [my_project]` now creates lib/[project_name]/version.rb instead of lib/version.rb
|
7
|
+
|
1
8
|
0.2.0 - December 1, 2010
|
2
9
|
=========================
|
3
10
|
|
11
|
+
Features
|
12
|
+
---------
|
4
13
|
* Running `bddgen project [my_project]` now creates a lib/version.rb file.
|
5
14
|
|
6
15
|
0.1.0 - November 23, 2010
|
data/Gemfile.lock
CHANGED
data/README.markdown
CHANGED
@@ -88,3 +88,4 @@ This would basically be the same as:
|
|
88
88
|
* Add destroy tasks
|
89
89
|
* Add development dependency if a gemspec exists.
|
90
90
|
* Don't assume use of bundler...?
|
91
|
+
* Cucumber features sometimes fail with script exiting with a nil status instead of 0. Only sometimes. Haven't figured out why.
|
@@ -6,14 +6,14 @@ Feature: Generate project
|
|
6
6
|
Scenario: Run `bddgen project myproject`
|
7
7
|
When I run "bddgen project myproject"
|
8
8
|
Then the output should say the following files were created:
|
9
|
-
| myproject
|
10
|
-
| .gitignore
|
11
|
-
| CHANGELOG
|
12
|
-
| Gemfile
|
13
|
-
| lib/myproject.rb
|
14
|
-
| lib/version.rb |
|
15
|
-
| Rakefile
|
16
|
-
| README.markdown
|
9
|
+
| myproject |
|
10
|
+
| .gitignore |
|
11
|
+
| CHANGELOG |
|
12
|
+
| Gemfile |
|
13
|
+
| lib/myproject.rb |
|
14
|
+
| lib/myproject/version.rb |
|
15
|
+
| Rakefile |
|
16
|
+
| README.markdown |
|
17
17
|
And the following files should exist:
|
18
18
|
| myproject/.gitignore |
|
19
19
|
| myproject/CHANGELOG |
|
@@ -28,7 +28,7 @@ Feature: Generate project
|
|
28
28
|
end
|
29
29
|
|
30
30
|
"""
|
31
|
-
And the file "myproject/lib/version.rb" should contain exactly:
|
31
|
+
And the file "myproject/lib/myproject/version.rb" should contain exactly:
|
32
32
|
"""
|
33
33
|
module Myproject
|
34
34
|
VERSION = "0.0.1"
|
@@ -70,12 +70,12 @@ Feature: Generate project
|
|
70
70
|
| features/step_definitions/myproject_steps.rb |
|
71
71
|
| features/support/env.rb |
|
72
72
|
| features/support/helpers.rb |
|
73
|
-
| spec/spec_helper.rb
|
73
|
+
| spec/spec_helper.rb |
|
74
74
|
And the following files should exist:
|
75
75
|
| myproject/features/step_definitions/myproject_steps.rb |
|
76
76
|
| myproject/features/support/env.rb |
|
77
77
|
| myproject/features/support/helpers.rb |
|
78
|
-
| myproject/spec/spec_helper.rb
|
78
|
+
| myproject/spec/spec_helper.rb |
|
79
79
|
And the file "myproject/Gemfile" should contain "gem 'cucumber'"
|
80
80
|
And the file "myproject/Gemfile" should contain "gem 'rspec'"
|
81
81
|
And the file "myproject/Gemfile" should contain "gem 'yard'"
|
data/lib/bddgen/app.rb
CHANGED
@@ -61,7 +61,7 @@ module BDDGen
|
|
61
61
|
add_file "README.markdown"
|
62
62
|
|
63
63
|
template "lib/project.erb", "lib/#{name}.rb"
|
64
|
-
template "lib/version.erb", "lib/version.rb"
|
64
|
+
template "lib/project/version.erb", "lib/#{name}/version.rb"
|
65
65
|
|
66
66
|
cucumber if options.cucumber?
|
67
67
|
rspec if options.rspec?
|
data/lib/bddgen/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Justin Blake
|
@@ -145,7 +145,7 @@ files:
|
|
145
145
|
- templates/features/support/env.rb
|
146
146
|
- templates/features/support/helpers.erb
|
147
147
|
- templates/lib/project.erb
|
148
|
-
- templates/lib/version.erb
|
148
|
+
- templates/lib/project/version.erb
|
149
149
|
- templates/rake_tasks/cucumber.rb
|
150
150
|
- templates/rake_tasks/rspec.rb
|
151
151
|
- templates/rake_tasks/yard.rb
|
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
164
|
requirements:
|
165
165
|
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
hash:
|
167
|
+
hash: -2013505798190272796
|
168
168
|
segments:
|
169
169
|
- 0
|
170
170
|
version: "0"
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
requirements:
|
174
174
|
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
hash:
|
176
|
+
hash: -2013505798190272796
|
177
177
|
segments:
|
178
178
|
- 0
|
179
179
|
version: "0"
|