freight_kit 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +201 -0
- data/MIT-LICENSE +31 -0
- data/README.md +153 -0
- data/VERSION +1 -0
- data/accessorial_symbols.txt +95 -0
- data/freight_kit.gemspec +58 -0
- data/lib/freight_kit/carrier.rb +473 -0
- data/lib/freight_kit/carriers.rb +24 -0
- data/lib/freight_kit/contact.rb +17 -0
- data/lib/freight_kit/error.rb +5 -0
- data/lib/freight_kit/errors/document_not_found_error.rb +5 -0
- data/lib/freight_kit/errors/expired_credentials_error.rb +5 -0
- data/lib/freight_kit/errors/http_error.rb +25 -0
- data/lib/freight_kit/errors/invalid_credentials_error.rb +5 -0
- data/lib/freight_kit/errors/response_error.rb +16 -0
- data/lib/freight_kit/errors/shipment_not_found_error.rb +5 -0
- data/lib/freight_kit/errors/unserviceable_accessorials_error.rb +17 -0
- data/lib/freight_kit/errors/unserviceable_error.rb +5 -0
- data/lib/freight_kit/errors.rb +10 -0
- data/lib/freight_kit/model.rb +17 -0
- data/lib/freight_kit/models/credential.rb +117 -0
- data/lib/freight_kit/models/date_time.rb +37 -0
- data/lib/freight_kit/models/document_response.rb +17 -0
- data/lib/freight_kit/models/label.rb +13 -0
- data/lib/freight_kit/models/location.rb +108 -0
- data/lib/freight_kit/models/pickup_response.rb +19 -0
- data/lib/freight_kit/models/price.rb +38 -0
- data/lib/freight_kit/models/rate.rb +81 -0
- data/lib/freight_kit/models/rate_response.rb +15 -0
- data/lib/freight_kit/models/response.rb +21 -0
- data/lib/freight_kit/models/shipment.rb +66 -0
- data/lib/freight_kit/models/shipment_event.rb +38 -0
- data/lib/freight_kit/models/tracking_response.rb +75 -0
- data/lib/freight_kit/models.rb +17 -0
- data/lib/freight_kit/package.rb +313 -0
- data/lib/freight_kit/package_item.rb +65 -0
- data/lib/freight_kit/packaging.rb +52 -0
- data/lib/freight_kit/platform.rb +36 -0
- data/lib/freight_kit/shipment_packer.rb +116 -0
- data/lib/freight_kit/tariff.rb +29 -0
- data/lib/freight_kit/version.rb +5 -0
- data/lib/freight_kit.rb +34 -0
- data/service_type_symbols.txt +4 -0
- data/shipment_event_symbols.txt +17 -0
- metadata +453 -0
metadata
ADDED
@@ -0,0 +1,453 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: freight_kit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Third Party Transportation Systems LLC
|
8
|
+
- Brody Hoskins
|
9
|
+
- Sub Pop Records
|
10
|
+
- Shopify
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
date: 2023-08-20 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: business_time
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.11.0
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.11.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: minitest
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - "~>"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 5.15.0
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 5.15.0
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: minitest-reporters
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 1.5.0
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 1.5.0
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: mocha
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - "~>"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.13.0
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 1.13.0
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: pry
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - "~>"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.13.1
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - "~>"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 0.13.1
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: pry-byebug
|
88
|
+
requirement: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - "~>"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 3.9.0
|
93
|
+
type: :development
|
94
|
+
prerelease: false
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 3.9.0
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
name: rake
|
102
|
+
requirement: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 13.0.3
|
107
|
+
type: :development
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: 13.0.3
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: rubocop-next
|
116
|
+
requirement: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - "~>"
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 1.0.3
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - "~>"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: 1.0.3
|
128
|
+
- !ruby/object:Gem::Dependency
|
129
|
+
name: timecop
|
130
|
+
requirement: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - "~>"
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 0.9.4
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - "~>"
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 0.9.4
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: vcr
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - "~>"
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: 6.1.0
|
149
|
+
type: :development
|
150
|
+
prerelease: false
|
151
|
+
version_requirements: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - "~>"
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: 6.1.0
|
156
|
+
- !ruby/object:Gem::Dependency
|
157
|
+
name: webmock
|
158
|
+
requirement: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - "~>"
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 3.14.0
|
163
|
+
type: :development
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: 3.14.0
|
170
|
+
- !ruby/object:Gem::Dependency
|
171
|
+
name: redcarpet
|
172
|
+
requirement: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - "~>"
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: 3.5.1
|
177
|
+
type: :development
|
178
|
+
prerelease: false
|
179
|
+
version_requirements: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - "~>"
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: 3.5.1
|
184
|
+
- !ruby/object:Gem::Dependency
|
185
|
+
name: yard
|
186
|
+
requirement: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - "~>"
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: 0.9.28
|
191
|
+
type: :development
|
192
|
+
prerelease: false
|
193
|
+
version_requirements: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - "~>"
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: 0.9.28
|
198
|
+
- !ruby/object:Gem::Dependency
|
199
|
+
name: activemodel
|
200
|
+
requirement: !ruby/object:Gem::Requirement
|
201
|
+
requirements:
|
202
|
+
- - ">="
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: '4.2'
|
205
|
+
- - "<"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: 7.0.8
|
208
|
+
type: :runtime
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '4.2'
|
215
|
+
- - "<"
|
216
|
+
- !ruby/object:Gem::Version
|
217
|
+
version: 7.0.8
|
218
|
+
- !ruby/object:Gem::Dependency
|
219
|
+
name: activesupport
|
220
|
+
requirement: !ruby/object:Gem::Requirement
|
221
|
+
requirements:
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: '4.2'
|
225
|
+
- - "<"
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: 7.0.8
|
228
|
+
type: :runtime
|
229
|
+
prerelease: false
|
230
|
+
version_requirements: !ruby/object:Gem::Requirement
|
231
|
+
requirements:
|
232
|
+
- - ">="
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: '4.2'
|
235
|
+
- - "<"
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: 7.0.8
|
238
|
+
- !ruby/object:Gem::Dependency
|
239
|
+
name: active_utils
|
240
|
+
requirement: !ruby/object:Gem::Requirement
|
241
|
+
requirements:
|
242
|
+
- - "~>"
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: 3.3.1
|
245
|
+
type: :runtime
|
246
|
+
prerelease: false
|
247
|
+
version_requirements: !ruby/object:Gem::Requirement
|
248
|
+
requirements:
|
249
|
+
- - "~>"
|
250
|
+
- !ruby/object:Gem::Version
|
251
|
+
version: 3.3.1
|
252
|
+
- !ruby/object:Gem::Dependency
|
253
|
+
name: httparty
|
254
|
+
requirement: !ruby/object:Gem::Requirement
|
255
|
+
requirements:
|
256
|
+
- - "~>"
|
257
|
+
- !ruby/object:Gem::Version
|
258
|
+
version: '0.10'
|
259
|
+
type: :runtime
|
260
|
+
prerelease: false
|
261
|
+
version_requirements: !ruby/object:Gem::Requirement
|
262
|
+
requirements:
|
263
|
+
- - "~>"
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: '0.10'
|
266
|
+
- !ruby/object:Gem::Dependency
|
267
|
+
name: measured
|
268
|
+
requirement: !ruby/object:Gem::Requirement
|
269
|
+
requirements:
|
270
|
+
- - ">="
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: '2.0'
|
273
|
+
- - "<"
|
274
|
+
- !ruby/object:Gem::Version
|
275
|
+
version: 2.8.3
|
276
|
+
type: :runtime
|
277
|
+
prerelease: false
|
278
|
+
version_requirements: !ruby/object:Gem::Requirement
|
279
|
+
requirements:
|
280
|
+
- - ">="
|
281
|
+
- !ruby/object:Gem::Version
|
282
|
+
version: '2.0'
|
283
|
+
- - "<"
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: 2.8.3
|
286
|
+
- !ruby/object:Gem::Dependency
|
287
|
+
name: mimemagic
|
288
|
+
requirement: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - "~>"
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 0.4.3
|
293
|
+
type: :runtime
|
294
|
+
prerelease: false
|
295
|
+
version_requirements: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: 0.4.3
|
300
|
+
- !ruby/object:Gem::Dependency
|
301
|
+
name: nokogiri
|
302
|
+
requirement: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '1.6'
|
307
|
+
- - "<"
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: '1.14'
|
310
|
+
type: :runtime
|
311
|
+
prerelease: false
|
312
|
+
version_requirements: !ruby/object:Gem::Requirement
|
313
|
+
requirements:
|
314
|
+
- - ">="
|
315
|
+
- !ruby/object:Gem::Version
|
316
|
+
version: '1.6'
|
317
|
+
- - "<"
|
318
|
+
- !ruby/object:Gem::Version
|
319
|
+
version: '1.14'
|
320
|
+
- !ruby/object:Gem::Dependency
|
321
|
+
name: place_kit
|
322
|
+
requirement: !ruby/object:Gem::Requirement
|
323
|
+
requirements:
|
324
|
+
- - "~>"
|
325
|
+
- !ruby/object:Gem::Version
|
326
|
+
version: 0.0.1
|
327
|
+
type: :runtime
|
328
|
+
prerelease: false
|
329
|
+
version_requirements: !ruby/object:Gem::Requirement
|
330
|
+
requirements:
|
331
|
+
- - "~>"
|
332
|
+
- !ruby/object:Gem::Version
|
333
|
+
version: 0.0.1
|
334
|
+
- !ruby/object:Gem::Dependency
|
335
|
+
name: savon
|
336
|
+
requirement: !ruby/object:Gem::Requirement
|
337
|
+
requirements:
|
338
|
+
- - ">="
|
339
|
+
- !ruby/object:Gem::Version
|
340
|
+
version: '2.0'
|
341
|
+
- - "<"
|
342
|
+
- !ruby/object:Gem::Version
|
343
|
+
version: '2.13'
|
344
|
+
type: :runtime
|
345
|
+
prerelease: false
|
346
|
+
version_requirements: !ruby/object:Gem::Requirement
|
347
|
+
requirements:
|
348
|
+
- - ">="
|
349
|
+
- !ruby/object:Gem::Version
|
350
|
+
version: '2.0'
|
351
|
+
- - "<"
|
352
|
+
- !ruby/object:Gem::Version
|
353
|
+
version: '2.13'
|
354
|
+
- !ruby/object:Gem::Dependency
|
355
|
+
name: watir
|
356
|
+
requirement: !ruby/object:Gem::Requirement
|
357
|
+
requirements:
|
358
|
+
- - ">="
|
359
|
+
- !ruby/object:Gem::Version
|
360
|
+
version: '7.0'
|
361
|
+
- - "<"
|
362
|
+
- !ruby/object:Gem::Version
|
363
|
+
version: '7.2'
|
364
|
+
type: :runtime
|
365
|
+
prerelease: false
|
366
|
+
version_requirements: !ruby/object:Gem::Requirement
|
367
|
+
requirements:
|
368
|
+
- - ">="
|
369
|
+
- !ruby/object:Gem::Version
|
370
|
+
version: '7.0'
|
371
|
+
- - "<"
|
372
|
+
- !ruby/object:Gem::Version
|
373
|
+
version: '7.2'
|
374
|
+
description: Freight carrier API and website abstraction library for transportation
|
375
|
+
management systems (TMS)
|
376
|
+
email:
|
377
|
+
- hello@next-tms.com
|
378
|
+
- brody@brody.digital
|
379
|
+
- webmaster@subpop.com
|
380
|
+
- integrations-team@shopify.com
|
381
|
+
executables: []
|
382
|
+
extensions: []
|
383
|
+
extra_rdoc_files: []
|
384
|
+
files:
|
385
|
+
- Gemfile
|
386
|
+
- Gemfile.lock
|
387
|
+
- MIT-LICENSE
|
388
|
+
- README.md
|
389
|
+
- VERSION
|
390
|
+
- accessorial_symbols.txt
|
391
|
+
- freight_kit.gemspec
|
392
|
+
- lib/freight_kit.rb
|
393
|
+
- lib/freight_kit/carrier.rb
|
394
|
+
- lib/freight_kit/carriers.rb
|
395
|
+
- lib/freight_kit/contact.rb
|
396
|
+
- lib/freight_kit/error.rb
|
397
|
+
- lib/freight_kit/errors.rb
|
398
|
+
- lib/freight_kit/errors/document_not_found_error.rb
|
399
|
+
- lib/freight_kit/errors/expired_credentials_error.rb
|
400
|
+
- lib/freight_kit/errors/http_error.rb
|
401
|
+
- lib/freight_kit/errors/invalid_credentials_error.rb
|
402
|
+
- lib/freight_kit/errors/response_error.rb
|
403
|
+
- lib/freight_kit/errors/shipment_not_found_error.rb
|
404
|
+
- lib/freight_kit/errors/unserviceable_accessorials_error.rb
|
405
|
+
- lib/freight_kit/errors/unserviceable_error.rb
|
406
|
+
- lib/freight_kit/model.rb
|
407
|
+
- lib/freight_kit/models.rb
|
408
|
+
- lib/freight_kit/models/credential.rb
|
409
|
+
- lib/freight_kit/models/date_time.rb
|
410
|
+
- lib/freight_kit/models/document_response.rb
|
411
|
+
- lib/freight_kit/models/label.rb
|
412
|
+
- lib/freight_kit/models/location.rb
|
413
|
+
- lib/freight_kit/models/pickup_response.rb
|
414
|
+
- lib/freight_kit/models/price.rb
|
415
|
+
- lib/freight_kit/models/rate.rb
|
416
|
+
- lib/freight_kit/models/rate_response.rb
|
417
|
+
- lib/freight_kit/models/response.rb
|
418
|
+
- lib/freight_kit/models/shipment.rb
|
419
|
+
- lib/freight_kit/models/shipment_event.rb
|
420
|
+
- lib/freight_kit/models/tracking_response.rb
|
421
|
+
- lib/freight_kit/package.rb
|
422
|
+
- lib/freight_kit/package_item.rb
|
423
|
+
- lib/freight_kit/packaging.rb
|
424
|
+
- lib/freight_kit/platform.rb
|
425
|
+
- lib/freight_kit/shipment_packer.rb
|
426
|
+
- lib/freight_kit/tariff.rb
|
427
|
+
- lib/freight_kit/version.rb
|
428
|
+
- service_type_symbols.txt
|
429
|
+
- shipment_event_symbols.txt
|
430
|
+
homepage: https://github.com/next-tms/freight_kit
|
431
|
+
licenses: []
|
432
|
+
metadata: {}
|
433
|
+
post_install_message:
|
434
|
+
rdoc_options: []
|
435
|
+
require_paths:
|
436
|
+
- lib
|
437
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
438
|
+
requirements:
|
439
|
+
- - ">="
|
440
|
+
- !ruby/object:Gem::Version
|
441
|
+
version: 3.2.0
|
442
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
443
|
+
requirements:
|
444
|
+
- - ">="
|
445
|
+
- !ruby/object:Gem::Version
|
446
|
+
version: '0'
|
447
|
+
requirements: []
|
448
|
+
rubygems_version: 3.4.10
|
449
|
+
signing_key:
|
450
|
+
specification_version: 4
|
451
|
+
summary: Freight carrier API and website abstraction library for transportation management
|
452
|
+
systems (TMS)
|
453
|
+
test_files: []
|