appium_lib 0.23.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Appium
3
3
  # Version and Date are defined on the 'Appium' module, not 'Appium::Common'
4
- VERSION = '0.23.0' unless defined? ::Appium::VERSION
5
- DATE = '2014-03-21' unless defined? ::Appium::DATE
4
+ VERSION = '0.24.0' unless defined? ::Appium::VERSION
5
+ DATE = '2014-03-25' unless defined? ::Appium::DATE
6
6
  end
@@ -252,7 +252,6 @@ module Appium
252
252
  @custom_url = opts.fetch :server_url, false
253
253
 
254
254
  @compress_xml = opts[:compress_xml] ? true : false
255
- @fast_clear = opts[:fast_clear] ? true : false
256
255
 
257
256
  @export_session = opts.fetch :export_session, false
258
257
 
@@ -300,6 +299,16 @@ module Appium
300
299
  @device_type = opts.fetch :device_type, 'tablet'
301
300
  @device_orientation = opts.fetch :device_orientation, 'portrait'
302
301
 
302
+ @full_reset = opts.fetch :full_reset, true
303
+ @no_reset = opts.fetch :no_reset, false
304
+
305
+ # handle reset dependencies
306
+ # when full reset is requested, then "no reset" should not be true
307
+ @no_reset = false if @full_reset
308
+ @full_reset = false if @no_reset
309
+ @fastReset = ! @full_reset && ! @no_reset
310
+ @skipUninstall = @fastReset || @no_reset
311
+
303
312
  # load common methods
304
313
  extend Appium::Common
305
314
  if @device.downcase == 'android'
@@ -371,7 +380,11 @@ module Appium
371
380
  {
372
381
  compressXml: @compress_xml,
373
382
  platform: 'Linux',
374
- device: @device,
383
+ platformName: @device,
384
+ fullReset: @full_reset,
385
+ fastReset: @fast_reset,
386
+ noReset: @no_reset,
387
+ skipUninstall: @skip_uninstall,
375
388
  :'device-type' => @device_type,
376
389
  :'device-orientation' => @device_orientation,
377
390
  name: @app_name || 'Ruby Console Android Appium',
@@ -386,7 +399,7 @@ module Appium
386
399
  def ios_capabilities
387
400
  {
388
401
  platform: 'OS X 10.9',
389
- device: @device,
402
+ platformName: @device,
390
403
  name: @app_name || 'Ruby Console iOS Appium',
391
404
  :'device-orientation' => @device_orientation
392
405
  }.merge(@raw_capabilities)
@@ -1,3 +1,9 @@
1
+ #### v0.24.0 2014-03-25
2
+
3
+ - [937f782](https://github.com/appium/ruby_lib/commit/937f7822bd5e248e2bdbc43a4602611d18df5d78) Release 0.24.0
4
+ - [6e3fd72](https://github.com/appium/ruby_lib/commit/6e3fd720d90eda14f284c04ae4b8edb62ca7c010) fast_clear is no more
5
+
6
+
1
7
  #### v0.23.0 2014-03-21
2
8
 
3
9
  - [b6cda97](https://github.com/appium/ruby_lib/commit/b6cda9756f530d712f431df272cf5abdcd678131) Release 0.23.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-21 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver