appium_lib 0.22.1 → 0.23.0

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.
@@ -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.22.1' unless defined? ::Appium::VERSION
5
- DATE = '2014-03-20' unless defined? ::Appium::DATE
4
+ VERSION = '0.23.0' unless defined? ::Appium::VERSION
5
+ DATE = '2014-03-21' unless defined? ::Appium::DATE
6
6
  end
@@ -70,13 +70,6 @@ def load_appium_txt opts
70
70
 
71
71
  # ensure app path is resolved correctly from the context of the .txt file
72
72
  ENV['APP_PATH'] = Appium::Driver.absolute_app_path ENV['APP_PATH']
73
-
74
- # device is not case sensitive
75
- ENV['DEVICE'] = ENV['DEVICE'].strip.downcase if !ENV['DEVICE'].nil?
76
- if ! %w(ios android selendroid).include? ENV['DEVICE']
77
- raise %(DEVICE="#{ENV['DEVICE']}" must be ios, android,
78
- or selendroid.)
79
- end
80
73
  end
81
74
 
82
75
  # return list of require files as an array
@@ -304,19 +297,12 @@ module Appium
304
297
  @device = opts.fetch :device, ENV['DEVICE']
305
298
  raise 'Device must be set' unless @device
306
299
 
307
- @version = opts[:version]
308
- if @device == 'Android' || @device == 'Selendroid'
309
- @version = '4.3' unless @version # default android to 4.3
310
- else
311
- @version = '7' unless @version # default ios to 7
312
- end
313
-
314
300
  @device_type = opts.fetch :device_type, 'tablet'
315
301
  @device_orientation = opts.fetch :device_orientation, 'portrait'
316
302
 
317
303
  # load common methods
318
304
  extend Appium::Common
319
- if @device == 'Android'
305
+ if @device.downcase == 'android'
320
306
  # load Android specific methods
321
307
  extend Appium::Android
322
308
  else
@@ -385,7 +371,6 @@ module Appium
385
371
  {
386
372
  compressXml: @compress_xml,
387
373
  platform: 'Linux',
388
- version: @version,
389
374
  device: @device,
390
375
  :'device-type' => @device_type,
391
376
  :'device-orientation' => @device_orientation,
@@ -401,7 +386,6 @@ module Appium
401
386
  def ios_capabilities
402
387
  {
403
388
  platform: 'OS X 10.9',
404
- version: @version,
405
389
  device: @device,
406
390
  name: @app_name || 'Ruby Console iOS Appium',
407
391
  :'device-orientation' => @device_orientation
@@ -410,7 +394,7 @@ module Appium
410
394
 
411
395
  # @private
412
396
  def capabilities
413
- caps = ['iPhone Simulator', 'iPad Simulator'].include?(@device) ? ios_capabilities : android_capabilities
397
+ caps = @device.downcase === 'android' ? android_capabilities : ios_capabilities
414
398
  caps[:app] = self.class.absolute_app_path(@app_path) unless @app_path.nil? || @app_path.empty?
415
399
  caps
416
400
  end
@@ -1,3 +1,10 @@
1
+ #### v0.23.0 2014-03-21
2
+
3
+ - [b6cda97](https://github.com/appium/ruby_lib/commit/b6cda9756f530d712f431df272cf5abdcd678131) Release 0.23.0
4
+ - [8ce3009](https://github.com/appium/ruby_lib/commit/8ce3009ab6c8e957a7cee817df4a658b1ae3a834) Fix caps for new appium
5
+ - [a6e7df2](https://github.com/appium/ruby_lib/commit/a6e7df258daf905c5dbaa6143aca9f5040e1308e) Remove device whitelist from appium.txt
6
+
7
+
1
8
  #### v0.22.1 2014-03-20
2
9
 
3
10
  - [82c40cd](https://github.com/appium/ruby_lib/commit/82c40cdd97eb7278d77b2b668cae554e55f1836d) Release 0.22.1
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.22.1
4
+ version: 0.23.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-20 00:00:00.000000000 Z
11
+ date: 2014-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver