box_packer 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/box_packer.rb +4 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2f6de250fb518dfccb889ba7096d310956fa985
4
- data.tar.gz: 13fa697ca9eed3a1ce7ef6cf175ad14d84cc8dd1
3
+ metadata.gz: e7908f0e16c0ba97bb0e7bf414211427c32a2523
4
+ data.tar.gz: 17562a711bf0f9121f36ae2e54a698929605af5a
5
5
  SHA512:
6
- metadata.gz: 93640e9ec9867690dee6bae8914868ef6d78d8419d324cd7b219c9739235efcd8bbb2fe7c78e597e774ecc7662b9de26c05c386bc638020f2056d614b795c123
7
- data.tar.gz: ca3dbe811840640065554c164dd827ab1f0639df6955ed5f7030407f0d5abbcfd1fb6cd97b308b88eb4551b6465f9fdc4675d040a2df452d7407e7674914c90d
6
+ metadata.gz: 11b166ca5af31cab544a8654109ff5737687bb431fd8b5b7aca67f4425c18d8f8889af51b605aed5dc186dde24ab4028a09bc4d2a74a0b88f3ccc922dbcdc931
7
+ data.tar.gz: 84e1a9db8c412453ff48765dcbbb12e1d6e61ea6edbe0abb5c3dec68cfb88387cfa3ffa9c3ce1b4c5cb95c78f97976690cdc1ead5989d8da5bff554632ded15a
@@ -89,9 +89,9 @@ module BoxPacker
89
89
  [
90
90
  {
91
91
  dimensions: [
92
- space[:dimensions][0],
92
+ space[:dimensions][0] - placement[:dimensions][0],
93
93
  space[:dimensions][1],
94
- space[:dimensions][2] - placement[:dimensions][0]
94
+ space[:dimensions][2]
95
95
  ],
96
96
  position: [
97
97
  space[:position][0] + placement[:dimensions][0],
@@ -102,8 +102,8 @@ module BoxPacker
102
102
  {
103
103
  dimensions: [
104
104
  placement[:dimensions][0],
105
- space[:dimensions][1],
106
- space[:dimensions][2] - placement[:dimensions][1]
105
+ space[:dimensions][1] - placement[:dimensions][1],
106
+ space[:dimensions][2]
107
107
  ],
108
108
  position: [
109
109
  space[:position][0],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: box_packer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max White
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec