websolr-rails 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
data/lib/websolr-rails.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  # Post-require hooks for acts_as_solr and sunspot if this
2
2
  # gem is loaded and WEBSOLR_URL is defined.
3
3
 
4
- if ENV["WEBSOLR_URL"]
4
+ if ENV["WEBSOLR_URL"] && !$websolr_already
5
+ $websolr_already = true
5
6
 
6
7
  def websolr_install_sunspot
7
8
  Sunspot.config.solr.url = ENV["WEBSOLR_URL"]
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{websolr-rails}
8
- s.version = "2.0.2"
8
+ s.version = "2.0.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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websolr-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Maxwell