ios_android_toolbox 0.0.40 → 0.0.41
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/lib/ios_android_toolbox/ios.rb +4 -4
- data/lib/ios_android_toolbox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 516fadb8d12fefef4ab86cb254db207ac36f1c3e
|
4
|
+
data.tar.gz: a9d581c026006355b3a74598521d6aef75e58ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc05b0f5fab4ec01f6f220cb60d02f22dad91a4b2635d6daca566101e1f8b08b9705b88cc7f2acc62314cfb63ae937856d59de5363cee50fc56b0eaefce67e57
|
7
|
+
data.tar.gz: 0e5a498ad5c170cb6457e4edcf1e32e51e51e94c3fb39c4c3302e371dfcb68421a46ae515f4a27b5914521351b3e0c6060716be8b4f7d65d2fbe52257ea5b271
|
@@ -8,7 +8,7 @@ require 'ios_android_toolbox/base'
|
|
8
8
|
module IosAndroidToolbox
|
9
9
|
|
10
10
|
class IosVersionController < VersionController
|
11
|
-
VERSION_KEY = '
|
11
|
+
VERSION_KEY = 'CFBundleVersion'
|
12
12
|
SHORT_VERSION_KEY = 'CFBundleShortVersionString'
|
13
13
|
URL_TYPES_KEY = "CFBundleURLTypes"
|
14
14
|
URL_SCHEMES_KEY = "CFBundleURLSchemes"
|
@@ -26,7 +26,7 @@ module IosAndroidToolbox
|
|
26
26
|
if File.exists?(filename)
|
27
27
|
begin
|
28
28
|
dict = Plist.parse_xml(filename)
|
29
|
-
candidates.push filename if dict and dict[
|
29
|
+
candidates.push filename if dict and dict[SHORT_VERSION_KEY]
|
30
30
|
rescue
|
31
31
|
# Do nothing, just skip the file. Must be in binary format
|
32
32
|
end
|
@@ -46,13 +46,13 @@ module IosAndroidToolbox
|
|
46
46
|
raise "Cannot parse file #{version_file}"
|
47
47
|
end
|
48
48
|
|
49
|
-
raise "File #{version_file} does not have a #{
|
49
|
+
raise "File #{version_file} does not have a #{SHORT_VERSION_KEY} key" if @dict[SHORT_VERSION_KEY].nil?
|
50
50
|
|
51
51
|
self
|
52
52
|
end
|
53
53
|
|
54
54
|
def version
|
55
|
-
@dict[
|
55
|
+
@dict[SHORT_VERSION_KEY]
|
56
56
|
end
|
57
57
|
|
58
58
|
def bundle_id
|