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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06bb0efe261e5ff1fd37c8424ef33fa09d239065
4
- data.tar.gz: 0e32e44dd1ca57b5390b8f18fc1370a56fa0e700
3
+ metadata.gz: e18da08890902ac99b52b4ee952434f9d9baef93
4
+ data.tar.gz: 606c1607c71979d04b61911d218c7a0ecaaae49a
5
5
  SHA512:
6
- metadata.gz: b5cd521780f2cf137f95a566cab093c35bff4e6fd2ac4434b574ba452211221aa2ba29ba9107168409a5771f152e9809e1eb6aa6aca45d8b561c286f08f30d09
7
- data.tar.gz: 6646823a512678d391fdca9c1a5dc5344b2fbc9c57dacc9415352c1f7c0a3d20b39ad1c9f497f3c648db2549c58ae7a6a5bccad1394dbf3aab94e36515921ecc
6
+ metadata.gz: 67f52f2416b9970a1d700a8983d3e733d86556d15e703b9abac15c8609e5ad97afe64856df71a3606db0377e297f1e40b3d8e30edb82f1a79600f8ca408d9f42
7
+ data.tar.gz: c5efdc1b8f7aa7f2e6526034968143f3dcb9880ef401f66d89daef5fab910e69feb602b0c10bea36d964b1993089eb08fe4999bc479b507278f06b0744de21a4
@@ -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
- occupations.bisect(availability)
55
+ normalized_occupations.bisect(availability)
55
56
  end
56
57
 
57
58
  Collection::AvailabilityCollection.new availabilities
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Artic
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
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.3
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-08 00:00:00.000000000 Z
11
+ date: 2016-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo