textutils 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,8 +15,7 @@ module TextUtils
15
15
  # e.g. Bock ‹Damm› becomes => Bock Damm
16
16
  # ‹Estrella› ‹Damm› Inedit becomes => Estrella Damm Inedit
17
17
 
18
- # todo: also allow reguluar <> for easy typing/input ??? why? why not? used for anything else already?
19
- title.gsub( /[‹›]/, '' )
18
+ title.gsub( /[<>‹›]/, '' )
20
19
  end
21
20
 
22
21
  def strip_translations( title )
@@ -1,7 +1,7 @@
1
1
 
2
2
  module TextUtils
3
3
 
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
 
6
6
  end # module TextUtils
7
7
 
@@ -12,19 +12,28 @@ require 'helper'
12
12
  class TestTitleHelper < MiniTest::Unit::TestCase
13
13
 
14
14
  def test_title_to_key
15
-
15
+
16
+ puts '[debug] enter test_title_to_key()'
17
+
16
18
  txt_io = [
17
19
  [ 'São Paulo', 'saopaulo' ],
18
20
  [ 'São Gonçalo', 'saogoncalo' ],
19
21
  [ 'Výčepní', 'vycepni' ],
20
22
  [ 'Bock ‹Damm›', 'bockdamm' ],
21
- [ '‹Estrella› ‹Damm› Inedit', 'estrelladamminedit' ]
22
- ]
23
+ [ '‹Estrella› ‹Damm› Inedit', 'estrelladamminedit' ],
24
+ [ '‹Hirter› Pils', 'hirterpils' ],
25
+ [ '‹Villacher› Märzen', 'villachermaerzen' ],
26
+ [ 'Bock <Damm>', 'bockdamm' ],
27
+ [ '<Estrella> <Damm> Inedit', 'estrelladamminedit' ]
28
+ ]
23
29
 
24
30
  txt_io.each do |txt|
25
31
  assert_equal txt[1], TextUtils.title_to_key( txt[0] )
26
32
  end
27
- end
33
+
34
+ puts '[debug] leave test_title_to_key()'
35
+
36
+ end # method test_title_to_key
28
37
 
29
38
 
30
39
  end # class TestTitleHelper
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2014-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: logutils
16
- requirement: &3086976 !ruby/object:Gem::Requirement
16
+ requirement: &21276780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.5'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *3086976
24
+ version_requirements: *21276780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &3085764 !ruby/object:Gem::Requirement
27
+ requirement: &21341748 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '4.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *3085764
35
+ version_requirements: *21341748
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hoe
38
- requirement: &3082920 !ruby/object:Gem::Requirement
38
+ requirement: &21341412 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '3.7'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *3082920
46
+ version_requirements: *21341412
47
47
  description: textutils - Text Filters, Helpers, Readers and More
48
48
  email: ruby-talk@ruby-lang.org
49
49
  executables: []