ts_vector_tags 0.0.2 → 0.0.3
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/lib/ts_vector_tags.rb +1 -2
- data/spec/ts_vector_tags_spec.rb +3 -2
- data/ts_vector_tags.gemspec +4 -1
- metadata +5 -7
- data/lib/ts_vector_tags/version.rb +0 -3
- data/spec/spec_helper.rb +0 -1
data/lib/ts_vector_tags.rb
CHANGED
data/spec/ts_vector_tags_spec.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'ts_vector_tags'
|
2
3
|
|
3
4
|
describe TsVectorTags::Standardizer do
|
4
5
|
it "normalizes" do
|
5
|
-
TsVectorTags::Standardizer.normalize('abc-!@ #$ %^&*()123').should eq('abc123')
|
6
|
+
TsVectorTags::Standardizer.normalize('abc-!@ #$ %^&*()123æøå∞').should eq('abc123æøå')
|
6
7
|
end
|
7
8
|
|
8
9
|
it "splits and normalizes a string" do
|
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.3
|
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:
|
13
|
+
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: &70341718185420 !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: *70341718185420
|
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:
|
@@ -38,8 +38,6 @@ files:
|
|
38
38
|
- README.md
|
39
39
|
- Rakefile
|
40
40
|
- lib/ts_vector_tags.rb
|
41
|
-
- lib/ts_vector_tags/version.rb
|
42
|
-
- spec/spec_helper.rb
|
43
41
|
- spec/ts_vector_tags_spec.rb
|
44
42
|
- ts_vector_tags.gemspec
|
45
43
|
homepage: ''
|
@@ -62,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
60
|
version: '0'
|
63
61
|
requirements: []
|
64
62
|
rubyforge_project: ts_vector_tags
|
65
|
-
rubygems_version: 1.8.
|
63
|
+
rubygems_version: 1.8.15
|
66
64
|
signing_key:
|
67
65
|
specification_version: 3
|
68
66
|
summary: Super simple tag mixin for postgresql and activerecord
|
data/spec/spec_helper.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'ts_vector_tags'
|