artic 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/artic/calendar.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: e18da08890902ac99b52b4ee952434f9d9baef93
|
4
|
+
data.tar.gz: 606c1607c71979d04b61911d218c7a0ecaaae49a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67f52f2416b9970a1d700a8983d3e733d86556d15e703b9abac15c8609e5ad97afe64856df71a3606db0377e297f1e40b3d8e30edb82f1a79600f8ca408d9f42
|
7
|
+
data.tar.gz: c5efdc1b8f7aa7f2e6526034968143f3dcb9880ef401f66d89daef5fab910e69feb602b0c10bea36d964b1993089eb08fe4999bc479b507278f06b0744de21a4
|
data/lib/artic/calendar.rb
CHANGED
@@ -50,8 +50,9 @@ module Artic
|
|
50
50
|
#
|
51
51
|
# @see Collection::OccupationCollection#bisect
|
52
52
|
def free_slots_on(date)
|
53
|
+
normalized_occupations = occupations.normalize(date)
|
53
54
|
availabilities = available_slots_on(date).flat_map do |availability|
|
54
|
-
|
55
|
+
normalized_occupations.bisect(availability)
|
55
56
|
end
|
56
57
|
|
57
58
|
Collection::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.4
|
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-12-
|
11
|
+
date: 2016-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|