boxxer 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94b01e461a32482c9e82ac67c445ad8ac0ff220cd2f856e9069136d75bfd2130
4
- data.tar.gz: 2af80c2e9047c380d85eba1c93827d891b1b8dfffe3cf45974a0151e85179e6a
3
+ metadata.gz: b7695f39bf2488e6b55a5fc20db7c5fac96a3c4cc5cdf3cb2849b36eb6b21253
4
+ data.tar.gz: 11b56feb9a761c82b31ed131fa3035675fe6c592122e7e1b1c358f34614fecb6
5
5
  SHA512:
6
- metadata.gz: 2c4b993a078e6f58cc3b617c03eeb242f7fca5680b78c25e55d663b932b30490df3996753ea6bb29a8d8bc8b1d57c2143efa0a55a3027c8cd1979ad6354d5583
7
- data.tar.gz: dde510f48b5f93f4655bc42adfdee59fcefa8c430846128d30185dc4eb104c9838e6be7817c68589a6d6a66cb5d1c75e1c4f01a2fd6fa9ec13fc5532b2f2153a
6
+ metadata.gz: 9f723bd0ba306e8caac4f461ee2ebad857716684e4d955a4a49c42d40ee4768d19e69c4598ff1c9bd6e0990b411a1805be06f19ae0ebd1189b46064945e0e5ea
7
+ data.tar.gz: 8b9dd20c1931d6932559034341b88077b9642f83ccb16cd759e090e5a44802f963fe4cf6c1f476cac302b9b853757506f66c776de9738996f4b9fcf12f8b825a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boxxer (0.1.2)
4
+ boxxer (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -5,7 +5,7 @@ module Boxxer
5
5
  class Error < StandardError; end
6
6
 
7
7
  class Arranger
8
- attr_reader :containers, :container_count, :total_gross_weight, :total_net_weight
8
+ attr_reader :containers
9
9
 
10
10
  def initialize(containers:, weights:)
11
11
  @available_containers = containers.sort { |container| container[:net_limit] }.reverse
@@ -23,8 +23,6 @@ module Boxxer
23
23
  end
24
24
  end
25
25
 
26
- private
27
-
28
26
  def total_gross_weight
29
27
  @containers.sum(&:gross_weight)
30
28
  end
@@ -37,6 +35,8 @@ module Boxxer
37
35
  @containers.count
38
36
  end
39
37
 
38
+ private
39
+
40
40
  def complete_container(container)
41
41
  loop do
42
42
  fittable_weight = @weights.find { |weight| container.fittable?(weight) }
@@ -1,3 +1,3 @@
1
1
  module Boxxer
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxxer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Sivoglaz