vinted-blurrily 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/blurrily/map.rb +2 -2
- data/lib/blurrily/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 26b945a284a65213cce97e3ee966aea97bf7a189971ef9ea332fac8c44d268bd
|
|
4
|
+
data.tar.gz: c77b37f2345529d183bfee7607895919345b029714760acbc0d75b3e32ddf63a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6cf0bb52a8a413a8eb2066a7194dfaeb57ec0279f3dd423636a0a9e66ee26754bdd841990707ff7cf3cbdf20bd2dee95bf6fa73a9d44be6d9e9520b8cc2f3635
|
|
7
|
+
data.tar.gz: fd8a2ab49f48920a989f575b1910828ccc1e2f261bd8fb090f71191f2223bafc89fd69735fd23958c5028c994677a9a4bc725ebd4cd7c6d12ad5c420b3d6bcf0
|
data/lib/blurrily/map.rb
CHANGED
|
@@ -40,8 +40,8 @@ module Blurrily
|
|
|
40
40
|
def normalize_string(needle)
|
|
41
41
|
result = needle.downcase
|
|
42
42
|
unless result =~ /^([a-z ])+$/
|
|
43
|
-
result = ActiveSupport::Multibyte::Chars.new(result).mb_chars.
|
|
44
|
-
# result = result.mb_chars.
|
|
43
|
+
result = ActiveSupport::Multibyte::Chars.new(result).mb_chars.unicode_normalize(:nfkd).gsub(/[^\x00-\x7F]/,'').to_s.gsub(/[^a-z]/,' ')
|
|
44
|
+
# result = result.mb_chars.unicode_normalize(:nfkd).gsub(/[^\x00-\x7F]/,'').to_s.gsub(/[^a-z]/,' ')
|
|
45
45
|
end
|
|
46
46
|
result.gsub(/\s+/,' ').strip
|
|
47
47
|
end
|
data/lib/blurrily/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vinted-blurrily
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomas Varneckas
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2020-01-13 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: activesupport
|
|
@@ -271,10 +271,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
271
271
|
- !ruby/object:Gem::Version
|
|
272
272
|
version: '0'
|
|
273
273
|
requirements: []
|
|
274
|
-
|
|
275
|
-
rubygems_version: 2.6.11
|
|
274
|
+
rubygems_version: 3.0.3
|
|
276
275
|
signing_key:
|
|
277
276
|
specification_version: 4
|
|
278
277
|
summary: Native fuzzy string search
|
|
279
278
|
test_files: []
|
|
280
|
-
has_rdoc:
|