artic 1.0.1 → 1.0.2

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: f6d3493f33b4a7bda30633981f19e2dc57d127b4
4
- data.tar.gz: ac48612706ed362f442ba3d10677cf80e2201b41
3
+ metadata.gz: 9165d1fe604622b8a5e5c4f35431105c3c79fa4c
4
+ data.tar.gz: 260672fc9f1f7b1234d16ecd807a26c1b0da5557
5
5
  SHA512:
6
- metadata.gz: f67b26be6c5d8b28d60a1a89553da7ae6144b6e0bd3e998b47fc0243cd0b2941967dc69e086d4829b57e72b84dcc0fdc4699b92a61b8ec580a04a47511231d44
7
- data.tar.gz: b08d848f3a69a34ae826fe05247ee34030c1f1a10c9d5bdb180363b82f4f5d59f69d04c7d5d2169cb9e172cee48a56a69b79d9caded652bea7a11e81c4df3e30
6
+ metadata.gz: 1e81553355ccb2b0a6af4a7be2b8748044b1c6576d6e627933816296e70b09c6df2ce13f96a4dae6c9e922a419dfd7110583f79864e069cd931a5c2b7e1da1cd
7
+ data.tar.gz: c7b744bd610fca1b51acf5434de74cf6ee05436e180ba9d3fe80104c3bfa2dcd767fd52dd17d12d42a0f7f877b5284d3d040d402502a2583cd02b947d299cad1
@@ -84,7 +84,8 @@ module Artic
84
84
  # @see Occupation#bisect
85
85
  def bisect(availability)
86
86
  availabilities = normalize_all.inject([availability]) do |accumulator, occupation|
87
- accumulator + occupation.bisect(accumulator.pop)
87
+ break accumulator if accumulator.empty?
88
+ accumulator + occupation.bisect(current_availability)
88
89
  end
89
90
 
90
91
  AvailabilityCollection.new availabilities
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Artic
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-04 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo