app-info 3.3.0 → 3.3.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 +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +6 -0
- data/app_info.gemspec +4 -0
- data/lib/app_info/error.rb +5 -1
- data/lib/app_info/mobile_provision.rb +14 -4
- data/lib/app_info/protobuf/manifest.rb +1 -1
- data/lib/app_info/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2eb8cadddd284e0daa476a2eea39741a851d96f0b684ef9a9dcdae02cf4332e9
|
4
|
+
data.tar.gz: df8f30dafb96b302393920b6eb9a517bba6d95e92f7d64f8dc3662cf1af921fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83f3c16f52ce79474baafb9ceafc17fed872e9f634f62d84b70fc7e17f38e0236ac2129fa66cfcdb5f3fa8ad88e21d7051a64331150d33329850b041a0a21b3c
|
7
|
+
data.tar.gz: 7e60efd2f1529165eee6a2e8b67ca2cdf82d661883ac7bba7048e28f391b9d107f278e5d6f1e79603e2b23a99117adfcadf3d164ac00e41dd0622c4b32020092
|
data/.github/workflows/ci.yml
CHANGED
data/.rubocop.yml
CHANGED
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
|
+
## [3.3.1] (2025-04-27)
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
|
16
|
+
- Fix aab fetch label error.
|
17
|
+
|
12
18
|
## [3.3.0] (2024-11-27)
|
13
19
|
|
14
20
|
### Added
|
data/app_info.gemspec
CHANGED
data/lib/app_info/error.rb
CHANGED
@@ -9,7 +9,11 @@ module AppInfo
|
|
9
9
|
|
10
10
|
class NotFoundError < Error; end
|
11
11
|
|
12
|
-
class
|
12
|
+
class ParseError < Error; end
|
13
|
+
|
14
|
+
class ProtobufParseError < ParseError; end
|
15
|
+
|
16
|
+
class MoileProvisionParseError < ParseError; end
|
13
17
|
|
14
18
|
class UnknownFormatError < Error; end
|
15
19
|
end
|
@@ -255,6 +255,8 @@ module AppInfo
|
|
255
255
|
|
256
256
|
data = ::File.read(@file)
|
257
257
|
data = strip_plist_wrapper(data) unless bplist?(data)
|
258
|
+
return @mobileprovision = nil unless data
|
259
|
+
|
258
260
|
list = CFPropertyList::List.new(data: data).value
|
259
261
|
@mobileprovision = CFPropertyList.native_types(list)
|
260
262
|
rescue CFFormatError
|
@@ -275,14 +277,22 @@ module AppInfo
|
|
275
277
|
|
276
278
|
private
|
277
279
|
|
280
|
+
PLIST_START_TAG = '<?xml version='
|
281
|
+
PLIST_END_TAG = '</plist>'
|
282
|
+
BPLIST = 'bplist'
|
283
|
+
|
278
284
|
def bplist?(raw)
|
279
|
-
raw[0..5] ==
|
285
|
+
raw[0..5] == BPLIST
|
280
286
|
end
|
281
287
|
|
282
288
|
def strip_plist_wrapper(raw)
|
283
|
-
|
284
|
-
|
285
|
-
|
289
|
+
return if raw.to_s.empty?
|
290
|
+
|
291
|
+
start_point = raw.index(PLIST_START_TAG)
|
292
|
+
end_point = raw.index(PLIST_END_TAG)
|
293
|
+
return unless start_point && end_point
|
294
|
+
|
295
|
+
end_point += PLIST_END_TAG.size - 1
|
286
296
|
raw[start_point..end_point]
|
287
297
|
end
|
288
298
|
end
|
data/lib/app_info/version.rb
CHANGED
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: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- icyleaf
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: CFPropertyList
|
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
328
|
- !ruby/object:Gem::Version
|
329
329
|
version: '0'
|
330
330
|
requirements: []
|
331
|
-
rubygems_version: 3.5.
|
331
|
+
rubygems_version: 3.5.22
|
332
332
|
signing_key:
|
333
333
|
specification_version: 4
|
334
334
|
summary: Teardown tool for all most app, analysis metedata like version, name, icon
|