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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2deb6a6c4656c1fb01cf64a2ce4546af5d2c019
4
- data.tar.gz: 686a64db62a5225b8237b9b0833e52c2bf844f56
3
+ metadata.gz: 5b4e44483110016f8a162b33341f7b2861300db5
4
+ data.tar.gz: 88eee064f9806dcea1ffd5bb16e4af9d397c4c55
5
5
  SHA512:
6
- metadata.gz: a778b84552aeff5633fd21d3a5f1cf76577aca9afb066e0ffb03447f6bc013d41a0fdb2f40ef84433c20cd3f7b331ceb333c9f5dde2f694d83a3d4444ea19709
7
- data.tar.gz: 6e8cb2c16929ef20511613a2ab99d2e5c42054b88aee60f90683a57ad3f69908f01c57adbe67b0acfd45bc246e3986e03459d81f3c629f526dfd22fbc4362166
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
- extend FeCoreExt::CoreExt::Date
27
+ include FeCoreExt::CoreExt::Date
28
+ extend FeCoreExt::CoreExt::DateClassMethods
22
29
  end
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.21'
2
+ VERSION = '0.1.22'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fe_core_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu