freight_kit 0.1.2 → 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: c7585d483bb35fb622814e2eca64eadfe20576d162df35e455cd533ec813b420
4
- data.tar.gz: 72de1707ea75c669bce4c893bc129dd155f8ad56a277732a401ac688ab6a85fc
3
+ metadata.gz: 6580f865ed67b79e9b6c426bd519af397ff527725b8d48e74a489b42ad3bb793
4
+ data.tar.gz: 98b55c646d50f715d79a63ba7e0defe0a2b53d74f5d872064931b506327c0f6d
5
5
  SHA512:
6
- metadata.gz: 8be93a3e57057231e5e4a1e11d765008e5a1b5cf769fd22eb163cfdb4a902405d9f56d1801272d76c84220ba571d2d78e653adf67be6bfa6701c44cee9361283
7
- data.tar.gz: d8877d95417add97174ba764ca92801aa0389cebb36c3809f734299bc64fc8a6584d375f747db78c686510b6bfd943de952fae3aa201b4312397c21cbaff86b2
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.2
1
+ 0.1.3
data/freight_kit.gemspec CHANGED
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
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.3')
40
+ spec.add_dependency('activemodel', '>= 4.2', '< 7.1.4')
41
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')
@@ -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.2
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: 2024-01-24 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
@@ -120,7 +120,7 @@ dependencies:
120
120
  version: '4.2'
121
121
  - - "<"
122
122
  - !ruby/object:Gem::Version
123
- version: 7.1.3
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.3
133
+ version: 7.1.4
134
134
  - !ruby/object:Gem::Dependency
135
135
  name: activesupport
136
136
  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