freight_kit 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43f9194d8ea016f9677da77136fb7bc91cbdbf643d8e58ca4ce3f43535c8aa6c
4
- data.tar.gz: a6f676f80852b5c1b3e19495f68725f39a94736099febb37dd2a06cdb7103ce4
3
+ metadata.gz: 6580f865ed67b79e9b6c426bd519af397ff527725b8d48e74a489b42ad3bb793
4
+ data.tar.gz: 98b55c646d50f715d79a63ba7e0defe0a2b53d74f5d872064931b506327c0f6d
5
5
  SHA512:
6
- metadata.gz: 6b8c94549422c2f20b335d5973a3e274e6634c222872080ddbd5c754d478df93909e7ce85a56ebab3f84c4dfd3dcbb505a0b6f24989e2792a3cd31ac166fa551
7
- data.tar.gz: 3878a7e29248e6bdd486469f2bf46e21f2627178d32c3f0e512dad2fe42e860ab52022febdeac3bf275d2b01caad668ac77f62ad28978f6e9133c879f0fb41ea
6
+ metadata.gz: 1fad0c913388a085bd5d94231bc5ca1d68aaeef57a251d05a43506ef863404442fd19d7113235a78a4b556a16a0dde83070b8d5cc094d0fb07e0873810f2b4f6
7
+ data.tar.gz: 6637da5a16e09322598cff6e4cdeb9ef6c30b45f794504ac348d05dfee0b81e68e3c305a1975554c2c6ab7d131edc863507be0d885c850f2131fe35cb3fc057a
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- freight_kit (0.1.1)
4
+ freight_kit (0.1.2)
5
5
  active_utils (>= 3.3.1, < 3.5.0)
6
- activemodel (>= 4.2, < 7.1.2)
7
- activesupport (>= 4.2, < 7.0.9)
6
+ activemodel (>= 4.2, < 7.1.3)
7
+ activesupport (>= 4.2, < 7.1.4)
8
8
  httparty (~> 0.10)
9
9
  measured (>= 2.0, < 2.8.3)
10
10
  mimemagic (~> 0.4.3)
11
- nokogiri (>= 1.6, < 1.16)
11
+ nokogiri (>= 1.6, < 1.17)
12
12
  place_kit (~> 0.0.1)
13
13
  savon (>= 2.0, < 2.15)
14
14
  tzinfo-data (~> 1.2023, >= 1.2023.3)
@@ -80,7 +80,7 @@ GEM
80
80
  racc (1.7.1)
81
81
  rack (3.0.8)
82
82
  rainbow (3.1.1)
83
- rake (13.0.6)
83
+ rake (13.1.0)
84
84
  redcarpet (3.6.0)
85
85
  regexp_parser (2.8.1)
86
86
  rexml (3.2.6)
@@ -173,7 +173,7 @@ DEPENDENCIES
173
173
  business_time (~> 0.13.0)
174
174
  faker (~> 3.2.1)
175
175
  freight_kit!
176
- rake (~> 13.0.3)
176
+ rake (~> 13.1.0)
177
177
  redcarpet (~> 3.6.0)
178
178
  rspec (~> 3.12)
179
179
  rubocop-next (~> 1.0.3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.3
data/freight_kit.gemspec CHANGED
@@ -30,20 +30,20 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_development_dependency('business_time', '~> 0.13.0')
32
32
  spec.add_development_dependency('faker', '~> 3.2.1')
33
- spec.add_development_dependency('rake', '~> 13.0.3')
33
+ spec.add_development_dependency('rake', '~> 13.1.0')
34
34
  spec.add_development_dependency('rspec', '~> 3.12')
35
35
  spec.add_development_dependency('rubocop-next', '~> 1.0.3')
36
36
 
37
37
  spec.add_development_dependency('redcarpet', '~> 3.6.0') # for yard
38
38
  spec.add_development_dependency('yard', '~> 0.9.28')
39
39
 
40
- spec.add_dependency('activemodel', '>= 4.2', '< 7.1.2')
41
- spec.add_dependency('activesupport', '>= 4.2', '< 7.0.9')
40
+ spec.add_dependency('activemodel', '>= 4.2', '< 7.1.4')
41
+ spec.add_dependency('activesupport', '>= 4.2', '< 7.1.4')
42
42
  spec.add_dependency('active_utils', '>= 3.3.1', '< 3.5.0')
43
43
  spec.add_dependency('httparty', '~> 0.10')
44
44
  spec.add_dependency('measured', '>= 2.0', '< 2.8.3')
45
45
  spec.add_dependency('mimemagic', '~> 0.4.3')
46
- spec.add_dependency('nokogiri', '>= 1.6', '< 1.16')
46
+ spec.add_dependency('nokogiri', '>= 1.6', '< 1.17')
47
47
  spec.add_dependency('place_kit', '~> 0.0.1')
48
48
  spec.add_dependency('savon', '>= 2.0', '< 2.15')
49
49
  spec.add_dependency('tzinfo-data', '~> 1.2023', '>= 1.2023.3')
@@ -16,30 +16,12 @@ module FreightKit
16
16
  # @see #save_request
17
17
  class Carrier
18
18
  class << self
19
- # Whether looking up available services is implemented.
20
- # @return [Boolean]
21
- def available_services_implemented?
22
- false
23
- end
24
-
25
19
  # Whether bill of lading (BOL) requires tracking number at time of pickup.
26
20
  # @return [Boolean]
27
21
  def bol_requires_tracking_number?
28
22
  false
29
23
  end
30
24
 
31
- # Whether canceling a shipment is implemented.
32
- # @return [Boolean]
33
- def cancel_shipment_implemented?
34
- false
35
- end
36
-
37
- # Whether creating a pickup is implemented.
38
- # @return [Boolean]
39
- def create_pickup_implemented?
40
- false
41
- end
42
-
43
25
  # The default location to use for {#valid_credentials?}.
44
26
  # @return [FreightKit::Location]
45
27
  def default_location
@@ -55,33 +37,17 @@ module FreightKit
55
37
  )
56
38
  end
57
39
 
58
- # Whether retrieving an existing rate is implemented.
59
- # @return [Boolean]
60
- def find_estimate_implemented?
61
- false
62
- end
63
-
64
- # Whether finding rates is implemented.
65
- # @return [Boolean]
66
- def find_rates_implemented?
67
- false
68
- end
69
-
70
40
  # Whether finding rates with declared value (thus insurance) is implemented.
71
41
  # @return [Boolean]
72
42
  def find_rates_with_declared_value?
73
43
  false
74
44
  end
75
45
 
76
- # Whether retrieving tracking information is implemented.
77
- # @return [Boolean]
78
- def find_tracking_info_implemented?
79
- false
80
- end
81
-
82
- # Whether retrieving tracking number from pickup number is implemented.
46
+ # Whether instance method is supported
83
47
  # @return [Boolean]
84
- def find_tracking_number_from_pickup_number_implemented?
48
+ def implemented?(instance_method)
49
+ instance_method(instance_method).owner != FreightKit::Carrier
50
+ rescue NameError
85
51
  false
86
52
  end
87
53
 
@@ -121,12 +87,6 @@ module FreightKit
121
87
  false
122
88
  end
123
89
 
124
- # Whether proof of delivery (POD) retrieval is implemented.
125
- # @return [Boolean]
126
- def pod_implemented?
127
- false
128
- end
129
-
130
90
  # Returns the keywords passed to `#initialize` that cannot be blank.
131
91
  # @return [Array<Symbol>]
132
92
  def requirements
@@ -138,12 +98,6 @@ module FreightKit
138
98
  def required_credential_types
139
99
  %i[api]
140
100
  end
141
-
142
- # Whether scanned bill of lading (BOL) retrieval is implemented.
143
- # @return [Boolean]
144
- def scanned_bol_implemented?
145
- false
146
- end
147
101
  end
148
102
 
149
103
  attr_accessor :conf, :rates_with_excessive_length_fees, :tmpdir
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Third Party Transportation Systems LLC
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-10-29 00:00:00.000000000 Z
14
+ date: 2024-01-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: business_time
@@ -47,14 +47,14 @@ dependencies:
47
47
  requirements:
48
48
  - - "~>"
49
49
  - !ruby/object:Gem::Version
50
- version: 13.0.3
50
+ version: 13.1.0
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: 13.0.3
57
+ version: 13.1.0
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
60
  requirement: !ruby/object:Gem::Requirement
@@ -120,7 +120,7 @@ dependencies:
120
120
  version: '4.2'
121
121
  - - "<"
122
122
  - !ruby/object:Gem::Version
123
- version: 7.1.2
123
+ version: 7.1.4
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
@@ -130,7 +130,7 @@ dependencies:
130
130
  version: '4.2'
131
131
  - - "<"
132
132
  - !ruby/object:Gem::Version
133
- version: 7.1.2
133
+ version: 7.1.4
134
134
  - !ruby/object:Gem::Dependency
135
135
  name: activesupport
136
136
  requirement: !ruby/object:Gem::Requirement
@@ -140,7 +140,7 @@ dependencies:
140
140
  version: '4.2'
141
141
  - - "<"
142
142
  - !ruby/object:Gem::Version
143
- version: 7.0.9
143
+ version: 7.1.4
144
144
  type: :runtime
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
@@ -150,7 +150,7 @@ dependencies:
150
150
  version: '4.2'
151
151
  - - "<"
152
152
  - !ruby/object:Gem::Version
153
- version: 7.0.9
153
+ version: 7.1.4
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: active_utils
156
156
  requirement: !ruby/object:Gem::Requirement
@@ -228,7 +228,7 @@ dependencies:
228
228
  version: '1.6'
229
229
  - - "<"
230
230
  - !ruby/object:Gem::Version
231
- version: '1.16'
231
+ version: '1.17'
232
232
  type: :runtime
233
233
  prerelease: false
234
234
  version_requirements: !ruby/object:Gem::Requirement
@@ -238,7 +238,7 @@ dependencies:
238
238
  version: '1.6'
239
239
  - - "<"
240
240
  - !ruby/object:Gem::Version
241
- version: '1.16'
241
+ version: '1.17'
242
242
  - !ruby/object:Gem::Dependency
243
243
  name: place_kit
244
244
  requirement: !ruby/object:Gem::Requirement
@@ -387,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
387
387
  - !ruby/object:Gem::Version
388
388
  version: '0'
389
389
  requirements: []
390
- rubygems_version: 3.4.10
390
+ rubygems_version: 3.5.5
391
391
  signing_key:
392
392
  specification_version: 4
393
393
  summary: Freight carrier API and website abstraction library for transportation management