app-info 2.7.0.beta1 → 2.7.0.beta2

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: b37b084ef666db1fad604e2aa19698faad80d68d7d79a031c55d60e3f8b97f48
4
- data.tar.gz: 2a8da24c6adc6b9f003d8a8016569f2f20772f1c7524ea411a6b4946f32fd0a7
3
+ metadata.gz: '09f29a3f5c7efa6e39d589cfc5d4a168d5267bb88ebf9434a377dbe1ba9d6326'
4
+ data.tar.gz: 45bb2036a6777b043ab85b399d0559f92f144750d98097ea3ad6007ffed39c0d
5
5
  SHA512:
6
- metadata.gz: 9041485898807902ce753c4114b82037cf900c45fc4ce183fb2af0ec57c0fd05ebe96314a89016e3f423531daa528d48d6ea566445296be045d18dc6ab4da4cb
7
- data.tar.gz: fd22abedeea11ba62dd7f4575f19a08348d146cc6ffd3a6d69b54652a869b9dc095467d9922031a84d79336fbbc4e3dc485a428e8a96d66fc4bedc378d1e962f
6
+ metadata.gz: 99af334d2500db7df891232986366e390943a11689b593f0b827edeabc68fdc3df38b0c2d675c09282941f4f3870ad8afa6ee46c95b18acf1d40c41990698b19
7
+ data.tar.gz: 45c1da2efa47617b4dccd315fb868097df4814492e6e9e6371082c9f84171ed493eb9de8449483a8d640e8b0d2a830f0840eff199e4a786ff937f8662b102240
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.7.0.beta2] (2021-09-29)
13
+
14
+ ### Fixed
15
+
16
+ - Fix allocator undefined data class [#38](https://github.com/icyleaf/app_info/pull/38)
17
+
12
18
  ## [2.7.0.beta1] (2021-09-27)
13
19
 
14
20
  ### Added
@@ -191,7 +197,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
191
197
 
192
198
  - Updated dependency of CFPropertly list be a range between 2.3.4. (thanks @[cschroed](https://github.com/cschroed))
193
199
 
194
- [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.7.0.beta1..HEAD
200
+ [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.7.0.beta2..HEAD
201
+ [2.7.0.beta2]: https://github.com/icyleaf/app-info/compare/v2.7.0.beta1...v2.7.0.beta2
195
202
  [2.7.0.beta1]: https://github.com/icyleaf/app-info/compare/v2.6.5...v2.7.0.beta1
196
203
  [2.6.5]: https://github.com/icyleaf/app-info/compare/v2.6.4...v2.6.5
197
204
  [2.6.4]: https://github.com/icyleaf/app-info/compare/v2.6.3...v2.6.4
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![Gem version](https://img.shields.io/gem/v/app-info.svg?style=flat)](https://rubygems.org/gems/app_info)
6
6
  [![License](https://img.shields.io/badge/license-MIT-red.svg?style=flat)](LICENSE)
7
7
 
8
- Teardown tool for mobile(ipa/apk) app, macOS app and dSYM.zip file, analysis metedata like version, name, icon etc.
8
+ Teardown tool for mobile app (ipa, apk and aab file), macOS app and dSYM.zip file, analysis metedata like version, name, icon etc.
9
9
 
10
10
  ## Support
11
11
 
@@ -99,7 +99,9 @@ module AppInfo
99
99
  end
100
100
 
101
101
  name = namespace.to_s.empty? ? klass_name : "#{namespace}::#{klass_name}"
102
- if Object.const_defined?(name)
102
+ if Object.const_get(namespace).const_defined?(klass_name)
103
+ Object.const_get(namespace).const_get(klass_name)
104
+ elsif Object.const_defined?(name)
103
105
  Object.const_get(name)
104
106
  else
105
107
  Object.const_get(namespace).const_set(klass_name, klass)
@@ -139,6 +139,9 @@ module AppInfo
139
139
  def icons
140
140
  @resources.find(application.icon)
141
141
  end
142
+
143
+ # Workaround ruby always return true by called `Object.const_defined?(Data)`
144
+ class Data < Node; end
142
145
  end
143
146
  end
144
147
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppInfo
4
- VERSION = '2.7.0.beta1'
4
+ VERSION = '2.7.0.beta2'
5
5
  end
data/lib/app_info.rb CHANGED
@@ -48,7 +48,7 @@ module AppInfo
48
48
  #
49
49
  # TODO: This can be better solution, if anyone knows, tell me please.
50
50
  def file_type(file)
51
- header_hex = IO.read(file, 100)
51
+ header_hex = File.read(file, 100)
52
52
  type = if header_hex =~ /^\x50\x4b\x03\x04/
53
53
  detect_zip_file(file)
54
54
  else
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.7.0.beta1
4
+ version: 2.7.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-27 00:00:00.000000000 Z
11
+ date: 2021-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList