cucumber 3.0.0.pre.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +32 -0
  3. data/.github/ISSUE_TEMPLATE.md +1 -1
  4. data/.github/PULL_REQUEST_TEMPLATE.md +1 -0
  5. data/.rubocop_todo.yml +1 -85
  6. data/.travis.yml +2 -2
  7. data/{History.md → CHANGELOG.md} +69 -13
  8. data/appveyor.yml +2 -1
  9. data/bin/cucumber +2 -1
  10. data/cucumber.gemspec +1 -1
  11. data/examples/i18n/ar/features/step_definitions/calculator_steps.rb +6 -1
  12. data/examples/i18n/bg/features/support/env.rb +6 -1
  13. data/examples/i18n/bg/lib/calculator.rb +2 -1
  14. data/examples/i18n/ca/features/step_definitions/calculator_steps.rb +6 -1
  15. data/examples/i18n/cs/features/step_definitions/calculator_steps.rb +6 -1
  16. data/examples/i18n/da/features/step_definitions/lommeregner_steps.rb +6 -1
  17. data/examples/i18n/de/features/step_definitions/calculator_steps.rb +6 -1
  18. data/examples/i18n/el/features/step_definitions/calculator_steps.rb +6 -1
  19. data/examples/i18n/en-lol/features/support/env.rb +6 -2
  20. data/examples/i18n/en/features/step_definitions/calculator_steps.rb +6 -1
  21. data/examples/i18n/eo/features/step_definitions/calculator_steps.rb +6 -1
  22. data/examples/i18n/es/features/step_definitions/calculador_steps.rb +6 -1
  23. data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +6 -1
  24. data/examples/i18n/fi/features/step_definitions/laskin_steps.rb +6 -1
  25. data/examples/i18n/fr/features/support/env.rb +6 -1
  26. data/examples/i18n/he/features/step_definitions/calculator_steps.rb +6 -1
  27. data/examples/i18n/hi/features/step_definitions/calculator_steps.rb +6 -1
  28. data/examples/i18n/ht/features/step_definitions/kalkilatris_steps.rb +6 -2
  29. data/examples/i18n/hu/features/step_definitions/calculator_steps.rb +6 -1
  30. data/examples/i18n/id/features/step_definitions/calculator_steps.rb +6 -1
  31. data/examples/i18n/it/features/step_definitions/calcolatrice_steps.rb +6 -1
  32. data/examples/i18n/ja/features/support/env.rb +6 -1
  33. data/examples/i18n/ko/features/step_definitions/calculator_steps.rb +6 -1
  34. data/examples/i18n/lt/features/step_definitions/calculator_steps.rb +6 -1
  35. data/examples/i18n/lv/features/step_definitions/calculator_steps.rb +6 -1
  36. data/examples/i18n/no/features/support/env.rb +6 -1
  37. data/examples/i18n/pl/features/step_definitions/calculator_steps.rb +6 -1
  38. data/examples/i18n/pl/features/support/env.rb +6 -1
  39. data/examples/i18n/pt/features/support/env.rb +6 -1
  40. data/examples/i18n/ro/features/step_definitions/calculator_steps.rb +6 -1
  41. data/examples/i18n/ru/features/support/env.rb +6 -1
  42. data/examples/i18n/ru/lib/calculator.rb +2 -1
  43. data/examples/i18n/sk/features/step_definitions/calculator_steps.rb +6 -1
  44. data/examples/i18n/sr-Cyrl/features/support/env.rb +6 -1
  45. data/examples/i18n/sr-Latn/features/step_definitions/calculator_steps.rb +6 -1
  46. data/examples/i18n/sv/features/step_definitions/kalkulator_steps.rb +6 -1
  47. data/examples/i18n/tr/features/step_definitions/hesap_makinesi_adimlari.rb +6 -1
  48. data/examples/i18n/uk/features/support/env.rb +6 -1
  49. data/examples/i18n/uk/lib/calculator.rb +2 -1
  50. data/examples/i18n/uz/features/support/env.rb +6 -1
  51. data/examples/i18n/uz/lib/calculator.rb +2 -1
  52. data/examples/i18n/zh-CN/features/step_definitions/calculator_steps.rb +6 -1
  53. data/examples/i18n/zh-TW/features/step_definitions/calculator_steps.rb +6 -1
  54. data/examples/sinatra/features/support/env.rb +6 -1
  55. data/examples/tcl/features/support/env.rb +2 -1
  56. data/examples/watir/features/step_definitions/search_steps.rb +4 -3
  57. data/examples/watir/features/support/env.rb +5 -1
  58. data/features/docs/api/listen_for_events.feature +2 -2
  59. data/features/docs/cli/execute_with_tag_filter.feature +4 -2
  60. data/features/docs/defining_steps/ambiguous_steps.feature +89 -0
  61. data/features/docs/events/{test_case_starting_event.feature → test_case_started_event.feature} +3 -3
  62. data/features/docs/events/{test_run_starting_event.feature → test_run_started_event.feature} +5 -5
  63. data/features/docs/events/test_step_finished_event.feature +1 -1
  64. data/features/docs/events/{test_step_starting_event.feature → test_step_started_event.feature} +3 -3
  65. data/features/docs/extending_cucumber/custom_formatter.feature +5 -33
  66. data/features/docs/gherkin/outlines.feature +2 -4
  67. data/features/docs/writing_support_code/parameter_types.feature +1 -23
  68. data/features/lib/step_definitions/iso-8859-1_steps.rb +6 -3
  69. data/features/lib/support/fake_wire_server.rb +9 -1
  70. data/features/lib/support/parameter_types.rb +1 -4
  71. data/gem_tasks/fix_cr_lf.rake +17 -6
  72. data/lib/autotest/cucumber_mixin.rb +1 -1
  73. data/lib/cucumber/cli/configuration.rb +2 -2
  74. data/lib/cucumber/cli/options.rb +62 -41
  75. data/lib/cucumber/cli/profile_loader.rb +1 -1
  76. data/lib/cucumber/configuration.rb +3 -2
  77. data/lib/cucumber/deprecate.rb +2 -2
  78. data/lib/cucumber/events.rb +3 -3
  79. data/lib/cucumber/events/test_case_finished.rb +1 -1
  80. data/lib/cucumber/events/{test_case_starting.rb → test_case_started.rb} +1 -1
  81. data/lib/cucumber/events/{test_run_starting.rb → test_run_started.rb} +1 -1
  82. data/lib/cucumber/events/{test_step_starting.rb → test_step_started.rb} +1 -1
  83. data/lib/cucumber/filters.rb +1 -1
  84. data/lib/cucumber/filters/activate_steps.rb +6 -2
  85. data/lib/cucumber/filters/{broadcast_test_run_starting_event.rb → broadcast_test_run_started_event.rb} +2 -2
  86. data/lib/cucumber/formatter/console.rb +1 -1
  87. data/lib/cucumber/formatter/console_issues.rb +2 -2
  88. data/lib/cucumber/formatter/fail_fast.rb +1 -1
  89. data/lib/cucumber/formatter/html.rb +9 -10
  90. data/lib/cucumber/formatter/html_builder.rb +21 -11
  91. data/lib/cucumber/formatter/io.rb +1 -1
  92. data/lib/cucumber/formatter/json.rb +13 -12
  93. data/lib/cucumber/formatter/junit.rb +7 -7
  94. data/lib/cucumber/formatter/legacy_api/adapter.rb +30 -14
  95. data/lib/cucumber/formatter/legacy_api/ast.rb +10 -2
  96. data/lib/cucumber/formatter/progress.rb +2 -2
  97. data/lib/cucumber/formatter/rerun.rb +1 -1
  98. data/lib/cucumber/formatter/summary.rb +1 -1
  99. data/lib/cucumber/glue/dsl.rb +7 -25
  100. data/lib/cucumber/glue/proto_world.rb +0 -5
  101. data/lib/cucumber/hooks.rb +4 -4
  102. data/lib/cucumber/multiline_argument.rb +3 -11
  103. data/lib/cucumber/multiline_argument/data_table.rb +5 -3
  104. data/lib/cucumber/project_initializer.rb +1 -1
  105. data/lib/cucumber/rake/task.rb +8 -4
  106. data/lib/cucumber/runtime.rb +2 -2
  107. data/lib/cucumber/runtime/support_code.rb +1 -1
  108. data/lib/cucumber/runtime/user_interface.rb +5 -5
  109. data/lib/cucumber/step_match.rb +13 -0
  110. data/lib/cucumber/version +1 -1
  111. data/scripts/{update-history → update-changelog} +14 -11
  112. data/spec/cucumber/cli/configuration_spec.rb +13 -1
  113. data/spec/cucumber/cli/options_spec.rb +1 -1
  114. data/spec/cucumber/filters/activate_steps_spec.rb +4 -4
  115. data/spec/cucumber/formatter/fail_fast_spec.rb +1 -1
  116. data/spec/cucumber/formatter/html_spec.rb +1 -1
  117. data/spec/cucumber/formatter/json_spec.rb +26 -51
  118. data/spec/cucumber/formatter/junit_spec.rb +4 -4
  119. data/spec/cucumber/formatter/legacy_api/adapter_spec.rb +86 -98
  120. data/spec/cucumber/formatter/pretty_spec.rb +0 -13
  121. data/spec/cucumber/glue/snippet_spec.rb +2 -2
  122. data/spec/cucumber/hooks_spec.rb +2 -2
  123. data/spec/cucumber/multiline_argument/data_table_spec.rb +10 -5
  124. data/spec/cucumber/rake/forked_spec.rb +15 -11
  125. data/spec/cucumber/world/pending_spec.rb +1 -1
  126. data/spec/support/standard_step_actions.rb +1 -1
  127. metadata +25 -25
  128. data/features/docs/formatters/formatter_step_file_colon_line.feature +0 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5726ed71d8a00221ac4b3b7fc15da681ea138a6
4
- data.tar.gz: 2479723768c4452ef329c47cb63971e1632adae6
3
+ metadata.gz: 062b09830dfcb655af8b4c9fe636bdd72463b563
4
+ data.tar.gz: c39b88bff9779ab5f09f422a3733b0ee858b1693
5
5
  SHA512:
6
- metadata.gz: c963597cfb7056f8240bc532c9712e32fbb61a00a62ddda19bacb86a7ffbaa900b3253b8e7f54317272519df0480e9da3056b6fc9d4f1364b5f487bea564d2fb
7
- data.tar.gz: ac436dc31a3e6ba2ef71745a529c70d90160c586fb190a8aedc2e829ea79f3a610621aab0704985951492e032bbacce6a35638d712d12665eea5a678b1a8e76f
6
+ metadata.gz: 4e6e4550d06122cd5edd80628344faae94c67cc583188c09156e0dd51c86f7cc228092cce38a6c7224bcb22b3d4b762d689e4dc8b824f6c4cbbd7c42112dfc88
7
+ data.tar.gz: 31bd67336e921b7e4565a9289f7293e9f5ba6144f57d0e58103d5f3e936bd523097eb7a6776e64d392e7e16a1a3c6ff15d1f4f143c2675806e4c4c5cc48ea8d9
data/.gitattributes ADDED
@@ -0,0 +1,32 @@
1
+ # Set the default behavior, in case people don't have core.autocrlf set.
2
+ * text eol=lf
3
+
4
+ # Explicitly declare text files to always be normalized and converted
5
+ # to native line endings on checkout.
6
+ *.css text eol=lf
7
+ *.feature text eol=lf
8
+ *.gemspec text eol=lf
9
+ *.js text eol=lf
10
+ *.md text eol=lf
11
+ *.rake text eol=lf
12
+ *.rb text eol=lf
13
+ *.sass text eol=lf
14
+ *.tcl text eol=lf
15
+ *.textile text eol=lf
16
+ *.txt text eol=lf
17
+ *.xml text eol=lf
18
+ *.yml text eol=lf
19
+ Gemfile text eol=lf
20
+ LICENSE text eol=lf
21
+ Rakefile text eol=lf
22
+ .cucumberproignore text eol=lf
23
+ .gitignore text eol=lf
24
+ .rspec text eol=lf
25
+ .ruby-gemset text eol=lf
26
+ .yardopts text eol=lf
27
+ scripts/* text eol=lf
28
+
29
+ # Denote all files that are truly binary and should not be modified.
30
+ # These patterns are here as an example; we have 0 of these.
31
+ *.png binary
32
+ *.jpg binary
@@ -10,7 +10,7 @@ In general: Please provide as much information as you can to help us solving you
10
10
 
11
11
  <!--- If you're describing a bug, tell us what should happen -->
12
12
  <!--- If you're suggesting a change/improvement, tell us how it should work -->
13
- <!--- Feel free to use Given / Then / Then if that helps, but please add some plain-language context too -->
13
+ <!--- Feel free to use Given / When / Then if that helps, but please add some plain-language context too -->
14
14
 
15
15
  ## Current Behavior
16
16
 
@@ -26,6 +26,7 @@
26
26
  ## Types of changes
27
27
 
28
28
  <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
29
+ - [ ] Refactor (code change that does not change external functionality)
29
30
  - [ ] Bug fix (non-breaking change which fixes an issue)
30
31
  - [ ] New feature (non-breaking change which adds functionality)
31
32
  - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
data/.rubocop_todo.yml CHANGED
@@ -15,17 +15,6 @@ Lint/AmbiguousOperator:
15
15
  - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
16
16
  - 'spec/cucumber/formatter/spec_helper.rb'
17
17
 
18
- # Offense count: 1
19
- # Cop supports --auto-correct.
20
- Lint/DeprecatedClassMethods:
21
- Exclude:
22
- - 'lib/cucumber/project_initializer.rb'
23
-
24
- # Offense count: 2
25
- Lint/DuplicateMethods:
26
- Exclude:
27
- - 'lib/cucumber/multiline_argument.rb'
28
-
29
18
  # Offense count: 2
30
19
  Lint/Eval:
31
20
  Exclude:
@@ -146,16 +135,6 @@ Style/Alias:
146
135
  Exclude:
147
136
  - 'lib/cucumber/formatter/ansicolor.rb'
148
137
 
149
- # Offense count: 1197
150
- # Cop supports --auto-correct.
151
- Style/AlignArray:
152
- Exclude:
153
- - 'lib/cucumber/cli/options.rb'
154
- - 'lib/cucumber/rake/task.rb'
155
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
156
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
157
- - 'spec/cucumber/rake/forked_spec.rb'
158
-
159
138
  # Offense count: 20
160
139
  # Cop supports --auto-correct.
161
140
  # Configuration parameters: EnforcedStyle, SupportedStyles.
@@ -167,16 +146,6 @@ Style/AlignParameters:
167
146
  - 'lib/cucumber/cli/options.rb'
168
147
  - 'lib/cucumber/runtime/for_programming_languages.rb'
169
148
 
170
- # Offense count: 11
171
- # Cop supports --auto-correct.
172
- # Configuration parameters: EnforcedStyle, SupportedStyles.
173
- # SupportedStyles: always, conditionals
174
- Style/AndOr:
175
- Exclude:
176
- - 'lib/autotest/cucumber_mixin.rb'
177
- - 'lib/cucumber/formatter/html.rb'
178
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
179
-
180
149
  # Offense count: 19
181
150
  Style/AsciiComments:
182
151
  Exclude:
@@ -288,63 +257,10 @@ Style/ClassAndModuleChildren:
288
257
  - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
289
258
  - 'spec/cucumber/hooks_spec.rb'
290
259
 
291
- # Offense count: 3
292
- # Cop supports --auto-correct.
293
- # Configuration parameters: EnforcedStyle, SupportedStyles.
294
- # SupportedStyles: is_a?, kind_of?
295
- Style/ClassCheck:
296
- Exclude:
297
- - 'lib/cucumber/formatter/legacy_api/ast.rb'
298
- - 'lib/cucumber/hooks.rb'
299
- - 'lib/cucumber/multiline_argument/data_table.rb'
300
-
301
260
  # Offense count: 2
302
261
  Style/ClassVars:
303
262
  Exclude:
304
- - 'lib/cucumber/formatter/html.rb'
305
-
306
- # Offense count: 1
307
- # Cop supports --auto-correct.
308
- Style/ClosingParenthesisIndentation:
309
- Exclude:
310
- - 'spec/cucumber/cli/options_spec.rb'
311
-
312
- # Offense count: 1
313
- # Cop supports --auto-correct.
314
- Style/ColonMethodCall:
315
- Exclude:
316
- - 'lib/cucumber/cli/profile_loader.rb'
317
-
318
- # Offense count: 4
319
- # Cop supports --auto-correct.
320
- # Configuration parameters: Keywords.
321
- # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
322
- Style/CommentAnnotation:
323
- Exclude:
324
- - 'lib/cucumber/cli/configuration.rb'
325
- - 'lib/cucumber/configuration.rb'
326
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
327
-
328
- # Offense count: 2
329
- # Cop supports --auto-correct.
330
- Style/CommentIndentation:
331
- Exclude:
332
- - 'lib/cucumber/formatter/html.rb'
333
- - 'spec/cucumber/world/pending_spec.rb'
334
-
335
- # Offense count: 2
336
- # Cop supports --auto-correct.
337
- # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
338
- # SupportedStyles: assign_to_condition, assign_inside_condition
339
- Style/ConditionalAssignment:
340
- Exclude:
341
- - 'lib/cucumber/runtime/for_programming_languages.rb'
342
- - 'lib/cucumber/runtime/user_interface.rb'
343
-
344
- # Offense count: 1
345
- Style/ConstantName:
346
- Exclude:
347
- - 'lib/cucumber/deprecate.rb'
263
+ - 'lib/cucumber/formatter/html.rb'
348
264
 
349
265
  # Offense count: 1
350
266
  # Cop supports --auto-correct.
data/.travis.yml CHANGED
@@ -23,7 +23,7 @@ matrix:
23
23
  os: linux
24
24
  - rvm: 2.1
25
25
  os: osx
26
- - rvm: jruby-9.1.12.0
26
+ - rvm: jruby-9.1.13.0
27
27
  os: linux
28
28
  env:
29
29
  # Travis by default also have "-Dcext.enabled=false" set in
@@ -35,7 +35,7 @@ matrix:
35
35
  - LC_ALL=en_US.UTF-8
36
36
  - LANG=en_US.UTF-8
37
37
  - LANGUAGE=en_US.UTF-8
38
- - rvm: jruby-9.1.12.0
38
+ - rvm: jruby-9.1.13.0
39
39
  os: osx
40
40
  env:
41
41
  # Travis by default also have "-Dcext.enabled=false" set in
@@ -1,11 +1,68 @@
1
- ## [In Git](https://github.com/cucumber/cucumber-ruby/compare/v3.0.0.pre.2...master)
1
+ # CHANGE LOG
2
2
 
3
- ### Breaking changes
4
- ### New Features
5
- ### Bugfixes
6
- ### Refactoring / Developer Experience
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ This project adheres to [Semantic Versioning](http://semver.org).
6
+
7
+ This document is formatted according to the principles of [Keep A CHANGELOG](http://keepachangelog.com).
8
+
9
+ Please visit [cucumber/CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CONTRIBUTING.md) for more info on how to contribute to Cucumber.
10
+
11
+ ----
12
+
13
+ ## [In Git](https://github.com/cucumber/cucumber-ruby/compare/v3.0.0...master) (targeting 3.1.0)
14
+
15
+ ### Changed
16
+
17
+ * N/A
18
+
19
+ ### Added
20
+
21
+ * N/A
22
+
23
+ ### Fixed
24
+
25
+ * N/A
26
+
27
+ ### Improved
28
+
29
+ * N/A
30
+
31
+ ## [3.0.0](https://github.com/cucumber/cucumber-ruby/compare/v3.0.0.pre.2...v3.0.0) (2017-09-27)
32
+
33
+ ### Changed
34
+
35
+ * Rename `Step#name` to `#text` ([#1130](https://github.com/cucumber/cucumber-ruby/pull/1130) [@olleolleolle](https://github.com/olleolleolle))
36
+ * `Transform` has been removed and replaced with `ParameterType`. See [upgrading instructions](https://cucumber.io/blog/2017/09/21/upgrading-to-cucumber-3). ([#1190](https://github.com/cucumber/cucumber-ruby/issues/1190) @aslakhellesoy)
37
+ * Nested capture groups are not counted as parameters. See [upgrading instructions](https://cucumber.io/blog/2017/09/21/upgrading-to-cucumber-3). (@aslakhellesoy)
38
+
39
+ ### Added
40
+
41
+ * Handle selective strict options. ([#1169](https://github.com/cucumber/cucumber-ruby/pull/1169), [#1160](https://github.com/cucumber/cucumber-ruby/issues/1160) @brasmusson)
42
+
43
+ ### Fixed
44
+
45
+ * Use absolute path in IO formatter to prevent `chdir` issues. ([#1111](https://github.com/cucumber/cucumber-ruby/pull/1111/files) @akostadinov)
46
+
47
+ * Fix bug in DataTable#symbolic_hashes ([#1200](https://github.com/cucumber/cucumber-ruby/pull/1200) @Ben-Behar)
48
+
49
+ * Fix typo in JSON formatter ([#1196](https://github.com/cucumber/cucumber-ruby/pull/1196) @alb-i986)
50
+
51
+ * Handle ambiguous steps as failed steps, when not using `--guess` ([#1132](https://github.com/cucumber/cucumber-ruby/pull/1132), [#1113](https://github.com/cucumber/cucumber-ruby/issues/1113) @MadameSheema, @enkessler, @brasmusson)
52
+
53
+ ### Improved
54
+
55
+ * Refactor: Extract HTMLBuilder#string_to_embed method to DRY up code ([#1187](https://github.com/cucumber/cucumber-ruby/pulls/1187) [@danascheider](https://github.com/danascheider))
56
+ * As per [#251](https://github.com/cucumber/cucumber/issues/251): renamed History.md to CHANGELOG.md, added contributing message at beginning, and misc formatting. ([#1185](https://github.com/cucumber/cucumber-ruby/issues/1185) [jaysonesmith](https://github.com/jaysonesmith))
57
+ * Use past tense in event names (`xStarting` -> `xStarted`) ([#1166](https://github.com/cucumber/cucumber-ruby/issues/1166) @brasmusson).
58
+ * Fix Lint/DeprecatedClassMethods ([#1172](https://github.com/cucumber/cucumber-ruby/issues/1172) [jaysonesmith](https://github.com/jaysonesmith))
59
+ * Fix Lint/DuplicateMethods ([#1173](https://github.com/cucumber/cucumber-ruby/issues/1173) [jaysonesmith](https://github.com/jaysonesmith))
60
+ * Fix Metrics/LineLength ([#1175](https://github.com/cucumber/cucumber-ruby/issues/1175), [#1175](https://github.com/cucumber/cucumber-ruby/issues/1175), [#1176](https://github.com/cucumber/cucumber-ruby/issues/1176) [jaysonesmith](https://github.com/jaysonesmith))
61
+ * Fix Style/AlignArray ([#1177](https://github.com/cucumber/cucumber-ruby/issues/1177) [jaysonesmith](https://github.com/jaysonesmith))
62
+ * Fix Style/AndOr ([#1178](https://github.com/cucumber/cucumber-ruby/issues/1178) [jaysonesmith](https://github.com/jaysonesmith))
63
+ * Fix Multiple Cops ([#1179](https://github.com/cucumber/cucumber-ruby/issues/1179) [jaysonesmith](https://github.com/jaysonesmith))
7
64
 
8
- ## [3.0.0.pre.1](https://github.com/cucumber/cucumber-ruby/compare/v2.4.0...v3.0.0.pre.2)
65
+ ## [3.0.0.pre.2](https://github.com/cucumber/cucumber-ruby/compare/v2.4.0...v3.0.0.pre.2)
9
66
 
10
67
  ### Breaking changes
11
68
 
@@ -29,8 +86,7 @@
29
86
 
30
87
  ### Bugfixes
31
88
 
32
- * Fix the profile loader on Windows ([#1133(https://api.github.com/repos/cucumber/cucumber-ruby/pulls/1133) @enkessler)
33
- * Fix incorrect `DataTable#diff!` results ([#1102](https://github.com/cucumber/cucumber-ruby/pulls/1102) @)
89
+ * Fix the profile loader on Windows ([#1133](https://github.com/cucumber/cucumber-ruby/pulls/1133) @enkessler)
34
90
  * Fix incorrect `DataTable#diff!` results ([#1102](https://github.com/cucumber/cucumber-ruby/pulls/1102) @botandrose)
35
91
  * Do not apply the hooks to the test case several times when using the retry option ([#1098](https://github.com/cucumber/cucumber-ruby/issues/1098) @brasmusson)
36
92
  * Fix bug in comparing empty data tables ([#1097](https://github.com/cucumber/cucumber-ruby/pulls/1097), resolves [#1096](https://github.com/cucumber/cucumber-ruby/issues/1096))
@@ -44,11 +100,11 @@
44
100
 
45
101
  ### Refactoring / Developer Experience
46
102
 
47
- * Spec: Events.registry exercised ([#1126(https://api.github.com/repos/cucumber/cucumber-ruby/pulls/1126) @olleolleolle)
48
- * Remove programming language abstraction ([#1131(https://api.github.com/repos/cucumber/cucumber-ruby/pulls/1131) @tooky, @mattwynne)
49
- * Update cucumber yaml to use new tag syntax ([#1147(https://api.github.com/repos/cucumber/cucumber-ruby/pulls/1147) @danascheider)
50
- * Turn off Windows failures ([#1142(https://api.github.com/repos/cucumber/cucumber-ruby/pulls/1142) @enkessler)
51
- * Add script to update history.md ([#1141(https://api.github.com/repos/cucumber/cucumber-ruby/pulls/1141) @mattwynne)
103
+ * Spec: Events.registry exercised ([#1126](https://github.com/cucumber/cucumber-ruby/pulls/1126) @olleolleolle)
104
+ * Remove programming language abstraction ([#1131](https://github.com/cucumber/cucumber-ruby/pulls/1131) @tooky, @mattwynne)
105
+ * Update cucumber yaml to use new tag syntax ([#1147](https://github.com/cucumber/cucumber-ruby/pulls/1147) @danascheider)
106
+ * Turn off Windows failures ([#1142](https://github.com/cucumber/cucumber-ruby/pulls/1142) @enkessler)
107
+ * Add script to update history.md ([#1141](https://github.com/cucumber/cucumber-ruby/pulls/1141) @mattwynne)
52
108
  * Update Ruby 2.3 and 2.4 in .travis.yml ([#1100](https://github.com/cucumber/cucumber-ruby/pull/1100) @junaruga)
53
109
  * Fixes for rubocop violations ([#1095](https://github.com/cucumber/cucumber-ruby/pull/1095) @bv)
54
110
  * Fixes for rubocop violations ([#1042](https://github.com/cucumber/cucumber-ruby/pull/1042) @phoebeclarke)
data/appveyor.yml CHANGED
@@ -23,4 +23,5 @@ test_script:
23
23
  notifications:
24
24
  - provider: Slack
25
25
  incoming_webhook:
26
- secure: https://hooks.slack.com/services/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
26
+ secure: Zj2V5eXlqH4jMNvdzMBmdLA+lr658qwlJO+o7yfvUc1TMRSLNQaId9rpVWX+FsEH6DsQxYr46BRWU0bymATBe7rf7KSkomCgsAdupvKYciI=
27
+
data/bin/cucumber CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
- $:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
2
+ file_name = File.dirname(__FILE__) + '/../lib'
3
+ $:.unshift(file_name) unless $:.include?(file_name)
3
4
 
4
5
  require 'simplecov_setup'
5
6
  require 'cucumber/rspec/disable_option_parser'
data/cucumber.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.homepage = 'https://cucumber.io/'
11
11
  s.platform = Gem::Platform::RUBY
12
12
  s.required_ruby_version = '>= 1.9.3'
13
- s.add_dependency 'cucumber-core', '3.0.0.pre.2'
13
+ s.add_dependency 'cucumber-core', '~> 3.0.0'
14
14
  s.add_dependency 'builder', '>= 2.1.2'
15
15
  s.add_dependency 'diff-lcs', '~> 1.3'
16
16
  s.add_dependency 'gherkin', '~> 4.0'
@@ -1,5 +1,10 @@
1
1
  # encoding: utf-8
2
- begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
2
+ begin
3
+ require 'rspec/expectations'
4
+ rescue LoadError
5
+ require 'spec/expectations'
6
+ end
7
+
3
8
  require 'cucumber/formatter/unicode'
4
9
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
10
  require 'calculator'
@@ -1,5 +1,10 @@
1
1
  # encoding: utf-8
2
- begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
2
+ begin
3
+ require 'rspec/expectations'
4
+ rescue LoadError
5
+ require 'spec/expectations'
6
+ end
7
+
3
8
  require 'cucumber/formatter/unicode'
4
9
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
10
  require 'calculator'
@@ -18,7 +18,8 @@ class Calculator
18
18
  end
19
19
 
20
20
  def /
21
- divisor, dividend = [@stack.pop, @stack.pop] # Hm, @stack.pop(2) doesn't work
21
+ divisor, dividend = [@stack.pop, @stack.pop]
22
+ # Hm, @stack.pop(2) doesn't work
22
23
  @stack.push dividend / divisor
23
24
  end
24
25
  end
@@ -1,5 +1,10 @@
1
1
  # encoding: utf-8
2
- begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
2
+ begin
3
+ require 'rspec/expectations'
4
+ rescue LoadError
5
+ require 'spec/expectations'
6
+ end
7
+
3
8
  require 'cucumber/formatter/unicode'
4
9
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
10
  require 'calculadora'
@@ -1,5 +1,10 @@
1
1
  # encoding: utf-8
2
- begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
2
+ begin
3
+ require 'rspec/expectations'
4
+ rescue LoadError
5
+ require 'spec/expectations'
6
+ end
7
+
3
8
  require 'cucumber/formatter/unicode'
4
9
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
10
  require 'calculator'
@@ -1,5 +1,10 @@
1
1
  # encoding: utf-8
2
- begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
2
+ begin
3
+ require 'rspec/expectations'
4
+ rescue LoadError
5
+ require 'spec/expectations'
6
+ end
7
+
3
8
  require 'cucumber/formatter/unicode'
4
9
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
10
  require 'lommeregner'
@@ -1,5 +1,10 @@
1
1
  # encoding: utf-8
2
- begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
2
+ begin
3
+ require 'rspec/expectations'
4
+ rescue LoadError
5
+ require 'spec/expectations'
6
+ end
7
+
3
8
  require 'cucumber/formatter/unicode'
4
9
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
10
  require 'calculator'
@@ -1,5 +1,10 @@
1
1
  # encoding: utf-8
2
- begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
2
+ begin
3
+ require 'rspec/expectations'
4
+ rescue LoadError
5
+ require 'spec/expectations'
6
+ end
7
+
3
8
  require 'cucumber/formatter/unicode'
4
9
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
10
  require 'calculator'
@@ -1,7 +1,11 @@
1
1
  # encoding: utf-8
2
- require 'cucumber/formatter/unicode'
3
- begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
2
+ begin
3
+ require 'rspec/expectations'
4
+ rescue LoadError
5
+ require 'spec/expectations'
6
+ end
4
7
 
8
+ require 'cucumber/formatter/unicode'
5
9
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
6
10
  require 'basket'
7
11
  require 'belly'