watir_session 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3adaa88a3682df187954194367f6026f7b377da
4
- data.tar.gz: 8e10fc662eae91c3e24fb25c00be3436dd6aa435
3
+ metadata.gz: e7966133ddf25fc8f144c152d15494f80cbea448
4
+ data.tar.gz: 1e8cbe77b9bd1f3b55ef5bddaeab32992380f2de
5
5
  SHA512:
6
- metadata.gz: 84da1181c55aded6b086de90f804170a91e4daa0b6e3d6abdf84717557849c403a4365a5ba0f6007abda1e6189da532a93e567062842ffd411c3873f51adece2
7
- data.tar.gz: 9345fd1d47b0608de667b4a0e95b2699b7ef4a50e82a0b5ab1732eef50f9e48d3a5a71c8dc2d18e6dcda383b2fbbbf27f18ad26d2ebe530e30dbefa764dbde82
6
+ metadata.gz: d7c04aadc84f5ae35a7ceca23d4f615c20f7a6bcbaf6c1bda16716490fa9d94e01063d8b9d83b945ac7b05832bcd5d8a77d87df223cf42fe2168fc1c7b88a2ec
7
+ data.tar.gz: db4e617757e4e3e518567bb624cc5acd416a0587059531704a67c873913206a5a73248aa5e3197da747679fbbf87a02d6993fac39a76fb7d0c77db344494c488
@@ -1,4 +1,4 @@
1
- require 'watir-webdriver'
1
+ require 'watir'
2
2
  require 'watir_model'
3
3
 
4
4
  require 'watir_session/custom_config'
@@ -71,14 +71,16 @@ module WatirSession
71
71
  use_headless_display if watir_config.headless
72
72
 
73
73
  @browser = execute_hook(:create_browser, *args).compact.first
74
+ return @browser if @browser
74
75
 
75
- unless @browser
76
+ if args.empty?
76
77
  http_client = Selenium::WebDriver::Remote::Http::Default.new
77
78
  http_client.timeout = watir_config.http_timeout
78
79
  @browser = Watir::Browser.new(watir_config.browser,
79
80
  http_client: http_client)
81
+ else
82
+ @browser = Watir::Browser.new *args
80
83
  end
81
- @browser
82
84
  end
83
85
 
84
86
  def before_each(*args)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'watir_session'
5
- spec.version = '0.2.0'
5
+ spec.version = '0.2.1'
6
6
  spec.authors = ['Titus Fortner']
7
7
  spec.email = ['titusfortner@gmail.com']
8
8
 
@@ -24,8 +24,8 @@ to configurarion and session data so they do not need to be passed around as par
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ['lib']
26
26
 
27
- spec.add_runtime_dependency 'watir-webdriver'
28
- spec.add_runtime_dependency 'watir_model'
27
+ spec.add_runtime_dependency 'watir', '~> 6.0'
28
+ spec.add_runtime_dependency 'watir_model', '~> 0.2'
29
29
 
30
30
  spec.add_development_dependency 'bundler', '~> 1.11'
31
31
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_session
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-30 00:00:00.000000000 Z
11
+ date: 2016-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: watir-webdriver
14
+ name: watir
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '6.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: watir_model
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '0.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '0.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -122,9 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.4.5.1
125
+ rubygems_version: 2.4.8
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Allows easy access to configuration and session data for Watir tests.
129
129
  test_files: []
130
- has_rdoc: