sunspot_matchers 2.2.0.5 → 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: 1b7f06c6d4e72420699a7b9264360488353038c0
4
- data.tar.gz: 61f0ee34f1815bdd8623b4c0c5b73fb03a11e755
3
+ metadata.gz: 23207453996c6c8ef8c5e16a1a12a8d7dbbfdb3f
4
+ data.tar.gz: 871ce3ea470151c2ceb3409002bed4776cf170ad
5
5
  SHA512:
6
- metadata.gz: d3e01491e827a8fb4c18ac25e12f8b799d0b509bec0f0936b0960388e08606c6ee2d0d00f9771d6133538bae67c21f8e58e5b8d7c4bda7d2ef3956a89f94b009
7
- data.tar.gz: cbc584343812fe04859433c1cf57884b79209c9fa242c0eed56fbb66f5719817747318274be034b94e8202e6b879e0b3a37a9f3b0b0b0c7fbef4b176f171c49c
6
+ metadata.gz: e0450c882e4b5ca3fc7b1a321ae347390b6bb3b4135f9b4a0ce62966841a5218bfd8f9eb3f64a5913ef08493e85fe61639b7488f335a5dd56f1b97e7852c8ad9
7
+ data.tar.gz: b9bc48955fea394b2035da632c1296a6dcb78e4eee08e18422beb0cae5837645896346fc0945a51c41b58f315ca6b957f9c4d9f4c49c4dde8881bbc9e1e82b7e
@@ -8,9 +8,10 @@ GEM
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,18 +26,19 @@ 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!
41
43
 
42
44
  BUNDLED WITH
@@ -24,6 +24,7 @@ module SunspotMatchers
24
24
  # Support Sunspot random field in test -- Sunspot originally generate a random number for the field
25
25
  # Only patch method if SunspotSessionSpy is initialized to prevent poisoning class simply by being included in Gemfile.
26
26
  Sunspot::Query::Sort::RandomSort.class_eval do
27
+ remove_method :to_param
27
28
  define_method :to_param do
28
29
  "random #{direction_for_solr}"
29
30
  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.5"
2
+ VERSION = "2.2.5.0"
3
3
  end
@@ -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.5
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-10-31 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.5
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