freight_kit 0.1.5 → 0.1.7

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: 237b94cd7a42c8029f175485fa40e4f88d0b09084ab28be9e8af446fafa496d7
4
- data.tar.gz: 8563b82c4bb782d3ec16002d8bb07684a30a509f98642307f3f314cbdbd78a48
3
+ metadata.gz: a1a16a176e2607d375974ecc445bd469ea7f75b4b40d6f7d52e1f2962968a96b
4
+ data.tar.gz: adb1cca619f631ea4a336bc26fe760b8443ca50954e2582347051854180d9ddb
5
5
  SHA512:
6
- metadata.gz: a5e6e4779b45b05d7bdd490f5dedbe3d4545b1fd42838819273a4a1eaf37daa8a0dcf6c9c798b6c3f283965dc02d8ba71f7d0808e7bb737f6db24df5367d35fc
7
- data.tar.gz: 8e9f732d32d0009d045ce729809baf45b6761836a77a05ea57a089c5e171c37f8a073d5bcb79ec0ff8a5ca2ccb08de397b67d1822a1e9e9f14ca21cd8f5b3c59
6
+ metadata.gz: 3f33596bfc559c2536859dc584f7b03566f9dcc6597f177babfebf3fc1e19365877b3282eb98753fdecfbc4ee32799c3805c292aafab89691f8dcd2a07090754
7
+ data.tar.gz: 5ce3a8976040fcd069bed141be14ec4189247584de398f343ccf354bfaca617a243defcc57afc33bac05748bc75ab9fd4312412e71851e01688915f0baf6d34e
data/Gemfile.lock CHANGED
@@ -1,19 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- freight_kit (0.1.4)
4
+ freight_kit (0.1.7)
5
5
  active_utils (>= 3.3.1, < 3.5.0)
6
6
  activemodel (>= 4.2, < 7.1.4)
7
7
  activesupport (>= 4.2, < 7.1.4)
8
+ business_time (~> 0.13.0)
8
9
  httparty (~> 0.10)
9
- measured (>= 2.0, < 2.8.3)
10
+ measured (>= 2.0, < 3.0.1)
10
11
  mimemagic (~> 0.4.3)
11
12
  nokogiri (>= 1.6, < 1.17)
12
13
  place_kit (~> 0.0.2)
13
14
  savon (>= 2.0, < 2.16)
14
15
  tzinfo-data (~> 1.2023, >= 1.2023.3)
15
16
  watir (>= 7.0, < 7.4)
16
- zeitwerk (>= 2.6.0, < 2.6.14)
17
+ zeitwerk (>= 2.6.0, < 2.6.16)
17
18
 
18
19
  GEM
19
20
  remote: https://rubygems.org/
@@ -34,14 +35,14 @@ GEM
34
35
  gyoku (>= 0.4.0)
35
36
  nokogiri
36
37
  ast (2.4.2)
37
- base64 (0.1.1)
38
+ bigdecimal (3.1.8)
38
39
  builder (3.2.4)
39
40
  business_time (0.13.0)
40
41
  activesupport (>= 3.2.0)
41
42
  tzinfo
42
43
  concurrent-ruby (1.2.2)
43
44
  diff-lcs (1.5.0)
44
- faker (3.2.1)
45
+ faker (3.4.1)
45
46
  i18n (>= 1.8.11, < 2)
46
47
  fastcsv (0.0.7)
47
48
  gyoku (1.4.0)
@@ -55,7 +56,7 @@ GEM
55
56
  socksify
56
57
  i18n (1.14.1)
57
58
  concurrent-ruby (~> 1.0)
58
- json (2.6.3)
59
+ json (2.7.2)
59
60
  language_server-protocol (3.17.0.3)
60
61
  measured (2.8.2)
61
62
  activesupport (>= 5.2)
@@ -65,13 +66,14 @@ GEM
65
66
  mini_mime (1.1.5)
66
67
  mini_portile2 (2.8.4)
67
68
  minitest (5.20.0)
68
- multi_xml (0.6.0)
69
+ multi_xml (0.7.1)
70
+ bigdecimal (~> 3.1)
69
71
  nokogiri (1.13.10)
70
72
  mini_portile2 (~> 2.8.0)
71
73
  racc (~> 1.4)
72
74
  nori (2.6.0)
73
- parallel (1.23.0)
74
- parser (3.2.2.3)
75
+ parallel (1.25.1)
76
+ parser (3.3.2.0)
75
77
  ast (~> 2.4.1)
76
78
  racc
77
79
  place_kit (0.0.2)
@@ -81,7 +83,7 @@ GEM
81
83
  racc (1.7.1)
82
84
  rack (3.0.8)
83
85
  rainbow (3.1.1)
84
- rake (13.1.0)
86
+ rake (13.2.1)
85
87
  redcarpet (3.6.0)
86
88
  regexp_parser (2.9.0)
87
89
  rexml (3.2.6)
@@ -98,44 +100,38 @@ GEM
98
100
  diff-lcs (>= 1.2.0, < 2.0)
99
101
  rspec-support (~> 3.12.0)
100
102
  rspec-support (3.12.1)
101
- rubocop (1.56.2)
102
- base64 (~> 0.1.1)
103
+ rubocop (1.64.1)
103
104
  json (~> 2.3)
104
105
  language_server-protocol (>= 3.17.0)
105
106
  parallel (~> 1.10)
106
- parser (>= 3.2.2.3)
107
+ parser (>= 3.3.0.2)
107
108
  rainbow (>= 2.2.2, < 4.0)
108
109
  regexp_parser (>= 1.8, < 3.0)
109
110
  rexml (>= 3.2.5, < 4.0)
110
- rubocop-ast (>= 1.28.1, < 2.0)
111
+ rubocop-ast (>= 1.31.1, < 2.0)
111
112
  ruby-progressbar (~> 1.7)
112
113
  unicode-display_width (>= 2.4.0, < 3.0)
113
- rubocop-ast (1.29.0)
114
- parser (>= 3.2.1.0)
115
- rubocop-capybara (2.18.0)
116
- rubocop (~> 1.41)
117
- rubocop-factory_bot (2.23.1)
118
- rubocop (~> 1.33)
119
- rubocop-graphql (1.4.0)
114
+ rubocop-ast (1.31.3)
115
+ parser (>= 3.3.1.0)
116
+ rubocop-graphql (1.5.2)
120
117
  rubocop (>= 0.90, < 2)
121
- rubocop-next (1.0.6)
122
- rubocop (~> 1.56.0)
123
- rubocop-graphql (~> 1.4.0)
124
- rubocop-rails (~> 2.20.2)
118
+ rubocop-next (1.0.7)
119
+ rubocop (>= 1.56, < 1.65)
120
+ rubocop-graphql (>= 1.4, < 1.6)
121
+ rubocop-rails (>= 2.20.2, < 2.26.0)
125
122
  rubocop-rake (~> 0.6.0)
126
- rubocop-rspec (~> 2.23.2)
127
- rubocop-shopify (~> 2.14.0)
128
- rubocop-rails (2.20.2)
123
+ rubocop-rspec (>= 2.23.2, < 3.1.0)
124
+ rubocop-shopify (>= 2.14, < 2.16)
125
+ rubocop-rails (2.25.0)
129
126
  activesupport (>= 4.2.0)
130
127
  rack (>= 1.1)
131
128
  rubocop (>= 1.33.0, < 2.0)
129
+ rubocop-ast (>= 1.31.1, < 2.0)
132
130
  rubocop-rake (0.6.0)
133
131
  rubocop (~> 1.0)
134
- rubocop-rspec (2.23.2)
135
- rubocop (~> 1.33)
136
- rubocop-capybara (~> 2.17)
137
- rubocop-factory_bot (~> 2.22)
138
- rubocop-shopify (2.14.0)
132
+ rubocop-rspec (3.0.1)
133
+ rubocop (~> 1.61)
134
+ rubocop-shopify (2.15.1)
139
135
  rubocop (~> 1.51)
140
136
  ruby-progressbar (1.13.0)
141
137
  rubyzip (2.3.2)
@@ -156,7 +152,7 @@ GEM
156
152
  concurrent-ruby (~> 1.0)
157
153
  tzinfo-data (1.2023.3)
158
154
  tzinfo (>= 1.0.0)
159
- unicode-display_width (2.4.2)
155
+ unicode-display_width (2.5.0)
160
156
  wasabi (3.7.0)
161
157
  addressable
162
158
  httpi (~> 2.0)
@@ -173,13 +169,12 @@ PLATFORMS
173
169
  arm64-darwin-23
174
170
 
175
171
  DEPENDENCIES
176
- business_time (~> 0.13.0)
177
- faker (~> 3.2.1)
172
+ faker (~> 3.4.1)
178
173
  freight_kit!
179
- rake (~> 13.1.0)
174
+ rake (~> 13.2.1)
180
175
  redcarpet (~> 3.6.0)
181
176
  rspec (~> 3.12)
182
- rubocop-next (~> 1.0.3)
177
+ rubocop-next (~> 1.0.7)
183
178
  yard (~> 0.9.28)
184
179
 
185
180
  BUNDLED WITH
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.7
data/freight_kit.gemspec CHANGED
@@ -28,26 +28,26 @@ Gem::Specification.new do |spec|
28
28
  Dir['test/**/*']
29
29
  spec.require_paths = ['lib']
30
30
 
31
- spec.add_development_dependency('business_time', '~> 0.13.0')
32
- spec.add_development_dependency('faker', '~> 3.2.1')
33
- spec.add_development_dependency('rake', '~> 13.1.0')
31
+ spec.add_development_dependency('faker', '~> 3.4.1')
32
+ spec.add_development_dependency('rake', '~> 13.2.1')
34
33
  spec.add_development_dependency('redcarpet', '~> 3.6.0') # for yard
35
34
  spec.add_development_dependency('rspec', '~> 3.12')
36
- spec.add_development_dependency('rubocop-next', '~> 1.0.3')
35
+ spec.add_development_dependency('rubocop-next', '~> 1.0.7')
37
36
  spec.add_development_dependency('yard', '~> 0.9.28')
38
37
 
39
38
  spec.add_dependency('activemodel', '>= 4.2', '< 7.1.4')
40
39
  spec.add_dependency('activesupport', '>= 4.2', '< 7.1.4')
41
40
  spec.add_dependency('active_utils', '>= 3.3.1', '< 3.5.0')
41
+ spec.add_dependency('business_time', '~> 0.13.0')
42
42
  spec.add_dependency('httparty', '~> 0.10')
43
- spec.add_dependency('measured', '>= 2.0', '< 2.8.3')
43
+ spec.add_dependency('measured', '>= 2.0', '< 3.0.1')
44
44
  spec.add_dependency('mimemagic', '~> 0.4.3')
45
45
  spec.add_dependency('nokogiri', '>= 1.6', '< 1.17')
46
46
  spec.add_dependency('place_kit', '~> 0.0.2')
47
47
  spec.add_dependency('savon', '>= 2.0', '< 2.16')
48
48
  spec.add_dependency('tzinfo-data', '~> 1.2023', '>= 1.2023.3')
49
49
  spec.add_dependency('watir', '>= 7.0', '< 7.4')
50
- spec.add_dependency('zeitwerk', '>= 2.6.0', '< 2.6.14')
50
+ spec.add_dependency('zeitwerk', '>= 2.6.0', '< 2.6.16')
51
51
 
52
52
  spec.required_ruby_version = '>= 3.2.0'
53
53
  end
@@ -192,7 +192,7 @@ module FreightKit
192
192
  ),
193
193
  "#{self.class.to_s.split("::")[1].underscore}.yml",
194
194
  )
195
- @conf = YAML.safe_load(File.read(conf_path), permitted_classes: [Symbol])
195
+ @conf = YAML.safe_load_file(conf_path, permitted_classes: [Symbol])
196
196
 
197
197
  @rates_with_excessive_length_fees = @conf.dig(:attributes, :rates, :with_excessive_length_fees)
198
198
  end
@@ -100,7 +100,7 @@ module FreightKit
100
100
  def type=(value)
101
101
  return @type = nil if value.blank?
102
102
 
103
- raise ArgumentError, "type must be one of :#{TYPES.join(", :")}" unless TYPES.include?(value)
103
+ raise ArgumentError, "type must be one of :#{TYPES.join(", :")}" if TYPES.exclude?(value)
104
104
 
105
105
  @type = value
106
106
  end
@@ -137,7 +137,7 @@ module FreightKit # :nodoc:
137
137
  end
138
138
 
139
139
  def freight_class
140
- (declared_freight_class.presence || calculated_freight_class)
140
+ declared_freight_class.presence || calculated_freight_class
141
141
  end
142
142
 
143
143
  def length(unit)
@@ -28,7 +28,7 @@ module FreightKit
28
28
  options.symbolize_keys!
29
29
  @options = options
30
30
 
31
- unless VALID_TYPES.include?(type)
31
+ if VALID_TYPES.exclude?(type)
32
32
  raise ArgumentError, "Package#new: `type` should be one of #{VALID_TYPES.join(", ")}"
33
33
  end
34
34
 
@@ -18,7 +18,7 @@ module FreightKit
18
18
  ),
19
19
  "#{parent_class_name}.yml",
20
20
  )
21
- @conf = YAML.safe_load(File.read(conf_path), permitted_classes: [Symbol])
21
+ @conf = YAML.safe_load_file(conf_path, permitted_classes: [Symbol])
22
22
 
23
23
  conf_path = File
24
24
  .join(
@@ -28,7 +28,7 @@ module FreightKit
28
28
  ),
29
29
  "#{self.class.to_s.demodulize.underscore}.yml",
30
30
  )
