unobtainium 0.7.0 → 0.7.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d69617dc2a12c35e334b4d4e85b680237aef970c
4
- data.tar.gz: fed5f537d65ca9dfe6c5282e6ed5eae2701414a9
3
+ metadata.gz: e0149281bfd2e2da421322b38d4cb69b6d2f4f3a
4
+ data.tar.gz: e7a1e1693bcf73ea35451ddb8e5ecfe4b7e7fd36
5
5
  SHA512:
6
- metadata.gz: 94ec3a3a6520ddfa7a24349c92c50ff603a34afe62a24e0b8bb7e82668e4181f2aaf1d23dc1d84dbfec66b9327628520d48055ed16e0a213cf3b682531d90496
7
- data.tar.gz: 964c731c3fc82ff0c0357ed7f43b0aabbba5ec2d02425180ee0ee3672ff505763391ab8ad796bb5ee7d207d7a3c5008a4e5cf465b312c71bea24cf251f3aab55
6
+ metadata.gz: c0ea47b4d44d75a1c41b3e650a58d6d74ed222783c27c2fc97714f3052a74c29d415ebd9c07dcdeb2942814e5df22878a6ff1f635076ebda9d5cc9bb75142591
7
+ data.tar.gz: 3a42c4515c5ab784905f7eab416d4f57362581054023064fbf0c375c37bd79a2514ad739d0cb8b65cf6fc43bb16968e737d8b274b2b9533705e182fc89562f76
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unobtainium (0.7.0)
5
- collapsium (~> 0.3)
6
- collapsium-config (~> 0.1)
4
+ unobtainium (0.7.1)
5
+ collapsium (~> 0.4)
6
+ collapsium-config (~> 0.2)
7
7
  ptools (~> 1.3)
8
8
  sys-proctable (~> 1.1)
9
9
 
@@ -28,9 +28,9 @@ GEM
28
28
  nokogiri (~> 1.6)
29
29
  codeclimate-test-reporter (0.6.0)
30
30
  simplecov (>= 0.7.1, < 1.0.0)
31
- collapsium (0.3.0)
32
- collapsium-config (0.1.1)
33
- collapsium (~> 0.1)
31
+ collapsium (0.4.1)
32
+ collapsium-config (0.2.1)
33
+ collapsium (~> 0.4)
34
34
  cucumber (2.4.0)
35
35
  builder (>= 2.1.2)
36
36
  cucumber-core (~> 1.5.0)
@@ -66,7 +66,7 @@ GEM
66
66
  rspec-core (~> 3.5.0)
67
67
  rspec-expectations (~> 3.5.0)
68
68
  rspec-mocks (~> 3.5.0)
69
- rspec-core (3.5.1)
69
+ rspec-core (3.5.3)
70
70
  rspec-support (~> 3.5.0)
71
71
  rspec-expectations (3.5.0)
72
72
  diff-lcs (>= 1.2.0, < 2.0)
@@ -75,7 +75,7 @@ GEM
75
75
  diff-lcs (>= 1.2.0, < 2.0)
76
76
  rspec-support (~> 3.5.0)
77
77
  rspec-support (3.5.0)
78
- rubocop (0.41.2)
78
+ rubocop (0.42.0)
79
79
  parser (>= 2.3.1.1, < 3.0)
80
80
  powerpack (~> 0.1)
81
81
  rainbow (>= 1.99.1, < 3.0)
@@ -93,10 +93,10 @@ GEM
93
93
  simplecov-html (~> 0.10.0)
94
94
  simplecov-html (0.10.0)
95
95
  sys-proctable (1.1.1)
96
- tomlrb (1.2.2)
97
- unicode-display_width (1.1.0)
96
+ tomlrb (1.2.3)
97
+ unicode-display_width (1.1.1)
98
98
  websocket (1.2.3)
99
- yard (0.9.0)
99
+ yard (0.9.5)
100
100
 
101
101
  PLATFORMS
102
102
  ruby
@@ -110,7 +110,7 @@ DEPENDENCIES
110
110
  phantomjs
111
111
  rake (~> 11.2)
112
112
  rspec (~> 3.5)
113
- rubocop (~> 0.41)
113
+ rubocop (~> 0.42)
114
114
  selenium-webdriver
115
115
  simplecov (~> 0.12)
116
116
  unobtainium!
@@ -186,15 +186,12 @@ module Unobtainium
186
186
  def get_driver(label)
187
187
  # Of all the loaded classes, choose the first (unsorted) to match the
188
188
  # requested driver label
189
- impl = nil
190
189
  @@drivers.keys.each do |klass|
191
190
  if klass.matches?(label)
192
- impl = klass
193
- break
191
+ return klass
194
192
  end
195
193
  end
196
-
197
- return impl
194
+ return nil
198
195
  end
199
196
  end # class << self
200
197
 
@@ -78,10 +78,10 @@ module Unobtainium
78
78
  # the :url key if the normalized label is remote, and setting
