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.
- checksums.yaml +4 -4
- data/box_packer.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7908f0e16c0ba97bb0e7bf414211427c32a2523
|
4
|
+
data.tar.gz: 17562a711bf0f9121f36ae2e54a698929605af5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11b166ca5af31cab544a8654109ff5737687bb431fd8b5b7aca67f4425c18d8f8889af51b605aed5dc186dde24ab4028a09bc4d2a74a0b88f3ccc922dbcdc931
|
7
|
+
data.tar.gz: 84e1a9db8c412453ff48765dcbbb12e1d6e61ea6edbe0abb5c3dec68cfb88387cfa3ffa9c3ce1b4c5cb95c78f97976690cdc1ead5989d8da5bff554632ded15a
|
data/box_packer.rb
CHANGED
@@ -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]
|
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]
|
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.
|
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:
|
11
|
+
date: 2017-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|