searchlogic 2.1.1 → 2.1.2

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,3 +1,7 @@
1
+ == 2.1.2 released 2009-07-04
2
+
3
+ * Undefine the id method for the Search class, so that it acts like a condition.
4
+
1
5
  == 2.1.1 released 2009-06-28
2
6
 
3
7
  * Added inner_join convenience method.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 1
4
- :patch: 1
4
+ :patch: 2
@@ -36,6 +36,7 @@ module Searchlogic
36
36
  end
37
37
 
38
38
  attr_accessor :klass, :current_scope, :conditions
39
+ undef :id
39
40
 
40
41
  # Creates a new search object for the given class. Ex:
41
42
  #
data/searchlogic.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{searchlogic}
5
- s.version = "2.1.1"
5
+ s.version = "2.1.2"
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"]
9
- s.date = %q{2009-06-28}
9
+ s.date = %q{2009-07-04}
10
10
  s.email = %q{bjohnson@binarylogic.com}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
data/spec/search_spec.rb CHANGED
@@ -136,6 +136,11 @@ describe "Search" do
136
136
  lambda { search.unknown = true }.should raise_error(Searchlogic::Search::UnknownConditionError)
137
137
  end
138
138
 
139
+ it "should not use the ruby implementation of the id method" do
140
+ search = User.search
141
+ search.id.should be_nil
142
+ end
143
+
139
144
  context "type casting" do
140
145
  it "should be a Boolean given true" do
141
146
  search = User.search
data/spec/spec_helper.rb CHANGED
@@ -18,6 +18,7 @@ ActiveRecord::Schema.define(:version => 1) do
18
18
  t.datetime :updated_at
19
19
  t.integer :company_id
20
20
  t.string :username
21
+ t.string :name
21
22
  t.integer :age
22
23
  end
23
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Johnson of Binary Logic
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-28 00:00:00 -04:00
12
+ date: 2009-07-04 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency