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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1430c72d832a6d7f32b2b35aed1f51320e72094
4
- data.tar.gz: 17b0661dcaffc8a3b1f6ea012e4d59040ceb2575
3
+ metadata.gz: 331b4cba795d000d0b296c5a06bb00dadaab0ccf
4
+ data.tar.gz: 80cf1546ea44d376b9f070fb6edb01cf5e604ab3
5
5
  SHA512:
6
- metadata.gz: f16655267e461ad84154ee95b8d6384c6c350729eca2d7e88ede3e9bdda4c2bf965fa17bed60b79243312060f4ec68d94bbc1d8f442246ff5f844cc5f7ebfd70
7
- data.tar.gz: 887663f39e5019b8c8bd1b4e32fad492c19c0d3b46ee134a274550103a4684454de067d9123774f65e2a6a87fbf2959bf6257a3d9aa1439390c497796a8d3256
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
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.45'
2
+ VERSION = '0.1.46'
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.45
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-05 00:00:00.000000000 Z
11
+ date: 2017-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport