apple-data 1.0.465 → 1.0.466
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/lib/apple_data/ipsw.rb +25 -0
- data/lib/apple_data/version.rb +1 -1
- data/share/ipsw.yaml +2416 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb0a81755ea5f3c309e4f6f7cd175152b81bc2f6523464099976b128d5cf80b9
|
4
|
+
data.tar.gz: dd7a1dac9178787a9fa113b87f4b49522bbc2283e965622bf30f4b1bfd46fcc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52d67baf39e89645c49abdac6364fa722d204eb3b9388d0487e4f613f0927ada79d4b2a62a44e0a06e10e598446e2858a7f3afc15e1b88441b572c8f08c3dfa1
|
7
|
+
data.tar.gz: 4341b7b7881ac9ac1fe5dc814c88a8f131c7f7e2bab336ba505dbe9b244c4c24355e4d23f0d799dc2c085be43949a4d24d2e783895d2544bfc5afa7393aa99aa
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'zip'
|
4
|
+
require 'cfpropertylist'
|
5
|
+
|
6
|
+
# Represents an IPSW on disk and provides helper access
|
7
|
+
class IPSW
|
8
|
+
def initialize(path)
|
9
|
+
@path = path
|
10
|
+
@zip = Zip::File.open(@path)
|
11
|
+
@manifest = CFPropertyList.guess(@zip.get_entry('BuildManifest.plist').get_input_stream.read)
|
12
|
+
end
|
13
|
+
|
14
|
+
def baseband_files
|
15
|
+
result = []
|
16
|
+
@manifest['BuildIdentities'].each do |identity|
|
17
|
+
identity['Manifest'].each do |key, value|
|
18
|
+
result << value if key == 'BasebandFirmware'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
result
|
22
|
+
end
|
23
|
+
|
24
|
+
def img4_files; end
|
25
|
+
end
|
data/lib/apple_data/version.rb
CHANGED