aslakhellesoy-cucumber 0.3.11.3 → 0.3.11.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. data/History.txt +35 -0
  2. data/Manifest.txt +5 -0
  3. data/config/hoe.rb +1 -2
  4. data/examples/i18n/ar/Rakefile +1 -1
  5. data/examples/i18n/ar/features/addition.feature +1 -0
  6. data/examples/i18n/bg/Rakefile +1 -1
  7. data/examples/i18n/bg/features/addition.feature +1 -0
  8. data/examples/i18n/bg/features/consecutive_calculations.feature +1 -0
  9. data/examples/i18n/bg/features/division.feature +1 -0
  10. data/examples/i18n/cat/Rakefile +1 -1
  11. data/examples/i18n/cat/features/suma.feature +1 -0
  12. data/examples/i18n/da/Rakefile +1 -1
  13. data/examples/i18n/da/features/summering.feature +1 -0
  14. data/examples/i18n/de/Rakefile +1 -1
  15. data/examples/i18n/de/features/addition.feature +1 -0
  16. data/examples/i18n/de/features/division.feature +1 -0
  17. data/examples/i18n/en-lol/features/stuffing.feature +1 -1
  18. data/examples/i18n/en/Rakefile +1 -1
  19. data/examples/i18n/en/features/addition.feature +1 -0
  20. data/examples/i18n/en/features/division.feature +1 -0
  21. data/examples/i18n/es/Rakefile +1 -1
  22. data/examples/i18n/es/features/adicion.feature +1 -0
  23. data/examples/i18n/et/Rakefile +1 -1
  24. data/examples/i18n/et/features/jagamine.feature +1 -0
  25. data/examples/i18n/et/features/liitmine.feature +1 -0
  26. data/examples/i18n/fi/Rakefile +1 -1
  27. data/examples/i18n/fi/features/jakolasku.feature +1 -0
  28. data/examples/i18n/fr/Rakefile +1 -1
  29. data/examples/i18n/fr/features/addition.feature +2 -1
  30. data/examples/i18n/he/Rakefile +1 -1
  31. data/examples/i18n/he/features/addition.feature +1 -0
  32. data/examples/i18n/he/features/division.feature +1 -0
  33. data/examples/i18n/hu/Rakefile +1 -1
  34. data/examples/i18n/hu/features/addition.feature +1 -0
  35. data/examples/i18n/hu/features/division.feature +1 -0
  36. data/examples/i18n/id/Rakefile +1 -1
  37. data/examples/i18n/id/features/addition.feature +1 -0
  38. data/examples/i18n/id/features/division.feature +1 -0
  39. data/examples/i18n/it/Rakefile +1 -1
  40. data/examples/i18n/it/features/somma.feature +1 -0
  41. data/examples/i18n/ja/Rakefile +1 -1
  42. data/examples/i18n/ja/features/addition.feature +1 -0
  43. data/examples/i18n/ja/features/division.feature +1 -0
  44. data/examples/i18n/ko/Rakefile +1 -1
  45. data/examples/i18n/ko/features/addition.feature +1 -0
  46. data/examples/i18n/ko/features/division.feature +1 -0
  47. data/examples/i18n/lt/Rakefile +1 -1
  48. data/examples/i18n/lt/features/addition.feature +1 -0
  49. data/examples/i18n/lt/features/division.feature +1 -0
  50. data/examples/i18n/lv/Rakefile +1 -1
  51. data/examples/i18n/lv/features/addition.feature +1 -0
  52. data/examples/i18n/lv/features/division.feature +1 -0
  53. data/examples/i18n/no/Rakefile +1 -1
  54. data/examples/i18n/no/features/summering.feature +1 -0
  55. data/examples/i18n/pl/Rakefile +1 -1
  56. data/examples/i18n/pl/features/addition.feature +1 -0
  57. data/examples/i18n/pl/features/division.feature +1 -0
  58. data/examples/i18n/pt/Rakefile +1 -1
  59. data/examples/i18n/pt/features/adicao.feature +1 -0
  60. data/examples/i18n/ro/Rakefile +1 -1
  61. data/examples/i18n/ro/features/suma.feature +1 -0
  62. data/examples/i18n/ru/Rakefile +1 -1
  63. data/examples/i18n/ru/features/addition.feature +1 -0
  64. data/examples/i18n/ru/features/consecutive_calculations.feature +1 -0
  65. data/examples/i18n/ru/features/division.feature +1 -0
  66. data/examples/i18n/se/Rakefile +1 -1
  67. data/examples/i18n/se/features/summering.feature +1 -0
  68. data/examples/i18n/sk/Rakefile +1 -1
  69. data/examples/i18n/sk/features/addition.feature +1 -0
  70. data/examples/i18n/sk/features/division.feature +1 -0
  71. data/examples/i18n/zh-CN/features/addition.feature +1 -0
  72. data/examples/i18n/zh-TW/features/addition.feature +1 -0
  73. data/examples/i18n/zh-TW/features/division.feature +1 -0
  74. data/examples/sinatra/features/step_definitions/add_steps.rb +1 -1
  75. data/examples/sinatra/features/support/env.rb +13 -5
  76. data/features/after_block_exceptions.feature +4 -1
  77. data/features/after_step_block_exceptions.feature +4 -1
  78. data/features/background.feature +6 -0
  79. data/features/bug_371.feature +32 -0
  80. data/features/cucumber_cli.feature +11 -1
  81. data/features/cucumber_cli_diff_disabled.feature +7 -1
  82. data/features/drb_server_integration.feature +5 -4
  83. data/features/expand.feature +2 -1
  84. data/features/html_formatter/a.html +33 -30
  85. data/features/junit_formatter.feature +4 -4
  86. data/features/language_from_header.feature +30 -0
  87. data/features/step_definitions/cucumber_steps.rb +2 -2
  88. data/features/support/env.rb +7 -4
  89. data/features/work_in_progress.feature +3 -0
  90. data/lib/cucumber.rb +0 -57
  91. data/lib/cucumber/ast/comment.rb +1 -1
  92. data/lib/cucumber/ast/feature.rb +2 -2
  93. data/lib/cucumber/ast/feature_element.rb +4 -0
  94. data/lib/cucumber/ast/scenario.rb +5 -3
  95. data/lib/cucumber/ast/scenario_outline.rb +6 -1
  96. data/lib/cucumber/ast/step.rb +4 -0
  97. data/lib/cucumber/ast/step_invocation.rb +6 -1
  98. data/lib/cucumber/cli/configuration.rb +36 -26
  99. data/lib/cucumber/cli/main.rb +4 -5
  100. data/lib/cucumber/feature_file.rb +47 -0
  101. data/lib/cucumber/filter.rb +50 -0
  102. data/lib/cucumber/formatter/console.rb +12 -0
  103. data/lib/cucumber/formatter/cucumber.css +19 -14
  104. data/lib/cucumber/formatter/cucumber.sass +18 -13
  105. data/lib/cucumber/formatter/html.rb +4 -3
  106. data/lib/cucumber/formatter/junit.rb +3 -6
  107. data/lib/cucumber/formatter/pretty.rb +2 -4
  108. data/lib/cucumber/formatter/profile.rb +1 -1
  109. data/lib/cucumber/parser.rb +1 -33
  110. data/lib/cucumber/parser/feature.rb +12 -16
  111. data/lib/cucumber/parser/feature.tt +1 -3
  112. data/lib/cucumber/parser/i18n.tt +30 -23
  113. data/lib/cucumber/parser/i18n/language.rb +80 -0
  114. data/lib/cucumber/parser/treetop_ext.rb +12 -83
  115. data/lib/cucumber/platform.rb +6 -0
  116. data/lib/cucumber/step_mother.rb +3 -3
  117. data/lib/cucumber/version.rb +1 -1
  118. data/rails_generators/cucumber/templates/cucumber.rake +4 -0
  119. data/spec/cucumber/ast/step_collection_spec.rb +5 -4
  120. data/spec/cucumber/cli/configuration_spec.rb +42 -9
  121. data/spec/cucumber/cli/main_spec.rb +2 -10
  122. data/spec/cucumber/parser/feature_parser_spec.rb +11 -9
  123. data/spec/cucumber/parser/table_parser_spec.rb +1 -1
  124. data/spec/spec_helper.rb +0 -1
  125. metadata +8 -13
