hiccup 0.5.19 → 0.5.20

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: f309cbeec6d69a8c8fd3577a5df9b8b96e22ccd4
4
- data.tar.gz: a3cc99a866dcdb0a414bdc8d802289e033f89286
3
+ metadata.gz: 8f001dd78d5dd8aae64e8399728df7c4275a09d8
4
+ data.tar.gz: fe98be670ac3e074001ee4157fe43e8ed493b8af
5
5
  SHA512:
6
- metadata.gz: f1f5fc8cfa1d4c175acabc66ffaf0f6920090da237515622d3d8c1b7384cd8010bec40fe981f31b65bf77a1536367641ff923a41852c907d1fd0643a3b283ec5
7
- data.tar.gz: c479e685962de09343e830d8a606ca1c83a162b24bd747f33ee197b8228be01b1335ed6f674f00db69ac805d1951927c647a0cb90ba2e6bc16a5afda49da0bc7
6
+ metadata.gz: be84ec1e386e518f61a2384771be9e3e30cab96e0fbc5a99d91b3ad48768f4d78402397b325db0dccb7a0df977c13f95bf2d61bc33857938d9b0ea47153dff55
7
+ data.tar.gz: bf8f0ddb55a951fecc033a107f2ffdaa8ac31e2312b40e18e539432935607925b5516948ebe2527d5c130f33a7cdf829c351c5a397e8a9da8b2ee2bf89f05cc5
@@ -6,7 +6,7 @@ module Hiccup
6
6
  protected
7
7
 
8
8
  def occurrences_in_month(year, month)
9
- monthly_pattern.map(&method(:coerce_day_to_positive))
9
+ monthly_pattern.map(&method(:coerce_day_to_positive)).uniq
10
10
  end
11
11
 
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Hiccup
2
- VERSION = "0.5.19"
2
+ VERSION = "0.5.20"
3
3
  end
@@ -492,11 +492,11 @@ class EnumerableTest < ActiveSupport::TestCase
492
492
  @schedule = Schedule.new(
493
493
  kind: :monthly,
494
494
  start_date: Date.new(2015, 1, 1),
495
- monthly_pattern: [3, 5])
495
+ monthly_pattern: [3, 3])
496
496
  end
497
497
 
498
498
  should "not enumerate that date more than once" do
499
- assert_equal [3, 5], occurrences_during_month(schedule, 2015, 1).map(&:day)
499
+ assert_equal [3], occurrences_during_month(schedule, 2015, 1).map(&:day)
500
500
  end
501
501
  end
502
502
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiccup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.19
4
+ version: 0.5.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Lail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-07 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport