appium_lib 0.6.2 → 0.6.3
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 +4 -4
- data/Rakefile +1 -2
- data/docs/android_docs.md +115 -103
- data/docs/ios_docs.md +114 -102
- data/lib/appium_lib/common/version.rb +1 -1
- data/lib/appium_lib/driver.rb +20 -2
- data/release_notes.md +8 -0
- metadata +1 -1
@@ -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.6.
|
4
|
+
VERSION = '0.6.3' unless defined? ::Appium::VERSION
|
5
5
|
DATE = '2013-08-07' unless defined? ::Appium::DATE
|
6
6
|
end
|
data/lib/appium_lib/driver.rb
CHANGED
@@ -5,6 +5,22 @@ https://github.com/appium/appium/blob/82995f47408530c80c3376f4e07a1f649d96ba22/s
|
|
5
5
|
https://github.com/appium/appium/blob/c58eeb66f2d6fa3b9a89d188a2e657cca7cb300f/LICENSE
|
6
6
|
=end
|
7
7
|
|
8
|
+
require 'rubygems'
|
9
|
+
require 'ap'
|
10
|
+
|
11
|
+
# Support OpenStruct in Awesome Print
|
12
|
+
# /awesome_print/lib/awesome_print/formatter.rb
|
13
|
+
# upstream issue: https://github.com/michaeldv/awesome_print/pull/36
|
14
|
+
class AwesomePrint::Formatter
|
15
|
+
remove_const :CORE if defined?(CORE)
|
16
|
+
CORE = [ :array, :hash, :class, :file, :dir, :bigdecimal, :rational, :struct, :openstruct, :method, :unboundmethod ]
|
17
|
+
|
18
|
+
def awesome_openstruct target
|
19
|
+
awesome_hash target.marshal_dump
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
|
8
24
|
# Load appium.txt (toml format) into system ENV
|
9
25
|
# the basedir of this file + appium.txt is what's used
|
10
26
|
# @param opts [Hash] file: '/path/to/appium.txt', verbose: true
|
@@ -34,7 +50,6 @@ def load_appium_txt opts
|
|
34
50
|
|
35
51
|
if toml_exists
|
36
52
|
require 'toml'
|
37
|
-
require 'ap'
|
38
53
|
puts "Loading #{toml}" if verbose
|
39
54
|
|
40
55
|
# bash requires A="OK"
|
@@ -58,8 +73,11 @@ def load_appium_txt opts
|
|
58
73
|
ENV['APP_PATH'] = File.expand_path ENV['APP_PATH'] if ENV['APP_PATH'] &&
|
59
74
|
!ENV['APP_PATH'].empty?
|
60
75
|
|
76
|
+
# device is not case sensitive
|
77
|
+
ENV['DEVICE'] = ENV['DEVICE'].strip.downcase if !ENV['DEVICE'].nil?
|
61
78
|
if ! %w(ios android selendroid).include? ENV['DEVICE']
|
62
|
-
raise 'DEVICE must be ios, android,
|
79
|
+
raise %(DEVICE="#{ENV['DEVICE']}" must be ios, android,
|
80
|
+
or selendroid.)
|
63
81
|
end
|
64
82
|
end
|
65
83
|
|
data/release_notes.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
#### v0.6.2 2013-08-07
|
2
|
+
|
3
|
+
- [509e7b8](https://github.com/appium/ruby_lib/commit/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4) Release 0.6.2
|
4
|
+
- [69a698b](https://github.com/appium/ruby_lib/commit/69a698b0ba7b3aa7bbe8846711eac8da0108552e) Add px_to_window_rel
|
5
|
+
- [218185f](https://github.com/appium/ruby_lib/commit/218185fea68277537ed47dbc9312c874e26489b9) Add promote example
|
6
|
+
- [b57772c](https://github.com/appium/ruby_lib/commit/b57772c48c409d981518d9aee7ab1b7accd3465a) Fix comments
|
7
|
+
|
8
|
+
|
1
9
|
#### v0.6.1 2013-08-05
|
2
10
|
|
3
11
|
- [44b4b29](https://github.com/appium/ruby_lib/commit/44b4b29596b59b1d8a7a7ab7485f176a84143ac3) Release 0.6.1
|