skellington 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 581e59e2e18431c9bc6abca4adb5bcb739e4f81b
4
- data.tar.gz: 5a2dde204c9f2bbc4b92cd63b8c06babe21256f3
3
+ metadata.gz: 48df2b58f471cb9158ca19f6d993276e74e6f041
4
+ data.tar.gz: ff4a50a7ef7a03e6d6f1ff1c2ba2094a40d4ebdc
5
5
  SHA512:
6
- metadata.gz: e1df7e6cd1c210ad322a75fd920ed53f7266fc4cf76425aa76d9f0f81676ee2afc7ca4e7af7d14f646c490e26c75dd99095e43c2a0390a13cb50e14540cc7512
7
- data.tar.gz: 53848e50a02290ce3082948c77a0c57472fb35b05a94e5806aed72f74266db35f52d4a31446eefb3eccf78bc9c1418c8c39d3d3868bf1a3a84de442a65208aee
6
+ metadata.gz: 230d5f991bda9054ec19bda3bed70366f8a9bd3957c83ec9964eee6baf2a19fbdc2b63e8ddc1345959f7e0372629e0141a88b213687288bc14048ab1a0c7cd2d
7
+ data.tar.gz: a0685e9ce27fad6c186937ad56cb97a745da724ab25ae94a337502b83f154282487b6ed083027ddd8902f2a42cbdd8b6a521a3cf3e83a1d2a029ed8950939e5a
data/README.md CHANGED
@@ -15,6 +15,7 @@ Generate tedious [Cucumber](http://cukes.info/) and [Sinatra](http://www.sinatra
15
15
  Generating naming_things_is_hard/Gemfile...done
16
16
  Generating naming_things_is_hard/Rakefile...done
17
17
  Generating naming_things_is_hard/Procfile...done
18
+ Generating naming_things_is_hard/Guardfile...done
18
19
  Generating naming_things_is_hard/.ruby-version...done
19
20
  Generating naming_things_is_hard/config.ru...done
20
21
  Generating naming_things_is_hard/features/naming_things_is_hard.feature...done
data/config/config.yaml CHANGED
@@ -17,6 +17,7 @@ files:
17
17
  Gemfile:
18
18
  Rakefile:
19
19
  Procfile:
20
+ Guardfile:
20
21
  .ruby-version:
21
22
  config.ru:
22
23
  # the template has this name
@@ -18,7 +18,30 @@ Feature: Generate skellington
18
18
  And a file named "dummy_app/features/support/env.rb" should exist
19
19
  And the file "dummy_app/features/support/env.rb" should contain:
20
20
  """
21
- DummyApp
21
+ ENV['RACK_ENV'] = 'test'
22
+
23
+ require File.join(File.dirname(__FILE__), '..', '..', 'lib/dummy_app.rb')
24
+
25
+ require 'capybara'
26
+ require 'capybara/cucumber'
27
+ require 'rspec'
28
+ require 'cucumber/api_steps'
29
+
30
+ Capybara.app = DummyApp
31
+
32
+ class DummyAppWorld
33
+ include Capybara::DSL
34
+ include RSpec::Expectations
35
+ include RSpec::Matchers
36
+
37
+ def app
38
+ DummyApp
39
+ end
40
+ end
41
+
42
+ World do
43
+ DummyAppWorld.new
44
+ end
22
45
  """
23
46
 
24
47
  Scenario: generate 'step_defintions' directory
@@ -0,0 +1,16 @@
1
+ Feature: Generate skellington
2
+
3
+ Scenario: generate Guardfile
4
+ When I successfully run `skellington generate dummy_app`
5
+ Then a file named "dummy_app/Guardfile" should exist
6
+ And the file "dummy_app/Guardfile" should contain:
7
+ """
8
+ guard :cucumber do
9
+ watch %r{^features/.+\.feature$}
10
+ watch(%r{^features/support/.+$}) { 'features' }
11
+
12
+ watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
13
+ Dir[File.join("**/#{m[1]}.feature")][0] || 'features'
14
+ end
15
+ end
16
+ """
@@ -1,3 +1,3 @@
1
1
  module Skellington
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -0,0 +1,8 @@
1
+ guard :cucumber do
2
+ watch %r{^features/.+\.feature$}
3
+ watch(%r{^features/support/.+$}) { 'features' }
4
+
5
+ watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
6
+ Dir[File.join("**/#{m[1]}.feature")][0] || 'features'
7
+ end
8
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skellington
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -188,6 +188,7 @@ files:
188
188
  - features/cukes.feature
189
189
  - features/gemfile.feature
190
190
  - features/git.feature
191
+ - features/guardfile.feature
191
192
  - features/hyphens.feature
192
193
  - features/naming.feature
193
194
  - features/non-local-path.feature
@@ -203,6 +204,7 @@ files:
203
204
  - lib/skellington/version.rb
204
205
  - lib/templates/.ruby-version.eruby
205
206
  - lib/templates/Gemfile.eruby
207
+ - lib/templates/Guardfile.eruby
206
208
  - lib/templates/Procfile.eruby
207
209
  - lib/templates/Rakefile.eruby
208
210
  - lib/templates/config.ru.eruby
@@ -245,6 +247,7 @@ test_files:
245
247
  - features/cukes.feature
246
248
  - features/gemfile.feature
247
249
  - features/git.feature
250
+ - features/guardfile.feature
248
251
  - features/hyphens.feature
249
252
  - features/naming.feature
250
253
  - features/non-local-path.feature