websolr-sunspot_rails 1.1.0.3 → 1.1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0.3
1
+ 1.1.0.4
@@ -8,8 +8,9 @@ if ENV["WEBSOLR_URL"]
8
8
  require "net/http"
9
9
  require "uri"
10
10
 
11
- api_key = ENV["WEBSOLR_URL"][/[0-9a-f]{11}/] or raise "Invalid WEBSOLR_URL: bad or no api key"
11
+ Sunspot.config.solr.url = ENV["WEBSOLR_URL"]
12
12
 
13
+ api_key = ENV["WEBSOLR_URL"][/[0-9a-f]{11}/] or raise "Invalid WEBSOLR_URL: bad or no api key"
13
14
  ENV["WEBSOLR_CONFIG_HOST"] ||= "www.websolr.com"
14
15
 
15
16
  @pending = true
@@ -39,22 +40,6 @@ if ENV["WEBSOLR_URL"]
39
40
  "Exception: #{e.message}"
40
41
  end
41
42
 
42
- module Sunspot #:nodoc:
43
- module Rails #:nodoc:
44
- class Configuration
45
- def hostname
46
- URI.parse(ENV["WEBSOLR_URL"]).host
47
- end
48
- def port
49
- URI.parse(ENV["WEBSOLR_URL"]).port
50
- end
51
- def path
52
- URI.parse(ENV["WEBSOLR_URL"]).path
53
- end
54
- end
55
- end
56
- end
57
-
58
43
  module Sunspot #:nodoc:
59
44
  module Rails #:nodoc:
60
45
  #
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{websolr-sunspot_rails}
8
- s.version = "1.1.0.3"
8
+ s.version = "1.1.0.4"
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", "Nick Zadrozny"]
12
- s.date = %q{2010-06-15}
12
+ s.date = %q{2010-07-13}
13
13
  s.description = %q{websolr to sunspot_rails shim}
14
14
  s.email = %q{kyle@kylemaxwell.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websolr-sunspot_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 81
5
4
  prerelease: false
6
5
  segments:
7
6
  - 1
8
7
  - 1
9
8
  - 0
10
- - 3
11
- version: 1.1.0.3
9
+ - 4
10
+ version: 1.1.0.4
12
11
  platform: ruby
13
12
  authors:
14
13
  - Kyle Maxwell
@@ -19,7 +18,7 @@ autorequire:
19
18
  bindir: bin
20
19
  cert_chain: []
21
20
 
22
- date: 2010-06-15 00:00:00 -07:00
21
+ date: 2010-07-13 00:00:00 -07:00
23
22
  default_executable:
24
23
  dependencies:
25
24
  - !ruby/object:Gem::Dependency
@@ -30,7 +29,6 @@ dependencies:
30
29
  requirements:
31
30
  - - "="
32
31
  - !ruby/object:Gem::Version
33
- hash: 19
34
32
  segments:
35
33
  - 1
36
34
  - 1
@@ -46,7 +44,6 @@ dependencies:
46
44
  requirements:
47
45
  - - ">="
48
46
  - !ruby/object:Gem::Version
49
- hash: 3
50
47
  segments:
51
48
  - 0
52
49
  version: "0"
@@ -60,7 +57,6 @@ dependencies:
60
57
  requirements:
61
58
  - - ">="
62
59
  - !ruby/object:Gem::Version
63
- hash: 3
64
60
  segments:
65
61
  - 0
66
62
  version: "0"
@@ -98,7 +94,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
94
  requirements:
99
95
  - - ">="
100
96
  - !ruby/object:Gem::Version
101
- hash: 3
102
97
  segments:
103
98
  - 0
104
99
  version: "0"
@@ -107,7 +102,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
102
  requirements:
108
103
  - - ">="
109
104
  - !ruby/object:Gem::Version
110
- hash: 3
111
105
  segments:
112
106
  - 0
113
107
  version: "0"