latin_to_normal_character 0.0.6 → 0.0.7
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/lib/latin_to_normal_character.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e2641f5915a364c27a8c75d69bdb09823472ad1d1cf4cc0b19b76c5de6f3b5a9
|
|
4
|
+
data.tar.gz: 61d255657300283d05caf51f3a06e0a437e5bc0335bcb3aebbad03ee4ab48361
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2c2a19cf8e0c2654f2852e51db1c709afb82c512b1802247803a176886128849b83d993d98f359865a5d0c338a912869020719f92c1b21726493900d5b41248
|
|
7
|
+
data.tar.gz: 25820470aa8b0ae8ceae851cbf46475f6b448f3900b05afbed210776b7a873da23e3b78a40bf086d1b74ee22acb0111311ca79b0a54e49b6f35b77a8ec8f3021
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
class LatinToNormalCharacter
|
|
3
3
|
def self.transform(latin_string)
|
|
4
|
-
if latin_string.
|
|
4
|
+
if !latin_string.nil? && latin_string.to_s.match?(/[ÀÁÂÃÄÅàáâãäåƁƂƄʙƀƃƅÇČƆƇçčƈÐƋƊðƌƍÈÉÊËĔƎƐèéêëĕƏʚƑƒĞĢĜĠƓʛğģĝġĤĦʜĥħʰʯʮÌÍÎÏĨĪĬĮİƗìíîïĩīĭįıĴĵʝĶƘķĸƙʞĹĻĽĿŁʟĺļľŀłƚƜɯɰɱÑŃŅŇŊƝñńņňŋʼnɲɳƞɴÒÓÔÕÖØŌŎŐƟƠòóôõöøōŏőơɵƤƥʠŔŖŘŕŗřɹɺɻɼɽɾɿʀʁŜŞŠŚŝşšśſʂŢŤŦƬƮţťŧƭƫʇʈÙÚÛÜŪŨŬŮŰŲƯùúûüūũŭůűųưʉƲʋʌŴŵʍÝŸŶƳýŷƴʎʏŽŹŻƵžźżƶʐʑÆæIJijŒœɶÞßƦƩƪƷƸƹƺƻƼƽƾƿ]/)
|
|
5
5
|
latin_string.split(//).each do |str|
|
|
6
6
|
LATIN.each do |index, item|
|
|
7
7
|
if item.include? str
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: latin_to_normal_character
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Gerald Cabatingan
|
|
@@ -38,8 +38,8 @@ description: "This will replace the Latin character inside a string to correspon
|
|
|
38
38
|
\ SS: ['ß']\n YR: ['Ʀ']\n ESH: ['Ʃ']\n esh: ['ƪ']\n EZH: ['Ʒ', 'Ƹ']\n
|
|
39
39
|
\ ezh: ['ƹ', 'ƺ']\n dz: ['ƻ']\n Q: ['Ƽ']\n q: ['ƽ']\n ts: ['ƾ']\n
|
|
40
40
|
\ Wynn: ['ƿ']\n\n\n\n Updates:\n 0.0.4 & 0.0.5\n - update the coverage
|
|
41
|
-
of latin string support.\n 0.0.6\n - fix issue on non string value.\n\n
|
|
42
|
-
\ "
|
|
41
|
+
of latin string support.\n 0.0.6\n - fix issue on non string value.\n 0.0.7\n
|
|
42
|
+
\ - fix issue on non string value.\n\n "
|
|
43
43
|
email: markgeraldcabatingan@gmail.com
|
|
44
44
|
executables: []
|
|
45
45
|
extensions: []
|