websolr-sunspot_rails 0.11.4.0 → 1.0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/websolr-sunspot_rails.rb +2 -2
- data/websolr-sunspot_rails.gemspec +4 -4
- metadata +6 -6
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
gem.email = "kyle@kylemaxwell.com"
|
11
11
|
gem.homepage = "http://github.com/fizx/websolr-sunspot_rails"
|
12
12
|
gem.authors = ["Kyle Maxwell", "John Barnette", "Mat Brown"]
|
13
|
-
gem.add_dependency "sunspot_rails", "0.
|
13
|
+
gem.add_dependency "sunspot_rails", "1.0.3"
|
14
14
|
gem.add_dependency "rest-client"
|
15
15
|
gem.add_dependency "json"
|
16
16
|
gem.add_development_dependency "rspec"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.3.0
|
@@ -15,7 +15,7 @@ if ENV["WEBSOLR_URL"]
|
|
15
15
|
@pending = true
|
16
16
|
Rails.logger.info "Checking index availability..."
|
17
17
|
|
18
|
-
response = RestClient.post("http://#{ENV["WEBSOLR_CONFIG_HOST"]}/schema/#{api_key}.json", :client => "sunspot-0
|
18
|
+
response = RestClient.post("http://#{ENV["WEBSOLR_CONFIG_HOST"]}/schema/#{api_key}.json", :client => "sunspot-1.0")
|
19
19
|
json = JSON.parse(response)
|
20
20
|
case json["status"]
|
21
21
|
when "ok"
|
@@ -87,7 +87,7 @@ if ENV["WEBSOLR_URL"]
|
|
87
87
|
module Rails
|
88
88
|
module Searchable
|
89
89
|
module InstanceMethods
|
90
|
-
%w[
|
90
|
+
%w[solr_index solr_index! solr_remove_from_index solr_remove_from_index!].each do |method|
|
91
91
|
new_name = method =~ /!/ ? method.gsub("!", "") + "_with_caught_errors!" : "#{method}_with_caught_errors"
|
92
92
|
old_name = new_name.sub("_with_", "_without_")
|
93
93
|
define_method(new_name) do
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{websolr-sunspot_rails}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "1.0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kyle Maxwell", "John Barnette", "Mat Brown"]
|
@@ -37,18 +37,18 @@ Gem::Specification.new do |s|
|
|
37
37
|
s.specification_version = 3
|
38
38
|
|
39
39
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
40
|
-
s.add_runtime_dependency(%q<sunspot_rails>, ["= 0.
|
40
|
+
s.add_runtime_dependency(%q<sunspot_rails>, ["= 1.0.3"])
|
41
41
|
s.add_runtime_dependency(%q<rest-client>, [">= 0"])
|
42
42
|
s.add_runtime_dependency(%q<json>, [">= 0"])
|
43
43
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
44
44
|
else
|
45
|
-
s.add_dependency(%q<sunspot_rails>, ["= 0.
|
45
|
+
s.add_dependency(%q<sunspot_rails>, ["= 1.0.3"])
|
46
46
|
s.add_dependency(%q<rest-client>, [">= 0"])
|
47
47
|
s.add_dependency(%q<json>, [">= 0"])
|
48
48
|
s.add_dependency(%q<rspec>, [">= 0"])
|
49
49
|
end
|
50
50
|
else
|
51
|
-
s.add_dependency(%q<sunspot_rails>, ["= 0.
|
51
|
+
s.add_dependency(%q<sunspot_rails>, ["= 1.0.3"])
|
52
52
|
s.add_dependency(%q<rest-client>, [">= 0"])
|
53
53
|
s.add_dependency(%q<json>, [">= 0"])
|
54
54
|
s.add_dependency(%q<rspec>, [">= 0"])
|
metadata
CHANGED
@@ -3,11 +3,11 @@ name: websolr-sunspot_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
|
+
- 1
|
6
7
|
- 0
|
7
|
-
-
|
8
|
-
- 4
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 1.0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kyle Maxwell
|
@@ -28,10 +28,10 @@ dependencies:
|
|
28
28
|
- - "="
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
segments:
|
31
|
+
- 1
|
31
32
|
- 0
|
32
|
-
-
|
33
|
-
|
34
|
-
version: 0.11.4
|
33
|
+
- 3
|
34
|
+
version: 1.0.3
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|