ts_vector_tags 0.0.4 → 0.0.5

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.
@@ -9,7 +9,7 @@ module TsVectorTags
9
9
  end
10
10
 
11
11
  def normalize(tag)
12
- tag.downcase.gsub(/[^[:alnum:]]/, "")
12
+ tag.downcase.gsub(/[^[:alnum:]_]/, "")
13
13
  end
14
14
  end
15
15
  end
@@ -3,7 +3,7 @@ require 'ts_vector_tags'
3
3
 
4
4
  describe TsVectorTags::Standardizer do
5
5
  it "normalizes" do
6
- TsVectorTags::Standardizer.normalize('abc-!@ #$ %^&*()123æøå∞').should eq('abc123æøå')
6
+ TsVectorTags::Standardizer.normalize('abc-!@ #$ _ %^&*()123æøå∞').should eq('abc_123æøå')
7
7
  end
8
8
 
9
9
  it "splits and normalizes a string" do
@@ -2,7 +2,7 @@
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  module TsVectorTags
5
- VERSION = "0.0.4"
5
+ VERSION = "0.0.5"
6
6
  end
7
7
 
8
8
  Gem::Specification.new do |s|
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
4
+ version: 0.0.5
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-08-21 00:00:00.000000000 Z
13
+ date: 2012-09-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: &70175417969460 !ruby/object:Gem::Requirement
17
+ requirement: &70288914631240 !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: *70175417969460
25
+ version_requirements: *70288914631240
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: