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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58614c4de5d9d0afa6c8595ce2c276e0cba52d47
4
- data.tar.gz: 62cf8a4726ad55d3268079b134218692e8e00906
3
+ metadata.gz: 516fadb8d12fefef4ab86cb254db207ac36f1c3e
4
+ data.tar.gz: a9d581c026006355b3a74598521d6aef75e58ce2
5
5
  SHA512:
6
- metadata.gz: 0c94f3bddd686b2d60e565e6cab843751800c124c0cade35f59c250168c126f843352ebdbc6c5b74bdd85424cd2312955e5a12459184d51fca7d7b01cc9fe158
7
- data.tar.gz: 93f10f64b98df63a63fdb615c9040ca5123ebc30ca990e405402ad78bba2e4adaeae18d3ad2c0d66c531569859d384f789c3065a2f56b94d0249cd0cffb23c20
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 = 'CFBundleShortVersionString'
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[VERSION_KEY]
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 #{VERSION_KEY} key" if @dict[VERSION_KEY].nil?
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[VERSION_KEY]
55
+ @dict[SHORT_VERSION_KEY]
56
56
  end
57
57
 
58
58
  def bundle_id
@@ -1,3 +1,3 @@
1
1
  module IosAndroidToolbox
2
- VERSION = "0.0.40"
2
+ VERSION = "0.0.41"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios_android_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
4
+ version: 0.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Sales