lapis_lazuli 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lapis_lazuli/browser.rb +7 -7
- data/lib/lapis_lazuli/version.rb +1 -1
- data/lib/lapis_lazuli/world/browser.rb +2 -2
- data/lib/lapis_lazuli/world/config.rb +9 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffa7e2ecdd4425b9e6dc9c72e0c7b65b85c16d7b
|
4
|
+
data.tar.gz: 18dc0914961262a3aab445ca47bf47daeb71404d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b0ee2931ba55684dfc41b52f8a92c1ab1ae9f95d409201a9fcf064c9bff58a9644ed86bfbe98b0072306d474e5f374fc79d1b56c6fb87abadb6cfdf096825ea
|
7
|
+
data.tar.gz: 76eacec4dde636c2410845c54a62ab83c9281299f7ce0d2d4d77d39f5557ab80eabebc33c0a25663d99d1d08b2c76cddba8fb4331952fed198a6a11b15ad8a07
|
data/lib/lapis_lazuli/browser.rb
CHANGED
@@ -281,29 +281,29 @@ module LapisLazuli
|
|
281
281
|
case browser_wanted.to_s.downcase
|
282
282
|
when 'chrome'
|
283
283
|
# Check Platform running script
|
284
|
-
b =
|
284
|
+
b = :chrome
|
285
285
|
when 'safari'
|
286
|
-
b =
|
286
|
+
b = :safari
|
287
287
|
when 'ie'
|
288
288
|
require 'rbconfig'
|
289
289
|
if (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
|
290
|
-
b =
|
290
|
+
b = :ie
|
291
291
|
else
|
292
292
|
world.error("You can't run IE tests on non-Windows machine")
|
293
293
|
end
|
294
294
|
when 'ios'
|
295
295
|
if RUBY_PLATFORM.downcase.include?("darwin")
|
296
|
-
b =
|
296
|
+
b = :iphone
|
297
297
|
else
|
298
298
|
world.error("You can't run IOS tests on non-mac machine")
|
299
299
|
end
|
300
300
|
when 'remote'
|
301
|
-
b =
|
301
|
+
b = :remote
|
302
302
|
else
|
303
|
-
b =
|
303
|
+
b = :firefox
|
304
304
|
end
|
305
305
|
|
306
|
-
args = b
|
306
|
+
args = [b]
|
307
307
|
@browser_name = b.to_s
|
308
308
|
if b == :remote
|
309
309
|
# Get the config
|
data/lib/lapis_lazuli/version.rb
CHANGED
@@ -61,8 +61,8 @@ module WorldModule
|
|
61
61
|
"browser",
|
62
62
|
{
|
63
63
|
"name" => brow.driver.capabilities[:browser_name],
|
64
|
-
"version" => brow.driver.capabilities[:version]
|
65
|
-
"platform" => brow.driver.capabilities[:platform]
|
64
|
+
"version" => brow.driver.capabilities[:version],
|
65
|
+
"platform" => brow.driver.capabilities[:platform],
|
66
66
|
}
|
67
67
|
)
|
68
68
|
end
|
@@ -260,7 +260,7 @@ module WorldModule
|
|
260
260
|
##
|
261
261
|
# Get a environment variable from the config file
|
262
262
|
# Alias for ll.config(ll.env + "." + variable)
|
263
|
-
def env(variable=false, default=nil)
|
263
|
+
def env(variable=false, default=(no_default_set=true;nil))
|
264
264
|
# Make sure the configured configuration is loaded, if possible
|
265
265
|
init
|
266
266
|
|
@@ -275,7 +275,14 @@ module WorldModule
|
|
275
275
|
return env_var
|
276
276
|
end
|
277
277
|
|
278
|
-
|
278
|
+
result = self.config("#{@env}.#{variable}",default)
|
279
|
+
|
280
|
+
if no_default_set == true and result.nil?
|
281
|
+
raise "Unknown environment variable '#{@env}.#{variable}' and no default given"
|
282
|
+
end
|
283
|
+
|
284
|
+
return result
|
285
|
+
|
279
286
|
end
|
280
287
|
|
281
288
|
##
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lapis_lazuli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Onno Steenbergen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-07-
|
14
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|