multi_column_search 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/Manifest +1 -0
- data/lib/multi_column_search.rb +2 -3
- data/multi_column_search.gemspec +2 -2
- metadata +3 -3
data/CHANGELOG
CHANGED
data/Manifest
CHANGED
data/lib/multi_column_search.rb
CHANGED
@@ -28,9 +28,8 @@ module MultiColumnSearch
|
|
28
28
|
acc << columns.collect { |column| "#{table_name}.#{column} #{like} '#{pattern}'" }
|
29
29
|
|
30
30
|
end
|
31
|
-
|
32
|
-
|
33
|
-
where conditions
|
31
|
+
|
32
|
+
where conditions.map { |c| "(" + c.join(' OR ') + ")" }.join(' OR ')
|
34
33
|
}
|
35
34
|
end
|
36
35
|
|
data/multi_column_search.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{multi_column_search}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Jack Russell Software"]
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.description = %q{Quick and dirty multi column LIKE searches.}
|
11
11
|
s.email = %q{team@jackrussellsoftware.com}
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG", "README.rdoc", "lib/multi_column_search.rb"]
|
13
|
-
s.files = ["CHANGELOG", "Manifest", "README.rdoc", "Rakefile", "init.rb", "lib/multi_column_search.rb", "spec/models.rb", "spec/multi_column_search_spec.rb", "spec/spec_helper.rb"
|
13
|
+
s.files = ["CHANGELOG", "Manifest", "README.rdoc", "Rakefile", "init.rb", "lib/multi_column_search.rb", "multi_column_search.gemspec", "spec/models.rb", "spec/multi_column_search_spec.rb", "spec/spec_helper.rb"]
|
14
14
|
s.homepage = %q{http://github.com/jackhq/multi_column_search}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Multi_column_search", "--main", "README.rdoc"]
|
16
16
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jack Russell Software
|
@@ -35,10 +35,10 @@ files:
|
|
35
35
|
- Rakefile
|
36
36
|
- init.rb
|
37
37
|
- lib/multi_column_search.rb
|
38
|
+
- multi_column_search.gemspec
|
38
39
|
- spec/models.rb
|
39
40
|
- spec/multi_column_search_spec.rb
|
40
41
|
- spec/spec_helper.rb
|
41
|
-
- multi_column_search.gemspec
|
42
42
|
has_rdoc: true
|
43
43
|
homepage: http://github.com/jackhq/multi_column_search
|
44
44
|
licenses: []
|