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.
- data/History.txt +35 -0
- data/Manifest.txt +5 -0
- data/config/hoe.rb +1 -2
- data/examples/i18n/ar/Rakefile +1 -1
- data/examples/i18n/ar/features/addition.feature +1 -0
- data/examples/i18n/bg/Rakefile +1 -1
- data/examples/i18n/bg/features/addition.feature +1 -0
- data/examples/i18n/bg/features/consecutive_calculations.feature +1 -0
- data/examples/i18n/bg/features/division.feature +1 -0
- data/examples/i18n/cat/Rakefile +1 -1
- data/examples/i18n/cat/features/suma.feature +1 -0
- data/examples/i18n/da/Rakefile +1 -1
- data/examples/i18n/da/features/summering.feature +1 -0
- data/examples/i18n/de/Rakefile +1 -1
- data/examples/i18n/de/features/addition.feature +1 -0
- data/examples/i18n/de/features/division.feature +1 -0
- data/examples/i18n/en-lol/features/stuffing.feature +1 -1
- data/examples/i18n/en/Rakefile +1 -1
- data/examples/i18n/en/features/addition.feature +1 -0
- data/examples/i18n/en/features/division.feature +1 -0
- data/examples/i18n/es/Rakefile +1 -1
- data/examples/i18n/es/features/adicion.feature +1 -0
- data/examples/i18n/et/Rakefile +1 -1
- data/examples/i18n/et/features/jagamine.feature +1 -0
- data/examples/i18n/et/features/liitmine.feature +1 -0
- data/examples/i18n/fi/Rakefile +1 -1
- data/examples/i18n/fi/features/jakolasku.feature +1 -0
- data/examples/i18n/fr/Rakefile +1 -1
- data/examples/i18n/fr/features/addition.feature +2 -1
- data/examples/i18n/he/Rakefile +1 -1
- data/examples/i18n/he/features/addition.feature +1 -0
- data/examples/i18n/he/features/division.feature +1 -0
- data/examples/i18n/hu/Rakefile +1 -1
- data/examples/i18n/hu/features/addition.feature +1 -0
- data/examples/i18n/hu/features/division.feature +1 -0
- data/examples/i18n/id/Rakefile +1 -1
- data/examples/i18n/id/features/addition.feature +1 -0
- data/examples/i18n/id/features/division.feature +1 -0
- data/examples/i18n/it/Rakefile +1 -1
- data/examples/i18n/it/features/somma.feature +1 -0
- data/examples/i18n/ja/Rakefile +1 -1
- data/examples/i18n/ja/features/addition.feature +1 -0
- data/examples/i18n/ja/features/division.feature +1 -0
- data/examples/i18n/ko/Rakefile +1 -1
- data/examples/i18n/ko/features/addition.feature +1 -0
- data/examples/i18n/ko/features/division.feature +1 -0
- data/examples/i18n/lt/Rakefile +1 -1
- data/examples/i18n/lt/features/addition.feature +1 -0
- data/examples/i18n/lt/features/division.feature +1 -0
- data/examples/i18n/lv/Rakefile +1 -1
- data/examples/i18n/lv/features/addition.feature +1 -0
- data/examples/i18n/lv/features/division.feature +1 -0
- data/examples/i18n/no/Rakefile +1 -1
- data/examples/i18n/no/features/summering.feature +1 -0
- data/examples/i18n/pl/Rakefile +1 -1
- data/examples/i18n/pl/features/addition.feature +1 -0
- data/examples/i18n/pl/features/division.feature +1 -0
- data/examples/i18n/pt/Rakefile +1 -1
- data/examples/i18n/pt/features/adicao.feature +1 -0
- data/examples/i18n/ro/Rakefile +1 -1
- data/examples/i18n/ro/features/suma.feature +1 -0
- data/examples/i18n/ru/Rakefile +1 -1
- data/examples/i18n/ru/features/addition.feature +1 -0
- data/examples/i18n/ru/features/consecutive_calculations.feature +1 -0
- data/examples/i18n/ru/features/division.feature +1 -0
- data/examples/i18n/se/Rakefile +1 -1
- data/examples/i18n/se/features/summering.feature +1 -0
- data/examples/i18n/sk/Rakefile +1 -1
- data/examples/i18n/sk/features/addition.feature +1 -0
- data/examples/i18n/sk/features/division.feature +1 -0
- data/examples/i18n/zh-CN/features/addition.feature +1 -0
- data/examples/i18n/zh-TW/features/addition.feature +1 -0
- data/examples/i18n/zh-TW/features/division.feature +1 -0
- data/examples/sinatra/features/step_definitions/add_steps.rb +1 -1
- data/examples/sinatra/features/support/env.rb +13 -5
- data/features/after_block_exceptions.feature +4 -1
- data/features/after_step_block_exceptions.feature +4 -1
- data/features/background.feature +6 -0
- data/features/bug_371.feature +32 -0
- data/features/cucumber_cli.feature +11 -1
- data/features/cucumber_cli_diff_disabled.feature +7 -1
- data/features/drb_server_integration.feature +5 -4
- data/features/expand.feature +2 -1
- data/features/html_formatter/a.html +33 -30
- data/features/junit_formatter.feature +4 -4
- data/features/language_from_header.feature +30 -0
- data/features/step_definitions/cucumber_steps.rb +2 -2
- data/features/support/env.rb +7 -4
- data/features/work_in_progress.feature +3 -0
- data/lib/cucumber.rb +0 -57
- data/lib/cucumber/ast/comment.rb +1 -1
- data/lib/cucumber/ast/feature.rb +2 -2
- data/lib/cucumber/ast/feature_element.rb +4 -0
- data/lib/cucumber/ast/scenario.rb +5 -3
- data/lib/cucumber/ast/scenario_outline.rb +6 -1
- data/lib/cucumber/ast/step.rb +4 -0
- data/lib/cucumber/ast/step_invocation.rb +6 -1
- data/lib/cucumber/cli/configuration.rb +36 -26
- data/lib/cucumber/cli/main.rb +4 -5
- data/lib/cucumber/feature_file.rb +47 -0
- data/lib/cucumber/filter.rb +50 -0
- data/lib/cucumber/formatter/console.rb +12 -0
- data/lib/cucumber/formatter/cucumber.css +19 -14
- data/lib/cucumber/formatter/cucumber.sass +18 -13
- data/lib/cucumber/formatter/html.rb +4 -3
- data/lib/cucumber/formatter/junit.rb +3 -6
- data/lib/cucumber/formatter/pretty.rb +2 -4
- data/lib/cucumber/formatter/profile.rb +1 -1
- data/lib/cucumber/parser.rb +1 -33
- data/lib/cucumber/parser/feature.rb +12 -16
- data/lib/cucumber/parser/feature.tt +1 -3
- data/lib/cucumber/parser/i18n.tt +30 -23
- data/lib/cucumber/parser/i18n/language.rb +80 -0
- data/lib/cucumber/parser/treetop_ext.rb +12 -83
- data/lib/cucumber/platform.rb +6 -0
- data/lib/cucumber/step_mother.rb +3 -3
- data/lib/cucumber/version.rb +1 -1
- data/rails_generators/cucumber/templates/cucumber.rake +4 -0
- data/spec/cucumber/ast/step_collection_spec.rb +5 -4
- data/spec/cucumber/cli/configuration_spec.rb +42 -9
- data/spec/cucumber/cli/main_spec.rb +2 -10
- data/spec/cucumber/parser/feature_parser_spec.rb +11 -9
- data/spec/cucumber/parser/table_parser_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- metadata +8 -13
data/History.txt
CHANGED
@@ -1,9 +1,44 @@
|
|
1
1
|
== 0.3.12 (In Git)
|
2
2
|
|
3
|
+
The Egality release
|
4
|
+
|
5
|
+
English is not the world's most spoken language, so why should Cucumber force non-English speakers to use the
|
6
|
+
--language flag? As of this release you're no longer forced to do that. Instead, you can add a comment header
|
7
|
+
to your .feature files:
|
8
|
+
|
9
|
+
# language: fr
|
10
|
+
Fonctionnalité: Trou de boulette
|
11
|
+
|
12
|
+
If you don't have that header, Cucumber will work as before - using whatever you specified with --language,
|
13
|
+
or default to English if no --language option was specified. A nice side effect of this is that you can now
|
14
|
+
have features in several languages side by side and run them in the same cucumber. (Not recommended unless
|
15
|
+
you want to take polyglot programming to an extreme level).
|
16
|
+
|
17
|
+
Another useful new feature is the ability to define environment variables on Cucumber's command line (just
|
18
|
+
like you can with Rake). Example:
|
19
|
+
|
20
|
+
cucumber FOO=BAR --format progress features
|
21
|
+
|
22
|
+
You can now pick up ENV['FOO'] in ruby (for example in env.rb) and take actions according to the value,
|
23
|
+
for example enabling your super hack that validates all HTTP responses for XHTML validity.
|
24
|
+
|
25
|
+
This release also has several bugfixes related to --format and Before/Adter hooks.
|
26
|
+
|
3
27
|
=== Bugfixes
|
28
|
+
* Before and After hooks run after everything is finished whn there are 2+ --format options (#371 Aslak Hellesøy)
|
29
|
+
* When using --out and two --format the first is not delivered inline with execution of features (#361 Aslak Hellesøy)
|
30
|
+
* Profile Formatter broken (#370 Aslak Hellesøy)
|
31
|
+
* Default profile usage with --drb flag degrades gracefully with no server. (#367 Ben Mabey)
|
32
|
+
* JUnit formatter uses original file name instead of narrative to avoid accidental duplicate XML files (Aslak Hellesøy)
|
33
|
+
* rake gems no longer lists cucumber as a [F]ramework gem (David Chelimsky)
|
4
34
|
* CLI issues correct exit code when using --drb. Requires Spork version >= 0.5.1. (#355 Ben Mabey)
|
5
35
|
* Make sure script/generate cucumber --spork uses the cucumber Rails environment (Philippe Lafoucrière)
|
6
36
|
|
37
|
+
=== New Features
|
38
|
+
* Possibility to specify scenario language as part of the .feature file (#345 Aslak Hellesøy)
|
39
|
+
* Support specifying environment variables using foo=bar syntax on command line or in profiles (#362 Bryan Helmkamp)
|
40
|
+
* Display failing scenarios at the end of pretty format to make it easier for people to play them back (#360 Ryan Bigg)
|
41
|
+
|
7
42
|
=== Changed Features
|
8
43
|
* The data returned from Table#hashes and similar methods are frozen. Dup if you need to modify. (Aslak Hellesøy)
|
9
44
|
|
data/Manifest.txt
CHANGED
@@ -246,6 +246,7 @@ examples/watir/features/support/env.rb
|
|
246
246
|
features/after_block_exceptions.feature
|
247
247
|
features/after_step_block_exceptions.feature
|
248
248
|
features/background.feature
|
249
|
+
features/bug_371.feature
|
249
250
|
features/cucumber_cli.feature
|
250
251
|
features/cucumber_cli_diff_disabled.feature
|
251
252
|
features/cucumber_cli_outlines.feature
|
@@ -256,6 +257,7 @@ features/expand.feature
|
|
256
257
|
features/html_formatter.feature
|
257
258
|
features/html_formatter/a.html
|
258
259
|
features/junit_formatter.feature
|
260
|
+
features/language_from_header.feature
|
259
261
|
features/multiline_names.feature
|
260
262
|
features/rake_task.feature
|
261
263
|
features/report_called_undefined_steps.feature
|
@@ -307,6 +309,8 @@ lib/cucumber/core_ext/exception.rb
|
|
307
309
|
lib/cucumber/core_ext/instance_exec.rb
|
308
310
|
lib/cucumber/core_ext/proc.rb
|
309
311
|
lib/cucumber/core_ext/string.rb
|
312
|
+
lib/cucumber/feature_file.rb
|
313
|
+
lib/cucumber/filter.rb
|
310
314
|
lib/cucumber/formatter/ansicolor.rb
|
311
315
|
lib/cucumber/formatter/color_io.rb
|
312
316
|
lib/cucumber/formatter/console.rb
|
@@ -328,6 +332,7 @@ lib/cucumber/parser.rb
|
|
328
332
|
lib/cucumber/parser/feature.rb
|
329
333
|
lib/cucumber/parser/feature.tt
|
330
334
|
lib/cucumber/parser/i18n.tt
|
335
|
+
lib/cucumber/parser/i18n/language.rb
|
331
336
|
lib/cucumber/parser/table.rb
|
332
337
|
lib/cucumber/parser/table.tt
|
333
338
|
lib/cucumber/parser/treetop_ext.rb
|
data/config/hoe.rb
CHANGED
@@ -61,8 +61,7 @@ $hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
|
61
61
|
#p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
|
62
62
|
p.extra_deps = [
|
63
63
|
['term-ansicolor', '>= 1.0.3'],
|
64
|
-
['treetop', '>= 1.2.
|
65
|
-
['polyglot', '>= 0.2.5'], # Remove this when Treetop no longer loads polyglot by default.
|
64
|
+
['treetop', '>= 1.2.6'],
|
66
65
|
['diff-lcs', '>= 1.1.2'],
|
67
66
|
['builder', '>= 2.1.2']
|
68
67
|
]
|
data/examples/i18n/ar/Rakefile
CHANGED
data/examples/i18n/bg/Rakefile
CHANGED
data/examples/i18n/cat/Rakefile
CHANGED
data/examples/i18n/da/Rakefile
CHANGED
data/examples/i18n/de/Rakefile
CHANGED
data/examples/i18n/en/Rakefile
CHANGED
data/examples/i18n/es/Rakefile
CHANGED
data/examples/i18n/et/Rakefile
CHANGED
data/examples/i18n/fi/Rakefile
CHANGED
data/examples/i18n/fr/Rakefile
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
+
# language: fr
|
1
2
|
Fonctionnalité: Addition
|
2
3
|
Afin de gagner du temps lors du calcul de la facture
|
3
4
|
En tant que commerçant
|
4
|
-
Je souhaite pouvoir faire une
|
5
|
+
Je souhaite pouvoir faire une addition
|
5
6
|
|
6
7
|
Plan du Scénario: Addition de deux nombres
|
7
8
|
Soit une calculatrice
|
data/examples/i18n/he/Rakefile
CHANGED
data/examples/i18n/hu/Rakefile
CHANGED
data/examples/i18n/id/Rakefile
CHANGED
data/examples/i18n/it/Rakefile
CHANGED
data/examples/i18n/ja/Rakefile
CHANGED
data/examples/i18n/ko/Rakefile
CHANGED
data/examples/i18n/lt/Rakefile
CHANGED
data/examples/i18n/lv/Rakefile
CHANGED
data/examples/i18n/no/Rakefile
CHANGED
data/examples/i18n/pl/Rakefile
CHANGED