hiccup 0.5.10 → 0.5.11

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: 31f89546345663c8eebbbef1213af5d5936758ae
4
- data.tar.gz: 8c399d781f9d76e59661c23be50226a9c333f704
3
+ metadata.gz: 7fe99ba209d0c2a346d24591b15b1dc0cabfbfb6
4
+ data.tar.gz: 100d9df2ccd8d556ce1427df1660f28882a3289f
5
5
  SHA512:
6
- metadata.gz: 47e2c586234b76c82b49e0af90a9b9538d4db20b13d2ee9256b50add794ee398e1a56d8cf9f46409561fe776ae162d15c9af039e4389fff1e51c95d82cd1e7c6
7
- data.tar.gz: 4d4843ce6c366ce85b871f3af7be0652869a008883702756b1f07320d67fd6427abc844d92d90c929ee8a665adb14d3e40975f35e1a6eb0cb57b42ba6b2b1c67
6
+ metadata.gz: 8d8cb3e0f69afab72778f2d0850a158126de8224683f938e028132a146f5418afc9952b4101e8b7a859e45aaf64b9dcc0598394dd062a1f32a23812fe318923d
7
+ data.tar.gz: 513c539cff89280cf305c767ef82410bba962d45d03f4b17b3265d6023582e859d8d050e97f17e71f640ea174e0f069b248cf1beba0c4950b116e0770e402ecf
@@ -50,7 +50,7 @@ module Hiccup
50
50
  ordinal = _skip.human_ordinalize
51
51
  sentence(ordinal, weekday.humanize)
52
52
  else
53
- monthly_occurrence.ordinalize
53
+ monthly_occurrence < 0 ? "last day" : monthly_occurrence.ordinalize
54
54
  end
55
55
  end
56
56
 
@@ -1,3 +1,3 @@
1
1
  module Hiccup
2
- VERSION = "0.5.10"
2
+ VERSION = "0.5.11"
3
3
  end
@@ -41,6 +41,10 @@ class HumanizableTest < ActiveSupport::TestCase
41
41
  "The 4th and 5th of every month",
42
42
  {:kind => :monthly, :monthly_pattern => [4,5]})
43
43
 
44
+ test_humanize(
45
+ "The last day of every month",
46
+ {:kind => :monthly, :monthly_pattern => [-1]})
47
+
44
48
  test_humanize(
45
49
  "The first Monday of every month",
46
50
  {:kind => :monthly, :monthly_pattern => [[1, "Monday"]]})
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.10
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Lail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport