sunspot_matchers 2.0.0.5 → 2.1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -4
- data/lib/sunspot_matchers/matchers.rb +8 -2
- data/lib/sunspot_matchers/version.rb +1 -1
- data/spec/sunspot_matchers_spec.rb +7 -0
- data/sunspot_matchers.gemspec +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sunspot_matchers (2.0.0
|
4
|
+
sunspot_matchers (2.1.0.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
builder (3.2.
|
9
|
+
builder (3.2.2)
|
10
10
|
diff-lcs (1.1.2)
|
11
11
|
pr_geohash (1.0.0)
|
12
12
|
rake (0.8.7)
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
rspec-expectations (2.4.0)
|
21
21
|
diff-lcs (~> 1.1.2)
|
22
22
|
rspec-mocks (2.4.0)
|
23
|
-
sunspot (2.
|
23
|
+
sunspot (2.1.0)
|
24
24
|
pr_geohash (~> 1.0)
|
25
25
|
rsolr (~> 1.0.7)
|
26
26
|
|
@@ -31,5 +31,5 @@ DEPENDENCIES
|
|
31
31
|
bundler (>= 1.0.0)
|
32
32
|
rake
|
33
33
|
rspec (~> 2.4.0)
|
34
|
-
sunspot (~> 2.
|
34
|
+
sunspot (~> 2.1.0)
|
35
35
|
sunspot_matchers!
|
@@ -204,6 +204,13 @@ describe "Sunspot Matchers" do
|
|
204
204
|
Sunspot.session.should have_search_params(:with, :blog_id, any_param)
|
205
205
|
end
|
206
206
|
|
207
|
+
it "should work with a time attribute and any_param match" do
|
208
|
+
Sunspot.search(Post) do
|
209
|
+
with :published_at, 'July 1st, 2009'
|
210
|
+
end
|
211
|
+
Sunspot.session.should have_search_params(:with, :published_at, any_param)
|
212
|
+
end
|
213
|
+
|
207
214
|
it "should work with any_param negative match no with at all" do
|
208
215
|
Sunspot.search(Post) do
|
209
216
|
keywords 'great pizza'
|
data/sunspot_matchers.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
18
18
|
s.add_development_dependency "rspec", "~> 2.4.0"
|
19
|
-
s.add_development_dependency "sunspot", "~> 2.
|
19
|
+
s.add_development_dependency "sunspot", "~> 2.1.0"
|
20
20
|
s.add_development_dependency "rake"
|
21
21
|
|
22
22
|
s.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.1.0.0
|
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:
|
12
|
+
date: 2014-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.
|
53
|
+
version: 2.1.0
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: 2.1.0
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: rake
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|