acts_as_tokenizable 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_tokenizable}
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
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}]
@@ -21,7 +21,7 @@ module ActsAsTokenizable
21
21
  # stop words, replacing words.
22
22
  # By default it tokenizes each word and removes duplicates.
23
23
  def prepare_search_token(search_token)
24
- StringUtils::words_to_token(search_token)
24
+ StringUtils.words_to_token(search_token)
25
25
  end
26
26
  end
27
27
 
@@ -32,7 +32,7 @@ module ActsAsTokenizable
32
32
  named_scope :tokenized_by, lambda {|search_token|
33
33
  search_strings = []
34
34
  search_values = []
35
- StringExtensions::words(prepare_search_token(search_token)).each do |w|
35
+ StringUtils.words(prepare_search_token(search_token)).each do |w|
36
36
  if w[0,1] == '-'
37
37
  search_strings.push("#{table_name}.#{token_field_name} NOT LIKE ?")
38
38
  search_values.push("%#{w[1,w.length]}%")
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.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-03-20 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: babosa
17
- requirement: &19421500 !ruby/object:Gem::Requirement
17
+ requirement: &21058440 !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: *19421500
25
+ version_requirements: *21058440
26
26
  description: Make ActiveRecord models easily searchable via tokens.
27
27
  email: github@splendeo.es
28
28
  executables: []