alphabets 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,18 @@
1
- # encoding: utf-8
2
-
3
- ###
4
- # to run use
5
- # ruby -I ./lib -I ./test test/test_downcase.rb
6
-
7
-
8
- require 'helper'
9
-
10
- class TestDowncase < MiniTest::Test
11
-
12
- def test_downcase_i18n
13
- assert_equal 'abcdefghijklmnopqrstuvwxyz', downcase_i18n( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' )
14
- assert_equal 'äöü', downcase_i18n( 'ÄÖÜ' )
15
- assert_equal 'köln', downcase_i18n( 'KÖLN' )
16
- end
17
-
18
- end # class TestDowncase
1
+ # encoding: utf-8
2
+
3
+ ###
4
+ # to run use
5
+ # ruby -I ./lib -I ./test test/test_downcase.rb
6
+
7
+
8
+ require 'helper'
9
+
10
+ class TestDowncase < Minitest::Test
11
+
12
+ def test_downcase_i18n
13
+ assert_equal 'abcdefghijklmnopqrstuvwxyz', downcase_i18n( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' )
14
+ assert_equal 'äöü', downcase_i18n( 'ÄÖÜ' )
15
+ assert_equal 'köln', downcase_i18n( 'KÖLN' )
16
+ end
17
+
18
+ end # class TestDowncase
data/test/test_reader.rb CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  require 'helper'
7
7
 
8
- class TestReader < MiniTest::Test
8
+ class TestReader < Minitest::Test
9
9
 
10
10
  def test_parse
11
11
  h = Alphabet::Reader.parse( <<TXT )
@@ -1,36 +1,36 @@
1
- # encoding: utf-8
2
-
3
- ###
4
- # to run use
5
- # ruby -I ./lib -I ./test test/test_unaccent.rb
6
-
7
-
8
- require 'helper'
9
-
10
- class TestUnaccent < MiniTest::Test
11
-
12
- def test_de
13
- assert_equal 'Augsburg', unaccent( 'Augsburg' )
14
-
15
- assert_equal 'Koln', unaccent( 'Köln' )
16
- assert_equal '1. FC Koln', unaccent( '1. FC Köln' )
17
-
18
- assert_equal 'Bayern Munchen', unaccent( 'Bayern München' )
19
- assert_equal 'F. Dusseldorf', unaccent( 'F. Düsseldorf' )
20
- assert_equal 'Preussen', unaccent( 'Preußen' )
21
- assert_equal 'Munster Preussen', unaccent( 'Münster Preußen' )
22
- assert_equal 'Rot-Weiss Oberhausen', unaccent( 'Rot-Weiß Oberhausen' )
23
-
24
- assert_equal 'St. Polten', unaccent( 'St. Pölten' )
25
- end
26
-
27
- def test_es
28
- assert_equal 'Madrid', unaccent( 'Madrid' )
29
-
30
- assert_equal 'Atletico Madrid', unaccent( 'Atlético Madrid' )
31
- assert_equal 'Ecija Balompie', unaccent( 'Écija Balompié' )
32
- assert_equal 'La Coruna', unaccent( 'La Coruña' )
33
- assert_equal 'Almeria', unaccent( 'Almería' )
34
- end
35
-
36
- end # class TestUnaccent
1
+ # encoding: utf-8
2
+
3
+ ###
4
+ # to run use
5
+ # ruby -I ./lib -I ./test test/test_unaccent.rb
6
+
7
+
8
+ require 'helper'
9
+
10
+ class TestUnaccent < Minitest::Test
11
+
12
+ def test_de
13
+ assert_equal 'Augsburg', unaccent( 'Augsburg' )
14
+
15
+ assert_equal 'Koln', unaccent( 'Köln' )
16
+ assert_equal '1. FC Koln', unaccent( '1. FC Köln' )
17
+
18
+ assert_equal 'Bayern Munchen', unaccent( 'Bayern München' )
19
+ assert_equal 'F. Dusseldorf', unaccent( 'F. Düsseldorf' )
20
+ assert_equal 'Preussen', unaccent( 'Preußen' )
21
+ assert_equal 'Munster Preussen', unaccent( 'Münster Preußen' )
22
+ assert_equal 'Rot-Weiss Oberhausen', unaccent( 'Rot-Weiß Oberhausen' )
23
+
24
+ assert_equal 'St. Polten', unaccent( 'St. Pölten' )
25
+ end
26
+
27
+ def test_es
28
+ assert_equal 'Madrid', unaccent( 'Madrid' )
29
+
30
+ assert_equal 'Atletico Madrid', unaccent( 'Atlético Madrid' )
31
+ assert_equal 'Ecija Balompie', unaccent( 'Écija Balompié' )
32
+ assert_equal 'La Coruna', unaccent( 'La Coruña' )
33
+ assert_equal 'Almeria', unaccent( 'Almería' )
34
+ end
35
+
36
+ end # class TestUnaccent
@@ -1,36 +1,36 @@
1
- # encoding: utf-8
2
-
3
- ###
4
- # to run use
5
- # ruby -I ./lib -I ./test test/test_variants.rb
6
-
7
-
8
- require 'helper'
9
-
10
- class TestVariants < MiniTest::Test
11
-
12
- def test_de
13
- assert_equal [], variants( 'Augsburg' )
14
-
15
- assert_equal ['Koln', 'Koeln'], variants( 'Köln' )
16
- assert_equal ['1. FC Koln', '1. FC Koeln'], variants( '1. FC Köln' )
17
-
18
- assert_equal ['Bayern Munchen', 'Bayern Muenchen'], variants( 'Bayern München' )
19
- assert_equal ['F. Dusseldorf', 'F. Duesseldorf'], variants( 'F. Düsseldorf' )
20
- assert_equal ['Preussen'], variants( 'Preußen' )
21
- assert_equal ['Munster Preussen', 'Muenster Preussen'], variants( 'Münster Preußen' )
22
- assert_equal ['Rot-Weiss Oberhausen'], variants( 'Rot-Weiß Oberhausen' )
23
-
24
- assert_equal ['St. Polten', 'St. Poelten'], variants( 'St. Pölten' )
25
- end
26
-
27
- def test_es
28
- assert_equal [], variants( 'Madrid' )
29
-
30
- assert_equal ['Atletico Madrid'], variants( 'Atlético Madrid' )
31
- assert_equal ['Ecija Balompie'], variants( 'Écija Balompié' )
32
- assert_equal ['La Coruna'], variants( 'La Coruña' )
33
- assert_equal ['Almeria'], variants( 'Almería' )
34
- end
35
-
36
- end # class TestVariants
1
+ # encoding: utf-8
2
+
3
+ ###
4
+ # to run use
5
+ # ruby -I ./lib -I ./test test/test_variants.rb
6
+
7
+
8
+ require 'helper'
9
+
10
+ class TestVariants < Minitest::Test
11
+
12
+ def test_de
13
+ assert_equal [], variants( 'Augsburg' )
14
+
15
+ assert_equal ['Koln', 'Koeln'], variants( 'Köln' )
16
+ assert_equal ['1. FC Koln', '1. FC Koeln'], variants( '1. FC Köln' )
17
+
18
+ assert_equal ['Bayern Munchen', 'Bayern Muenchen'], variants( 'Bayern München' )
19
+ assert_equal ['F. Dusseldorf', 'F. Duesseldorf'], variants( 'F. Düsseldorf' )
20
+ assert_equal ['Preussen'], variants( 'Preußen' )
21
+ assert_equal ['Munster Preussen', 'Muenster Preussen'], variants( 'Münster Preußen' )
22
+ assert_equal ['Rot-Weiss Oberhausen'], variants( 'Rot-Weiß Oberhausen' )
23
+
24
+ assert_equal ['St. Polten', 'St. Poelten'], variants( 'St. Pölten' )
25
+ end
26
+
27
+ def test_es
28
+ assert_equal [], variants( 'Madrid' )
29
+
30
+ assert_equal ['Atletico Madrid'], variants( 'Atlético Madrid' )
31
+ assert_equal ['Ecija Balompie'], variants( 'Écija Balompié' )
32
+ assert_equal ['La Coruna'], variants( 'La Coruña' )
33
+ assert_equal ['Almeria'], variants( 'Almería' )
34
+ end
35
+
36
+ end # class TestVariants
metadata CHANGED
@@ -1,46 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alphabets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-10 00:00:00.000000000 Z
11
+ date: 2024-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7'
20
23
  type: :development
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: hoe
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '3.16'
39
+ version: '4.1'
34
40
  type: :development
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '3.16'
46
+ version: '4.1'
41
47
  description: alphabets - alphabet (a-z) helpers incl. unaccent, downcase, variants,
42
48
  and more
43
- email: opensport@googlegroups.com
49
+ email: gerald.bauer@gmail.com
44
50
  executables: []
45
51
  extensions: []
46
52
  extra_rdoc_files:
@@ -65,11 +71,11 @@ files:
65
71
  - test/test_reader.rb
66
72
  - test/test_unaccent.rb
67
73
  - test/test_variants.rb
68
- homepage: https://github.com/sportdb/sport.db
74
+ homepage: https://github.com/rubycoco/core
69
75
  licenses:
70
76
  - Public Domain
71
77
  metadata: {}
72
- post_install_message:
78
+ post_install_message:
73
79
  rdoc_options:
74
80
  - "--main"
75
81
  - README.md
@@ -86,9 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
92
  - !ruby/object:Gem::Version
87
93
  version: '0'
88
94
  requirements: []
89
- rubyforge_project:
90
- rubygems_version: 2.5.2
91
- signing_key:
95
+ rubygems_version: 3.4.10
96
+ signing_key:
92
97
  specification_version: 4
93
98
  summary: alphabets - alphabet (a-z) helpers incl. unaccent, downcase, variants, and
94
99
  more