fe_core_ext 0.2.2 → 0.3.0

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: 4477881218bbd37c06b633a69c072702e9edb075
4
- data.tar.gz: 40937f2ea94d14d78ffec7c6434ee0c54b4ea5a3
3
+ metadata.gz: 3ff08d035bc106cbe0d9a825002f85d3dae4fdc6
4
+ data.tar.gz: bc568caf854c2c52e12ac73fcd7f02960bc73308
5
5
  SHA512:
6
- metadata.gz: fa7b879c6aa8d8ce2629c6aa860d394d87df5706186033df3ef7caa855d677c28fdc190e32df469d3760e03890c6117683770cf571218543568f9b1b46019b05
7
- data.tar.gz: ffae65f2d3eb0f3cc8deb578de9218bdf660be18992c9fb87be568833085db6c0a59f843172d5feec002d06c7973e620a6836d74f76d41842af9bc82c0206dc2
6
+ metadata.gz: aa04c39877b5cbe1949d9aab3bc21eb92f5cb7f3e1ec9d4945b7c682a86517e8d121eb7780fd16b5cad441b1897e2e7d5fd6db611486d9fe19cd0f2ff6970946
7
+ data.tar.gz: dc0a4ece30f7ed4f95ff705676f100bb2f3a33753d98b86290387810cc862f5b467e91c11c0b895e1a23ba610f901606fc31b085f58e120c21be3bddd50e9bc9
@@ -12,6 +12,10 @@ module FeCoreExt::CoreExt::Date
12
12
  def range(duration)
13
13
  Range.new(*[self + duration, self].minmax)
14
14
  end
15
+
16
+ def to_time_range
17
+ Range.new(beginning_of_day, end_of_day)
18
+ end
15
19
  end
16
20
 
17
21
  module FeCoreExt::CoreExt::DateClassMethods
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.2.2'
2
+ VERSION = '0.3.0'
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.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-28 00:00:00.000000000 Z
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport