mojinizer 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mojinizer/romaji_tables.rb +2 -2
- data/lib/mojinizer/version.rb +1 -1
- data/spec/mojinizer_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af5bb0432041f3f939054d8e84d2f95c5aa5fd1
|
4
|
+
data.tar.gz: d16917e8daffb95cf6de93a525b7ed45ef78cd9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44cd254c10072d2177bf44dff6d161927a94dc8077a813542de66eda182d73afae912e20a0d54327d6d30283774f145d6d154e359ad565a998c4e30f75b6359e
|
7
|
+
data.tar.gz: 677f3afdbdc9719635b9b0ecf22a10f42071ac69691e14f8c76016f4bc80f9a1d1f5ad02b9f899087a0ab0c1a22f307fc842e78da0365266da2e5a3e645d7d46
|
@@ -8,7 +8,7 @@ module Mojinizer
|
|
8
8
|
"か"=>"ka", "き"=>"ki", "く"=>"ku", "け"=>"ke", "こ"=>"ko",
|
9
9
|
"ガ"=>"ga", "ギ"=>"gi", "グ"=>"gu", "ゲ"=>"ge", "ゴ"=>"go",
|
10
10
|
"が"=>"ga", "ぎ"=>"gi", "ぐ"=>"gu", "げ"=>"ge", "ご"=>"go",
|
11
|
-
"サ"=>"sa", "シ"=>"
|
11
|
+
"サ"=>"sa", "シ"=>"shi","ス"=>"su", "セ"=>"se", "ソ"=>"so",
|
12
12
|
"さ"=>"sa", "し"=>"shi","す"=>"su", "せ"=>"se", "そ"=>"so",
|
13
13
|
"ザ"=>"za", "ジ"=>"ji", "ズ"=>"zu", "ゼ"=>"ze", "ゾ"=>"zo",
|
14
14
|
"ざ"=>"za", "じ"=>"ji", "ず"=>"zu", "ぜ"=>"ze", "ぞ"=>"zo",
|
@@ -60,7 +60,7 @@ module Mojinizer
|
|
60
60
|
"sa"=>"サ", "si"=>"シ", "su"=>"ス", "se"=>"セ", "so"=>"ソ",
|
61
61
|
"za"=>"ザ", "zi"=>"ジ", "zu"=>"ズ", "ze"=>"ゼ", "zo"=>"ゾ",
|
62
62
|
"ja"=>"ジャ","ji"=>"ジ", "ju"=>"ジュ","je"=>"ジェ","jo"=>"ジョ",
|
63
|
-
"ta"=>"タ", "ti"=>"チ", "
|
63
|
+
"ta"=>"タ", "ti"=>"チ", "tu"=>"ツ", "te"=>"テ", "to"=>"ト",
|
64
64
|
"da"=>"ダ", "di"=>"ヂ", "du"=>"ヅ", "de"=>"デ", "do"=>"ド",
|
65
65
|
"na"=>"ナ", "ni"=>"ニ", "nu"=>"ヌ", "ne"=>"ネ", "no"=>"ノ",
|
66
66
|
"ha"=>"ハ", "hi"=>"ヒ", "hu"=>"フ", "he"=>"ヘ", "ho"=>"ホ",
|
data/lib/mojinizer/version.rb
CHANGED
data/spec/mojinizer_spec.rb
CHANGED
@@ -5,6 +5,7 @@ describe Mojinizer do
|
|
5
5
|
context "should convert" do
|
6
6
|
it "romaji or katakana to hiragana properly" do
|
7
7
|
"tsukue".hiragana.should == "つくえ"
|
8
|
+
"tukue".hiragana.should == "つくえ"
|
8
9
|
"kinnyoubi".hiragana.should == "きんようび"
|
9
10
|
"kin'youbi".hiragana.should == "きんようび"
|
10
11
|
"konnya".hiragana.should == "こんや"
|
@@ -18,6 +19,7 @@ describe Mojinizer do
|
|
18
19
|
|
19
20
|
it "romaji or hiragana to katakana properly" do
|
20
21
|
"tsukue".katakana.should == "ツクエ"
|
22
|
+
"tukue".katakana.should == "ツクエ"
|
21
23
|
"kinnyoubi".katakana.should == "キンヨウビ"
|
22
24
|
"kin'youbi".katakana.should == "キンヨウビ"
|
23
25
|
"konnya".katakana.should == "コンヤ"
|
@@ -35,10 +37,12 @@ describe Mojinizer do
|
|
35
37
|
|
36
38
|
it "kana to romaji properly" do
|
37
39
|
"つくえ".romaji.should == "tsukue"
|
40
|
+
"すし".romaji.should == "sushi"
|
38
41
|
"きんようび".romaji.should == "kinyoubi"
|
39
42
|
"こんや".romaji.should == "konya"
|
40
43
|
"こんにち".romaji.should == "konnichi"
|
41
44
|
"ツクエ".romaji.should == "tsukue"
|
45
|
+
"スシ".romaji.should == "sushi"
|
42
46
|
"キンヨウビ".romaji.should == "kinyoubi"
|
43
47
|
"コンヤ".romaji.should == "konya"
|
44
48
|
"コンニチ".romaji.should == "konnichi"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mojinizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ikayzo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: moji
|