ts_vector_tags 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ts_vector_tags.rb +1 -1
- data/spec/ts_vector_tags_spec.rb +4 -0
- data/ts_vector_tags.gemspec +1 -1
- metadata +3 -3
data/lib/ts_vector_tags.rb
CHANGED
data/spec/ts_vector_tags_spec.rb
CHANGED
@@ -13,6 +13,10 @@ describe TsVectorTags::Standardizer do
|
|
13
13
|
it "normalizes tags in an arrayarray" do
|
14
14
|
TsVectorTags::Standardizer.tagify(['abc-!@ #$ ', ' %^&*()123']).should eq(['abc', '123'])
|
15
15
|
end
|
16
|
+
|
17
|
+
it "removes empty tags" do
|
18
|
+
TsVectorTags::Standardizer.tagify(['abc', ' %^&*()']).should eq(['abc'])
|
19
|
+
end
|
16
20
|
end
|
17
21
|
|
18
22
|
class Thing
|
data/ts_vector_tags.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ts_vector_tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-08-21 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
17
|
-
requirement: &
|
17
|
+
requirement: &70175417969460 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70175417969460
|
26
26
|
description: Extremely simple, if somewhat exotic, mixin that uses the tsvector feature
|
27
27
|
in postgresql to add tags to an ActiveRecord model.
|
28
28
|
email:
|