freight_kit 0.1.10 → 0.1.11

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: 0ba121940e4aee8d935c8271965ae2e664b689e6bbd77b1384734dec700418b8
4
- data.tar.gz: 4d16dff72f36cc1a0bbb0439c54924669afa5d58df9b13bc532d6bad7ca54c02
3
+ metadata.gz: db75be061bb4a5ea370a39516c15719775134780b678b34834f3bfdce89cd717
4
+ data.tar.gz: 6ffe9917eaf66d4afb75233cdc115dca3c7df8359773a3de4c0dee064d9be2a8
5
5
  SHA512:
6
- metadata.gz: 06b93550859d6e45c09d836a11f030f91844573aaafdc0407d4fee98664ec8807ced4752275780eda52cb926235e1ab3eeecd075eeeb766cb7a6bb254d67fb41
7
- data.tar.gz: de761d4e2b158d605e864f42e35c374c1c3b4bfda369eb55994d47ea71f5a1cb65b3007dd85be5b5584fdc006dd03a48d1dfc4fea1ab983d8488aba1acce9c42
6
+ metadata.gz: fdea67fbbf39f6e7e03ec0a4b83d458778b4da637f3fa7bc62372672ace4f8322f66fe06db5f8e54690fb0d38a7d083767aa3958b7995aea770ef119d83b0449
7
+ data.tar.gz: cadbf46ccb834e9862ae6e0d52f6e31a25da916d268dad764f641416f92cf178c3abc1cd63ba19650a040800f415bb359819ef1c31494525122e5a79c310bef9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- freight_kit (0.1.9)
4
+ freight_kit (0.1.10)
5
5
  active_utils (>= 3.3.1, < 3.5.0)
6
6
  activemodel (>= 4.2, < 8.0.1)
7
7
  activesupport (>= 4.2, < 7.2.3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
@@ -39,17 +39,14 @@ module FreightKit # :nodoc:
39
39
  raise ArgumentError, 'Package#new: packaging_type is required' unless packaging_type
40
40
  raise ArgumentError, 'Package#new: quantity is required' unless options[:quantity]
41
41
 
42
- @dimensions = case dimensions
43
- when Array
44
- dimensions.map(&:presence)
45
- when Hash
42
+ @dimensions = if dimensions.is_a?(Hash)
46
43
  [
47
44
  dimensions[:height].presence,
48
45
  dimensions[:width].presence,
49
46
  dimensions[:length].presence,
50
47
  ]
51
48
  else
52
- [nil, nil, nil]
49
+ dimensions
53
50
  end
54
51
 
55
52
  @description = options[:description]
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.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Third Party Transportation Systems LLC