@@ -6,7 +6,7 @@ module Cucumber
6
6
  module Parser
7
7
  describe 'Tables' do
8
8
  before do
9
- @parser = FeatureParser.new
9
+ @parser = I18n::EnglishParser.new
10
10
  end
11
11
 
12
12
  def parse(text)
@@ -6,7 +6,6 @@ require 'spec/autorun'
6
6
  ENV['CUCUMBER_COLORS']=nil
7
7
  $:.unshift(File.dirname(__FILE__) + '/../lib')
8
8
  require 'cucumber'
9
- Cucumber.load_language('en')
10
9
  $:.unshift(File.dirname(__FILE__))
11
10
 
12
11
  ::Term::ANSIColor.coloring = true
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.3
4
+ version: 0.3.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Aslak Helles\xC3\xB8y"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-07 00:00:00 -07:00
12
+ date: 2009-06-16 00:00:00 -07:00
13
13
  default_executable: cucumber
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,17 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.5
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: polyglot
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 0.2.5
33
+ version: 1.2.6
44
34
  version:
45
35
  - !ruby/object:Gem::Dependency
46
36
  name: diff-lcs
@@ -323,6 +313,7 @@ files:
323
313
  - features/after_block_exceptions.feature
324
314
  - features/after_step_block_exceptions.feature
325
315
  - features/background.feature
316
+ - features/bug_371.feature
326
317
  - features/cucumber_cli.feature
327
318
  - features/cucumber_cli_diff_disabled.feature
328
319
  - features/cucumber_cli_outlines.feature
@@ -333,6 +324,7 @@ files:
333
324
  - features/html_formatter.feature
334
325
  - features/html_formatter/a.html
335
326
  - features/junit_formatter.feature
327
+ - features/language_from_header.feature
336
328
  - features/multiline_names.feature
337
329
  - features/rake_task.feature
338
330
  - features/report_called_undefined_steps.feature
@@ -384,6 +376,8 @@ files:
384
376
  - lib/cucumber/core_ext/instance_exec.rb
385
377
  - lib/cucumber/core_ext/proc.rb
386
378
  - lib/cucumber/core_ext/string.rb
379
+ - lib/cucumber/feature_file.rb
380
+ - lib/cucumber/filter.rb
387
381
  - lib/cucumber/formatter/ansicolor.rb
388
382
  - lib/cucumber/formatter/color_io.rb
389
383
  - lib/cucumber/formatter/console.rb
@@ -405,6 +399,7 @@ files:
405
399
  - lib/cucumber/parser/feature.rb
406
400
  - lib/cucumber/parser/feature.tt
407
401
  - lib/cucumber/parser/i18n.tt
402
+ - lib/cucumber/parser/i18n/language.rb
408
403
  - lib/cucumber/parser/table.rb
409
404
  - lib/cucumber/parser/table.tt
410
405
  - lib/cucumber/parser/treetop_ext.rb