freight_kit 0.1.28 → 0.1.29
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bf3ea6e676c65d106c9054209d3dc987b68183fc02768ddaf17eefbae715d51e
|
|
4
|
+
data.tar.gz: e6a948691289653bf0d800b0cd7a16a7965d8be9024125f4b7816f730b08a8aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7723ff1d4188bd6068d8f643e96cd5dab5d9fb0a09db727f69d881bb6e387c44658d9c543fbb6b74a2111e9ac9921dd32e28e02a1f1f54f75dc4b57a57bf5731
|
|
7
|
+
data.tar.gz: 62d7a36e391bf9274380af3ecb5c03bbc4909ecf603c07d21424bfc14f1d42fb9b2c15fb56dcafc25064019293d836591a55b8588d22b537a5f5d1aaaf47df2e
|
data/Gemfile.lock
CHANGED
data/MIT-LICENSE
CHANGED
|
@@ -4,12 +4,8 @@ ActiveShipping.
|
|
|
4
4
|
Portions of this project are © 2018 Sub Pop Records from project
|
|
5
5
|
RectiveShipping.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Portions of this project are © 2021 Brody Hoskins from project HyperCarrier.
|
|
10
|
-
|
|
11
|
-
Copyright for all later portions this project are held by Third Party Logistics
|
|
12
|
-
Management Systems LLC.
|
|
7
|
+
Copyright for all later portions this project are held by FreightKit
|
|
8
|
+
contributors.
|
|
13
9
|
|
|
14
10
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
15
11
|
a copy of this software and associated documentation files (the
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.29
|
|
@@ -69,6 +69,7 @@ module FreightKit
|
|
|
69
69
|
'FRES': { city: 'Fresno', province: 'CA', state: 'CA' },
|
|
70
70
|
'KENT': { city: 'Kent', province: 'WA', state: 'WA' },
|
|
71
71
|
'LA': { city: 'Los Angeles', province: 'CA', state: 'CA' },
|
|
72
|
+
'MGUL': { city: 'Denver', province: 'CO', state: 'CO' },
|
|
72
73
|
'PDX': { city: 'Portland', province: 'OR', state: 'OR' },
|
|
73
74
|
'SAC': { city: 'Sacramento', province: 'CA', state: 'CA' },
|
|
74
75
|
'SJ': { city: 'San Jose', province: 'CA', state: 'CA' },
|
|
@@ -56,6 +56,12 @@ module FreightKit
|
|
|
56
56
|
},
|
|
57
57
|
ports: { rates: 10_010, track: 10_010 }
|
|
58
58
|
).freeze
|
|
59
|
+
EVENTS = Platforms::TheGreatInformationFactory::EVENTS.deep_merge(
|
|
60
|
+
locations: {
|
|
61
|
+
'45': { city: 'Fresno', province: 'CA', state: 'CA' },
|
|
62
|
+
'85': { city: 'Vernon', province: 'CA', state: 'CA' }
|
|
63
|
+
}
|
|
64
|
+
).freeze
|
|
59
65
|
|
|
60
66
|
def build_calculated_accessorials(packages)
|
|
61
67
|
longest_dimension = packages.map { |package| [package.length(:in), package.width(:in)].max }.max.ceil
|