business_date_calculator 0.1.2 → 0.1.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: 5e94487cf6161751aebfeff6d6686ce0f6229113
4
- data.tar.gz: 6ed02edef1bdc0f79d4e365f5aa32ac3cef03a0a
3
+ metadata.gz: 4e83654ea4c43d082a16fab33d1ab857ac3640e8
4
+ data.tar.gz: 77f2a1cecea657f860eabda0dacaa43118c4ff0e
5
5
  SHA512:
6
- metadata.gz: ed835a0d32aa91cf51332f115fb8c880f725765d14e65fca3b5a96bc1fda2bcbfd3aff177a076cd9dcae703ca0ab330c82a84cf7f13ffaa62ba43779111f0766
7
- data.tar.gz: 7381367cfd2db05635d2761e6515e4cd7a9396449ccebde9a73a5ec2971cd8671edcd182b641a831e60be71c8bdbdb4a4764ed1d1b1e9ce24361c3ecc71052ab
6
+ metadata.gz: 9301f09efb5758331ce7bc9051ca71fc8a4e723d823a4426eab8beebad12ef03ff74080a93c941aee5b320c4db23db036cc7b82537b2c9b703c0ad23f0b31a9e
7
+ data.tar.gz: 4342c8c8f7b81708da7a9c8e32c2c3b034ca754db880fdb5a8c353d691af490c3e272c89510add61db69e72f4e16fc7cbf1260a2b3565fb83b48b57992861a99
@@ -43,6 +43,7 @@ module BusinessDateCalculator
43
43
  end
44
44
 
45
45
  def advance(date, n, convention = :following)
46
+ date = date.to_date
46
47
  range_check(date)
47
48
  @business_dates[adjusted_date_index(date, convention) + n]
48
49
  end
@@ -1,3 +1,3 @@
1
1
  module BusinessDateCalculator
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: business_date_calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Pérez