honkster-acts_as_solr 0.2.2 → 0.2.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.
Files changed (4) hide show
  1. data/CHANGE_LOG +4 -0
  2. data/VERSION +1 -1
  3. data/lib/acts_as_solr.rb +2 -2
  4. metadata +1 -1
data/CHANGE_LOG CHANGED
@@ -1,5 +1,9 @@
1
+
1
2
  == CHANGE_LOG
2
3
  === Development
4
+ <b>NEW</b>:: Using ENV['RAILS_ENV'] instead of RAILS_ENV, so multiple test environments are supported.
5
+ <b>FIX</b>:: Fixed load path collisions
6
+ <b>NEW</b>:: Gemified acts_as_solr
3
7
  <b>NEW</b>:: A unit test suite based on Shoulda, not requiring a running Solr or a Rails environment. (Mathias Meyer)
4
8
  <b>NEW</b>:: Added the :offline option to the acts_as_solr method. (Mathias Meyer)
5
9
  <b>NEW</b>:: Added :lazy flag to find_by_solr, and with that support to load records lazily. (Mathias Meyer)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/lib/acts_as_solr.rb CHANGED
@@ -43,9 +43,9 @@ module ActsAsSolr
43
43
  begin
44
44
  if File.exists?(RAILS_ROOT+'/config/solr.yml')
45
45
  config = YAML::load_file(RAILS_ROOT+'/config/solr.yml')
46
- url = config[RAILS_ENV]['url']
46
+ url = config[ENV['RAILS_ENV']]['url']
47
47
  # for backwards compatibility
48
- url ||= "http://#{config[RAILS_ENV]['host']}:#{config[RAILS_ENV]['port']}/#{config[RAILS_ENV]['servlet_path']}"
48
+ url ||= "http://#{config[ENV['RAILS_ENV']]['host']}:#{config[ENV['RAILS_ENV']]['port']}/#{config[ENV['RAILS_ENV']]['servlet_path']}"
49
49
  else
50
50
  url = 'http://localhost:8982/solr'
51
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honkster-acts_as_solr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Meyer