websolr-sunspot_rails 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.2
1
+ 0.10.3
@@ -1,11 +1,12 @@
1
+ require "sunspot/rails"
2
+ require "sunspot/rails/configuration"
3
+ require "sunspot/rails/searchable"
4
+ require "sunspot/rails/request_lifecycle"
5
+
1
6
  if ENV["WEBSOLR_URL"]
2
7
  require "json"
3
8
  require "rest_client"
4
9
  require "uri"
5
- require "sunspot/rails"
6
- require "sunspot/rails/configuration"
7
- require "sunspot/rails/searchable"
8
- require "sunspot/rails/request_lifecycle"
9
10
 
10
11
  api_key = ENV["WEBSOLR_URL"][/[0-9a-f]{11}/] or raise "Invalid WEBSOLR_URL: bad or no api key"
11
12
 
@@ -17,10 +18,10 @@ if ENV["WEBSOLR_URL"]
17
18
  response = RestClient.post("http://#{ENV["WEBSOLR_CONFIG_HOST"]}/schema/#{api_key}.json", :client => "sunspot-0.10")
18
19
  json = JSON.parse(response)
19
20
  case json["status"]
20
- when "ok":
21
+ when "ok"
21
22
  Rails.logger.info "Index is available!"
22
23
  @pending = false
23
- when "pending":
24
+ when "pending"
24
25
  Rails.logger.info "Provisioning index, things may not be working for a few seconds ..."
25
26
  sleep 5
26
27
  when "error"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{websolr-sunspot_rails}
8
- s.version = "0.10.2"
8
+ s.version = "0.10.3"
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"]
12
- s.date = %q{2010-03-01}
12
+ s.date = %q{2010-03-10}
13
13
  s.description = %q{websolr to sunspot_rails shim}
14
14
  s.email = %q{kyle@kylemaxwell.com}
15
15
  s.extra_rdoc_files = [
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  s.homepage = %q{http://github.com/fizx/websolr-sunspot_rails}
30
30
  s.rdoc_options = ["--charset=UTF-8"]
31
31
  s.require_paths = ["lib"]
32
- s.rubygems_version = %q{1.3.5}
32
+ s.rubygems_version = %q{1.3.6}
33
33
  s.summary = %q{websolr to sunspot_rails shim}
34
34
 
35
35
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websolr-sunspot_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 10
8
+ - 3
9
+ version: 0.10.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - Kyle Maxwell
@@ -11,49 +16,59 @@ autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
18
 
14
- date: 2010-03-01 00:00:00 -08:00
19
+ date: 2010-03-10 00:00:00 -08:00
15
20
  default_executable:
16
21
  dependencies:
17
22
  - !ruby/object:Gem::Dependency
18
23
  name: sunspot_rails
19
- type: :runtime
20
- version_requirement:
21
- version_requirements: !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
22
26
  requirements:
23
27
  - - "="
24
28
  - !ruby/object:Gem::Version
29
+ segments:
30
+ - 0
31
+ - 11
32
+ - 4
25
33
  version: 0.11.4
26
- version:
34
+ type: :runtime
35
+ version_requirements: *id001
27
36
  - !ruby/object:Gem::Dependency
28
37
  name: rest-client
29
- type: :runtime
30
- version_requirement:
31
- version_requirements: !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
32
40
  requirements:
33
41
  - - ">="
34
42
  - !ruby/object:Gem::Version
43
+ segments:
44
+ - 0
35
45
  version: "0"
36
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
37
48
  - !ruby/object:Gem::Dependency
38
49
  name: json
39
- type: :runtime
40
- version_requirement:
41
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
42
52
  requirements:
43
53
  - - ">="
44
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
45
57
  version: "0"
46
- version:
58
+ type: :runtime
59
+ version_requirements: *id003
47
60
  - !ruby/object:Gem::Dependency
48
61
  name: rspec
49
- type: :development
50
- version_requirement:
51
- version_requirements: !ruby/object:Gem::Requirement
62
+ prerelease: false
63
+ requirement: &id004 !ruby/object:Gem::Requirement
52
64
  requirements:
53
65
  - - ">="
54
66
  - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
55
69
  version: "0"
56
- version:
70
+ type: :development
71
+ version_requirements: *id004
57
72
  description: websolr to sunspot_rails shim
58
73
  email: kyle@kylemaxwell.com
59
74
  executables: []
@@ -85,18 +100,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
100
  requirements:
86
101
  - - ">="
87
102
  - !ruby/object:Gem::Version
103
+ segments:
104
+ - 0
88
105
  version: "0"
89
- version:
90
106
  required_rubygems_version: !ruby/object:Gem::Requirement
91
107
  requirements:
92
108
  - - ">="
93
109
  - !ruby/object:Gem::Version
110
+ segments:
111
+ - 0
94
112
  version: "0"
95
- version:
96
113
  requirements: []
97
114
 
98
115
  rubyforge_project:
99
- rubygems_version: 1.3.5
116
+ rubygems_version: 1.3.6
100
117
  signing_key:
101
118
  specification_version: 3
102
119
  summary: websolr to sunspot_rails shim