79
79
  # appropriate options.
80
80
  set_url = options['appium_lib.server_url']
81
- if set_url and not set_url == options['url']
81
+ if set_url and options['url'] and not set_url == options['url']
82
82
  warn "You have the remote URL '#{set_url}' set in your options, "\
83
83
  "so we're not replacing it with '#{options['url']}'!"
84
- else
84
+ elsif not set_url
85
85
  options['appium_lib.server_url'] = options['url']
86
86
  end
87
87
 
@@ -8,5 +8,5 @@
8
8
  #
9
9
  module Unobtainium
10
10
  # The current release version
11
- VERSION = "0.7.0".freeze
11
+ VERSION = "0.7.1".freeze
12
12
  end
@@ -107,7 +107,7 @@ describe ::Unobtainium::Driver do
107
107
  it 'will register a module' do
108
108
  expect do
109
109
  ::Unobtainium::Driver.register_module(TestModule, __FILE__)
110
- end.not_to raise_error(LoadError)
110
+ end.not_to raise_error
111
111
  end
112
112
 
113
113
  it 'refuses to register the same module twice' do
@@ -126,7 +126,7 @@ describe ::Unobtainium::Driver do
126
126
  it 'extends a driver with a registered module' do
127
127
  expect do
128
128
  ::Unobtainium::Driver.register_module(TestModule, __FILE__)
129
- end.not_to raise_error(LoadError)
129
+ end.not_to raise_error
130
130
 
131
131
  drv = ::Unobtainium::Driver.create(:mock)
132
132
 
@@ -137,7 +137,7 @@ describe ::Unobtainium::Driver do
137
137
  expect do
138
138
  ::Unobtainium::Driver.register_module(TestModule, __FILE__)
139
139
  ::Unobtainium::Driver.register_module(NonMatchingTestModule, __FILE__)
140
- end.not_to raise_error(LoadError)
140
+ end.not_to raise_error
141
141
 
142
142
  drv = ::Unobtainium::Driver.create(:mock)
143
143
 
@@ -59,7 +59,7 @@ describe ::Unobtainium::Support::Runner do
59
59
 
60
60
  it "refuses to run the command twice without ending it first" do
61
61
  runner = ::Unobtainium::Support::Runner.new("foo", %w(ls -l))
62
- expect { runner.start }.not_to raise_error(RuntimeError)
62
+ expect { runner.start }.not_to raise_error
63
63
  expect { runner.start }.to raise_error(RuntimeError)
64
64
  runner.wait
65
65
  end
@@ -80,6 +80,6 @@ describe ::Unobtainium::Support::Runner do
80
80
 
81
81
  expect do
82
82
  runner.kill
83
- end.to raise_error
83
+ end.to raise_error(RuntimeError)
84
84
  end
85
85
  end
@@ -43,7 +43,7 @@ Gem::Specification.new do |spec|
43
43
  "'phantomjs'"
44
44
 
45
45
  spec.add_development_dependency "bundler", "~> 1.12"
46
- spec.add_development_dependency "rubocop", "~> 0.41"
46
+ spec.add_development_dependency "rubocop", "~> 0.42"
47
47
  spec.add_development_dependency "rake", "~> 11.2"
48
48
  spec.add_development_dependency "rspec", "~> 3.5"
49
49
  spec.add_development_dependency "simplecov", "~> 0.12"
@@ -56,8 +56,8 @@ Gem::Specification.new do |spec|
56
56
 
57
57
  spec.add_dependency "sys-proctable", "~> 1.1"
58
58
  spec.add_dependency "ptools", "~> 1.3"
59
- spec.add_dependency "collapsium", "~> 0.3"
60
- spec.add_dependency "collapsium-config", "~> 0.1"
59
+ spec.add_dependency "collapsium", "~> 0.4"
60
+ spec.add_dependency "collapsium-config", "~> 0.2"
61
61
  end
62
62
  # rubocop:enable Style/SpaceAroundOperators
63
63
  # rubocop:enable Style/UnneededPercentQ, Style/ExtraSpacing
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unobtainium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Finkhaeuser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.41'
33
+ version: '0.42'
34
34
  type: :development
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.41'
40
+ version: '0.42'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -198,28 +198,28 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '0.3'
201
+ version: '0.4'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '0.3'
208
+ version: '0.4'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: collapsium-config
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: '0.1'
215
+ version: '0.2'
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: '0.1'
222
+ version: '0.2'
223
223
  description: "\n Unobtainium wraps Selenium and Appium in a simple driver abstraction
224
224
  so that\n test code can more easily cover desktop browsers, mobile browsers and
225
225
  mobile\n apps.\n\n Some additional useful functionality for the maintenance
@@ -308,4 +308,3 @@ test_files:
308
308
  - spec/spec_helper.rb
309
309
  - spec/utility_spec.rb
310
310
  - spec/world_spec.rb
311
- has_rdoc: