sunspot-rails-http-basic-auth 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -2
- data/lib/sunspot-rails-http-basic-auth.rb +5 -1
- data/sunspot-rails-http-basic-auth.gemspec +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -12,7 +12,11 @@ http basic authentication. In your `sunspot.yml` file, you can add
|
|
12
12
|
user: theuser
|
13
13
|
password: thepassword
|
14
14
|
log_level: INFO
|
15
|
-
|
15
|
+
|
16
|
+
## License
|
17
|
+
|
18
|
+
sunspot-rails-http-basic-auth is released under the MIT license. See LICENSE for details.
|
19
|
+
|
16
20
|
## Copyright
|
17
21
|
|
18
|
-
Copyright (c) 2011 Justin Ko
|
22
|
+
Copyright (c) 2011 Justin Ko
|
@@ -3,4 +3,8 @@ require 'sunspot/rails'
|
|
3
3
|
|
4
4
|
require 'sunspot-rails-http-basic-auth/rsolr/connection/net_http'
|
5
5
|
require 'sunspot-rails-http-basic-auth/sunspot/rails'
|
6
|
-
require 'sunspot-rails-http-basic-auth/sunspot/rails/configuration'
|
6
|
+
require 'sunspot-rails-http-basic-auth/sunspot/rails/configuration'
|
7
|
+
|
8
|
+
if defined?(Rails) && Rails::VERSION::MAJOR == 2
|
9
|
+
Sunspot.session = Sunspot::Rails.build_session
|
10
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: sunspot-rails-http-basic-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Justin Ko
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-27 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|