app-info 2.1.1 → 2.1.2

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: cffe87f63672515e5bd9dc2654218ddc2a9de0cde184bd27e47bd6923618d565
4
- data.tar.gz: d96f0e38be72d9e2918e6679e6d03f4cabd9c4901b02c79b9f4a172bba04e349
3
+ metadata.gz: 52ef8fe809311ff9d63351e44fbe764f2160d14c5634e06306e3c92c35d4aa94
4
+ data.tar.gz: 7f7a7a9f302d6f0c5a9a088aaed496134f07000feda646801f708277736459ce
5
5
  SHA512:
6
- metadata.gz: 8bd48968214009001630dba1b56e85df53727542fc9d458f09b551761e11526ca5b47b4877e766ecce2adcd18ded1269925b26fe6b83318c5a8cc13f537ffd1d
7
- data.tar.gz: 536be7d70111183d392ec24e5690598e60d9b634a8584ea7f698ab6b10fd6b09006edeed51370be17ce7d6b99bfd2848589091724e9dca89c5c1b087cbb08b67
6
+ metadata.gz: a94f533ae1e9af400ccb46a0c7a03a951050b5a76ea49d37a7d45601cd97caeab53f3ffa4514cc8cb3ff1a69c0049a78d1f7898753f16a84702cd15cc8e03555
7
+ data.tar.gz: 0e88aef01907033da2be21326c5ced3b6eae2420ab5220268c519b6af52e2c9b6b42ac95d2106af5b4735e4a91d034c5a0373a119361133b056de93846f34384
@@ -9,6 +9,12 @@ 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.1.2] (2020-01-11)
13
+
14
+ ### Fixed
15
+
16
+ - Correct Android icon temporary path.
17
+ - Store Android icon force encoding with BINARY.
12
18
 
13
19
  ## [2.1.1] (2019-12-28)
14
20
 
@@ -57,7 +63,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
57
63
 
58
64
  - Updated dependency of CFPropertly list be a range between 2.3.4. (thanks @[cschroed](https://github.com/cschroed))
59
65
 
60
- [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.1.1..HEAD
66
+ [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.1.2..HEAD
67
+ [2.1.2]: https://github.com/icyleaf/app-info/compare/v2.1.1...v2.1.2
61
68
  [2.1.1]: https://github.com/icyleaf/app-info/compare/v2.1.0...v2.1.1
62
69
  [2.1.0]: https://github.com/icyleaf/app-info/compare/v2.0.0...v2.1.0
63
70
  [2.0.0]: https://github.com/icyleaf/app-info/compare/v1.1.2...v2.0.0
@@ -54,8 +54,6 @@ module AppInfo
54
54
  resource.find('@string/app_name')
55
55
  end
56
56
 
57
-
58
-
59
57
  def device_type
60
58
  if wear?
61
59
  Device::WATCH
@@ -120,11 +118,11 @@ module AppInfo
120
118
 
121
119
  @icons = @apk.icon.each_with_object([]) do |(path, data), obj|
122
120
  icon_name = File.basename(path)
123
- icon_path = File.join(tmp_path, File.path(path))
121
+ icon_path = File.join(tmp_path, File.dirname(path))
124
122
  icon_file = File.join(icon_path, icon_name)
125
123
  FileUtils.mkdir_p icon_path
126
124
  File.open(icon_file, 'w') do |f|
127
- f.write data
125
+ f.write(data.force_encoding('BINARY'))
128
126
  end
129
127
 
130
128
  obj << {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppInfo
4
- VERSION = '2.1.1'
4
+ VERSION = '2.1.2'
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.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-28 00:00:00.000000000 Z
11
+ date: 2020-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList