romaji 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +0 -1
- data/lib/romaji/constants.rb +1 -0
- data/lib/romaji/version.rb +1 -1
- data/romaji.gemspec +1 -4
- data/spec/romaji_spec.rb +1 -0
- metadata +10 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 44ea3964db8244774632c7237703331e4de39e8fd28455e693ae3056135c9a85
|
4
|
+
data.tar.gz: 0edea1ef120e45367162923cbda5984418372965baba652c962d0e86e865957d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9a3e42fc8606b9155064ef3a5220dd437004fa4fe0b5809234df2b53ca9591b102d6ffd09b31c831d8d4e228ea19159d036e78b864393681d1576f222f83682
|
7
|
+
data.tar.gz: d660e2ea0461f6168d1172fa6464e98cb079278b9446b0f1b2a319ff57c67eee1f5ffcb83ff7ddd2c1946dd4f27434ff18c55ad979243d5145ec814821802906
|
data/.travis.yml
CHANGED
data/lib/romaji/constants.rb
CHANGED
@@ -54,6 +54,7 @@ module Romaji
|
|
54
54
|
|
55
55
|
KANA2ROMAJI = {
|
56
56
|
'ア' => ['a'], 'イ' => ['i'], 'ウ' => ['u'], 'エ' => ['e'], 'オ' => ['o'],
|
57
|
+
'ァ' => ['xa'], 'ィ' => ['xi'], 'ゥ' => ['xu'], 'ェ' => ['xe'], 'ォ' => ['xo'],
|
57
58
|
'カ' => ['ka', 'ca'], 'キ' => ['ki'], 'ク' => ['ku'], 'ケ' => ['ke'], 'コ' => ['ko', 'co'],
|
58
59
|
'サ' => ['sa'], 'シ' => ['shi', 'si'], 'ス' => ['su'], 'セ' => ['se'], 'ソ' => ['so'],
|
59
60
|
'タ' => ['ta'], 'チ' => ['chi', 'ti', 'ci'], 'ツ' => ['tsu', 'tu'], 'テ' => ['te'], 'ト' => ['to'],
|
data/lib/romaji/version.rb
CHANGED
data/romaji.gemspec
CHANGED
@@ -17,10 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.version = Romaji::VERSION
|
18
18
|
|
19
19
|
gem.add_dependency('rake', '>= 0.8.0')
|
20
|
+
gem.add_dependency('nkf', '>= 0.2.0')
|
20
21
|
gem.add_development_dependency('rspec', '>= 2.8.0')
|
21
|
-
gem.add_development_dependency('pry', ['>= 0'])
|
22
|
-
gem.add_development_dependency('guard', '>= 1.0.1')
|
23
|
-
gem.add_development_dependency('guard-rspec', '>= 0.7.0')
|
24
|
-
gem.add_development_dependency('growl', '>= 1.0.3')
|
25
22
|
gem.add_development_dependency('coveralls')
|
26
23
|
end
|
data/spec/romaji_spec.rb
CHANGED
@@ -31,6 +31,7 @@ describe Romaji do
|
|
31
31
|
Romaji.kana2romaji('ウィリアム').should == 'wiriamu'
|
32
32
|
Romaji.kana2romaji('デューク').should == 'dhu-ku'
|
33
33
|
Romaji.kana2romaji('アツリョクナベ').should == 'atsuryokunabe'
|
34
|
+
Romaji.kana2romaji('ツァツィツゥツェツォ').should == 'tsuxatsuxitsuxutsuxetsuxo'
|
34
35
|
end
|
35
36
|
|
36
37
|
shared_examples_for 'String extension' do
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: romaji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shimpei Makimoto
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-22 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rake
|
@@ -25,75 +24,33 @@ dependencies:
|
|
25
24
|
- !ruby/object:Gem::Version
|
26
25
|
version: 0.8.0
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.8.0
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 2.8.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: pry
|
27
|
+
name: nkf
|
43
28
|
requirement: !ruby/object:Gem::Requirement
|
44
29
|
requirements:
|
45
30
|
- - ">="
|
46
31
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
type: :
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: guard
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0.1
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.1
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: guard-rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.7.0
|
76
|
-
type: :development
|
32
|
+
version: 0.2.0
|
33
|
+
type: :runtime
|
77
34
|
prerelease: false
|
78
35
|
version_requirements: !ruby/object:Gem::Requirement
|
79
36
|
requirements:
|
80
37
|
- - ">="
|
81
38
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
39
|
+
version: 0.2.0
|
83
40
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
41
|
+
name: rspec
|
85
42
|
requirement: !ruby/object:Gem::Requirement
|
86
43
|
requirements:
|
87
44
|
- - ">="
|
88
45
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
46
|
+
version: 2.8.0
|
90
47
|
type: :development
|
91
48
|
prerelease: false
|
92
49
|
version_requirements: !ruby/object:Gem::Requirement
|
93
50
|
requirements:
|
94
51
|
- - ">="
|
95
52
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
53
|
+
version: 2.8.0
|
97
54
|
- !ruby/object:Gem::Dependency
|
98
55
|
name: coveralls
|
99
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,7 +89,6 @@ files:
|
|
132
89
|
homepage: https://github.com/makimoto/romaji
|
133
90
|
licenses: []
|
134
91
|
metadata: {}
|
135
|
-
post_install_message:
|
136
92
|
rdoc_options: []
|
137
93
|
require_paths:
|
138
94
|
- lib
|
@@ -147,9 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
103
|
- !ruby/object:Gem::Version
|
148
104
|
version: '0'
|
149
105
|
requirements: []
|
150
|
-
|
151
|
-
rubygems_version: 2.5.1
|
152
|
-
signing_key:
|
106
|
+
rubygems_version: 3.6.2
|
153
107
|
specification_version: 4
|
154
108
|
summary: Yet another Romaji-Kana transliterator
|
155
109
|
test_files:
|