app-info 2.5.2 → 2.5.3

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: 356bbacf5f30701fcda88a5e72563926a2ef59c43623eb11b6417d1085cfde0d
4
- data.tar.gz: c877773f464fb2af488f2693f932649aa45362fc4235175b16f118798774b03b
3
+ metadata.gz: db2a658da1cd03d7129e25b303508ba909275033afefdad334051df0cf3ef28d
4
+ data.tar.gz: a8756a88ca2039d14debca872ab586d774f9efe19ecb296cedd87a9cf65ac038
5
5
  SHA512:
6
- metadata.gz: c9a2213cd4b2022dcde3767dac5f53090bb7d95714fba75fede8399cd8f4aedc6c46a697930122738e3894b041de60a736f0b7398a54f971751730bf9ee0708a
7
- data.tar.gz: d5f223e1ff4e73f542b50f10e2828cf442104f8228b2bc19a0fecdb8d0042c07420994d9afa9cd7d1c7df47a3ed76ea159006cb8cc73bbfcb5f05b4447fec318
6
+ metadata.gz: a69147119d7201d1c4e4a584ec53cbb158d94350a28886529439a6e156ff6c3d107914a23a3d89f386228b34fcc947af93364cd84125413375719f20d994481c
7
+ data.tar.gz: 5e7f59d142fbfb5b29b3bad6c97224a091a88207ec8de502a8655456dda81550a3a2698b21893f5e6b6398d86fcc387de5502594c2d66a8f632d087fdf5e6f79
data/CHANGELOG.md CHANGED
@@ -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.5.3] (2021-06-16)
13
+
14
+ ### Fixed
15
+
16
+ - Fix decompress png error (mostly because of it is a normal png file) [#32](https://github.com/icyleaf/app_info/pull/32) thanks @[莫小七](https://github.com/mxq0923)
17
+
12
18
  ## [2.5.2] (2021-04-15)
13
19
 
14
20
  ### Fixed
@@ -124,6 +124,7 @@ module AppInfo
124
124
 
125
125
  uncrushed_file = File.join(path, File.basename(file))
126
126
  PngUncrush.decompress(file, uncrushed_file)
127
+ uncrushed_file = nil unless File.exists?(uncrushed_file)
127
128
  end
128
129
 
129
130
  {
@@ -80,6 +80,9 @@ module AppInfo
80
80
  return false unless content
81
81
 
82
82
  write_file(output, content)
83
+ rescue Zlib::DataError
84
+ # perhops thi is a normal png image file
85
+ return false
83
86
  end
84
87
 
85
88
  private
data/lib/app_info/util.rb CHANGED
@@ -7,7 +7,7 @@ require 'securerandom'
7
7
  module AppInfo
8
8
  # AppInfo Util
9
9
  module Util
10
- FILE_SIZE_UNITS = %w[B KB MB GB TB].freeze
10
+ FILE_SIZE_UNITS = %w[B KB MB GB TB]
11
11
 
12
12
  def self.format_key(key)
13
13
  key = key.to_s
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppInfo
4
- VERSION = '2.5.2'
4
+ VERSION = '2.5.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.5.2
4
+ version: 2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-15 00:00:00.000000000 Z
11
+ date: 2021-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList