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 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. See LICENSE for details.
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
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'sunspot-rails-http-basic-auth'
6
- s.version = '0.0.1'
6
+ s.version = '0.0.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.author = 'Justin Ko'
9
9
  s.email = 'jko170@gmail.com'
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.1
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-09 00:00:00 -06:00
13
+ date: 2011-05-27 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency