artic 1.0.2 → 1.0.3

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
  SHA1:
3
- metadata.gz: 9165d1fe604622b8a5e5c4f35431105c3c79fa4c
4
- data.tar.gz: 260672fc9f1f7b1234d16ecd807a26c1b0da5557
3
+ metadata.gz: 06bb0efe261e5ff1fd37c8424ef33fa09d239065
4
+ data.tar.gz: 0e32e44dd1ca57b5390b8f18fc1370a56fa0e700
5
5
  SHA512:
6
- metadata.gz: 1e81553355ccb2b0a6af4a7be2b8748044b1c6576d6e627933816296e70b09c6df2ce13f96a4dae6c9e922a419dfd7110583f79864e069cd931a5c2b7e1da1cd
7
- data.tar.gz: c7b744bd610fca1b51acf5434de74cf6ee05436e180ba9d3fe80104c3bfa2dcd767fd52dd17d12d42a0f7f877b5284d3d040d402502a2583cd02b947d299cad1
6
+ metadata.gz: b5cd521780f2cf137f95a566cab093c35bff4e6fd2ac4434b574ba452211221aa2ba29ba9107168409a5771f152e9809e1eb6aa6aca45d8b561c286f08f30d09
7
+ data.tar.gz: 6646823a512678d391fdca9c1a5dc5344b2fbc9c57dacc9415352c1f7c0a3d20b39ad1c9f497f3c648db2549c58ae7a6a5bccad1394dbf3aab94e36515921ecc
@@ -85,7 +85,7 @@ module Artic
85
85
  def bisect(availability)
86
86
  availabilities = normalize_all.inject([availability]) do |accumulator, occupation|
87
87
  break accumulator if accumulator.empty?
88
- accumulator + occupation.bisect(current_availability)
88
+ accumulator + occupation.bisect(accumulator.pop)
89
89
  end
90
90
 
91
91
  AvailabilityCollection.new availabilities
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Artic
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis