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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d018d97c9449b2d1e878e6d178baebdbf719b0b8
4
- data.tar.gz: '05779e9479a2054288025624165c16f5aab7e1f1'
3
+ metadata.gz: ffa7e2ecdd4425b9e6dc9c72e0c7b65b85c16d7b
4
+ data.tar.gz: 18dc0914961262a3aab445ca47bf47daeb71404d
5
5
  SHA512:
6
- metadata.gz: 71964b486ff15cea90fd4c1fd415de22b9dabfb70488de96833dd1e289158da5f4de74fa3ff4650733505148e7b6d7f177ae18ede089dff2186c273db35b941f
7
- data.tar.gz: d1a36055f12246897509f1c8528a9bf4f2c8470d81a8c2bfb5f5f80dc6df1ba23b36c73136907743b319fe11c317204a2d5a1781daafdbca7208c0a7cb278abe
6
+ metadata.gz: 6b0ee2931ba55684dfc41b52f8a92c1ab1ae9f95d409201a9fcf064c9bff58a9644ed86bfbe98b0072306d474e5f374fc79d1b56c6fb87abadb6cfdf096825ea
7
+ data.tar.gz: 76eacec4dde636c2410845c54a62ab83c9281299f7ce0d2d4d77d39f5557ab80eabebc33c0a25663d99d1d08b2c76cddba8fb4331952fed198a6a11b15ad8a07
@@ -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 = [:chrome]
284
+ b = :chrome
285
285
  when 'safari'
286
- b = [:safari]
286
+ b = :safari
287
287
  when 'ie'
288
288
  require 'rbconfig'
289
289
  if (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
290
- b = [:ie]
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 = [:iphone]
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 = [:remote]
301
+ b = :remote
302
302
  else
303
- b = [:firefox, marionette: true]
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
@@ -6,5 +6,5 @@
6
6
  # All rights reserved.
7
7
  #
8
8
  module LapisLazuli
9
- VERSION = "0.8.5"
9
+ VERSION = "0.8.6"
10
10
  end
@@ -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] || brow.driver.capabilities[:browser_version],
65
- "platform" => brow.driver.capabilities[:platform] || brow.driver.capabilities[:platform_name],
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
- return self.config("#{@env}.#{variable}",default)
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.5
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-04 00:00:00.000000000 Z
14
+ date: 2016-07-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler