search_cop 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/search_cop.rb +2 -2
- data/lib/search_cop/version.rb +1 -1
- data/test/search_cop_test.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4a775b683b6b8ac71ce65abf70db3c1765bc7af
|
4
|
+
data.tar.gz: b6ddb81eb3bb8655cfe5db72ed4b15643591cc02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eddb0f8dabfe5628931ecf79f2663c58b76e0e373beb77dc6e3e0dbf7b1020e415494bcd00422bc9ff7cd991b4b9acfd0ca469819dab48fa80ebb00f0bc7677
|
7
|
+
data.tar.gz: 3c7abb35d981b0c8e5068eefdcf4096b66bc785fea90c161ff0c5de453d0dd766753ebf8863415f4ee9eac791490dbe357343f87d61b25f47245d0ef593020fb
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
|
2
2
|
# Changelog
|
3
3
|
|
4
|
+
Version 1.0.8:
|
5
|
+
|
6
|
+
* No longer add search scope methods globally #34
|
7
|
+
|
8
|
+
Version 1.0.7:
|
9
|
+
|
10
|
+
* Bugfix regarding NOT queries in fulltext mode #32
|
11
|
+
* Safely handle NULL values for match queries
|
12
|
+
* Added coalesce option
|
13
|
+
|
4
14
|
Version 1.0.6:
|
5
15
|
|
6
16
|
* Fixes a bug regarding date overflows in PostgreSQL
|
data/lib/search_cop.rb
CHANGED
@@ -41,8 +41,8 @@ module SearchCop
|
|
41
41
|
search_scopes[name] = SearchScope.new(name, self)
|
42
42
|
search_scopes[name].instance_exec(&block)
|
43
43
|
|
44
|
-
self.
|
45
|
-
self.
|
44
|
+
self.send(:define_singleton_method, name) { |query| search_cop query, name }
|
45
|
+
self.send(:define_singleton_method, "unsafe_#{name}") { |query| unsafe_search_cop query, name }
|
46
46
|
end
|
47
47
|
|
48
48
|
def search_reflection(scope_name)
|
data/lib/search_cop/version.rb
CHANGED
data/test/search_cop_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: search_cop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Vetter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: treetop
|