rifle 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rifle.rb +3 -3
- data/lib/rifle/version.rb +1 -1
- metadata +2 -2
data/lib/rifle.rb
CHANGED
@@ -110,9 +110,9 @@ module Rifle
|
|
110
110
|
def get_metaphones_from_word_set(words)
|
111
111
|
# Add extra search terms. EG, other phone number layouts
|
112
112
|
words = Set.new(words.map { |w|
|
113
|
-
# Here we have to strip all the front
|
114
|
-
|
115
|
-
w.start_with?('
|
113
|
+
# Here we have to strip all the front +44 and replace with 0.
|
114
|
+
w = w.start_with?('+44') ? "0#{w[3..-1]}" : w
|
115
|
+
w = w.start_with?('+') ? w[1..-1] : w # Also strip + signs, as they are ignored by Resque in keys
|
116
116
|
})
|
117
117
|
|
118
118
|
# Removed ignored words
|
data/lib/rifle/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rifle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|