fe_core_ext 0.1.16 → 0.1.17

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: fa2579986be7846a6d5e59ef29772d22b3d79e9d
4
- data.tar.gz: 5e5d9d49197a418622852ef24ea6e2e17b477163
3
+ metadata.gz: da2428e63c733898e24cabf063caf91d02e416b5
4
+ data.tar.gz: e17712e9fa0c2abcd2dbdb7447d379081f85d247
5
5
  SHA512:
6
- metadata.gz: 2fcc870113bf1c7f3f714cb69d2e8368220ebb1bed1da02af22a2be07b5364029a9758f9693afdc26cd116f483360477291ba67b516c51de1784553414e598ae
7
- data.tar.gz: 04fb254c14b14195affb838c1bd1421248a4fee80f50632c30341ca94d4283eddad4bc023fe400b4d4988755b6c629af9c75b8b7b0bcb213310f9ffbe8283542
6
+ metadata.gz: ed6dc6a031fda7ba1791ada8ef5713360c8870deacb7bcef80834a43c333c8d2d2658fffc0280aeb03904e62d0d6614b377f72a156d689d8f02479311d650c12
7
+ data.tar.gz: db58eb4ffc246dbe625cf331270ab6d5382b81e2252d97414f7d7c2b6eec9f486e4803ea52d30d0a36d04097d560187e3f06181989dd191045a2be8269be9fac
@@ -7,7 +7,7 @@ end
7
7
  module FeCoreExt::CoreExt::Date
8
8
  def parse_as_future(string)
9
9
  date = parse(string)
10
- date > today ? date : date + 1.year
10
+ date > current ? date : date + 1.year
11
11
  end
12
12
  end
13
13
 
@@ -24,7 +24,11 @@ module FeCoreExt::CoreExt::String
24
24
  end
25
25
 
26
26
  def to_katakana
27
- tr('ぁ-ん','ァ-ン')
27
+ tr('ぁ-ん', 'ァ-ン')
28
+ end
29
+
30
+ def match?(str)
31
+ /#{str}/ === self
28
32
  end
29
33
  end
30
34
 
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.16'
2
+ VERSION = '0.1.17'
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.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-07 00:00:00.000000000 Z
11
+ date: 2016-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport