apple-data 1.0.499 → 1.0.504

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: 8e2fa052c617d217924e9809674a2b4735d311087eefe1e006353e6a5375ddd0
4
- data.tar.gz: fc16a5cb7f8c49bce852019d580973068350a9b97573e143a6a2e47695aad6c1
3
+ metadata.gz: 75fba299fbf71f3eac935bc5290f5107cb55dc1bccc27f890d1a2fdffeaddcde
4
+ data.tar.gz: cdfcdd4917afac2ac2b04b9a23f96d46fd4de00be63f448ec354a210ae9af9eb
5
5
  SHA512:
6
- metadata.gz: 6d09b1b8b937e3c41e486f999f1ab2b63c77f310fb74113a9757eee7688a417417ffd1c47faaeaccab79ad067070568a97db8e39728d92844348fcba9f3b634a
7
- data.tar.gz: 92f44223a396fb975b7e10c9c67e7c6d70b37067dd15022110204ba1f9687d7a92eb54af77c2850d3e88ceccffabc3f045470e8d30b93626dc91d9baf3c15b1a
6
+ metadata.gz: 669b8b0e93b8ef15448a57f4947e1b185476c88a82746d8a75a9305de362f3eb0382c8df582e3e8a1b73aafc76454d7afce71b26f1efb818e5412454b5b49b96
7
+ data.tar.gz: 72be25f73cd68e7cb5ec94e46024bda36ed1f048c9acbacd833305882a44fe3ca6ff507aed1e8fa716b8e8c7b1ce2488c88b012f098e389a25214fde9ebd9af4
data/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # Apple Hardware Data
2
+
3
+ Brought to you by the [Hack Different](https://hackdifferent.com) team.
4
+
5
+ ## Introduction
6
+
7
+ This is a package with compiled data files sourced from
8
+ the [hack-different/apple-knowledge](https://github.com/hack-different/apple-knowledge/tree/main/_data)
9
+ repository. Updates to that repository will automatically update this package, therefore no attempt should
10
+ be made to update the data files by any other method.
11
+
12
+ ## Accessing the Data
13
+
14
+ For the time being, there is only one simple API:
15
+
16
+ ```ruby
17
+ require 'apple_data'
18
+
19
+
20
+ ```
21
+
22
+ ## Credits
23
+
24
+ * [Hack Different - Community](https://hackdifferent.com)
25
+ * [Hack Different - Discord](https://hackdifferent.com/discord)
26
+
27
+ Package and repo created and maintained as a labor of love by [`rickmark`](https://github.com/rickmark)
data/lib/apple-data.rb ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative './apple_data'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppleData
4
- VERSION = '1.0.499'
4
+ VERSION = '1.0.504'
5
5
  end
data/lib/apple_data.rb CHANGED
@@ -1,8 +1,14 @@
1
1
  # typed: strict
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'apple-data/boot_args'
5
- require 'apple-data/fdr'
6
- require 'apple-data/ioreg'
7
- require 'apple-data/macho'
8
- require 'apple-data/lockdown'
4
+ require 'apple_data/boot_args'
5
+ require 'apple_data/fdr'
6
+ require 'apple_data/ioreg'
7
+ require 'apple_data/macho'
8
+ require 'apple_data/lockdown'
9
+
10
+ APPLE_DATA_SHARE = File.join(File.dirname(__FILE__), '../share/')
11
+
12
+ def get_data(file)
13
+ YAML.load_file(File.join(APPLE_DATA_SHARE, file))
14
+ end