websolr-acts_as_solr 0.3.3 → 1.3.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 1.3.0.0
@@ -14,24 +14,24 @@ if ENV["WEBSOLR_URL"]
14
14
  ENV["WEBSOLR_CONFIG_HOST"] ||= "www.websolr.com"
15
15
 
16
16
  @pending = true
17
- Rails.logger.info "Checking index availability..."
17
+ puts "Checking index availability..."
18
18
 
19
19
  response = RestClient.post("http://#{ENV["WEBSOLR_CONFIG_HOST"]}/schema/#{api_key}.json", :client => "acts_as_solr")
20
- json = JSON.parse(response)
20
+ json = JSON.parse(response.to_s)
21
21
  case json["status"]
22
22
  when "ok"
23
- Rails.logger.info "Index is available!"
23
+ puts "Index is available!"
24
24
  @pending = false
25
25
  when "pending"
26
- Rails.logger.info "Provisioning index, things may not be working for a few seconds ..."
26
+ puts "Provisioning index, things may not be working for a few seconds ..."
27
27
  sleep 5
28
28
  when "error"
29
- Rails.logger.error json["message"]
29
+ STDERR.puts json["message"]
30
30
  @pending = false
31
31
  else
32
- Rails.logger.error "wtf: #{json.inspect}"
32
+ STDERR.puts "wtf: #{json.inspect}"
33
33
  end
34
-
34
+
35
35
  module ActsAsSolr
36
36
  class Post
37
37
  def self.execute(request)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{websolr-acts_as_solr}
8
- s.version = "0.3.3"
8
+ s.version = "1.3.0.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"]
12
- s.date = %q{2010-03-10}
12
+ s.date = %q{2010-03-26}
13
13
  s.description = %q{Shim from websolr to acts_as_solr}
14
14
  s.email = %q{kyle@kylemaxwell.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -3,10 +3,11 @@ name: websolr-acts_as_solr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
- - 0
7
- - 3
6
+ - 1
8
7
  - 3
9
- version: 0.3.3
8
+ - 0
9
+ - 0
10
+ version: 1.3.0.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Kyle Maxwell
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-03-10 00:00:00 -08:00
18
+ date: 2010-03-26 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency