acts_as_tokenizable 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/acts_as_tokenizable.gemspec +2 -2
- data/lib/acts_as_tokenizable/acts_as_tokenizable.rb +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
data/acts_as_tokenizable.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{acts_as_tokenizable}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.7.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{Enrique Garcia Cota}, %q{Francisco de Juan}]
|
12
|
-
s.date = %q{2012-03-
|
12
|
+
s.date = %q{2012-03-21}
|
13
13
|
s.description = %q{Make ActiveRecord models easily searchable via tokens.}
|
14
14
|
s.email = %q{github@splendeo.es}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -29,7 +29,7 @@ module ActsAsTokenizable
|
|
29
29
|
base.class_eval do
|
30
30
|
extend ClassMethods
|
31
31
|
|
32
|
-
|
32
|
+
scope :tokenized_by, lambda {|search_token|
|
33
33
|
search_strings = []
|
34
34
|
search_values = []
|
35
35
|
StringUtils.words(prepare_search_token(search_token)).each do |w|
|
@@ -41,7 +41,7 @@ module ActsAsTokenizable
|
|
41
41
|
search_values.push("%#{w}%")
|
42
42
|
end
|
43
43
|
end
|
44
|
-
|
44
|
+
where([search_strings.join(' AND '), *search_values])
|
45
45
|
}
|
46
46
|
end
|
47
47
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_tokenizable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-03-
|
13
|
+
date: 2012-03-21 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: babosa
|
17
|
-
requirement: &
|
17
|
+
requirement: &17284020 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 0.3.7
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *17284020
|
26
26
|
description: Make ActiveRecord models easily searchable via tokens.
|
27
27
|
email: github@splendeo.es
|
28
28
|
executables: []
|