watir_session 0.1.1 → 0.2.0

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: b8dbe01ed4a189544d75a9dd9442da5de4230658
4
- data.tar.gz: 58006e6f4a52159e702fe9d0231f72c33e19027d
3
+ metadata.gz: a3adaa88a3682df187954194367f6026f7b377da
4
+ data.tar.gz: 8e10fc662eae91c3e24fb25c00be3436dd6aa435
5
5
  SHA512:
6
- metadata.gz: 711eabec5d9b973ded56125c98c010061cc98f6363bd4d85ec5eb41cae7e1cd010717cae92e73b2b25a0030a1e0412c26581535c041c584f6d32831e0081674d
7
- data.tar.gz: 9c4a2f18ca0a97d6b5ea4e8a342d94495dabc790424e9eb190b2df87295b925be563af312ec915e448e5bde843f469787cde4c21b99b53006c3e3d2e7593a9fa
6
+ metadata.gz: 84da1181c55aded6b086de90f804170a91e4daa0b6e3d6abdf84717557849c403a4365a5ba0f6007abda1e6189da532a93e567062842ffd411c3873f51adece2
7
+ data.tar.gz: 9345fd1d47b0608de667b4a0e95b2699b7ef4a50e82a0b5ab1732eef50f9e48d3a5a71c8dc2d18e6dcda383b2fbbbf27f18ad26d2ebe530e30dbefa764dbde82
@@ -1,5 +1,3 @@
1
- require 'watir_model'
2
-
3
1
  class CustomConfig < WatirModel
4
2
 
5
3
  # Implement this class in your project
@@ -1,5 +1,3 @@
1
- require 'watir_model'
2
-
3
1
  class WatirConfig < WatirModel
4
2
 
5
3
  ## --Browser Options-- ##
@@ -31,7 +31,7 @@ module WatirSession
31
31
  config = config[custom_config.send(config_name.singularize)]
32
32
  end
33
33
  obj = Object.const_get("#{config_name.capitalize}Config").new(config)
34
- custom_config.send("#{config_name}=", obj)
34
+ custom_config.send("#{config_name.singularize}=", obj)
35
35
  end
36
36
 
37
37
  def registered_sessions
data/lib/watir_session.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'watir-webdriver'
2
+ require 'watir_model'
2
3
 
3
4
  require 'watir_session/custom_config'
4
5
  require 'watir_session/watir_config'
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'watir_session'
5
- spec.version = '0.1.1'
5
+ spec.version = '0.2.0'
6
6
  spec.authors = ['Titus Fortner']
7
7
  spec.email = ['titusfortner@gmail.com']
8
8
 
@@ -24,11 +24,11 @@ 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'
29
+
27
30
  spec.add_development_dependency 'bundler', '~> 1.11'
28
31
  spec.add_development_dependency 'rake', '~> 10.0'
29
32
  spec.add_development_dependency 'rspec', '~> 3.0'
30
- spec.add_development_dependency 'headless' # This only gets required when on Linux
31
- spec.add_development_dependency 'watir-webdriver'
32
- spec.add_development_dependency 'watir_model'
33
33
 
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_session
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
@@ -11,89 +11,75 @@ cert_chain: []
11
11
  date: 2016-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: watir-webdriver
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.11'
20
- type: :development
19
+ version: '0'
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: '1.11'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: watir_model
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
34
- type: :development
33
+ version: '0'
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: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '1.11'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
55
- - !ruby/object:Gem::Dependency
56
- name: headless
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
54
+ version: '1.11'
69
55
  - !ruby/object:Gem::Dependency
70
- name: watir-webdriver
56
+ name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - ">="
59
+ - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '0'
61
+ version: '10.0'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ">="
66
+ - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: '10.0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: watir_model
70
+ name: rspec
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ">="
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '0'
75
+ version: '3.0'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ">="
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '0'
82
+ version: '3.0'
97
83
  description: |-
98
84
  This gem leverages the Watir test library to allow for easy access
99
85
  to configurarion and session data so they do not need to be passed around as parameters throughout your tests.