fe_core_ext 0.1.37 → 0.1.38

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: c9b916aa726ab6f7e27a15395d4d7dab8dc17b00
4
- data.tar.gz: f1b7b25c8dbbda746e6e2065d8b7f0b0dd8d300d
3
+ metadata.gz: 9539f8fa15b7e7cccde2eda68244e85882c4b6ba
4
+ data.tar.gz: 77122cec33c7e6d561b2f80c2cfdca6ee3eadd00
5
5
  SHA512:
6
- metadata.gz: 24ad4e51e2ecc559e6acb00d0ec16baf34df5511849035b77ada7248640cd09e01f77eb18cd89fd096e144e4e030d8f41658f863e05d4d5260c4cc9acb6b664e
7
- data.tar.gz: e59439ed8f07b103475e2ad16e82bb45ff105587f45ba7d9b93049f4509c2770321eeefa695883d07f365b3efb176f9e826abe2dad6daf53e58a75b0ade37a7f
6
+ metadata.gz: b4f0f2da2d45d3f249777eca923b896c2f2b809ae1619c859cf13b2092c79b7c534f3c8030efd6b60133205a8b1bcc9dbb91833e36070298fb62dea292d15153
7
+ data.tar.gz: 59443a6cf4ce5e61dc204d5f799d047a2460b5d3ad93f3603c5ab6018c64f54a1ccb71a72af062c237195e0b2ab0f3da90c39ca6f4c9fd44c96b34460995a39b
@@ -8,6 +8,10 @@ module FeCoreExt::CoreExt::Date
8
8
  def end_of_month?
9
9
  self == end_of_month
10
10
  end
11
+
12
+ def range(duration)
13
+ Range.new([(self + duration), self].min, [self + duration, self].max)
14
+ end
11
15
  end
12
16
 
13
17
  module FeCoreExt::CoreExt::DateClassMethods
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.37'
2
+ VERSION = '0.1.38'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fe_core_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.37
4
+ version: 0.1.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-01 00:00:00.000000000 Z
11
+ date: 2017-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport