sunspot_matchers 2.2.0.3 → 2.2.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71be1abd82eb01fa8a46f8e653d029a8e0c70bd2
4
- data.tar.gz: bacebe7d1bd6355569949a37c785855a7559858e
3
+ metadata.gz: 23207453996c6c8ef8c5e16a1a12a8d7dbbfdb3f
4
+ data.tar.gz: 871ce3ea470151c2ceb3409002bed4776cf170ad
5
5
  SHA512:
6
- metadata.gz: 0c9c890cd0810b7024f63886cc287afae42a61f35bc3d242418ac6df3940674355bb920344728bf726d94ababea5dc5d759a2afd573a3988c1d2e9d09281e912
7
- data.tar.gz: 8a58d1766e222075acdf3302cc49f97a78abb5377c2d0cffdf88718e50527c8461b54025a5337bcd7fdb362ba5f57973548ad4e9601e18c80948cdea7e144a94
6
+ metadata.gz: e0450c882e4b5ca3fc7b1a321ae347390b6bb3b4135f9b4a0ce62966841a5218bfd8f9eb3f64a5913ef08493e85fe61639b7488f335a5dd56f1b97e7852c8ad9
7
+ data.tar.gz: b9bc48955fea394b2035da632c1296a6dcb78e4eee08e18422beb0cae5837645896346fc0945a51c41b58f315ca6b957f9c4d9f4c49c4dde8881bbc9e1e82b7e
data/Gemfile.lock CHANGED
@@ -1,16 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sunspot_matchers (2.2.0.3)
4
+ sunspot_matchers (2.2.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  builder (3.2.2)
10
10
  diff-lcs (1.2.5)
11
+ minitest (5.4.3)
11
12
  pr_geohash (1.0.0)
12
13
  rake (10.4.2)
13
- rsolr (1.0.12)
14
+ rsolr (1.1.1)
14
15
  builder (>= 2.1.2)
15
16
  rspec (3.2.0)
16
17
  rspec-core (~> 3.2.0)
@@ -25,16 +26,20 @@ GEM
25
26
  diff-lcs (>= 1.2.0, < 2.0)
26
27
  rspec-support (~> 3.2.0)
27
28
  rspec-support (3.2.1)
28
- sunspot (2.2.0)
29
+ sunspot (2.2.5)
29
30
  pr_geohash (~> 1.0)
30
- rsolr (~> 1.0.7)
31
+ rsolr (~> 1.1.1)
31
32
 
32
33
  PLATFORMS
33
34
  ruby
34
35
 
35
36
  DEPENDENCIES
36
37
  bundler (>= 1.0.0)
38
+ minitest
37
39
  rake
38
40
  rspec
39
- sunspot (~> 2.2.0)
41
+ sunspot (~> 2.2.5)
40
42
  sunspot_matchers!
43
+
44
+ BUNDLED WITH
45
+ 1.10.6
@@ -9,6 +9,9 @@ module SunspotMatchers
9
9
  def facet_response
10
10
  {'facet_queries' => {}}
11
11
  end
12
+ def group_response
13
+ {}
14
+ end
12
15
  end
13
16
 
14
17
  class SunspotSessionSpy < Sunspot::Session
@@ -21,6 +24,7 @@ module SunspotMatchers
21
24
  # Support Sunspot random field in test -- Sunspot originally generate a random number for the field
22
25
  # Only patch method if SunspotSessionSpy is initialized to prevent poisoning class simply by being included in Gemfile.
23
26
  Sunspot::Query::Sort::RandomSort.class_eval do
27
+ remove_method :to_param
24
28
  define_method :to_param do
25
29
  "random #{direction_for_solr}"
26
30
  end
@@ -114,4 +118,4 @@ module SunspotMatchers
114
118
  new_more_like_this(object, *types, &block)
115
119
  end
116
120
  end
117
- end
121
+ end
@@ -1,10 +1,13 @@
1
1
  require 'sunspot'
2
- require 'minitest/autorun'
3
2
  require File.expand_path('../matchers', __FILE__)
4
3
  require File.expand_path('../sunspot_session_spy', __FILE__)
5
4
  module SunspotMatchers
6
5
  class HaveSearchParamsForSession
7
- include MiniTest::Assertions
6
+ if defined?(MiniTest::Assertions)
7
+ include MiniTest::Assertions
8
+ else
9
+ include Test::Unit::Assertions
10
+ end
8
11
 
9
12
  def initialize(session, method, *args, &block)
10
13
  @session = session
@@ -1,3 +1,3 @@
1
1
  module SunspotMatchers
2
- VERSION = "2.2.0.3"
2
+ VERSION = "2.2.5.0"
3
3
  end
@@ -1,2 +1,3 @@
1
+ require 'sunspot'
1
2
  require 'sunspot_matchers/matchers'
2
3
  require 'sunspot_matchers/sunspot_session_spy'
@@ -16,8 +16,9 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_development_dependency "bundler", ">= 1.0.0"
18
18
  s.add_development_dependency "rspec"
19
- s.add_development_dependency "sunspot", "~> 2.2.0"
19
+ s.add_development_dependency "sunspot", "~> 2.2.5"
20
20
  s.add_development_dependency "rake"
21
+ s.add_development_dependency "minitest"
21
22
 
22
23
  s.files = `git ls-files`.split("\n")
23
24
  s.require_path = 'lib'
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
+ require 'minitest/autorun'
3
4
  require 'sunspot_matchers/test_helper'
4
5
 
5
6
  class Post; end
@@ -22,7 +23,7 @@ Sunspot.setup(Blog) do
22
23
  string :name
23
24
  end
24
25
 
25
- class SunspotMatchersTest < MiniTest::Unit::TestCase
26
+ class SunspotMatchersTest < MiniTest::Test
26
27
  include SunspotMatchers::TestHelper
27
28
 
28
29
  def setup
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunspot_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.3
4
+ version: 2.2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Palermo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-05 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.2.0
47
+ version: 2.2.5
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.0
54
+ version: 2.2.5
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: These matchers and assertions allow you to test what is happening inside
70
84
  the Sunspot Search DSL blocks
71
85
  email: []
@@ -109,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
123
  version: 1.3.6
110
124
  requirements: []
111
125
  rubyforge_project:
112
- rubygems_version: 2.2.3
126
+ rubygems_version: 2.5.1
113
127
  signing_key:
114
128
  specification_version: 4
115
129
  summary: RSpec matchers and Test::Unit assertions for testing Sunspot