app-info 2.1.2 → 2.1.3

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: 52ef8fe809311ff9d63351e44fbe764f2160d14c5634e06306e3c92c35d4aa94
4
- data.tar.gz: 7f7a7a9f302d6f0c5a9a088aaed496134f07000feda646801f708277736459ce
3
+ metadata.gz: ae557489ffda7fe36f804077460329de53862d01e960031ef15071270271beea
4
+ data.tar.gz: 6e7d93e19cb32389cfe0ebf452abc6e49c73fbabf815449c05df8873f7946e4e
5
5
  SHA512:
6
- metadata.gz: a94f533ae1e9af400ccb46a0c7a03a951050b5a76ea49d37a7d45601cd97caeab53f3ffa4514cc8cb3ff1a69c0049a78d1f7898753f16a84702cd15cc8e03555
7
- data.tar.gz: 0e88aef01907033da2be21326c5ced3b6eae2420ab5220268c519b6af52e2c9b6b42ac95d2106af5b4735e4a91d034c5a0373a119361133b056de93846f34384
6
+ metadata.gz: fc5b722b6b1a9b6814e90523362a61861830a9e22dbb6eab47ab296da0ab23d36e7826332d421eb96f6d8c7df9436dfcbd4e5c55e880064deda1d50e9d2f3ba8
7
+ data.tar.gz: 7c54fa9f38d3e518ff56020384445a4794ee95c46d4fc25aee8c6f5b9d41b0a8a9794705131953c42057886b9541fb942effc9acc91a45dffd6be30a32d550a1
data/.rubocop.yml CHANGED
@@ -26,7 +26,7 @@ Metrics/BlockLength:
26
26
  Metrics/MethodLength:
27
27
  Max: 20
28
28
 
29
- Metrics/LineLength:
29
+ Layout/LineLength:
30
30
  Max: 100
31
31
 
32
32
  Metrics/ClassLength:
@@ -36,6 +36,5 @@ Metrics/ClassLength:
36
36
  Metrics/CyclomaticComplexity:
37
37
  Max: 10
38
38
 
39
-
40
39
  Style/Documentation:
41
40
  Enabled: false
data/lib/app_info/apk.rb CHANGED
@@ -121,9 +121,7 @@ module AppInfo
121
121
  icon_path = File.join(tmp_path, File.dirname(path))
122
122
  icon_file = File.join(icon_path, icon_name)
123
123
  FileUtils.mkdir_p icon_path
124
- File.open(icon_file, 'w') do |f|
125
- f.write(data.force_encoding('BINARY'))
126
- end
124
+ File.open(icon_file, 'wb') { |f| f.write(data) }
127
125
 
128
126
  obj << {
129
127
  name: icon_name,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppInfo
4
- VERSION = '2.1.2'
4
+ VERSION = '2.1.3'
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.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-11 00:00:00.000000000 Z
11
+ date: 2020-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList