searchlogic 2.4.24 → 2.4.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 4
4
- :patch: 24
4
+ :patch: 25
5
5
  :build:
@@ -107,7 +107,7 @@ module Searchlogic
107
107
  end
108
108
 
109
109
  def respond_to?(*args)
110
- super || scope?(args.first)
110
+ super || scope?(normalize_scope_name(args.first))
111
111
  end
112
112
 
113
113
  private
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{searchlogic}
8
- s.version = "2.4.24"
8
+ s.version = "2.4.25"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Johnson of Binary Logic"]
12
- s.date = %q{2010-08-22}
12
+ s.date = %q{2010-09-03}
13
13
  s.description = %q{Searchlogic makes using ActiveRecord named scopes easier and less repetitive.}
14
14
  s.email = %q{bjohnson@binarylogic.com}
15
15
  s.extra_rdoc_files = [
@@ -427,6 +427,12 @@ describe Searchlogic::Search do
427
427
  s.created_at_lte
428
428
  s.respond_to?(:created_at_lte).should == true
429
429
  end
430
+
431
+ it "should respond to created_at" do
432
+ s = User.search
433
+ s.created_at_lte
434
+ s.respond_to?(:created_at).should == true
435
+ end
430
436
  end
431
437
 
432
438
  context "delegation" do
@@ -1,10 +1,10 @@
1
1
  require 'spec'
2
2
  require 'rubygems'
3
- require 'ruby-debug'
3
+ #require 'ruby-debug'
4
4
  require 'active_record'
5
5
 
6
6
  ENV['TZ'] = 'UTC'
7
- Time.zone = 'Eastern Time (US & Canada)'
7
+ #Time.zone = 'Eastern Time (US & Canada)'
8
8
 
9
9
  ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
10
10
  ActiveRecord::Base.configurations = true
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchlogic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 4
9
- - 24
10
- version: 2.4.24
9
+ - 25
10
+ version: 2.4.25
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Johnson of Binary Logic
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-22 00:00:00 -04:00
18
+ date: 2010-09-03 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency