appium_lib 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Rakefile +42 -0
- data/lib/appium_lib/console.rb +10 -4
- data/lib/appium_lib/version.rb +2 -2
- data/release_notes.md +54 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjdhNGRmNDM4NjZlMjEwOTc3ZTMyYmUzNDA3NzI3NDViNzUzZGM0ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmMwNGJlOTYzNGVjODA0MmYyODAwZWI0NWU4OTEzYWY4ZGUwMGVhZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWUzY2IyOGYzYjYxZGJlOTgxMWEzNTYxYmEzYzE5YzAyMDJhNDExZDhjYTQy
|
10
|
+
ZGY4ZDVkNTg3YmI4NTQ0MGVjOGVkNjI1MzQ5MjFkNDAzZWU2Y2IzYWJjNDhl
|
11
|
+
NTFhYTExMzQ5MDE0ZTYyYmM2MWE5ZjNmZjJhNzMxYWZlZWM3OTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTUwYjA2ZGMxYmFiM2RjOGM1NTM4MzA0ODU4Y2UwZGFlMjEyMDA2NzU5NzMw
|
14
|
+
YmFjZGUwNDc1NzE0ODYzZWViMzVmNjU0NjJmMGQ2NGRkMGQzZDkzNWRjOWUx
|
15
|
+
ODdkOTZkZTg5NThkZjZkOWNhMjI2YWIxYzVkNWUwMDk4MDE5ODg=
|
data/Rakefile
CHANGED
@@ -52,6 +52,8 @@ task :release => :gem do
|
|
52
52
|
exit!
|
53
53
|
end
|
54
54
|
|
55
|
+
Rake::Task['notes'].execute
|
56
|
+
|
55
57
|
# Commit then pull before pushing.
|
56
58
|
sh "git commit --allow-empty -am 'Release #{version}'"
|
57
59
|
sh 'git pull'
|
@@ -80,3 +82,43 @@ task :install => :gem do
|
|
80
82
|
`gem uninstall -aIx #{repo_name}`
|
81
83
|
sh "gem install --no-rdoc --no-ri #{repo_name}-#{version}.gem"
|
82
84
|
end
|
85
|
+
|
86
|
+
desc 'Update release notes'
|
87
|
+
task :notes do
|
88
|
+
tags = `git tag`.split "\n"
|
89
|
+
pairs = []
|
90
|
+
tags.each_index { |a| pairs.push tags[a] + '...' + tags[a+1] unless tags[a+1].nil? }
|
91
|
+
|
92
|
+
notes = ''
|
93
|
+
|
94
|
+
dates = `git log --tags --simplify-by-decoration --pretty="format:%d %ad" --date=short`.split "\n"
|
95
|
+
pairs.reverse! # pairs are in reverse order.
|
96
|
+
|
97
|
+
tag_date = []
|
98
|
+
pairs.each do |pair|
|
99
|
+
tag = pair.split('...').last
|
100
|
+
dates.each do |line|
|
101
|
+
# regular tag, or tag on master.
|
102
|
+
if line.include?('(' + tag + ')') || line.include?(tag + ',')
|
103
|
+
tag_date.push tag + ' ' + line.match(/\d{4}-\d{2}-\d{2}/)[0]
|
104
|
+
break
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
pairs.each_index do |a|
|
110
|
+
data =`git log --pretty=oneline #{pairs[a]}`
|
111
|
+
new_data = ''
|
112
|
+
data.split("\n").each do |line|
|
113
|
+
hex = line.match(/[a-zA-Z0-9]+/)[0];
|
114
|
+
# use first 7 chars to match GitHub
|
115
|
+
new_data += "- [#{hex[0...7]}](https://github.com/appium/ruby_lib/commit/#{hex}) #{line.gsub(hex, '').strip}\n"
|
116
|
+
end
|
117
|
+
data = new_data + "\n"
|
118
|
+
|
119
|
+
# last pair is the released version.
|
120
|
+
notes += "#### #{tag_date[a]}\n\n" + data + "\n"
|
121
|
+
end
|
122
|
+
|
123
|
+
File.open('release_notes.md', 'w') { |f| f.write notes.to_s.strip }
|
124
|
+
end
|
data/lib/appium_lib/console.rb
CHANGED
@@ -58,14 +58,20 @@ require 'button'
|
|
58
58
|
require 'text'
|
59
59
|
require 'window'
|
60
60
|
require 'patch'
|
61
|
-
require 'alert'
|
62
61
|
|
63
62
|
# Android combines secure and textfield.
|
64
63
|
# iOS differentiates between secure and textfield.
|
65
64
|
# combine secure & textfield on iOS to match Android behavior.
|
66
|
-
$os == :ios
|
67
|
-
|
68
|
-
|
65
|
+
if $os == :ios
|
66
|
+
require 'ios/textfield'
|
67
|
+
require 'ios/alert'
|
68
|
+
require 'ios/generic'
|
69
|
+
else
|
70
|
+
require 'android/textfield'
|
71
|
+
require 'android/alert'
|
72
|
+
require 'android/generic'
|
73
|
+
end
|
74
|
+
|
69
75
|
# implicit_wait default_wait
|
70
76
|
$default_wait = 30
|
71
77
|
|
data/lib/appium_lib/version.rb
CHANGED
data/release_notes.md
CHANGED
@@ -1,4 +1,55 @@
|
|
1
|
-
####
|
1
|
+
#### v0.0.26 2013-04-04
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
- [07fed25](https://github.com/appium/ruby_lib/commit/07fed259a743d9f3f3d72bfc8c8b9eac7b26d724) Release 0.0.26
|
4
|
+
- [7c77faa](https://github.com/appium/ruby_lib/commit/7c77faa7087f9aa4bf2cc387a13b9bb0974d59a1) Add exists method
|
5
|
+
- [27f4ccf](https://github.com/appium/ruby_lib/commit/27f4ccf19f0d4028baf634ccb9538a340c96ebb9) Add alert for Android
|
6
|
+
- [4bb466f](https://github.com/appium/ruby_lib/commit/4bb466f8ed90cb0f015bb627423dba8c91574a4d) Add txt methods
|
7
|
+
- [2d2704a](https://github.com/appium/ruby_lib/commit/2d2704a99318a21c292a636730bca94af87bcc55) Store default wait in var
|
8
|
+
- [8a2bc8a](https://github.com/appium/ruby_lib/commit/8a2bc8aed39639e6c3d51c185d233be6f9760c59) Update release_notes.md
|
9
|
+
- [c504873](https://github.com/appium/ruby_lib/commit/c504873582d4871650e02515ccb68e21bd1486ae) Create release_notes.md
|
10
|
+
- [2e71e47](https://github.com/appium/ruby_lib/commit/2e71e477962c70113b556700cf08c74060d77370) Don't wait in Pry
|
11
|
+
- [3416272](https://github.com/appium/ruby_lib/commit/341627269bf50497ebe4a6e388939d45d53e2032) Update readme.md
|
12
|
+
|
13
|
+
|
14
|
+
#### v0.0.25 2013-03-28
|
15
|
+
|
16
|
+
- [6a975a6](https://github.com/appium/ruby_lib/commit/6a975a6cc0e97866c3ef6248f0f7d1abbc934577) Release 0.0.25
|
17
|
+
- [6a8fdce](https://github.com/appium/ruby_lib/commit/6a8fdcea4c8fdc308c7d107e958fbabed9719056) Rename inspect
|
18
|
+
|
19
|
+
|
20
|
+
#### v0.0.24 2013-03-28
|
21
|
+
|
22
|
+
- [d5bcb94](https://github.com/appium/ruby_lib/commit/d5bcb94966c4a7806a47ee892f3e5ff784a739e2) Release 0.0.24
|
23
|
+
- [17f9a67](https://github.com/appium/ruby_lib/commit/17f9a67143720dbfc50b34783a11c7bf5c28ea3c) Add .lock to ignore
|
24
|
+
- [9181cb8](https://github.com/appium/ruby_lib/commit/9181cb88f3d1180a16998f27e2236864809c6fcf) Add inspect using JSON dump
|
25
|
+
- [e74dc46](https://github.com/appium/ruby_lib/commit/e74dc468a5d3d81f77c50d3fe41eb9dbebf3d404) Add get_source
|
26
|
+
- [2444290](https://github.com/appium/ruby_lib/commit/24442908f9426b228dc760497ef98f9cf579d4d5) Add name methods
|
27
|
+
|
28
|
+
|
29
|
+
#### v0.0.23 2013-03-27
|
30
|
+
|
31
|
+
- [789634c](https://github.com/appium/ruby_lib/commit/789634c6b20d4030eaec4d385a85275b3fabfe76) Release 0.0.23
|
32
|
+
- [6d58a33](https://github.com/appium/ruby_lib/commit/6d58a33bce0bf1ff3c6156717519a2db6a27bb84) Add app-wait-activity
|
33
|
+
|
34
|
+
|
35
|
+
#### v0.0.22 2013-03-23
|
36
|
+
|
37
|
+
- [bfd7761](https://github.com/appium/ruby_lib/commit/bfd7761c0f2b32e7ab0bbe8372228163181e60b9) Release 0.0.22
|
38
|
+
|
39
|
+
|
40
|
+
#### v0.0.21 2013-03-22
|
41
|
+
|
42
|
+
- [4066823](https://github.com/appium/ruby_lib/commit/40668230b89eaa66970889b20305279029048698) Release 0.0.21
|
43
|
+
|
44
|
+
|
45
|
+
#### v0.0.20 2013-03-22
|
46
|
+
|
47
|
+
- [ed588a1](https://github.com/appium/ruby_lib/commit/ed588a1ccc67d0efa0d8d56f4f9b08c23b261687) Release 0.0.20
|
48
|
+
- [a4a7199](https://github.com/appium/ruby_lib/commit/a4a7199dfb609841310ad4e31ccbb56e3ecfa90d) Update readme.md
|
49
|
+
|
50
|
+
|
51
|
+
#### v0.0.19 2013-03-22
|
52
|
+
|
53
|
+
- [01f2d15](https://github.com/appium/ruby_lib/commit/01f2d150ae3d8e88970b361a8330c6ccc174097d) Release 0.0.19
|
54
|
+
- [10eec2f](https://github.com/appium/ruby_lib/commit/10eec2f197899395978b73de049aed08ceda55cc) AppLib => AppiumLib
|
55
|
+
- [c1e3b4f](https://github.com/appium/ruby_lib/commit/c1e3b4f0a08be3a0aef65218220f09f4198683bf) AppLib => AppiumLib
|
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.0.
|
4
|
+
version: 0.0.27
|
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: 2013-04-
|
11
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|