pg_search_scope 0.1.2 → 0.1.3

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.
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
+ gem 'rake'
4
+
3
5
  # Specify your gem's dependencies in pg_search_scope.gemspec
4
6
  gemspec
data/Rakefile CHANGED
@@ -1,3 +1,2 @@
1
1
  require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
-
@@ -52,7 +52,7 @@ module PgSearchScope
52
52
  options = scope_options.merge(options || {})
53
53
  search_string ||= ''
54
54
 
55
- terms = search_string.scan(/'*([\w\.']+)/).map {|s,_| s.gsub /'/, "''"}
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
@@ -1,3 +1,3 @@
1
1
  module PgSearchScope
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-07-20 00:00:00.000000000 +04:00
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.2
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