sunspot_matchers 2.0.0.5 → 2.1.0.0

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.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sunspot_matchers (2.0.0.5)
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.0)
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.0.0)
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.0.0)
34
+ sunspot (~> 2.1.0)
35
35
  sunspot_matchers!
@@ -350,6 +350,12 @@ module SunspotMatchers
350
350
  end
351
351
  end
352
352
 
353
+ class AnyParam < String
354
+ def utc
355
+ Time.now.utc
356
+ end
357
+ end
358
+
353
359
  def any_param
354
- "ANY_PARAM"
355
- end
360
+ AnyParam.new("ANY_PARAM")
361
+ end
@@ -1,3 +1,3 @@
1
1
  module SunspotMatchers
2
- VERSION = "2.0.0.5"
2
+ VERSION = "2.1.0.0"
3
3
  end
@@ -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'
@@ -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.0.0"
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.5
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: 2013-08-26 00:00:00.000000000 Z
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.0.0
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.0.0
61
+ version: 2.1.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rake
64
64
  requirement: !ruby/object:Gem::Requirement