sauce-cucumber 3.2.1 → 3.3.0

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTFiZDdiZmU1MTNlODhmYzEyY2Y3MjQxZDAwN2IyZjViMmEyYjhlOQ==
4
+ MGEyZWYzOTRhMTYwMmE5OGNjODlmY2IyY2VkOTZhZjkzYWIwM2FjYQ==
5
5
  data.tar.gz: !binary |-
6
- ZjU4ZjQ4ZDc5MzU3NDJiNDBiN2I5YzhmODNmOThlOTQxMjE2NDBhMQ==
6
+ OTE1NTlkNTM5Y2YwYjkxNjc2ODgzNzcxNjcyMDc4MDRmMjFjZjg5Yg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjJiMTYxYjA4NjA1NGZhNTEwYzU4NzQ5ZWZlNDk3MDdmOWJhNDBiMzQxYWQx
10
- NDhmMWEyZjI1ZWQ3NjdmZmZhZDUyMTNmZTk1YTY4ZjI2MmQyMjRiMDQxOTZl
11
- NDcwZjdkMWY4NTEyMjE3ZjYxMGIxMTUwZmM4MmFmMDhjMTQyNmQ=
9
+ ODIxZjFlMmYyNWRmZmNkZTliNWNkMGQ0NzNhMjA0YjVmMjhkNjNhNDgxMWU2
10
+ NDNjODJkYjhjMWZiYjcyMDM2ZTNlYjFmZDhjNGY2OGE3NzM4MDQyY2NlMjlh
11
+ MDEwYzk0YTU4ZTI2YjQ1ZWU3Y2YwYTY5ZjhkZTYxOWQ3MDQ0ZWM=
12
12
  data.tar.gz: !binary |-
13
- MGYyNmQxYjQxYzI2MmIzYWRlODI5ZWNkMWE0YTBlYjQ5NDY3OTdhMGRiMjNj
14
- YWRhNzVmMzg5ODAyNGQ5NTIxZWE0ODEwOGM2ZjJlY2EzY2IyZTAzOTgwYjkx
15
- MDg2NmRlYjAyMTJkMGI2NTMxMWJiM2FjY2QwMjQ2YzMxMGFiMzM=
13
+ ZjFhNzYxZTllYzlkY2Q3MTkxOWM5ZWEwMDQwMTBiZGJhMGIxZjU4MjNiYmQx
14
+ MjIzMjljOTc1ZDQ2ODMzOGI0ZWEwNWE2MTkzM2I4MGQ2MzBhMjA5YjJmZDJm
15
+ OWNmOTE5MjdhNTQwYjdiMmQ4NDg0MGZlNjVhMDdmNDg0ZTFlOWQ=
@@ -29,9 +29,9 @@ module Sauce
29
29
  if scenario.instance_of? ::Cucumber::Ast::OutlineTable::ExampleRow
30
30
  table = scenario.instance_variable_get(:@table)
31
31
  outline = table.instance_variable_get(:@scenario_outline)
32
- return outline.feature.file
32
+ return {:file => outline.feature.file, :line => outline.feature.line}
33
33
  end
34
- return scenario.location.file
34
+ return {:file => scenario.location.file, :line => scenario.location.line}
35
35
  end
36
36
  module_function :file_name_from_scenario
37
37
 
@@ -86,9 +86,10 @@ module Sauce
86
86
  c[:name] = Sauce::Capybara::Cucumber.name_from_scenario(scenario)
87
87
  end
88
88
 
89
- filename = file_name_from_scenario(scenario)
89
+ fn = file_name_from_scenario(scenario)
90
+ config = Sauce::Config.new
90
91
 
91
- Sauce::Config.new.browsers_for_file("./#{filename}").each do |os, browser, version|
92
+ config.browsers_for_location("./#{fn[:file]}", fn[:line]).each do |os, browser, version|
92
93
  @selenium = Sauce::Selenium2.new({:os => os,
93
94
  :browser => browser,
94
95
  :browser_version => version,
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = "sauce-cucumber"
15
15
  gem.require_paths = ["lib"]
16
- gem.version = "#{Sauce::MAJOR_VERSION}.1"
16
+ gem.version = "#{Sauce::MAJOR_VERSION}.0"
17
17
 
18
18
  gem.add_dependency('sauce', "~> #{Sauce.version}")
19
19
  gem.add_dependency('sauce_whisk', "~>0.0.10")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sauce-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - R. Tyler Croy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-27 00:00:00.000000000 Z
12
+ date: 2014-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sauce
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: 3.2.0
20
+ version: 3.3.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 3.2.0
27
+ version: 3.3.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: sauce_whisk
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -90,4 +90,3 @@ signing_key:
90
90
  specification_version: 4
91
91
  summary: ''
92
92
  test_files: []
93
- has_rdoc: