aslakhellesoy-cucumber 0.1.99.23 → 0.1.100.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -6
- data/Manifest.txt +8 -2
- data/examples/i18n/et/features/jagamine.feature +9 -0
- data/examples/jbehave/README.textile +4 -1
- data/examples/jbehave/features/trading.feature +4 -0
- data/examples/jbehave/pom.xml +5 -0
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/scenarios/TraderSteps.java +6 -1
- data/examples/selenium/features/step_definitons/search_steps.rb +13 -0
- data/examples/selenium/features/support/env.rb +19 -0
- data/examples/selenium_webrat/Rakefile +6 -0
- data/examples/selenium_webrat/features/search.feature +9 -0
- data/examples/selenium_webrat/features/step_definitons/search_steps.rb +13 -0
- data/examples/selenium_webrat/features/support/env.rb +41 -0
- data/examples/self_test/features/background/failing_background.feature +1 -0
- data/examples/self_test/features/step_definitions/sample_steps.rb +1 -1
- data/examples/self_test/features/support/tag_count_formatter.rb +1 -1
- data/features/background.feature +9 -11
- data/features/cucumber_cli.feature +24 -1
- data/features/cucumber_cli_outlines.feature +10 -19
- data/features/report_called_undefined_steps.feature +2 -0
- data/gem_tasks/rspec.rake +2 -0
- data/lib/cucumber.rb +7 -15
- data/lib/cucumber/ast.rb +3 -3
- data/lib/cucumber/ast/background.rb +28 -66
- data/lib/cucumber/ast/examples.rb +15 -3
- data/lib/cucumber/ast/feature.rb +20 -24
- data/lib/cucumber/ast/feature_element.rb +46 -0
- data/lib/cucumber/ast/features.rb +2 -21
- data/lib/cucumber/ast/outline_table.rb +46 -14
- data/lib/cucumber/ast/py_string.rb +8 -3
- data/lib/cucumber/ast/scenario.rb +34 -73
- data/lib/cucumber/ast/scenario_outline.rb +40 -42
- data/lib/cucumber/ast/step.rb +53 -89
- data/lib/cucumber/ast/step_collection.rb +66 -0
- data/lib/cucumber/ast/step_invocation.rb +106 -0
- data/lib/cucumber/ast/table.rb +38 -19
- data/lib/cucumber/ast/tags.rb +4 -11
- data/lib/cucumber/ast/visitor.rb +31 -19
- data/lib/cucumber/broadcaster.rb +1 -1
- data/lib/cucumber/cli/configuration.rb +24 -16
- data/lib/cucumber/cli/language_help_formatter.rb +4 -4
- data/lib/cucumber/cli/main.rb +5 -4
- data/lib/cucumber/core_ext/proc.rb +2 -2
- data/lib/cucumber/formatter/ansicolor.rb +0 -1
- data/lib/cucumber/formatter/console.rb +18 -34
- data/lib/cucumber/formatter/html.rb +13 -10
- data/lib/cucumber/formatter/pretty.rb +48 -36
- data/lib/cucumber/formatter/profile.rb +6 -6
- data/lib/cucumber/formatter/progress.rb +12 -20
- data/lib/cucumber/formatter/rerun.rb +5 -5
- data/lib/cucumber/jbehave.rb +21 -26
- data/lib/cucumber/parser/feature.rb +26 -29
- data/lib/cucumber/parser/feature.tt +17 -12
- data/lib/cucumber/parser/treetop_ext.rb +13 -13
- data/lib/cucumber/platform.rb +0 -1
- data/lib/cucumber/rails/world.rb +2 -2
- data/lib/cucumber/rake/task.rb +0 -1
- data/lib/cucumber/step_definition.rb +21 -12
- data/lib/cucumber/step_match.rb +49 -0
- data/lib/cucumber/step_mother.rb +98 -80
- data/lib/cucumber/version.rb +2 -2
- data/lib/cucumber/world.rb +42 -0
- data/rails_generators/cucumber/templates/paths.rb +1 -1
- data/rails_generators/cucumber/templates/webrat_steps.rb +17 -17
- data/rails_generators/feature/feature_generator.rb +4 -0
- data/rails_generators/feature/templates/steps.erb +0 -4
- data/spec/cucumber/ast/background_spec.rb +32 -41
- data/spec/cucumber/ast/feature_factory.rb +10 -1
- data/spec/cucumber/ast/feature_spec.rb +7 -30
- data/spec/cucumber/ast/scenario_outline_spec.rb +3 -0
- data/spec/cucumber/ast/scenario_spec.rb +8 -25
- data/spec/cucumber/ast/step_collection_spec.rb +8 -0
- data/spec/cucumber/ast/step_spec.rb +37 -29
- data/spec/cucumber/ast/tags_spec.rb +2 -18
- data/spec/cucumber/cli/configuration_spec.rb +7 -0
- data/spec/cucumber/cli/main_spec.rb +1 -1
- data/spec/cucumber/parser/feature_parser_spec.rb +6 -5
- data/spec/cucumber/step_definition_spec.rb +5 -5
- data/spec/cucumber/step_mother_spec.rb +6 -6
- data/spec/cucumber/world/pending_spec.rb +1 -1
- metadata +17 -5
- data/lib/cucumber/ast/filter.rb +0 -22
- data/lib/cucumber/ast/steps.rb +0 -13
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.1.
|
4
|
+
version: 0.1.100.1
|
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-03-
|
12
|
+
date: 2009-03-16 00:00:00 -07:00
|
13
13
|
default_executable: cucumber
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- examples/i18n/es/features/step_definitons/calculador_steps.rb
|
128
128
|
- examples/i18n/es/lib/calculador.rb
|
129
129
|
- examples/i18n/et/Rakefile
|
130
|
+
- examples/i18n/et/features/jagamine.feature
|
130
131
|
- examples/i18n/et/features/liitmine.feature
|
131
132
|
- examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
|
132
133
|
- examples/i18n/et/lib/kalkulaator.rb
|
@@ -213,9 +214,15 @@ files:
|
|
213
214
|
- examples/jbehave/src/main/java/cukes/jbehave/examples/trader/model/Trader.java
|
214
215
|
- examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
|
215
216
|
- examples/jbehave/src/main/java/cukes/jbehave/examples/trader/scenarios/TraderSteps.java
|
217
|
+
- examples/jbehave/target/maven-archiver/pom.properties
|
216
218
|
- examples/selenium/Rakefile
|
217
219
|
- examples/selenium/features/search.feature
|
218
|
-
- examples/selenium/features/step_definitons/
|
220
|
+
- examples/selenium/features/step_definitons/search_steps.rb
|
221
|
+
- examples/selenium/features/support/env.rb
|
222
|
+
- examples/selenium_webrat/Rakefile
|
223
|
+
- examples/selenium_webrat/features/search.feature
|
224
|
+
- examples/selenium_webrat/features/step_definitons/search_steps.rb
|
225
|
+
- examples/selenium_webrat/features/support/env.rb
|
219
226
|
- examples/self_test/README.textile
|
220
227
|
- examples/self_test/Rakefile
|
221
228
|
- examples/self_test/features/background/failing_background.feature
|
@@ -291,14 +298,15 @@ files:
|
|
291
298
|
- lib/cucumber/ast/comment.rb
|
292
299
|
- lib/cucumber/ast/examples.rb
|
293
300
|
- lib/cucumber/ast/feature.rb
|
301
|
+
- lib/cucumber/ast/feature_element.rb
|
294
302
|
- lib/cucumber/ast/features.rb
|
295
|
-
- lib/cucumber/ast/filter.rb
|
296
303
|
- lib/cucumber/ast/outline_table.rb
|
297
304
|
- lib/cucumber/ast/py_string.rb
|
298
305
|
- lib/cucumber/ast/scenario.rb
|
299
306
|
- lib/cucumber/ast/scenario_outline.rb
|
300
307
|
- lib/cucumber/ast/step.rb
|
301
|
-
- lib/cucumber/ast/
|
308
|
+
- lib/cucumber/ast/step_collection.rb
|
309
|
+
- lib/cucumber/ast/step_invocation.rb
|
302
310
|
- lib/cucumber/ast/table.rb
|
303
311
|
- lib/cucumber/ast/tags.rb
|
304
312
|
- lib/cucumber/ast/visitor.rb
|
@@ -338,8 +346,10 @@ files:
|
|
338
346
|
- lib/cucumber/rails/world.rb
|
339
347
|
- lib/cucumber/rake/task.rb
|
340
348
|
- lib/cucumber/step_definition.rb
|
349
|
+
- lib/cucumber/step_match.rb
|
341
350
|
- lib/cucumber/step_mother.rb
|
342
351
|
- lib/cucumber/version.rb
|
352
|
+
- lib/cucumber/world.rb
|
343
353
|
- rails_generators/cucumber/USAGE
|
344
354
|
- rails_generators/cucumber/cucumber_generator.rb
|
345
355
|
- rails_generators/cucumber/templates/cucumber
|
@@ -357,6 +367,7 @@ files:
|
|
357
367
|
- spec/cucumber/ast/py_string_spec.rb
|
358
368
|
- spec/cucumber/ast/scenario_outline_spec.rb
|
359
369
|
- spec/cucumber/ast/scenario_spec.rb
|
370
|
+
- spec/cucumber/ast/step_collection_spec.rb
|
360
371
|
- spec/cucumber/ast/step_spec.rb
|
361
372
|
- spec/cucumber/ast/table_spec.rb
|
362
373
|
- spec/cucumber/ast/tags_spec.rb
|
@@ -397,6 +408,7 @@ files:
|
|
397
408
|
- spec/cucumber/world/pending_spec.rb
|
398
409
|
- spec/spec.opts
|
399
410
|
- spec/spec_helper.rb
|
411
|
+
- target/maven-archiver/pom.properties
|
400
412
|
has_rdoc: true
|
401
413
|
homepage: http://cukes.info
|
402
414
|
post_install_message:
|
data/lib/cucumber/ast/filter.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
module Cucumber
|
2
|
-
module Ast
|
3
|
-
class Filter
|
4
|
-
def initialize(options)
|
5
|
-
@options = options
|
6
|
-
end
|
7
|
-
|
8
|
-
def matched?(node)
|
9
|
-
matched_by_tags?(node) &&
|
10
|
-
matched_by_scenario_names?(node)
|
11
|
-
end
|
12
|
-
|
13
|
-
def matched_by_tags?(node)
|
14
|
-
@options[:tags].empty? || node.tagged_with?(@options[:tags])
|
15
|
-
end
|
16
|
-
|
17
|
-
def matched_by_scenario_names?(node)
|
18
|
-
@options[:scenario_names].empty? || node.matches_scenario_names?(@options[:scenario_names])
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|