fe_core_ext 0.1.21 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fe_core_ext/core_ext/date.rb +8 -1
- data/lib/fe_core_ext/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b4e44483110016f8a162b33341f7b2861300db5
|
4
|
+
data.tar.gz: 88eee064f9806dcea1ffd5bb16e4af9d397c4c55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d82dcb5459ed90a7e7adc6b5452c903e02a5b08f34124eafd82d772739c015845def6aa4787bc6ecdff5a23c641f8b1e8d6292325cf78f1dda8a0d4206a93c5a
|
7
|
+
data.tar.gz: 896e081ad18aa81786a4feee34d8e25e033257a4c005a05925834b4ab5b82fc3f28878216233bb97ff225f8f241c2296f43a92a7bc798fcdc2534896121f06a1
|
@@ -5,6 +5,12 @@ module FeCoreExt::CoreExt
|
|
5
5
|
end
|
6
6
|
|
7
7
|
module FeCoreExt::CoreExt::Date
|
8
|
+
def end_of_month?
|
9
|
+
self == end_of_month
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module FeCoreExt::CoreExt::DateClassMethods
|
8
14
|
def parse_as_future(string)
|
9
15
|
date = parse(string)
|
10
16
|
date > current ? date : date + 1.year
|
@@ -18,5 +24,6 @@ module FeCoreExt::CoreExt::Date
|
|
18
24
|
end
|
19
25
|
|
20
26
|
class Date
|
21
|
-
|
27
|
+
include FeCoreExt::CoreExt::Date
|
28
|
+
extend FeCoreExt::CoreExt::DateClassMethods
|
22
29
|
end
|
data/lib/fe_core_ext/version.rb
CHANGED