cucumber 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,8 +1,20 @@
1
+ ## [v1.1.6](https://github.com/cucumber/cucumber/compare/v1.1.5...v1.1.6)
2
+
3
+ ### New features
4
+
5
+ * Added `file_colon_line` to `stepdefs.json` (outputted by `--dotcucumber`). ([#214](https://github.com/cucumber/cucumber/pull/214) MOROHASHI Kyosuke)
6
+
7
+ ### Bugfixes
8
+
9
+ * Release 1.1.5 unintentionally broke backwards compatibility in some APIs we hadn't considered were used outside of cucumber.
10
+ Well, it was, in the popular Capybara browser automation tool, so we added back the API we removed. See the history for details. (Aslak Hellesøy)
11
+ * After some infantile bickering about a trivial bug that any hipster startup ruby programmer could have circumvented by using a fork with a fix,
12
+ I finally sucked up to a horde of people and made HTML reports work again (I'm gonna rename them TPS reports). ([#203](https://github.com/cucumber/cucumber/pull/203) Jon Merrifield)
13
+
1
14
  ## [v1.1.5](https://github.com/cucumber/cucumber/compare/v1.1.4...v1.1.5)
2
15
 
3
16
  ### New Features
4
17
 
5
- * Added `file_colon_line` to `stepdefs.json` (outputted by `--dotcucumber`). ([#214](https://github.com/cucumber/cucumber/pull/214) MOROHASHI Kyosuke)
6
18
  * Upgraded to gherkin 2.3.8 (Aslak Hellesøy)
7
19
 
8
20
  ### Bugfixes
@@ -103,6 +103,10 @@ module Cucumber
103
103
  []
104
104
  end
105
105
 
106
+ def source_tag_names
107
+ source_tags.map{|tag| tag.name}
108
+ end
109
+
106
110
  end
107
111
  end
108
112
  end
@@ -57,6 +57,10 @@ module Cucumber
57
57
  @tags.tags
58
58
  end
59
59
 
60
+ def source_tag_names
61
+ source_tags.map{|tag| tag.name}
62
+ end
63
+
60
64
  def accept_hook?(hook)
61
65
  @tags.accept_hook?(hook)
62
66
  end
@@ -65,11 +65,20 @@ module Cucumber
65
65
  def accept_hook?(hook)
66
66
  Gherkin::TagExpression.new(hook.tag_expressions).eval(source_tags)
67
67
  end
68
+
69
+ def source_tag_names
70
+ warn("Deprecated: please use #source_tags instead.")
71
+ source_tags.map { |tag| tag.name }
72
+ end
68
73
 
69
74
  def source_tags
70
75
  (@tags.tags.to_a + (@feature ? @feature.source_tags.to_a : [])).uniq
71
76
  end
72
77
 
78
+ def source_tag_names
79
+ source_tags.map{|tag| tag.name}
80
+ end
81
+
73
82
  def language
74
83
  @feature.language if @feature
75
84
  end
@@ -38,6 +38,10 @@ module Cucumber
38
38
  @scenario_outline.source_tags
39
39
  end
40
40
 
41
+ def source_tag_names
42
+ source_tags.map{|tag| tag.name}
43
+ end
44
+
41
45
  def skip_invoke!
42
46
  init
43
47
  example_rows.each do |cells|
@@ -83,6 +87,10 @@ module Cucumber
83
87
  @table.source_tags
84
88
  end
85
89
 
90
+ def source_tag_names
91
+ source_tags.map{|tag| tag.name}
92
+ end
93
+
86
94
  def create_step_invocations!(scenario_outline)
87
95
  @scenario_outline = scenario_outline
88
96
  @step_invocations = scenario_outline.step_invocations(self)
@@ -380,7 +380,7 @@ module Cucumber
380
380
  end
381
381
 
382
382
  unless exception.instance_of?(RuntimeError)
383
- message << " (#{exception.class})"
383
+ message = "#{message} (#{exception.class})"
384
384
  end
385
385
 
386
386
  @builder.pre do
@@ -4,7 +4,7 @@ require 'rbconfig'
4
4
 
5
5
  module Cucumber
6
6
  unless defined?(Cucumber::VERSION)
7
- VERSION = '1.1.5'
7
+ VERSION = '1.1.6'
8
8
  BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
9
9
  LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
10
10
  JRUBY = defined?(JRUBY_VERSION)
@@ -193,7 +193,7 @@ module Cucumber
193
193
 
194
194
  describe "with a step that fails in the scenario" do
195
195
  define_steps do
196
- Given(/boo/) { raise 'eek' }
196
+ Given(/boo/) { raise StandardError, 'eek'.freeze }
197
197
  end
198
198
 
199
199
  define_feature(<<-FEATURE)
@@ -202,8 +202,9 @@ module Cucumber
202
202
  Scenario: Monkey gets a fright
203
203
  Given boo
204
204
  FEATURE
205
-
206
- it { @doc.should have_css_node('.feature .scenario .step.failed', /eek/) }
205
+
206
+ it { @doc.should have_css_node('.feature .scenario .step.failed .message', /eek/) }
207
+ it { @doc.should have_css_node('.feature .scenario .step.failed .message', /StandardError/) }
207
208
  end
208
209
 
209
210
  describe "with a step that fails in the backgound" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-18 00:00:00.000000000 Z
12
+ date: 2012-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gherkin
16
- requirement: &2164552020 !ruby/object:Gem::Requirement
16
+ requirement: &2157626580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.8.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2164552020
24
+ version_requirements: *2157626580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: term-ansicolor
27
- requirement: &2164550820 !ruby/object:Gem::Requirement
27
+ requirement: &2157626080 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2164550820
35
+ version_requirements: *2157626080
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: builder
38
- requirement: &2155974920 !ruby/object:Gem::Requirement
38
+ requirement: &2157625620 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.1.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2155974920
46
+ version_requirements: *2157625620
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: diff-lcs
49
- requirement: &2155973800 !ruby/object:Gem::Requirement
49
+ requirement: &2157641540 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.1.2
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2155973800
57
+ version_requirements: *2157641540
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: json
60
- requirement: &2155972580 !ruby/object:Gem::Requirement
60
+ requirement: &2157641080 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.4.6
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2155972580
68
+ version_requirements: *2157641080
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: aruba
71
- requirement: &2155971400 !ruby/object:Gem::Requirement
71
+ requirement: &2157640620 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.4.11
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2155971400
79
+ version_requirements: *2157640620
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rake
82
- requirement: &2155969980 !ruby/object:Gem::Requirement
82
+ requirement: &2157640160 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.9.2
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2155969980
90
+ version_requirements: *2157640160
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rspec
93
- requirement: &2155936980 !ruby/object:Gem::Requirement
93
+ requirement: &2157639700 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 2.7.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2155936980
101
+ version_requirements: *2157639700
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: nokogiri
104
- requirement: &2155935920 !ruby/object:Gem::Requirement
104
+ requirement: &2157639240 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 1.5.0
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *2155935920
112
+ version_requirements: *2157639240
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: prawn
115
- requirement: &2155933740 !ruby/object:Gem::Requirement
115
+ requirement: &2157638780 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.8.4
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *2155933740
123
+ version_requirements: *2157638780
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: prawn-layout
126
- requirement: &2155932120 !ruby/object:Gem::Requirement
126
+ requirement: &2157638320 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 0.8.4
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *2155932120
134
+ version_requirements: *2157638320
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: syntax
137
- requirement: &2155893700 !ruby/object:Gem::Requirement
137
+ requirement: &2157637860 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: 1.0.0
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *2155893700
145
+ version_requirements: *2157637860
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: spork
148
- requirement: &2155891440 !ruby/object:Gem::Requirement
148
+ requirement: &2157637400 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: 0.9.0.rc9
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *2155891440
156
+ version_requirements: *2157637400
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: simplecov
159
- requirement: &2155889880 !ruby/object:Gem::Requirement
159
+ requirement: &2157636940 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: 0.5.4
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *2155889880
167
+ version_requirements: *2157636940
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: yard
170
- requirement: &2155920980 !ruby/object:Gem::Requirement
170
+ requirement: &2157636480 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ~>
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: 0.7.4
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *2155920980
178
+ version_requirements: *2157636480
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: rdiscount
181
- requirement: &2155917440 !ruby/object:Gem::Requirement
181
+ requirement: &2157636020 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ~>
@@ -186,10 +186,10 @@ dependencies:
186
186
  version: 1.6.8
187
187
  type: :development
188
188
  prerelease: false
189
- version_requirements: *2155917440
189
+ version_requirements: *2157636020
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: bcat
192
- requirement: &2155915120 !ruby/object:Gem::Requirement
192
+ requirement: &2157635560 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ~>
@@ -197,10 +197,10 @@ dependencies:
197
197
  version: 0.6.2
198
198
  type: :development
199
199
  prerelease: false
200
- version_requirements: *2155915120
200
+ version_requirements: *2157635560
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: ramaze
203
- requirement: &2156018920 !ruby/object:Gem::Requirement
203
+ requirement: &2157635180 !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
206
206
  - - ! '>='
@@ -208,10 +208,10 @@ dependencies:
208
208
  version: '0'
209
209
  type: :development
210
210
  prerelease: false
211
- version_requirements: *2156018920
211
+ version_requirements: *2157635180
212
212
  - !ruby/object:Gem::Dependency
213
213
  name: rack-test
214
- requirement: &2156017400 !ruby/object:Gem::Requirement
214
+ requirement: &2157634640 !ruby/object:Gem::Requirement
215
215
  none: false
216
216
  requirements:
217
217
  - - ! '>='
@@ -219,10 +219,10 @@ dependencies:
219
219
  version: 0.6.1
220
220
  type: :development
221
221
  prerelease: false
222
- version_requirements: *2156017400
222
+ version_requirements: *2157634640
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: webrat
225
- requirement: &2156016080 !ruby/object:Gem::Requirement
225
+ requirement: &2157634140 !ruby/object:Gem::Requirement
226
226
  none: false
227
227
  requirements:
228
228
  - - ! '>='
@@ -230,10 +230,10 @@ dependencies:
230
230
  version: 0.7.3
231
231
  type: :development
232
232
  prerelease: false
233
- version_requirements: *2156016080
233
+ version_requirements: *2157634140
234
234
  - !ruby/object:Gem::Dependency
235
235
  name: sinatra
236
- requirement: &2156014260 !ruby/object:Gem::Requirement
236
+ requirement: &2157650040 !ruby/object:Gem::Requirement
237
237
  none: false
238
238
  requirements:
239
239
  - - ! '>='
@@ -241,10 +241,10 @@ dependencies:
241
241
  version: 1.3.1
242
242
  type: :development
243
243
  prerelease: false
244
- version_requirements: *2156014260
244
+ version_requirements: *2157650040
245
245
  - !ruby/object:Gem::Dependency
246
246
  name: capybara
247
- requirement: &2156012220 !ruby/object:Gem::Requirement
247
+ requirement: &2157649580 !ruby/object:Gem::Requirement
248
248
  none: false
249
249
  requirements:
250
250
  - - ! '>='
@@ -252,7 +252,7 @@ dependencies:
252
252
  version: 1.1.1
253
253
  type: :development
254
254
  prerelease: false
255
- version_requirements: *2156012220
255
+ version_requirements: *2157649580
256
256
  description: Behaviour Driven Development with elegance and joy
257
257
  email: cukes@googlegroups.com
258
258
  executables:
@@ -819,7 +819,7 @@ post_install_message: ! '
819
819
  (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
820
820
 
821
821
 
822
- Thank you for installing cucumber-1.1.5.
822
+ Thank you for installing cucumber-1.1.6.
823
823
 
824
824
  Please be sure to read http://wiki.github.com/cucumber/cucumber/upgrading
825
825
 
@@ -840,24 +840,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
840
840
  - - ! '>='
841
841
  - !ruby/object:Gem::Version
842
842
  version: '0'
843
- segments:
844
- - 0
845
- hash: -4054116537034430329
846
843
  required_rubygems_version: !ruby/object:Gem::Requirement
847
844
  none: false
848
845
  requirements:
849
846
  - - ! '>='
850
847
  - !ruby/object:Gem::Version
851
848
  version: '0'
852
- segments:
853
- - 0
854
- hash: -4054116537034430329
855
849
  requirements: []
856
850
  rubyforge_project:
857
851
  rubygems_version: 1.8.10
858
852
  signing_key:
859
853
  specification_version: 3
860
- summary: cucumber-1.1.5
854
+ summary: cucumber-1.1.6
861
855
  test_files:
862
856
  - features/background.feature
863
857
  - features/bootstrap.feature