reactive_freight 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +5 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.md +166 -0
  5. data/Rakefile +8 -0
  6. data/accessorial_symbols.txt +95 -0
  7. data/lib/reactive_freight.rb +21 -0
  8. data/lib/reactive_freight/carrier.rb +62 -0
  9. data/lib/reactive_freight/carriers.rb +18 -0
  10. data/lib/reactive_freight/carriers/btvp.rb +384 -0
  11. data/lib/reactive_freight/carriers/clni.rb +59 -0
  12. data/lib/reactive_freight/carriers/ctbv.rb +35 -0
  13. data/lib/reactive_freight/carriers/dphe.rb +296 -0
  14. data/lib/reactive_freight/carriers/drrq.rb +303 -0
  15. data/lib/reactive_freight/carriers/fcsy.rb +24 -0
  16. data/lib/reactive_freight/carriers/fwda.rb +243 -0
  17. data/lib/reactive_freight/carriers/jfj_transportation.rb +11 -0
  18. data/lib/reactive_freight/carriers/pens.rb +135 -0
  19. data/lib/reactive_freight/carriers/rdfs.rb +320 -0
  20. data/lib/reactive_freight/carriers/saia.rb +336 -0
  21. data/lib/reactive_freight/carriers/sefl.rb +234 -0
  22. data/lib/reactive_freight/carriers/totl.rb +96 -0
  23. data/lib/reactive_freight/carriers/wrds.rb +218 -0
  24. data/lib/reactive_freight/configuration/carriers/btvp.yml +139 -0
  25. data/lib/reactive_freight/configuration/carriers/clni.yml +107 -0
  26. data/lib/reactive_freight/configuration/carriers/ctbv.yml +117 -0
  27. data/lib/reactive_freight/configuration/carriers/dphe.yml +124 -0
  28. data/lib/reactive_freight/configuration/carriers/drrq.yml +115 -0
  29. data/lib/reactive_freight/configuration/carriers/fcsy.yml +104 -0
  30. data/lib/reactive_freight/configuration/carriers/fwda.yml +117 -0
  31. data/lib/reactive_freight/configuration/carriers/jfj_transportation.yml +2 -0
  32. data/lib/reactive_freight/configuration/carriers/pens.yml +22 -0
  33. data/lib/reactive_freight/configuration/carriers/rdfs.yml +135 -0
  34. data/lib/reactive_freight/configuration/carriers/saia.yml +117 -0
  35. data/lib/reactive_freight/configuration/carriers/sefl.yml +115 -0
  36. data/lib/reactive_freight/configuration/carriers/totl.yml +107 -0
  37. data/lib/reactive_freight/configuration/carriers/wrds.yml +19 -0
  38. data/lib/reactive_freight/configuration/platforms/carrier_logistics.yml +25 -0
  39. data/lib/reactive_freight/configuration/platforms/liftoff.yml +12 -0
  40. data/lib/reactive_freight/package.rb +137 -0
  41. data/lib/reactive_freight/platform.rb +36 -0
  42. data/lib/reactive_freight/platforms.rb +4 -0
  43. data/lib/reactive_freight/platforms/carrier_logistics.rb +317 -0
  44. data/lib/reactive_freight/platforms/liftoff.rb +102 -0
  45. data/lib/reactive_freight/rate_estimate.rb +113 -0
  46. data/lib/reactive_freight/shipment_event.rb +10 -0
  47. data/reactive_freight.gemspec +39 -0
  48. data/service_type_symbols.txt +4 -0
  49. metadata +198 -0
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ReactiveShipping
4
+ class ShipmentEvent
5
+ # Return symbol of status rather than a string but maintain compatibility with ReactiveShipping
6
+ def status
7
+ @status ||= name.class == String ? name.downcase.gsub("\s", '_').to_sym : name
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'reactive_freight'
5
+ spec.license = 'MIT'
6
+ spec.version = '0.0.1'
7
+ spec.date = '2021-01-06'
8
+
9
+ spec.authors = [
10
+ 'Brody Hoskins',
11
+ 'Sub Pop Records',
12
+ 'Shopify'
13
+ ]
14
+ spec.email = [
15
+ 'brody@brody.digital',
16
+ 'webmaster@subpop.com',
17
+ 'integrations-team@shopify.com'
18
+ ]
19
+
20
+ spec.summary = 'Extend ReactiveShipping to support LTL carriers'
21
+ spec.description = <<~DESC.gsub(/\n/, ' ').strip
22
+ ReactiveFreight extends ReactiveShipping to support LTL carriers. Added
23
+ features include abstracted accessorials and tracking events as well as
24
+ downloading scanned documents from carriers.
25
+ DESC
26
+ spec.homepage = 'https://github.com/brodyhoskins/reactive_freight'
27
+
28
+ spec.files = Dir['lib/**/*']
29
+ spec.files += Dir['[A-Z]*'] + Dir['test/**/*']
30
+ spec.files.reject! { |fn| fn.include? 'CVS' }
31
+ spec.require_paths = ['lib']
32
+
33
+ spec.add_dependency 'httparty', '~> 0.10'
34
+ spec.add_dependency 'reactive_shipping', '~> 3.0.1'
35
+ spec.add_dependency 'rmagick', '~> 4.1.0'
36
+ spec.add_dependency 'savon', '>= 2.0', '< 2.13'
37
+ spec.add_dependency 'watir', '>= 6.1', '< 6.18'
38
+ spec.add_dependency 'webdrivers', '>= 4.0', '< 4.5'
39
+ end
@@ -0,0 +1,4 @@
1
+ :standard
2
+ :guaranteed_delivery
3
+ :guaranteed_delivery_am
4
+ :guaranteed_delivery_pm
metadata ADDED
@@ -0,0 +1,198 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: reactive_freight
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Brody Hoskins
8
+ - Sub Pop Records
9
+ - Shopify
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2021-01-06 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: httparty
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '0.10'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '0.10'
29
+ - !ruby/object:Gem::Dependency
30
+ name: reactive_shipping
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: 3.0.1
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: 3.0.1
43
+ - !ruby/object:Gem::Dependency
44
+ name: rmagick
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 4.1.0
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: 4.1.0
57
+ - !ruby/object:Gem::Dependency
58
+ name: savon
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '2.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '2.13'
67
+ type: :runtime
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '2.0'
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: '2.13'
77
+ - !ruby/object:Gem::Dependency
78
+ name: watir
79
+ requirement: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '6.1'
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: '6.18'
87
+ type: :runtime
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '6.1'
94
+ - - "<"
95
+ - !ruby/object:Gem::Version
96
+ version: '6.18'
97
+ - !ruby/object:Gem::Dependency
98
+ name: webdrivers
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '4.0'
104
+ - - "<"
105
+ - !ruby/object:Gem::Version
106
+ version: '4.5'
107
+ type: :runtime
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '4.0'
114
+ - - "<"
115
+ - !ruby/object:Gem::Version
116
+ version: '4.5'
117
+ description: ReactiveFreight extends ReactiveShipping to support LTL carriers. Added
118
+ features include abstracted accessorials and tracking events as well as downloading
119
+ scanned documents from carriers.
120
+ email:
121
+ - brody@brody.digital
122
+ - webmaster@subpop.com
123
+ - integrations-team@shopify.com
124
+ executables: []
125
+ extensions: []
126
+ extra_rdoc_files: []
127
+ files:
128
+ - Gemfile
129
+ - MIT-LICENSE
130
+ - README.md
131
+ - Rakefile
132
+ - accessorial_symbols.txt
133
+ - lib/reactive_freight.rb
134
+ - lib/reactive_freight/carrier.rb
135
+ - lib/reactive_freight/carriers.rb
136
+ - lib/reactive_freight/carriers/btvp.rb
137
+ - lib/reactive_freight/carriers/clni.rb
138
+ - lib/reactive_freight/carriers/ctbv.rb
139
+ - lib/reactive_freight/carriers/dphe.rb
140
+ - lib/reactive_freight/carriers/drrq.rb
141
+ - lib/reactive_freight/carriers/fcsy.rb
142
+ - lib/reactive_freight/carriers/fwda.rb
143
+ - lib/reactive_freight/carriers/jfj_transportation.rb
144
+ - lib/reactive_freight/carriers/pens.rb
145
+ - lib/reactive_freight/carriers/rdfs.rb
146
+ - lib/reactive_freight/carriers/saia.rb
147
+ - lib/reactive_freight/carriers/sefl.rb
148
+ - lib/reactive_freight/carriers/totl.rb
149
+ - lib/reactive_freight/carriers/wrds.rb
150
+ - lib/reactive_freight/configuration/carriers/btvp.yml
151
+ - lib/reactive_freight/configuration/carriers/clni.yml
152
+ - lib/reactive_freight/configuration/carriers/ctbv.yml
153
+ - lib/reactive_freight/configuration/carriers/dphe.yml
154
+ - lib/reactive_freight/configuration/carriers/drrq.yml
155
+ - lib/reactive_freight/configuration/carriers/fcsy.yml
156
+ - lib/reactive_freight/configuration/carriers/fwda.yml
157
+ - lib/reactive_freight/configuration/carriers/jfj_transportation.yml
158
+ - lib/reactive_freight/configuration/carriers/pens.yml
159
+ - lib/reactive_freight/configuration/carriers/rdfs.yml
160
+ - lib/reactive_freight/configuration/carriers/saia.yml
161
+ - lib/reactive_freight/configuration/carriers/sefl.yml
162
+ - lib/reactive_freight/configuration/carriers/totl.yml
163
+ - lib/reactive_freight/configuration/carriers/wrds.yml
164
+ - lib/reactive_freight/configuration/platforms/carrier_logistics.yml
165
+ - lib/reactive_freight/configuration/platforms/liftoff.yml
166
+ - lib/reactive_freight/package.rb
167
+ - lib/reactive_freight/platform.rb
168
+ - lib/reactive_freight/platforms.rb
169
+ - lib/reactive_freight/platforms/carrier_logistics.rb
170
+ - lib/reactive_freight/platforms/liftoff.rb
171
+ - lib/reactive_freight/rate_estimate.rb
172
+ - lib/reactive_freight/shipment_event.rb
173
+ - reactive_freight.gemspec
174
+ - service_type_symbols.txt
175
+ homepage: https://github.com/brodyhoskins/reactive_freight
176
+ licenses:
177
+ - MIT
178
+ metadata: {}
179
+ post_install_message:
180
+ rdoc_options: []
181
+ require_paths:
182
+ - lib
183
+ required_ruby_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ requirements: []
194
+ rubygems_version: 3.0.3
195
+ signing_key:
196
+ specification_version: 4
197
+ summary: Extend ReactiveShipping to support LTL carriers
198
+ test_files: []