fe_core_ext 0.1.45 → 0.1.46
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 +5 -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: 331b4cba795d000d0b296c5a06bb00dadaab0ccf
|
4
|
+
data.tar.gz: 80cf1546ea44d376b9f070fb6edb01cf5e604ab3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2db868a2863ae52ee0003c841d87e29839d5dd721b45e73b59a4f1e186dfc9bc467a5468ac55832153dd461f9b00613dc82038c70b917a5ba809aa66b3f0fb20
|
7
|
+
data.tar.gz: 35c1e4fabb497623b0be2a2ff9038d462d9ab8f3e08cf2eec332f93d45acd8e49024c5a001b32c6a8070182b2c590d7e77744c687ea82d6d1aaf524f32b2646d
|
@@ -53,6 +53,11 @@ module FeCoreExt::CoreExt::String
|
|
53
53
|
def to_date_in_ja
|
54
54
|
match(/(\d{4})年(\d{1,2})月(\d{1,2})日/){ Date.new($1.to_i, $2.to_i, $3.to_i) }
|
55
55
|
end
|
56
|
+
|
57
|
+
# remove also no break space and other space like characters.
|
58
|
+
def strong_strip
|
59
|
+
reverse.gsub(/^\p{Zs}+|^\p{Cf}+/, '').reverse.gsub(/^\p{Zs}+|^\p{Cf}+/, '')
|
60
|
+
end
|
56
61
|
end
|
57
62
|
|
58
63
|
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.46
|
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-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|