app-info 2.6.0 → 2.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3f41cd5992337273a19a91e968dcae822aac9e4e022368e02d0d2a262394898
4
- data.tar.gz: 1b0f8391aa791da7d9138ecd50727c8f9afe150f8834af600ff571b812e5f29d
3
+ metadata.gz: f97c42670196b47aacccbaf9fcee52b7bd4a8e3f21cd2f1f8c8ccfb5fdd7f3dc
4
+ data.tar.gz: 6f6a3dad1fdf80548e9d65a6ca84df7ac5a2123081e08912546202b8c03ef026
5
5
  SHA512:
6
- metadata.gz: fa7c8b0ae2e4493eac060411fdb1ea9b34d948a4d2c2bdf74431d43723b29e4f47879aec62cf456a41798f46df16cd4dcf1e6f4c1419aee373395a746c82372e
7
- data.tar.gz: 6b5263c1b0a2d145002cb19a410c06de2f659c5f88e9cdb76d83e7739263adb4226b293e231c09daeb7a8ca0a82839d97457c99c288650bcf39ce218d6320ebe
6
+ metadata.gz: f11aea895a604a5cd9452e923a028514dfa36853c4ec7448b7d0dade327a63815c326aff4aa5532514c0b2f90dd966a688feef2f01c709b5d98a182ce81dbadd
7
+ data.tar.gz: 54be915b94a47906df35e4149b99136a1bc82da6549890b01a5dd60320208ebd2ccd35fc70b32620a7a2f56f6f6f1566411dca27f9d7aac09d4512051f713d24
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.4] (2021-09-10)
13
+
14
+ ### Fixed
15
+
16
+ - Error on extract dSYM zipped file occasionally
17
+
18
+ ## [2.6.3] (2021-08-27)
19
+
20
+ ### Fixed
21
+
22
+ - Force write all icon data with `ASCII-8BIT`
23
+ - Force convert developer cert name to `UTF-8`
24
+ ## [2.6.1] (2021-08-26)
25
+
26
+ ### Fixed
27
+
28
+ - Force write macOS icon data with `ASCII-8BIT`
29
+
12
30
  ## [2.6.0] (2021-08-24)
13
31
 
14
32
  ### Changed
@@ -161,7 +179,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
161
179
 
162
180
  - Updated dependency of CFPropertly list be a range between 2.3.4. (thanks @[cschroed](https://github.com/cschroed))
163
181
 
164
- [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.6.0..HEAD
182
+ [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.6.4..HEAD
183
+ [2.6.4]: https://github.com/icyleaf/app-info/compare/v2.6.3...v2.6.4
184
+ [2.6.3]: https://github.com/icyleaf/app-info/compare/v2.6.1...v2.6.3
185
+ [2.6.1]: https://github.com/icyleaf/app-info/compare/v2.6.0...v2.6.1
165
186
  [2.6.0]: https://github.com/icyleaf/app-info/compare/v2.5.4...v2.6.0
166
187
  [2.5.4]: https://github.com/icyleaf/app-info/compare/v2.5.3...v2.5.4
167
188
  [2.5.3]: https://github.com/icyleaf/app-info/compare/v2.5.2...v2.5.3
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
 
@@ -175,7 +175,7 @@ module AppInfo
175
175
  dest_file = Util.tempdir(File.join(File.dirname(file), dest_filename), prefix: 'converted')
176
176
  next unless icon_data = reader.image(size: size)
177
177
 
178
- File.write(dest_file, icon_data)
178
+ File.write(dest_file, icon_data, encoding: Encoding::BINARY)
179
179
 
180
180
  data[:sets] << {
181
181
  name: File.basename(dest_filename),
@@ -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.0'
4
+ VERSION = '2.6.4'
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.0
4
+ version: 2.6.4
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-24 00:00:00.000000000 Z
11
+ date: 2021-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList