apple_db 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/apple_db.rb +3 -2
- data/lib/apple_db/apple_db.csv +1 -0
- data/lib/apple_db/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b5798ff34f2c147e45892a8b4d79e1137fd8553c55f53e705b5f06247ae992
|
4
|
+
data.tar.gz: 9678de7c0f18992d92ddc1d22dafa6333abd366321c8f1450746580d28c9e3d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec4a88c84d2f120d2bcad8f7317a7a533f23b497959268cd6f7a6043cdabc599bb499df815895e834d5d06bb96b11f7db37ff2a58fedb97b2e832452f53e4ad
|
7
|
+
data.tar.gz: 37f8f3adf17d35522ebf5e76cf8d4a03ec5362da2e8d6fe0f6dbf0fda386692ae1be80af6c8b2f7cd90416ee9906205fdaebbcef5ba8af8dbe40fc9e647193d9
|
data/CHANGELOG.md
CHANGED
data/lib/apple_db.rb
CHANGED
@@ -4,8 +4,9 @@ require "apple_db/version"
|
|
4
4
|
module AppleDb
|
5
5
|
class Identifier
|
6
6
|
def find_by_serial_number(serial_number)
|
7
|
-
|
8
|
-
|
7
|
+
identifier = serial_number[serial_number.length - 4, serial_number.length]
|
8
|
+
identifier[0] = "" if serial_number.length == 11
|
9
|
+
items.find { |item| identifier == item["identifier"] }
|
9
10
|
end
|
10
11
|
|
11
12
|
private
|
data/lib/apple_db/apple_db.csv
CHANGED
@@ -7625,6 +7625,7 @@ N6VR|Stationary|Mac mini (2018)
|
|
7625
7625
|
N6W|Router|AirPort Extreme Card
|
7626
7626
|
N6X|Router|AirPort Extreme Card
|
7627
7627
|
N6Y|Router|AirPort Extreme Card
|
7628
|
+
N6YF|Phone|iPhone 11 Pro
|
7628
7629
|
N71C|Laptop|MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)
|
7629
7630
|
N71D|Laptop|MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)
|
7630
7631
|
N71F|Laptop|MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)
|
data/lib/apple_db/version.rb
CHANGED