guard-cucumber 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -70,6 +70,9 @@ Former `:color`, `:drb`, `:port` and `:profile` options are thus deprecated and
70
70
  :bundler => false # Don't use "bundle exec" to run the Cucumber command
71
71
  # default: true
72
72
 
73
+ :binstubs => true # use "bin/cucumber" to run the Cucumber command (implies :bundler => true)
74
+ # default: false
75
+
73
76
  :rvm => ['1.8.7', '1.9.2'] # Directly run your features on multiple ruby versions
74
77
  # default: nil
75
78
 
@@ -189,6 +192,7 @@ For questions please join us in our [Google group](http://groups.google.com/grou
189
192
  ## Contributors
190
193
 
191
194
  * [Aleksei Gusev](https://github.com/hron)
195
+ * [Hedgehog](https://github.com/hedgehog)
192
196
  * [Larry Marburger](https://github.com/lmarburger)
193
197
  * [Loren Norman](https://github.com/lorennorman)
194
198
  * [Neil Matatall](https://github.com/oreoshake)
@@ -18,7 +18,7 @@ module Guard
18
18
  def run(paths, options = { })
19
19
  return false if paths.empty?
20
20
 
21
- message = options[:message] || (paths == ['features'] ? 'Run all Cucumber features' : "Run Cucumber features #{ paths.join(' ') }")
21
+ message = options[:message] || (paths == ['features'] ? "Running all Cucumber features: #{ cucumber_command(paths, options) }" : "Running Cucumber features: #{ cucumber_command(paths, options) }")
22
22
  UI.info message, :reset => true
23
23
 
24
24
  system(cucumber_command(paths, options))
@@ -38,9 +38,8 @@ module Guard
38
38
  def cucumber_command(paths, options)
39
39
  cmd = []
40
40
  cmd << "rvm #{options[:rvm].join(',')} exec" if options[:rvm].is_a?(Array)
41
- cmd << 'bundle exec' if bundler? && options[:bundler] != false
42
-
43
- cmd << 'cucumber'
41
+ cmd << 'bundle exec' if (bundler? && options[:bundler] != false) || (bundler? && options[:binstubs].is_a?(TrueClass))
42
+ cmd << cucumber_exec(options)
44
43
  cmd << options[:cli] if options[:cli]
45
44
 
46
45
  if options[:notification] != false
@@ -54,6 +53,14 @@ module Guard
54
53
  (cmd + paths).join(' ')
55
54
  end
56
55
 
56
+ # Simple test if binstubs prefix should be used.
57
+ #
58
+ # @return [String] Cucumber executable
59
+ #
60
+ def cucumber_exec(options = {})
61
+ options[:binstubs] == true && ( bundler? || options[:bundler] != false ) ? "bin/cucumber" : "cucumber"
62
+ end
63
+
57
64
  # Simple test if bundler should be used. it just checks for the `Gemfile`.
58
65
  #
59
66
  # @return [Boolean] bundler exists
@@ -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 = '0.7.4'
4
+ VERSION = '0.7.5'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,140 +1,100 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: guard-cucumber
3
- version: !ruby/object:Gem::Version
4
- hash: 11
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 7
9
- - 4
10
- version: 0.7.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Michael Kessler
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-11-09 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: guard
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70119603057460 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 57
29
- segments:
30
- - 0
31
- - 8
32
- - 3
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 0.8.3
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: cucumber
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70119603057460
25
+ - !ruby/object:Gem::Dependency
26
+ name: cucumber
27
+ requirement: &70119603056420 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 31
45
- segments:
46
- - 0
47
- - 10
48
- version: "0.10"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0.10'
49
33
  type: :runtime
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: bundler
53
34
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70119603056420
36
+ - !ruby/object:Gem::Dependency
37
+ name: bundler
38
+ requirement: &70119603055440 !ruby/object:Gem::Requirement
55
39
  none: false
56
- requirements:
40
+ requirements:
57
41
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 15
60
- segments:
61
- - 1
62
- - 0
63
- version: "1.0"
42
+ - !ruby/object:Gem::Version
43
+ version: '1.0'
64
44
  type: :development
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: rspec
68
45
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70119603055440
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: &70119603054500 !ruby/object:Gem::Requirement
70
50
  none: false
71
- requirements:
51
+ requirements:
72
52
  - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 13
75
- segments:
76
- - 2
77
- - 7
78
- version: "2.7"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.8'
79
55
  type: :development
80
- version_requirements: *id004
81
- - !ruby/object:Gem::Dependency
82
- name: guard-rspec
83
56
  prerelease: false
84
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70119603054500
58
+ - !ruby/object:Gem::Dependency
59
+ name: guard-rspec
60
+ requirement: &70119603053800 !ruby/object:Gem::Requirement
85
61
  none: false
86
- requirements:
62
+ requirements:
87
63
  - - ~>
88
- - !ruby/object:Gem::Version
89
- hash: 1
90
- segments:
91
- - 0
92
- - 5
93
- version: "0.5"
64
+ - !ruby/object:Gem::Version
65
+ version: '0.6'
94
66
  type: :development
95
- version_requirements: *id005
96
- - !ruby/object:Gem::Dependency
97
- name: yard
98
67
  prerelease: false
99
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *70119603053800
69
+ - !ruby/object:Gem::Dependency
70
+ name: yard
71
+ requirement: &70119603053260 !ruby/object:Gem::Requirement
100
72
  none: false
101
- requirements:
102
- - - ~>
103
- - !ruby/object:Gem::Version
104
- hash: 7
105
- segments:
106
- - 0
107
- - 7
108
- - 2
109
- version: 0.7.2
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
110
77
  type: :development
111
- version_requirements: *id006
112
- - !ruby/object:Gem::Dependency
113
- name: redcarpet
114
78
  prerelease: false
115
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *70119603053260
80
+ - !ruby/object:Gem::Dependency
81
+ name: redcarpet
82
+ requirement: &70119610913080 !ruby/object:Gem::Requirement
116
83
  none: false
117
- requirements:
118
- - - ~>
119
- - !ruby/object:Gem::Version
120
- hash: 87
121
- segments:
122
- - 1
123
- - 17
124
- - 2
125
- version: 1.17.2
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
126
88
  type: :development
127
- version_requirements: *id007
89
+ prerelease: false
90
+ version_requirements: *70119610913080
128
91
  description: Guard::Cucumber automatically run your features (much like autotest)
129
- email:
92
+ email:
130
93
  - michi@netzpiraten.ch
131
94
  executables: []
132
-
133
95
  extensions: []
134
-
135
96
  extra_rdoc_files: []
136
-
137
- files:
97
+ files:
138
98
  - lib/guard/cucumber/inspector.rb
139
99
  - lib/guard/cucumber/notification_formatter.rb
140
100
  - lib/guard/cucumber/runner.rb
@@ -145,39 +105,27 @@ files:
145
105
  - README.md
146
106
  homepage: http://github.com/netzpirat/guard-cucumber
147
107
  licenses: []
148
-
149
108
  post_install_message:
150
109
  rdoc_options: []
151
-
152
- require_paths:
110
+ require_paths:
153
111
  - lib
154
- required_ruby_version: !ruby/object:Gem::Requirement
112
+ required_ruby_version: !ruby/object:Gem::Requirement
155
113
  none: false
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- hash: 3
160
- segments:
161
- - 0
162
- version: "0"
163
- required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
164
119
  none: false
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- hash: 23
169
- segments:
170
- - 1
171
- - 3
172
- - 6
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
173
123
  version: 1.3.6
174
124
  requirements: []
175
-
176
125
  rubyforge_project: guard-cucumber
177
- rubygems_version: 1.8.6
126
+ rubygems_version: 1.8.10
178
127
  signing_key:
179
128
  specification_version: 3
180
129
  summary: Guard gem for Cucumber
181
130
  test_files: []
182
-
183
131
  has_rdoc: