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: f0da163f7eef569ab609a5677d523179ff14201129f5db8b3a362e2088fa76df
4
- data.tar.gz: ea00e47bbeff6ba7d33ccf7b6c8bbc240420721b88e6cf9cd93630375b2b036f
3
+ metadata.gz: bf3ea6e676c65d106c9054209d3dc987b68183fc02768ddaf17eefbae715d51e
4
+ data.tar.gz: e6a948691289653bf0d800b0cd7a16a7965d8be9024125f4b7816f730b08a8aa
5
5
  SHA512:
6
- metadata.gz: 166407f0714df6bdf9d34e226541d3e1b9711428e6ff92a1c820f3591011cebc16a53900d9798a236e5e35c2e66e296898e980a7adc6d54bb024097e8f2a3861
7
- data.tar.gz: 199af92ad782ec1b1acae8c5d66fa9f19edd9b7105689ee5e4939b4042f228754d5e4b14feef28aca4a56e29c8aced682a4621e746d11a24585c4e4a9b334cd8
6
+ metadata.gz: 7723ff1d4188bd6068d8f643e96cd5dab5d9fb0a09db727f69d881bb6e387c44658d9c543fbb6b74a2111e9ac9921dd32e28e02a1f1f54f75dc4b57a57bf5731
7
+ data.tar.gz: 62d7a36e391bf9274380af3ecb5c03bbc4909ecf603c07d21424bfc14f1d42fb9b2c15fb56dcafc25064019293d836591a55b8588d22b537a5f5d1aaaf47df2e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- freight_kit (0.1.25)
4
+ freight_kit (0.1.28)
5
5
  StreetAddress (~> 2.0)
6
6
  active_utils (>= 3.3.1, < 3.7.0)
7
7
  activemodel (>= 7.1, < 8.1.5)
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
- Portions of this project are © 2020 Brody Hoskins from project ReactiveFreight.
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.28
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
@@ -365,7 +365,7 @@ module FreightKit
365
365
  end
366
366
 
367
367
  location ||= case event
368
- when :delivered then destination
368
+ when :delivered, :out_for_delivery then destination
369
369
  when :departed then last_location
370
370
  when :picked_up, :pickup_scheduled then origin
371
371
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freight_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Third Party Transportation Systems LLC