appium_console 0.6.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +24 -4
- data/appium_console.gemspec +1 -1
- data/lib/appium_console.rb +4 -4
- data/lib/appium_console/version.rb +2 -2
- data/release_notes.md +13 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b9abc815edb592573640121922ac7ef06cf6955
|
4
|
+
data.tar.gz: 3da624a748fdf8f417c79f3f584f7d43c701272e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0cd9f63e29cf1a780e3730dedf02a76dfddc24bdf92eedeaac7ae347e51574cc7c97ba4e95d9bd9c8e709badcbbd8f788e7871fdfc72c6e1d9b618e6e622483
|
7
|
+
data.tar.gz: bfad2af58abadd9fd137b5120c2cf72e6fadf9ad16f14a715b4accc06371966bfaa36841f63664fa1278691bb7df25c1f588268c84f0a4cb10a1be104bbf7580
|
data/Rakefile
CHANGED
@@ -15,11 +15,11 @@ def version
|
|
15
15
|
@version = @version || File.read(version_file).match(version_rgx)[1]
|
16
16
|
end
|
17
17
|
|
18
|
-
def bump
|
18
|
+
def bump value
|
19
19
|
data = File.read version_file
|
20
20
|
|
21
21
|
v_line = data.match version_rgx
|
22
|
-
d_line = data.match
|
22
|
+
d_line = data.match /\s*DATE\s*=\s*'([^']+)'/m
|
23
23
|
|
24
24
|
old_v = v_line[0]
|
25
25
|
old_d = d_line[0]
|
@@ -27,6 +27,16 @@ def bump
|
|
27
27
|
old_num = v_line[1]
|
28
28
|
new_num = old_num.split('.')
|
29
29
|
new_num[-1] = new_num[-1].to_i + 1
|
30
|
+
|
31
|
+
if value == :y
|
32
|
+
new_num[-1] = 0 # x.y.Z -> x.y.0
|
33
|
+
new_num[-2] = new_num[-2].to_i + 1 # x.Y -> x.Y+1
|
34
|
+
elsif value == :x
|
35
|
+
new_num[-1] = 0 # x.y.Z -> x.y.0
|
36
|
+
new_num[-2] = 0 # x.Y.z -> x.0.z
|
37
|
+
new_num[-3]= new_num[-3].to_i + 1
|
38
|
+
end
|
39
|
+
|
30
40
|
new_num = new_num.join '.'
|
31
41
|
|
32
42
|
new_v = old_v.sub old_num, new_num
|
@@ -43,9 +53,19 @@ def bump
|
|
43
53
|
File.write version_file, data
|
44
54
|
end
|
45
55
|
|
46
|
-
desc 'Bump the version number and update the date.'
|
56
|
+
desc 'Bump the z version number and update the date.'
|
47
57
|
task :bump do
|
48
|
-
bump
|
58
|
+
bump :z
|
59
|
+
end
|
60
|
+
|
61
|
+
desc 'Bump the y version number, set z to zero, update the date.'
|
62
|
+
task :bumpy do
|
63
|
+
bump :y
|
64
|
+
end
|
65
|
+
|
66
|
+
desc 'Bump the x version number, set y & z to zero, update the date.'
|
67
|
+
task :bumpx do
|
68
|
+
bump :x
|
49
69
|
end
|
50
70
|
|
51
71
|
def tag_exists tag_name
|
data/appium_console.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.require_paths = [ 'lib' ]
|
25
25
|
|
26
26
|
# appium_lib version must match ruby console version.
|
27
|
-
s.add_runtime_dependency 'appium_lib', '>= 0.
|
27
|
+
s.add_runtime_dependency 'appium_lib', '>= 1.0.0'
|
28
28
|
s.add_runtime_dependency 'pry', '~> 0.9.12.5'
|
29
29
|
s.add_runtime_dependency 'bond', '~> 0.5.0'
|
30
30
|
s.add_runtime_dependency 'spec', '>= 5.3.3'
|
data/lib/appium_console.rb
CHANGED
@@ -16,8 +16,8 @@ end
|
|
16
16
|
|
17
17
|
Pry.send(:define_singleton_method, :reload) do
|
18
18
|
parsed = Pry.pry_load_appium_txt
|
19
|
-
return unless parsed && parsed[:appium_lib] && parsed[:appium_lib][:
|
20
|
-
requires = parsed[:appium_lib][:
|
19
|
+
return unless parsed && parsed[:appium_lib] && parsed[:appium_lib][:require]
|
20
|
+
requires = parsed[:appium_lib][:require]
|
21
21
|
requires.each do |file|
|
22
22
|
# If a page obj is deleted then load will error.
|
23
23
|
begin
|
@@ -35,9 +35,9 @@ module Appium
|
|
35
35
|
cmd = ['-r', start]
|
36
36
|
|
37
37
|
parsed = Pry.pry_load_appium_txt verbose: true
|
38
|
-
has_requires = parsed && parsed[:appium_lib] && parsed[:appium_lib][:
|
38
|
+
has_requires = parsed && parsed[:appium_lib] && parsed[:appium_lib][:require]
|
39
39
|
if has_requires
|
40
|
-
requires = parsed[:appium_lib][:
|
40
|
+
requires = parsed[:appium_lib][:require]
|
41
41
|
|
42
42
|
if !requires.empty?
|
43
43
|
load_files = requires.map { |f| %(require "#{f}";) }.join "\n"
|
@@ -2,6 +2,6 @@
|
|
2
2
|
# Define Appium module so version can be required directly.
|
3
3
|
module Appium; end unless defined? Appium
|
4
4
|
module Appium::Console
|
5
|
-
VERSION = '0.
|
6
|
-
DATE = '2014-04-
|
5
|
+
VERSION = '1.0.0' unless defined? ::Appium::Console::VERSION
|
6
|
+
DATE = '2014-04-29' unless defined? ::Appium::Console::DATE
|
7
7
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
#### v0.5.9 2014-01-28
|
2
|
+
|
3
|
+
- [38c21c9](https://github.com/appium/ruby_console/commit/38c21c935ec50ce30d320888342a3df3da975917) Release 0.6.0
|
4
|
+
- [2df9ce2](https://github.com/appium/ruby_console/commit/2df9ce223555a3906d809b2523176a0e27b02e43) Update set command timeout for appium 1.0
|
5
|
+
- [9b6b201](https://github.com/appium/ruby_console/commit/9b6b201f2d290f34e97b55b40d353b83686fa31b) Update for new appium_lib
|
6
|
+
- [19a9f71](https://github.com/appium/ruby_console/commit/19a9f716e7ec54e4bc3dd646da12ea39d55a92a4) Update console
|
7
|
+
- [29b2aee](https://github.com/appium/ruby_console/commit/29b2aee0c375b7e94887b4653800e8193bd20690) Update to work with new appium_lib gem
|
8
|
+
- [6835147](https://github.com/appium/ruby_console/commit/68351478351016f90d9a0eb11e307b981c7a9919) Update osx.md
|
9
|
+
- [554fe33](https://github.com/appium/ruby_console/commit/554fe33ec488465684d670c20279376329d55c0f) Update maven in install guide
|
10
|
+
- [fb1444e](https://github.com/appium/ruby_console/commit/fb1444eac315e87c42fecafb912c8923c9e241a9) Recommend Xcode 5.0.2
|
11
|
+
- [3da8929](https://github.com/appium/ruby_console/commit/3da89297fc3394592136922225bb32b0be9f2909) Update readme.md
|
12
|
+
|
13
|
+
|
1
14
|
#### v0.5.8 2014-01-27
|
2
15
|
|
3
16
|
- [d7ed421](https://github.com/appium/ruby_console/commit/d7ed421772e94a82a8668b26dd29fa7c180b7ef0) Release 0.5.9
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.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-04-
|
11
|
+
date: 2014-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appium_lib
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,3 +145,4 @@ signing_key:
|
|
145
145
|
specification_version: 4
|
146
146
|
summary: Appium Ruby Console
|
147
147
|
test_files: []
|
148
|
+
has_rdoc:
|