rd_searchlogic 3.0.0.rc → 3.0.0.rc2
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/Rakefile +1 -1
- data/VERSION.yml +1 -1
- data/lib/searchlogic/search.rb +10 -1
- data/rd_searchlogic.gemspec +89 -0
- metadata +5 -5
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ begin
|
|
11
11
|
gem.homepage = "http://github.com/railsdog/searchlogic"
|
12
12
|
gem.authors = ["Ben Johnson of Binary Logic"]
|
13
13
|
gem.rubyforge_project = "searchlogic"
|
14
|
-
gem.add_dependency "activerecord", ">= 3.0.0
|
14
|
+
gem.add_dependency "activerecord", ">= 3.0.0"
|
15
15
|
end
|
16
16
|
Jeweler::GemcutterTasks.new
|
17
17
|
rescue LoadError
|
data/VERSION.yml
CHANGED
data/lib/searchlogic/search.rb
CHANGED
@@ -41,7 +41,16 @@ module Searchlogic
|
|
41
41
|
def do_search
|
42
42
|
@current_scope
|
43
43
|
end
|
44
|
-
|
44
|
+
|
45
|
+
def respond_to?(method_name)
|
46
|
+
begin
|
47
|
+
send method_name
|
48
|
+
true
|
49
|
+
rescue NameError
|
50
|
+
false
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
45
54
|
attr_accessor :klass, :current_scope, :conditions
|
46
55
|
undef :id if respond_to?(:id)
|
47
56
|
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{rd_searchlogic}
|
8
|
+
s.version = "3.0.0.rc2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Ben Johnson of Binary Logic"]
|
12
|
+
s.date = %q{2010-09-03}
|
13
|
+
s.description = %q{Searchlogic makes using ActiveRecord named scopes easier and less repetitive.}
|
14
|
+
s.email = %q{bjohnson@binarylogic.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".gitignore",
|
21
|
+
"LICENSE",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION.yml",
|
25
|
+
"init.rb",
|
26
|
+
"lib/searchlogic.rb",
|
27
|
+
"lib/searchlogic/active_record/association_proxy.rb",
|
28
|
+
"lib/searchlogic/active_record/consistency.rb",
|
29
|
+
"lib/searchlogic/active_record/named_scope_tools.rb",
|
30
|
+
"lib/searchlogic/core_ext/object.rb",
|
31
|
+
"lib/searchlogic/core_ext/proc.rb",
|
32
|
+
"lib/searchlogic/named_scopes/alias_scope.rb",
|
33
|
+
"lib/searchlogic/named_scopes/association_conditions.rb",
|
34
|
+
"lib/searchlogic/named_scopes/association_ordering.rb",
|
35
|
+
"lib/searchlogic/named_scopes/conditions.rb",
|
36
|
+
"lib/searchlogic/named_scopes/or_conditions.rb",
|
37
|
+
"lib/searchlogic/named_scopes/ordering.rb",
|
38
|
+
"lib/searchlogic/rails_helpers.rb",
|
39
|
+
"lib/searchlogic/search.rb",
|
40
|
+
"rails/init.rb",
|
41
|
+
"rd_searchlogic.gemspec",
|
42
|
+
"spec/searchlogic/active_record/association_proxy_spec.rb",
|
43
|
+
"spec/searchlogic/active_record/consistency_spec.rb",
|
44
|
+
"spec/searchlogic/core_ext/object_spec.rb",
|
45
|
+
"spec/searchlogic/core_ext/proc_spec.rb",
|
46
|
+
"spec/searchlogic/named_scopes/alias_scope_spec.rb",
|
47
|
+
"spec/searchlogic/named_scopes/association_conditions_spec.rb",
|
48
|
+
"spec/searchlogic/named_scopes/association_ordering_spec.rb",
|
49
|
+
"spec/searchlogic/named_scopes/conditions_spec.rb",
|
50
|
+
"spec/searchlogic/named_scopes/or_conditions_spec.rb",
|
51
|
+
"spec/searchlogic/named_scopes/ordering_spec.rb",
|
52
|
+
"spec/searchlogic/search_spec.rb",
|
53
|
+
"spec/spec_helper.rb"
|
54
|
+
]
|
55
|
+
s.homepage = %q{http://github.com/railsdog/searchlogic}
|
56
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
57
|
+
s.require_paths = ["lib"]
|
58
|
+
s.rubyforge_project = %q{searchlogic}
|
59
|
+
s.rubygems_version = %q{1.3.6}
|
60
|
+
s.summary = %q{Searchlogic makes using ActiveRecord named scopes easier and less repetitive.}
|
61
|
+
s.test_files = [
|
62
|
+
"spec/searchlogic/active_record/consistency_spec.rb",
|
63
|
+
"spec/searchlogic/active_record/association_proxy_spec.rb",
|
64
|
+
"spec/searchlogic/named_scopes/ordering_spec.rb",
|
65
|
+
"spec/searchlogic/named_scopes/association_ordering_spec.rb",
|
66
|
+
"spec/searchlogic/named_scopes/or_conditions_spec.rb",
|
67
|
+
"spec/searchlogic/named_scopes/association_conditions_spec.rb",
|
68
|
+
"spec/searchlogic/named_scopes/conditions_spec.rb",
|
69
|
+
"spec/searchlogic/named_scopes/alias_scope_spec.rb",
|
70
|
+
"spec/searchlogic/core_ext/proc_spec.rb",
|
71
|
+
"spec/searchlogic/core_ext/object_spec.rb",
|
72
|
+
"spec/searchlogic/search_spec.rb",
|
73
|
+
"spec/spec_helper.rb"
|
74
|
+
]
|
75
|
+
|
76
|
+
if s.respond_to? :specification_version then
|
77
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
78
|
+
s.specification_version = 3
|
79
|
+
|
80
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
81
|
+
s.add_runtime_dependency(%q<activerecord>, [">= 3.0.0"])
|
82
|
+
else
|
83
|
+
s.add_dependency(%q<activerecord>, [">= 3.0.0"])
|
84
|
+
end
|
85
|
+
else
|
86
|
+
s.add_dependency(%q<activerecord>, [">= 3.0.0"])
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 3
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.0.
|
9
|
+
- rc2
|
10
|
+
version: 3.0.0.rc2
|
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-09-03 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -29,8 +29,7 @@ dependencies:
|
|
29
29
|
- 3
|
30
30
|
- 0
|
31
31
|
- 0
|
32
|
-
|
33
|
-
version: 3.0.0.beta4
|
32
|
+
version: 3.0.0
|
34
33
|
type: :runtime
|
35
34
|
version_requirements: *id001
|
36
35
|
description: Searchlogic makes using ActiveRecord named scopes easier and less repetitive.
|
@@ -64,6 +63,7 @@ files:
|
|
64
63
|
- lib/searchlogic/rails_helpers.rb
|
65
64
|
- lib/searchlogic/search.rb
|
66
65
|
- rails/init.rb
|
66
|
+
- rd_searchlogic.gemspec
|
67
67
|
- spec/searchlogic/active_record/association_proxy_spec.rb
|
68
68
|
- spec/searchlogic/active_record/consistency_spec.rb
|
69
69
|
- spec/searchlogic/core_ext/object_spec.rb
|