sunspot_kaminari_support 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,8 +73,14 @@ module SunspotKaminariSupport
73
73
  end
74
74
  end
75
75
 
76
+ # Add methods to sunspot results
76
77
  if defined?(Sunspot)
77
78
  Sunspot::Search::AbstractSearch.send(:include, SunspotKaminariSupport)
78
79
  else
79
80
  puts "[SunspotKaminariSupport] WARNING: Sunspot not found"
80
81
  end
82
+
83
+ # Add methods to stub provided by sunspot_rails
84
+ if defined?(Sunspot::Rails::StubSessionProxy::Search)
85
+ Sunspot::Rails::StubSessionProxy::Search.send(:include, SunspotKaminariSupport)
86
+ end
@@ -1,3 +1,3 @@
1
1
  module SunspotKaminariSupport
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunspot_kaminari_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -138,3 +138,4 @@ summary: Includes module with methods required for kaminari helpers in views to
138
138
  test_files:
139
139
  - spec/lib/sunspot_kaminari_support_spec.rb
140
140
  - spec/spec_helper.rb
141
+ has_rdoc: