bddgen 0.1.0 → 0.2.0

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 CHANGED
@@ -1,3 +1,9 @@
1
- # 0.0.1 - November 18, 2010
1
+ 0.2.0 - December 1, 2010
2
+ =========================
2
3
 
3
- * First version. Supports running `bddgen cucumber` in a fresh clean ruby project.
4
+ * Running `bddgen project [my_project]` now creates a lib/version.rb file.
5
+
6
+ 0.1.0 - November 23, 2010
7
+ ==========================
8
+
9
+ * First version. You can generate rspec, cucumber, and yard boilerplate, or a whole new project.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bddgen (0.1.0)
4
+ bddgen (0.2.0)
5
5
  thor
6
6
 
7
7
  GEM
data/README.markdown CHANGED
@@ -83,7 +83,6 @@ This would basically be the same as:
83
83
 
84
84
  ## TODO
85
85
 
86
- * support `bddgen project` options: `--cucumber`, `--rspec`, and `--yard`
87
86
  * `bddgen project` should ask if/how to create a `LICENSE` file
88
87
  * Add `--mock_framework=mocha` option to rspec generator.
89
88
  * Add destroy tasks
data/bddgen.gemspec CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Justin Blake"]
10
10
  s.email = ["justin@hentzia.com"]
11
- s.homepage = "http://rubygems.org/gems/bddgen"
12
- s.summary = %q{BDD generators for new or existing ruby projects.}
13
- s.description = %q{Generate a new ruby project using BDD libraries like RSpec and Cucumber, or add them to existing projects.}
11
+ s.homepage = "https://github.com/blaix/bddgen"
12
+ s.summary = %q{Generators for cucumber, rspec, and other things.}
13
+ s.description = %q{Add cucumber, rspec (and other) boilerplate to your project, or generate a new project with them ready to roll.}
14
14
  s.rubyforge_project = "bddgen"
15
15
 
16
16
  s.add_dependency "thor"
@@ -11,6 +11,7 @@ Feature: Generate project
11
11
  | CHANGELOG |
12
12
  | Gemfile |
13
13
  | lib/myproject.rb |
14
+ | lib/version.rb |
14
15
  | Rakefile |
15
16
  | README.markdown |
16
17
  And the following files should exist:
@@ -26,6 +27,13 @@ Feature: Generate project
26
27
  module Myproject
27
28
  end
28
29
 
30
+ """
31
+ And the file "myproject/lib/version.rb" should contain exactly:
32
+ """
33
+ module Myproject
34
+ VERSION = "0.0.1"
35
+ end
36
+
29
37
  """
30
38
  And the exit status should be 0
31
39
 
data/lib/bddgen/app.rb CHANGED
@@ -5,7 +5,7 @@ module BDDGen
5
5
  include Thor::Actions
6
6
 
7
7
  def self.source_root
8
- File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'templates'))
8
+ File.expand_path('../../templates', File.dirname(__FILE__))
9
9
  end
10
10
 
11
11
  desc "cucumber", "Generate boilerplate for cucumber"
@@ -61,6 +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
65
 
65
66
  cucumber if options.cucumber?
66
67
  rspec if options.rspec?
@@ -1,3 +1,3 @@
1
1
  module BDDGen
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -0,0 +1,3 @@
1
+ module <%= project_name.camelize %>
2
+ VERSION = "0.0.1"
3
+ end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 0.1.0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Justin Blake
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-23 00:00:00 -05:00
17
+ date: 2010-12-01 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -108,7 +108,7 @@ dependencies:
108
108
  type: :development
109
109
  prerelease: false
110
110
  version_requirements: *id007
111
- description: Generate a new ruby project using BDD libraries like RSpec and Cucumber, or add them to existing projects.
111
+ description: Add cucumber, rspec (and other) boilerplate to your project, or generate a new project with them ready to roll.
112
112
  email:
113
113
  - justin@hentzia.com
114
114
  executables:
@@ -145,12 +145,13 @@ 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
149
  - templates/rake_tasks/cucumber.rb
149
150
  - templates/rake_tasks/rspec.rb
150
151
  - templates/rake_tasks/yard.rb
151
152
  - templates/spec/spec_helper.rb
152
153
  has_rdoc: true
153
- homepage: http://rubygems.org/gems/bddgen
154
+ homepage: https://github.com/blaix/bddgen
154
155
  licenses: []
155
156
 
156
157
  post_install_message:
@@ -163,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
164
  requirements:
164
165
  - - ">="
165
166
  - !ruby/object:Gem::Version
166
- hash: 3661949598000053515
167
+ hash: 914116102823049196
167
168
  segments:
168
169
  - 0
169
170
  version: "0"
@@ -172,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
173
  requirements:
173
174
  - - ">="
174
175
  - !ruby/object:Gem::Version
175
- hash: 3661949598000053515
176
+ hash: 914116102823049196
176
177
  segments:
177
178
  - 0
178
179
  version: "0"
@@ -182,7 +183,7 @@ rubyforge_project: bddgen
182
183
  rubygems_version: 1.3.7
183
184
  signing_key:
184
185
  specification_version: 3
185
- summary: BDD generators for new or existing ruby projects.
186
+ summary: Generators for cucumber, rspec, and other things.
186
187
  test_files:
187
188
  - features/generate_cucumber.feature
188
189
  - features/generate_project.feature