31
- @conf = @conf.deep_merge(YAML.safe_load(File.read(conf_path), permitted_classes: [Symbol]))
31
+ @conf = @conf.deep_merge(YAML.safe_load_file(conf_path, permitted_classes: [Symbol]))
32
32
 
33
33
  @rates_with_excessive_length_fees = @conf.dig(:attributes, :rates, :with_excessive_length_fees)
34
34
  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.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Third Party Transportation Systems LLC
@@ -11,50 +11,36 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-05-24 00:00:00.000000000 Z
14
+ date: 2024-06-12 00:00:00.000000000 Z
15
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.13.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.13.0
30
16
  - !ruby/object:Gem::Dependency
31
17
  name: faker
32
18
  requirement: !ruby/object:Gem::Requirement
33
19
  requirements:
34
20
  - - "~>"
35
21
  - !ruby/object:Gem::Version
36
- version: 3.2.1
22
+ version: 3.4.1
37
23
  type: :development
38
24
  prerelease: false
39
25
  version_requirements: !ruby/object:Gem::Requirement
40
26
  requirements:
41
27
  - - "~>"
42
28
  - !ruby/object:Gem::Version
43
- version: 3.2.1
29
+ version: 3.4.1
44
30
  - !ruby/object:Gem::Dependency
45
31
  name: rake
46
32
  requirement: !ruby/object:Gem::Requirement
47
33
  requirements:
48
34
  - - "~>"
49
35
  - !ruby/object:Gem::Version
50
- version: 13.1.0
36
+ version: 13.2.1
51
37
  type: :development
52
38
  prerelease: false
53
39
  version_requirements: !ruby/object:Gem::Requirement
54
40
  requirements:
55
41
  - - "~>"
56
42
  - !ruby/object:Gem::Version
57
- version: 13.1.0
43
+ version: 13.2.1
58
44
  - !ruby/object:Gem::Dependency
59
45
  name: redcarpet
60
46
  requirement: !ruby/object:Gem::Requirement
@@ -89,14 +75,14 @@ dependencies:
89
75
  requirements:
90
76
  - - "~>"
91
77
  - !ruby/object:Gem::Version
92
- version: 1.0.3
78
+ version: 1.0.7
93
79
  type: :development
94
80
  prerelease: false
95
81
  version_requirements: !ruby/object:Gem::Requirement
96
82
  requirements:
97
83
  - - "~>"
98
84
  - !ruby/object:Gem::Version
99
- version: 1.0.3
85
+ version: 1.0.7
100
86
  - !ruby/object:Gem::Dependency
101
87
  name: yard
102
88
  requirement: !ruby/object:Gem::Requirement
@@ -171,6 +157,20 @@ dependencies:
171
157
  - - "<"
172
158
  - !ruby/object:Gem::Version
173
159
  version: 3.5.0
160
+ - !ruby/object:Gem::Dependency
161
+ name: business_time
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.13.0
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 0.13.0
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: httparty
176
176
  requirement: !ruby/object:Gem::Requirement
@@ -194,7 +194,7 @@ dependencies:
194
194
  version: '2.0'
195
195
  - - "<"
196
196
  - !ruby/object:Gem::Version
197
- version: 2.8.3
197
+ version: 3.0.1
198
198
  type: :runtime
199
199
  prerelease: false
200
200
  version_requirements: !ruby/object:Gem::Requirement
@@ -204,7 +204,7 @@ dependencies:
204
204
  version: '2.0'
205
205
  - - "<"
206
206
  - !ruby/object:Gem::Version
207
- version: 2.8.3
207
+ version: 3.0.1
208
208
  - !ruby/object:Gem::Dependency
209
209
  name: mimemagic
210
210
  requirement: !ruby/object:Gem::Requirement
@@ -322,7 +322,7 @@ dependencies:
322
322
  version: 2.6.0
323
323
  - - "<"
324
324
  - !ruby/object:Gem::Version
325
- version: 2.6.14
325
+ version: 2.6.16
326
326
  type: :runtime
327
327
  prerelease: false
328
328
  version_requirements: !ruby/object:Gem::Requirement
@@ -332,7 +332,7 @@ dependencies:
332
332
  version: 2.6.0
333
333
  - - "<"
334
334
  - !ruby/object:Gem::Version
335
- version: 2.6.14
335
+ version: 2.6.16
336
336
  description: Freight carrier API and website abstraction library for transportation
337
337
  management systems (TMS)
338
338
  email:
@@ -404,7 +404,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
404
404
  - !ruby/object:Gem::Version
405
405
  version: '0'
406
406
  requirements: []
407
- rubygems_version: 3.4.10
407
+ rubygems_version: 3.4.19
408
408
  signing_key:
409
409
  specification_version: 4
410
410
  summary: Freight carrier API and website abstraction library for transportation management