box_packer 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/box_packer/box.rb +1 -0
- data/lib/box_packer/container.rb +1 -0
- data/lib/box_packer/dimensions.rb +8 -0
- data/lib/box_packer/version.rb +1 -1
- data/spec/lib/container_spec.rb +2 -2
- data/spec/lib/packer_spec.rb +1 -1
- 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: eba591c80a0ed22630cab9bb8ae6f6c4f61f8a4e
|
4
|
+
data.tar.gz: a078c724e6cb21db22d3d5937a635bf8bd5cee28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4db6ea115a0c889b38f6308c3ac6904c22afeeffdce30e46c21de198da49ec81d6789bff75fb25b41632091f2e74840a6a497a1dd93d1d8fe37d7fc3da009f3b
|
7
|
+
data.tar.gz: 0c79d3e330a252443148c7e6b92ae3ac255afe1140a59f801b6bc225d19ac547dfc725f6c906bdd5996b77020e6003687d5709cf23776cfb4f60290a3df5831e
|
data/lib/box_packer/box.rb
CHANGED
data/lib/box_packer/container.rb
CHANGED
data/lib/box_packer/version.rb
CHANGED
data/spec/lib/container_spec.rb
CHANGED
@@ -24,7 +24,7 @@ module BoxPacker
|
|
24
24
|
Dimensions[10, 9, 9]
|
25
25
|
]}
|
26
26
|
|
27
|
-
it { expect(items.map(&:dimensions)).to eql(expected_dimensions) }
|
27
|
+
it { expect(container.items.map(&:dimensions)).to eql(expected_dimensions) }
|
28
28
|
it { expect(container.packings).to eql([]) }
|
29
29
|
end
|
30
30
|
|
@@ -58,7 +58,7 @@ module BoxPacker
|
|
58
58
|
end
|
59
59
|
|
60
60
|
context 'with an item to large' do
|
61
|
-
before { items[0].dimensions = Dimensions[26, 34, 8] }
|
61
|
+
before { container.items[0].dimensions = Dimensions[26, 34, 8] }
|
62
62
|
it { expect(container.send(:packable?)).to be(false) }
|
63
63
|
end
|
64
64
|
|
data/spec/lib/packer_spec.rb
CHANGED
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: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max White
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|