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 +4 -4
- data/README.md +1 -0
- data/config/config.yaml +1 -0
- data/features/cukes.feature +24 -1
- data/features/guardfile.feature +16 -0
- data/lib/skellington/version.rb +1 -1
- data/lib/templates/Guardfile.eruby +8 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48df2b58f471cb9158ca19f6d993276e74e6f041
|
4
|
+
data.tar.gz: ff4a50a7ef7a03e6d6f1ff1c2ba2094a40d4ebdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/features/cukes.feature
CHANGED
@@ -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
|
-
|
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
|
+
"""
|
data/lib/skellington/version.rb
CHANGED
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.
|
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-
|
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
|