searchlogic 2.4.21 → 2.4.22
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.yml
CHANGED
@@ -71,10 +71,11 @@ module Searchlogic
|
|
71
71
|
options
|
72
72
|
else
|
73
73
|
proc_args = arity_args(arity)
|
74
|
-
|
74
|
+
scope_options = scope_options.respond_to?(:searchlogic_options) ? scope_options.searchlogic_options.clone : {}
|
75
|
+
arg_type = scope_options.delete(:type) || :string
|
75
76
|
|
76
77
|
eval <<-"end_eval"
|
77
|
-
searchlogic_lambda(:#{arg_type}) { |#{proc_args.join(",")}|
|
78
|
+
searchlogic_lambda(:#{arg_type}, #{scope_options}) { |#{proc_args.join(",")}|
|
78
79
|
options = {}
|
79
80
|
|
80
81
|
in_searchlogic_delegation do
|
data/searchlogic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{searchlogic}
|
8
|
-
s.version = "2.4.
|
8
|
+
s.version = "2.4.22"
|
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-
|
12
|
+
s.date = %q{2010-08-05}
|
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 = [
|
@@ -75,6 +75,11 @@ describe Searchlogic::NamedScopes::AssociationConditions do
|
|
75
75
|
Company.users_orders_total_gt(10).proxy_options.should == Order.total_gt(10).proxy_options.merge(:joins => {:users => :orders})
|
76
76
|
end
|
77
77
|
|
78
|
+
it "should copy over the named scope options" do
|
79
|
+
Order.user_whatever_at_equals(1)
|
80
|
+
Order.named_scope_options(:user_whatever_at_equals).searchlogic_options[:skip_conversion].should == true
|
81
|
+
end
|
82
|
+
|
78
83
|
it "should include optional associations" do
|
79
84
|
pending # this is a problem with using inner joins and left outer joins
|
80
85
|
Company.create
|
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:
|
4
|
+
hash: 51
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 2.4.
|
9
|
+
- 22
|
10
|
+
version: 2.4.22
|
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-
|
18
|
+
date: 2010-08-05 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|