fe_core_ext 0.1.41 → 0.1.42

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: 556e0fe13288ea5be1f14cbcf92d297bad94ec32
4
- data.tar.gz: 76a126abe5a628aa7d8160c46116e327156bb145
3
+ metadata.gz: 52ba4c206c1b8ee35f6b6c96b305017d990e2a41
4
+ data.tar.gz: 46f9285c8e8510aa746ce87933bcdcdfe6e31a3b
5
5
  SHA512:
6
- metadata.gz: 3c45324d2ce3ff96d13d54d015bb49b257858d8dd964372024c91eab75393d20521219bd38d9f4e5a14b1d13721d057b1bb37c044f557e52bca8ce2ec6ecb6c5
7
- data.tar.gz: 998959866dba5e05a4482407b5ee8e5ae1f93714ed9e0afa4f98efb9511f1e53037c5d066bc98ab2629270daea0602b0b47a6f6a516deca1c5e184cb3f98282f
6
+ metadata.gz: be9e24a902c76b281033e1cb07ae0d52681cb6d665a8fd62cf4b3c112b3cda659e7835273ae6432bc9a96b461c1292d7109dc3fbef5d461a59a0b320f34dd66d
7
+ data.tar.gz: f4cdc78a7b583d3ee8a6cd9cd2b3481386ad88b47d18ebd754ca882ef9f9d681e087a642698418c7118fc5f9d40d1f1126a3bc48b1d5e24746d6d508fda95eb4
@@ -39,6 +39,16 @@ module FeCoreExt::CoreExt::String
39
39
  def kana_upcase
40
40
  tr('ァィゥェォヵヶッャュョヮ','アイウエオカケツヤユヨワ')
41
41
  end
42
+
43
+ def to_han_kana
44
+ return if self.nil?
45
+ NKF.nkf('-wxZ4', self)
46
+ end
47
+
48
+ def to_zen_kana
49
+ return if self.nil?
50
+ NKF.nkf('-wX',self)
51
+ end
42
52
  end
43
53
 
44
54
  class String
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.41'
2
+ VERSION = '0.1.42'
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.41
4
+ version: 0.1.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-26 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport