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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e26da0ef08a55abf3507ae84fa44eeee37293c5f4814830920ef948c9889e54a
4
- data.tar.gz: d0ebe2539a6450b9205fd0fd318ec890fe7f0b0f1212ba56e25ec9036b1e3d1b
3
+ metadata.gz: cb0a81755ea5f3c309e4f6f7cd175152b81bc2f6523464099976b128d5cf80b9
4
+ data.tar.gz: dd7a1dac9178787a9fa113b87f4b49522bbc2283e965622bf30f4b1bfd46fcc4
5
5
  SHA512:
6
- metadata.gz: cd939b8c8569c999f07f8ff15528784506df9262474ccd490b049a6e716675d5d26d02355344061f9f77c4be490e7b8206db76a2378209d43294d1f5650e2a81
7
- data.tar.gz: 29fa3525b5b17b8bb83db76627587b89aa7a8a89398d378c74f643973dde26013e2102780111280e8e5c4d58c8f7e7b2ab6a83df637cf28c08ebda438605b327
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppleData
4
- VERSION = '1.0.465'
4
+ VERSION = '1.0.466'
5
5
  end