pg_search_scope 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Rakefile +0 -1
- data/lib/pg_search_scope/model_helper.rb +2 -2
- data/lib/pg_search_scope/version.rb +1 -1
- metadata +9 -5
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -52,7 +52,7 @@ module PgSearchScope
|
|
52
52
|
options = scope_options.merge(options || {})
|
53
53
|
search_string ||= ''
|
54
54
|
|
55
|
-
terms = search_string.scan(/'*([\
|
55
|
+
terms = search_string.scan(/'*([\p{Lu}\p{Ll}\d\.']+)/u).map {|s,_| s.gsub /'/, "''"}
|
56
56
|
|
57
57
|
if terms.present?
|
58
58
|
prefix = arel_table.table_alias || arel_table.name
|
@@ -87,4 +87,4 @@ module PgSearchScope
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
ActiveRecord::Base.send :extend, PgSearchScope::ModelHelper
|
90
|
+
ActiveRecord::Base.send :extend, PgSearchScope::ModelHelper
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_search_scope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-08-09 00:00:00.000000000Z
|
14
13
|
dependencies: []
|
15
14
|
description: ''
|
16
15
|
email:
|
@@ -30,7 +29,6 @@ files:
|
|
30
29
|
- lib/pg_search_scope/model_helper.rb
|
31
30
|
- lib/pg_search_scope/version.rb
|
32
31
|
- pg_search_scope.gemspec
|
33
|
-
has_rdoc: true
|
34
32
|
homepage: https://github.com/cloudcastle/pg_search_scope
|
35
33
|
licenses: []
|
36
34
|
post_install_message:
|
@@ -43,15 +41,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
43
41
|
- - ! '>='
|
44
42
|
- !ruby/object:Gem::Version
|
45
43
|
version: '0'
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
hash: 3460535708868186688
|
46
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
48
|
none: false
|
48
49
|
requirements:
|
49
50
|
- - ! '>='
|
50
51
|
- !ruby/object:Gem::Version
|
51
52
|
version: '0'
|
53
|
+
segments:
|
54
|
+
- 0
|
55
|
+
hash: 3460535708868186688
|
52
56
|
requirements: []
|
53
57
|
rubyforge_project: pg_search_scope
|
54
|
-
rubygems_version: 1.6
|
58
|
+
rubygems_version: 1.8.6
|
55
59
|
signing_key:
|
56
60
|
specification_version: 3
|
57
61
|
summary: PostgreSQL full text search using Rails 3 scopes
|