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 +4 -4
- data/lib/fe_core_ext/core_ext/string.rb +10 -0
- data/lib/fe_core_ext/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52ba4c206c1b8ee35f6b6c96b305017d990e2a41
|
4
|
+
data.tar.gz: 46f9285c8e8510aa746ce87933bcdcdfe6e31a3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/fe_core_ext/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|