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 +4 -4
- data/lib/artic/collection/occupation_collection.rb +2 -1
- data/lib/artic/version.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: 9165d1fe604622b8a5e5c4f35431105c3c79fa4c
|
4
|
+
data.tar.gz: 260672fc9f1f7b1234d16ecd807a26c1b0da5557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
87
|
+
break accumulator if accumulator.empty?
|
88
|
+
accumulator + occupation.bisect(current_availability)
|
88
89
|
end
|
89
90
|
|
90
91
|
AvailabilityCollection.new availabilities
|
data/lib/artic/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|