aslakhellesoy-cucumber 0.3.11.5 → 0.3.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -35,6 +35,7 @@ This release also has several bugfixes related to --format and Before/Adter hook
35
35
  * Make sure script/generate cucumber --spork uses the cucumber Rails environment (Philippe Lafoucrière)
36
36
 
37
37
  === New Features
38
+ * New --format steps formatter. Variant of the usage formatter that lists available step definitions (Demetrius Nunes)
38
39
  * Possibility to specify scenario language as part of the .feature file (#345 Aslak Hellesøy)
39
40
  * Support specifying environment variables using foo=bar syntax on command line or in profiles (#362 Bryan Helmkamp)
40
41
  * Display failing scenarios at the end of pretty format to make it easier for people to play them back (#360 Ryan Bigg)
data/Manifest.txt CHANGED
@@ -205,6 +205,8 @@ examples/sinatra/features/step_definitions/add_steps.rb
205
205
  examples/sinatra/features/support/env.rb
206
206
  examples/sinatra/views/add.erb
207
207
  examples/sinatra/views/layout.erb
208
+ examples/steps_library/features/step_definitions/steps_lib1.rb
209
+ examples/steps_library/features/step_definitions/steps_lib2.rb
208
210
  examples/test_unit/Rakefile
209
211
  examples/test_unit/features/step_definitions/test_unit_steps.rb
210
212
  examples/test_unit/features/test_unit.feature
@@ -264,6 +266,7 @@ features/report_called_undefined_steps.feature
264
266
  features/snippet.feature
265
267
  features/step_definitions/cucumber_steps.rb
266
268
  features/step_definitions/extra_steps.rb
269
+ features/steps_formatter.feature
267
270
  features/support/env.rb
268
271
  features/usage.feature
269
272
  features/work_in_progress.feature
@@ -323,6 +326,7 @@ lib/cucumber/formatter/pretty.rb
323
326
  lib/cucumber/formatter/profile.rb
324
327
  lib/cucumber/formatter/progress.rb
325
328
  lib/cucumber/formatter/rerun.rb
329
+ lib/cucumber/formatter/steps.rb
326
330
  lib/cucumber/formatter/tag_cloud.rb
327
331
  lib/cucumber/formatter/unicode.rb
328
332
  lib/cucumber/formatter/usage.rb
@@ -11,7 +11,8 @@ module Cucumber
11
11
  'rerun' => 'Cucumber::Formatter::Rerun',
12
12
  'usage' => 'Cucumber::Formatter::Usage',
13
13
  'junit' => 'Cucumber::Formatter::Junit',
14
- 'tag_cloud' => 'Cucumber::Formatter::TagCloud'
14
+ 'tag_cloud' => 'Cucumber::Formatter::TagCloud',
15
+ 'steps' => 'Cucumber::Formatter::Steps'
15
16
  }
16
17
  DRB_FLAG = '--drb'
17
18
  PROFILE_SHORT_FLAG = '-p'
@@ -91,14 +91,14 @@
91
91
  native: Česky
92
92
  encoding: UTF-8
93
93
  feature: Požadavek
94
- background: Pozadí
94
+ background: Pozadí|Kontext
95
95
  scenario: Scénář
96
- scenario_outline: Náčrt Scénáře
96
+ scenario_outline: Náčrt Scénáře|Osnova scénáře
97
97
  examples: Příklady
98
98
  given: Pokud
99
99
  when: Když
100
100
  then: Pak
101
- and: A
101
+ and: A|A také
102
102
  but: Ale
103
103
  space_after_keyword: true
104
104
  "da":
@@ -86,6 +86,8 @@ module Cucumber
86
86
 
87
87
  include StepDefinitionMethods
88
88
 
89
+ attr_reader :regexp, :proc
90
+
89
91
  def initialize(pattern, &proc)
90
92
  raise MissingProc if proc.nil?
91
93
  if String === pattern
@@ -112,5 +114,9 @@ module Cucumber
112
114
  def file_colon_line
113
115
  @proc.file_colon_line
114
116
  end
117
+
118
+ def file
119
+ @file ||= file_colon_line.split(':')[0]
120
+ end
115
121
  end
116
122
  end
@@ -3,7 +3,7 @@ module Cucumber #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
5
  TINY = 11
6
- PATCH = 5 # Set to nil for official release
6
+ PATCH = 6 # Set to nil for official release
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aslakhellesoy-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11.5
4
+ version: 0.3.11.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Aslak Helles\xC3\xB8y"