binarylogic-searchlogic 2.1.4 → 2.1.5

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/CHANGELOG.rdoc CHANGED
@@ -1,4 +1,8 @@
1
- == 2.1.3
1
+ == 2.1.4
2
+
3
+ * Check for the existence of id before undefining it.
4
+
5
+ == 2.1.3 released 2009-07-12
2
6
 
3
7
  * Added a no conflic resolution for other libraries already using the "search" method. If you have a conflict, use "searchlogic".
4
8
  * Put the hidden order field in a div, to be valid XHTML.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 1
4
- :patch: 4
4
+ :patch: 5
@@ -13,7 +13,7 @@ module Searchlogic
13
13
  # This fixes that problem.
14
14
  def merge_joins_with_searchlogic(*args)
15
15
  joins = merge_joins_without_searchlogic(*args)
16
- joins.collect { |j| j.split(" ") }.flatten.uniq
16
+ joins.collect { |j| j.is_a?(String) ? j.split(" ") : j }.flatten.uniq
17
17
  end
18
18
  end
19
19
  end
@@ -39,7 +39,7 @@ module Searchlogic
39
39
  end
40
40
 
41
41
  attr_accessor :klass, :current_scope, :conditions
42
- undef :id
42
+ undef :id if respond_to?(:id)
43
43
 
44
44
  # Creates a new search object for the given class. Ex:
45
45
  #
data/searchlogic.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{searchlogic}
5
- s.version = "2.1.4"
5
+ s.version = "2.1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ben Johnson of Binary Logic"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binarylogic-searchlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Johnson of Binary Logic