tagabaybay 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/lib/tagabaybay/version.rb +1 -1
- data/lib/tagabaybay.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12bead14dfca9241697ac2d892a0ed2ba52c7e77e3cf9ea6cc02c4a05a19eef0
|
|
4
|
+
data.tar.gz: 729ae68f5208ef2bce03555d6241e9c0bf1539a2072b26181b6c783b6c830a3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: afe862187172bab10e1b72c1d2ca1cdc57a717eeb18abca9a923e3a6ab251062e8e6515307ea1275a791efdef0ea4da2e571df770d4ec515c1158cd19243e523
|
|
7
|
+
data.tar.gz: 2d8fe20846bb210102ee7c9893f2a02ef0ef18d73a0a1a31ea2d3d2d3774943ffcb8740ed6c517b6372f6d38459b9f606c4f4c294b67eac298ead3fba2487142
|
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Tagabaybay
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
Tagabaybay lets you transliterate tagalog into baybayin.
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
data/lib/tagabaybay/version.rb
CHANGED
data/lib/tagabaybay.rb
CHANGED
|
@@ -87,6 +87,7 @@ module Tagabaybay
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
SINGLES = {
|
|
90
|
+
" " => " ",
|
|
90
91
|
"a" => "ᜀ",
|
|
91
92
|
"i" => "ᜁ",
|
|
92
93
|
"e" => "ᜁ",
|
|
@@ -134,7 +135,7 @@ module Tagabaybay
|
|
|
134
135
|
private
|
|
135
136
|
|
|
136
137
|
def find_match(text)
|
|
137
|
-
matched = Mapping::ALL.find do |matcher,
|
|
138
|
+
matched = Mapping::ALL.find do |matcher, _baybayin|
|
|
138
139
|
Regexp.new("^#{matcher}") =~ text
|
|
139
140
|
end
|
|
140
141
|
raise "Unable to match mapping for #{text}" unless matched
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tagabaybay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Norly Canarias
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|