app-info 2.6.1 → 2.6.5

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
  SHA256:
3
- metadata.gz: 1f0644a1100741657230cca3410801cd08868c090365cc8936d49e807f371d0e
4
- data.tar.gz: 2ad92963f8ee13e6c317004d0d6dc06db15d733b5ea0ee4a66c1e40371ffa888
3
+ metadata.gz: 79a5669bb25288b95dda6a7f02181e6375fe192234a88eb17957358590e12870
4
+ data.tar.gz: 73bbe25cc149955b7140105108090a5a4db0019ca1e5408358a6439f8c606599
5
5
  SHA512:
6
- metadata.gz: f35d629c0de8cb02fe4e1bf54bacc709f5dc24ab2d21e735be2b6f24b8ed029cc4618eb5cd2bece2e785b951538973040f768408a5472b1a691976345c320956
7
- data.tar.gz: e8f63e044ae4ff07b493968eac64913d9cbb286c41a54f9b2338c6b95070e3c24e1bd55074b0aa650fc988e5a83f67e3d279dcd71dbf575d12de3d1fbac87c77
6
+ metadata.gz: f3ae7c2886106af7ffdbb69ab031fb7ec81b196a12ba05544e467398850d7299e2152ad24d3523b0a4d1ebd0f005dba0fcbd37f826b67aa848eece592359a01b
7
+ data.tar.gz: 33f09022fbaec5f95997bec8fee7a73dd4f9fe7dd85837b9541337e44330ee6fee8db5cbee975e1248433ccd2fa7f0857c82d6f67700cd498959284c0002f921
data/CHANGELOG.md CHANGED
@@ -9,6 +9,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
 
10
10
  > List all changes before release a new version.
11
11
 
12
+ ## [2.6.5] (2021-09-17)
13
+
14
+ ### Added
15
+
16
+ - Add ability to retrieve manifest metadata (depend on playtestcloud/ruby_apk forked one)
17
+
18
+ ## [2.6.4] (2021-09-10)
19
+
20
+ ### Fixed
21
+
22
+ - Error on extract dSYM zipped file occasionally
23
+
24
+ ## [2.6.3] (2021-08-27)
25
+
26
+ ### Fixed
27
+
28
+ - Force write all icon data with `ASCII-8BIT`
29
+ - Force convert developer cert name to `UTF-8`
12
30
  ## [2.6.1] (2021-08-26)
13
31
 
14
32
  ### Fixed
@@ -167,7 +185,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
167
185
 
168
186
  - Updated dependency of CFPropertly list be a range between 2.3.4. (thanks @[cschroed](https://github.com/cschroed))
169
187
 
170
- [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.6.0..HEAD
188
+ [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.6.5..HEAD
189
+ [2.6.5]: https://github.com/icyleaf/app-info/compare/v2.6.4...v2.6.5
190
+ [2.6.4]: https://github.com/icyleaf/app-info/compare/v2.6.3...v2.6.4
191
+ [2.6.3]: https://github.com/icyleaf/app-info/compare/v2.6.1...v2.6.3
192
+ [2.6.1]: https://github.com/icyleaf/app-info/compare/v2.6.0...v2.6.1
171
193
  [2.6.0]: https://github.com/icyleaf/app-info/compare/v2.5.4...v2.6.0
172
194
  [2.5.4]: https://github.com/icyleaf/app-info/compare/v2.5.3...v2.5.4
173
195
  [2.5.3]: https://github.com/icyleaf/app-info/compare/v2.5.2...v2.5.3
data/app_info.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency 'CFPropertyList', '< 3.1.0', '>= 2.3.4'
24
24
  spec.add_dependency 'image_size', '>= 1.5', '< 2.2'
25
25
  spec.add_dependency 'ruby-macho', '< 3', '>= 1.4'
26
- spec.add_dependency 'ruby_android', '~> 0.7.7'
26
+ spec.add_dependency 'android_parser', '~> 2.4.1'
27
27
  spec.add_dependency 'rubyzip', '>= 1.2', '< 3.0'
28
28
  spec.add_dependency 'uuidtools', '>= 2.1.5', '< 2.3.0'
29
29
  spec.add_dependency 'icns', '~> 0.2.0'
data/lib/app_info/apk.rb CHANGED
@@ -76,6 +76,7 @@ module AppInfo
76
76
  def min_sdk_version
77
77
  manifest.min_sdk_ver
78
78
  end
79
+ alias min_os_version min_sdk_version
79
80
 
80
81
  def target_sdk_version
81
82
  manifest.doc
@@ -118,7 +119,7 @@ module AppInfo
118
119
  icon_path = File.join(contents, File.dirname(path))
119
120
  icon_file = File.join(icon_path, icon_name)
120
121
  FileUtils.mkdir_p icon_path
121
- File.open(icon_file, 'wb') { |f| f.write(data) }
122
+ File.write(icon_file, data, encoding: Encoding::BINARY)
122
123
 
123
124
  obj << {
124
125
  name: icon_name,
data/lib/app_info/dsym.rb CHANGED
@@ -95,11 +95,13 @@ module AppInfo
95
95
  zip_file.each do |f|
96
96
  unless dsym_dir
97
97
  dsym_dir = f.name
98
- dsym_dir = dsym_dir.split('/')[0] # fix filename is xxx.app.dSYM/Contents
98
+ # fix filename is xxx.app.dSYM/Contents
99
+ dsym_dir = dsym_dir.split('/')[0] if dsym_dir.include?('/')
99
100
  end
100
101
 
101
102
  f_path = File.join(path, f.name)
102
- zip_file.extract(f, f_path) unless File.exist?(f_path)
103
+ FileUtils.mkdir_p(File.dirname(f_path))
104
+ f.extract(f_path) unless File.exist?(f_path)
103
105
  end
104
106
  end
105
107
 
@@ -245,7 +245,7 @@ module AppInfo
245
245
  end
246
246
 
247
247
  def name
248
- @raw.subject.to_a.find { |name, _, _| name == 'CN' }[1]
248
+ @raw.subject.to_a.find { |name, _, _| name == 'CN' }[1].force_encoding('UTF-8')
249
249
  end
250
250
 
251
251
  def created_date
@@ -125,10 +125,7 @@ module AppInfo
125
125
  end
126
126
 
127
127
  def write_file(path, content)
128
- File.open(path, 'wb') do |file|
129
- file.puts content
130
- end
131
-
128
+ File.write(path, content, encoding: Encoding::BINARY)
132
129
  true
133
130
  end
134
131
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppInfo
4
- VERSION = '2.6.1'
4
+ VERSION = '2.6.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app-info
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-26 00:00:00.000000000 Z
11
+ date: 2021-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList
@@ -71,19 +71,19 @@ dependencies:
71
71
  - !ruby/object:Gem::Version
72
72
  version: '1.4'
73
73
  - !ruby/object:Gem::Dependency
74
- name: ruby_android
74
+ name: android_parser
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: 0.7.7
79
+ version: 2.4.1
80
80
  type: :runtime
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - "~>"
85
85
  - !ruby/object:Gem::Version
86
- version: 0.7.7
86
+ version: 2.4.1
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: rubyzip
89
89
  requirement: !ruby/object:Gem::Requirement