guard-cucumber 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -67,6 +67,9 @@ Former `:color`, `:drb`, `:port` and `:profile` options are thus deprecated and
67
67
  :cli => '--profile guard -c' # Pass arbitrary Cucumber CLI arguments,
68
68
  # default: '--no-profile --color --format progress --strict'
69
69
 
70
+ :feature_sets => # Use non-default feature directory/ies
71
+ ['set_a', 'set_b'] # default: ['features']
72
+
70
73
  :bundler => false # Don't use "bundle exec" to run the Cucumber command
71
74
  # default: true
72
75
 
@@ -196,16 +199,16 @@ Pull requests are very welcome! Please try to follow these simple rules if appli
196
199
  For questions please join us in our [Google group](http://groups.google.com/group/guard-dev) or on
197
200
  `#guard` (irc.freenode.net).
198
201
 
202
+ ## Author
203
+
204
+ Developed by Michael Kessler, sponsored by [mksoft.ch](https://mksoft.ch).
205
+
206
+ If you like Guard::Cucumber, you can watch the repository at [GitHub](https://github.com/netzpirat/guard-cucumber)
207
+ and follow [@netzpirat](https://twitter.com/#!/netzpirat) on Twitter for project updates.
208
+
199
209
  ## Contributors
200
210
 
201
- * [Aleksei Gusev](https://github.com/hron)
202
- * [Hedgehog](https://github.com/hedgehog)
203
- * [Larry Marburger](https://github.com/lmarburger)
204
- * [Loren Norman](https://github.com/lorennorman)
205
- * [Neil Matatall](https://github.com/oreoshake)
206
- * [Nicholas A Clark](https://github.com/NickClark)
207
- * [Oriol Gual](https://github.com/oriolgual)
208
- * [Robert Sanders](https://github.com/robertzx)
211
+ See the GitHub list of [contributors](https://github.com/netzpirat/guard-jasmine/contributors).
209
212
 
210
213
  Since guard-cucumber is very close to guard-rspec, some contributions by the following authors have been
211
214
  incorporated into guard-cucumber:
@@ -18,6 +18,7 @@ module Guard
18
18
  # @param [Array<Guard::Watcher>] watchers the watchers in the Guard block
19
19
  # @param [Hash] options the options for the Guard
20
20
  # @option options [String] :cli any arbitrary Cucumber CLI arguments
21
+ # @option options [Array<String>] :feature_sets a list of non-standard feature directory/ies
21
22
  # @option options [Boolean] :bundler use bundler or not
22
23
  # @option options [Array<String>] :rvm a list of rvm version to use for the test
23
24
  # @option options [Boolean] :notification show notifications
@@ -33,7 +34,8 @@ module Guard
33
34
  :all_after_pass => true,
34
35
  :all_on_start => true,
35
36
  :keep_failed => true,
36
- :cli => '--no-profile --color --format progress --strict'
37
+ :cli => '--no-profile --color --format progress --strict',
38
+ :feature_sets => ['features']
37
39
  }.update(options)
38
40
 
39
41
  @last_failed = false
@@ -53,7 +55,7 @@ module Guard
53
55
  # @raise [:task_has_failed] when stop has failed
54
56
  #
55
57
  def run_all
56
- passed = Runner.run(['features'], options.merge(options[:run_all] || { }).merge(:message => 'Running all features'))
58
+ passed = Runner.run(options[:feature_sets], options.merge(options[:run_all] || { }).merge(:message => 'Running all features'))
57
59
 
58
60
  if passed
59
61
  @failed_paths = []
@@ -10,6 +10,7 @@ module Guard
10
10
  #
11
11
  # @param [Array<String>] paths the feature files or directories
12
12
  # @param [Hash] options the options for the execution
13
+ # @option options [Array<String>] :feature_sets a list of non-standard feature directory/ies
13
14
  # @option options [Boolean] :bundler use bundler or not
14
15
  # @option options [Array<String>] :rvm a list of rvm version to use for the test
15
16
  # @option options [Boolean] :notification show notifications
@@ -47,7 +48,7 @@ module Guard
47
48
  cmd << "--require #{ notification_formatter_path }"
48
49
  cmd << "--format Guard::Cucumber::NotificationFormatter"
49
50
  cmd << "--out #{ null_device }"
50
- cmd << "--require features"
51
+ cmd << (options[:feature_sets] || ['features']).map {|path| "--require #{path}"}.join(' ')
51
52
  end
52
53
 
53
54
  (cmd + paths).join(' ')
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  module CucumberVersion
3
3
  # Guard::Cucumber version that is used for the Gem specification
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
6
6
  end
@@ -0,0 +1,203 @@
1
+ !RBIX
2
+ 9595534255132031488
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ n
50
+ p
51
+ 5
52
+ x
53
+ 5
54
+ Guard
55
+ x
56
+ 11
57
+ open_module
58
+ x
59
+ 15
60
+ __module_init__
61
+ M
62
+ 1
63
+ n
64
+ n
65
+ x
66
+ 5
67
+ Guard
68
+ i
69
+ 28
70
+ 5
71
+ 66
72
+ 99
73
+ 7
74
+ 0
75
+ 65
76
+ 49
77
+ 1
78
+ 2
79
+ 13
80
+ 99
81
+ 12
82
+ 7
83
+ 2
84
+ 12
85
+ 7
86
+ 3
87
+ 12
88
+ 65
89
+ 12
90
+ 49
91
+ 4
92
+ 4
93
+ 15
94
+ 49
95
+ 2
96
+ 0
97
+ 11
98
+ I
99
+ 6
100
+ I
101
+ 0
102
+ I
103
+ 0
104
+ I
105
+ 0
106
+ n
107
+ p
108
+ 5
109
+ x
110
+ 15
111
+ CucumberVersion
112
+ x
113
+ 11
114
+ open_module
115
+ x
116
+ 15
117
+ __module_init__
118
+ M
119
+ 1
120
+ n
121
+ n
122
+ x
123
+ 15
124
+ CucumberVersion
125
+ i
126
+ 12
127
+ 5
128
+ 66
129
+ 65
130
+ 7
131
+ 0
132
+ 7
133
+ 1
134
+ 64
135
+ 49
136
+ 2
137
+ 2
138
+ 11
139
+ I
140
+ 3
141
+ I
142
+ 0
143
+ I
144
+ 0
145
+ I
146
+ 0
147
+ n
148
+ p
149
+ 3
150
+ x
151
+ 7
152
+ VERSION
153
+ s
154
+ 5
155
+ 0.8.0
156
+ x
157
+ 9
158
+ const_set
159
+ p
160
+ 3
161
+ I
162
+ 2
163
+ I
164
+ 4
165
+ I
166
+ c
167
+ x
168
+ 70
169
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/version.rb
170
+ p
171
+ 0
172
+ x
173
+ 13
174
+ attach_method
175
+ p
176
+ 3
177
+ I
178
+ 2
179
+ I
180
+ 2
181
+ I
182
+ 1c
183
+ x
184
+ 70
185
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/version.rb
186
+ p
187
+ 0
188
+ x
189
+ 13
190
+ attach_method
191
+ p
192
+ 3
193
+ I
194
+ 0
195
+ I
196
+ 1
197
+ I
198
+ 1c
199
+ x
200
+ 70
201
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/version.rb
202
+ p
203
+ 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-02 00:00:00.000000000 Z
12
+ date: 2012-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -135,6 +135,7 @@ files:
135
135
  - lib/guard/cucumber/runner.rb
136
136
  - lib/guard/cucumber/templates/Guardfile
137
137
  - lib/guard/cucumber/version.rb
138
+ - lib/guard/cucumber/version.rbc
138
139
  - lib/guard/cucumber.rb
139
140
  - LICENSE
140
141
  - README.md
@@ -150,6 +151,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
151
  - - ! '>='
151
152
  - !ruby/object:Gem::Version
152
153
  version: '0'
154
+ segments:
155
+ - 0
156
+ hash: -522388081409437433
153
157
  required_rubygems_version: !ruby/object:Gem::Requirement
154
158
  none: false
155
159
  requirements: