smart_search 0.0.74 → 0.0.75
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smart_search.rb +1 -5
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b0296cd89e2bd14fcd295e828bdc3540f58d345
|
4
|
+
data.tar.gz: 86902f873cad3b93031b1fa6e504f556a46bc0dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10aa6cd5b8e9324434f28bf751bff09ab542afff26dfe459837461de9e6d3484707b83f44a72f61ca0611c7f31bb1d37c98e5aa88f80a25cf888ab951b0bb4e0
|
7
|
+
data.tar.gz: c561a3d7b7fc27e10b92d240a730a849c39f4e52b1cea32329b5c788570829457665d745f723db2494b650ee3cab7f7510a70f4be54bc404fe3b483005f9dcc6
|
data/lib/smart_search.rb
CHANGED
@@ -11,9 +11,6 @@ require "smart_search_tag"
|
|
11
11
|
|
12
12
|
module SmartSearch
|
13
13
|
|
14
|
-
REMOVE_CHARS = Regexp.new("[\|\'\~]")
|
15
|
-
|
16
|
-
|
17
14
|
def self.included(base)
|
18
15
|
base.extend ClassMethods
|
19
16
|
end
|
@@ -75,8 +72,7 @@ module SmartSearch
|
|
75
72
|
self.connection.execute("INSERT INTO `#{::SmartSearchHistory.table_name}` (`query`) VALUES ('#{tags.gsub(/[^a-zA-ZäöüÖÄÜß\ ]/, '')}');")
|
76
73
|
end
|
77
74
|
|
78
|
-
tags = tags.
|
79
|
-
tags = tags.split(/[\ -]/).select {|t| !t.blank? }
|
75
|
+
tags = tags.split(/[\ -]/).select {|t| !t.blank?}
|
80
76
|
|
81
77
|
# Fallback for Empty String
|
82
78
|
tags << "#" if tags.empty?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Eck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: amatch
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: friendly_extensions
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mysql2
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,7 +69,7 @@ dependencies:
|
|
69
69
|
description: SmartSearch adds full-text search functions to ActiveRecord running with
|
70
70
|
MySQL, including search for similiar words. Its fast, simple, and works with almost
|
71
71
|
zero-config!
|
72
|
-
email:
|
72
|
+
email: florian.eck@el-digital.de
|
73
73
|
executables: []
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.4.3
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Simple, easy to use search MySQL based search for ActiveRecord
|