appium_instrumenter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appium_instrumenter/java_keystore.rb +5 -5
- data/lib/appium_instrumenter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 556e32baa39d80ffa498aa9d64e7c1e4c0a9e83c
|
4
|
+
data.tar.gz: 1ad3e0cff7ac54986cfe9ca35959a0f4963ed0a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 825ab427750d0134b858f36f17527fa0c2ed9d1a8bdc1a71ded63300ab1ed23946c1cd81428c9b5ed6a719e468791fc96d84e59fd1463945356d36113c92b506
|
7
|
+
data.tar.gz: 2330433639a0de81ca468783fc706c8ae29ef8e928b8d7f972281b344f25ebf26d4209ef5911d9e481df51ff0d58ecc0f02b2c4fe2f777d8e7b0a09e307cf6d0
|
@@ -94,7 +94,7 @@ class JavaKeystore
|
|
94
94
|
|
95
95
|
def self.get_keystores
|
96
96
|
if keystore = keystore_from_settings
|
97
|
-
p "found
|
97
|
+
p "found keystore_details file"
|
98
98
|
[ keystore ]
|
99
99
|
else
|
100
100
|
[
|
@@ -107,19 +107,19 @@ class JavaKeystore
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def self.keystore_from_settings
|
110
|
-
keystore = JSON.parse(IO.read(".
|
111
|
-
keystore = JSON.parse(IO.read("
|
110
|
+
keystore = JSON.parse(IO.read(".keystore_details")) if File.exist? ".keystore_details"
|
111
|
+
keystore = JSON.parse(IO.read("keystore_details")) if File.exist? "keystore_details"
|
112
112
|
return unless keystore
|
113
113
|
fail_if_key_missing(keystore, "keystore_location")
|
114
114
|
fail_if_key_missing(keystore, "keystore_password")
|
115
115
|
fail_if_key_missing(keystore, "keystore_alias")
|
116
116
|
keystore["keystore_location"] = File.expand_path(keystore["keystore_location"])
|
117
|
-
log("Keystore location specified in #{File.exist?(".
|
117
|
+
log("Keystore location specified in #{File.exist?(".keystore_details") ? ".keystore_details" : "keystore_details"}.")
|
118
118
|
JavaKeystore.new(keystore["keystore_location"], keystore["keystore_alias"], keystore["keystore_password"])
|
119
119
|
end
|
120
120
|
|
121
121
|
def self.fail_if_key_missing(map, key)
|
122
|
-
raise "Found .
|
122
|
+
raise "Found .keystore_details but no #{key} defined." unless map[key]
|
123
123
|
end
|
124
124
|
|
125
125
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_instrumenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajdeep Varma
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|