Skip to content

Commit 4f82b78

Browse files
committed
up alphabets
1 parent fb097db commit 4f82b78

11 files changed

+250
-237
lines changed

alphabets/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
### 1.0.1 / 2024-06-07
2+
13
### 0.0.1 / 2019-08-13
24

35
* Everything is new. First release.

alphabets/Manifest.txt

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
CHANGELOG.md
2-
Manifest.txt
3-
NOTES.md
4-
README.md
5-
Rakefile
6-
lib/alphabets.rb
7-
lib/alphabets/alphabets.rb
8-
lib/alphabets/reader.rb
9-
lib/alphabets/utils.rb
10-
lib/alphabets/variants.rb
11-
lib/alphabets/version.rb
12-
test/helper.rb
13-
test/test_downcase.rb
14-
test/test_reader.rb
15-
test/test_unaccent.rb
16-
test/test_variants.rb
1+
CHANGELOG.md
2+
Manifest.txt
3+
NOTES.md
4+
README.md
5+
Rakefile
6+
lib/alphabets.rb
7+
lib/alphabets/alphabets.rb
8+
lib/alphabets/reader.rb
9+
lib/alphabets/utils.rb
10+
lib/alphabets/variants.rb
11+
lib/alphabets/version.rb
12+
test/helper.rb
13+
test/test_downcase.rb
14+
test/test_reader.rb
15+
test/test_unaccent.rb
16+
test/test_variants.rb

alphabets/Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Hoe.spec 'alphabets' do
1111
self.urls = { home: 'https://github.com/rubycoco/core' }
1212

1313
self.author = 'Gerald Bauer'
14-
self.email = '[email protected]'
14+
self.email = '[email protected]'
1515

1616
# switch extension to .markdown for gihub formatting
1717
self.readme_file = 'README.md'

alphabets/SUMMARY.md

+211-208
Large diffs are not rendered by default.

alphabets/lib/alphabets.rb

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
# encoding: utf-8
21

2+
## note - pp now part of ruby core since version ???
3+
### check no longer required!!!
34
require 'pp'
45

56

67
###
78
# our own code
8-
require 'alphabets/version' # let version always go first
9-
require 'alphabets/reader'
10-
require 'alphabets/alphabets'
11-
require 'alphabets/utils'
12-
require 'alphabets/variants'
9+
require_relative 'alphabets/version' # let version always go first
10+
require_relative 'alphabets/reader'
11+
require_relative 'alphabets/alphabets'
12+
require_relative 'alphabets/utils'
13+
require_relative 'alphabets/variants'
1314

1415

16+
##
17+
## add globals inside Kernel ??
18+
## lets us use alias_method
19+
## what else? why? why not?
20+
1521

1622
## add "global" convenience helper
1723
def downcase_i18n( name )

alphabets/lib/alphabets/alphabets.rb

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class Alphabet
4444
Ñ N ñ n
4545
Ń N ń n
4646
Ň N ň n
47+
Ņ N ņ n # N/n with cedilla U+0145 / U+0146 (capital / small)
4748
4849
Ö O ö o
4950
Ő O ő o # hungarian - use OE/oe - why? (it's not a ligature) why not?
@@ -145,6 +146,7 @@ class Alphabet
145146
Ń ń
146147
Ň ň
147148
Ñ ñ
149+
Ņ ņ
148150
149151
Ö ö
150152
Ő ő

alphabets/lib/alphabets/version.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
class Alphabet
77
MAJOR = 1 ## todo: namespace inside version or something - why? why not??
88
MINOR = 0
9-
PATCH = 0
9+
PATCH = 1
1010
VERSION = [MAJOR,MINOR,PATCH].join('.')
1111

1212
def self.version
1313
VERSION
1414
end
1515

1616
def self.banner
17-
"alphabets/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
17+
"alphabets/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
1818
end
1919

2020
def self.root

alphabets/test/test_downcase.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
require 'helper'
99

10-
class TestDowncase < MiniTest::Test
10+
class TestDowncase < Minitest::Test
1111

1212
def test_downcase_i18n
1313
assert_equal 'abcdefghijklmnopqrstuvwxyz', downcase_i18n( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' )

alphabets/test/test_reader.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
require 'helper'
77

8-
class TestReader < MiniTest::Test
8+
class TestReader < Minitest::Test
99

1010
def test_parse
1111
h = Alphabet::Reader.parse( <<TXT )

alphabets/test/test_unaccent.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
require 'helper'
99

10-
class TestUnaccent < MiniTest::Test
10+
class TestUnaccent < Minitest::Test
1111

1212
def test_de
1313
assert_equal 'Augsburg', unaccent( 'Augsburg' )

alphabets/test/test_variants.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
require 'helper'
99

10-
class TestVariants < MiniTest::Test
10+
class TestVariants < Minitest::Test
1111

1212
def test_de
1313
assert_equal [], variants( 'Augsburg' )

0 commit comments

Comments
 (0)