romaji 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/romaji.rb CHANGED
@@ -21,7 +21,7 @@ module Romaji
21
21
  end
22
22
 
23
23
  # ッ
24
- if chars[pos] == chars[pos + 1] && !['a', 'i', 'u', 'e', 'o', 'n'].include?(chars[pos])
24
+ if chars[pos] == chars[pos + 1] && !['a', 'i', 'u', 'e', 'o', 'n'].include?(chars[pos]) && chars[pos] =~ /[a-z]/
25
25
  kana += 'ッ'
26
26
  pos += 1
27
27
  next
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Romaji
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
  end
data/spec/romaji_spec.rb CHANGED
@@ -12,6 +12,7 @@ describe Romaji do
12
12
  Romaji.romaji2kana('shimbashi').should == 'シンバシ'
13
13
  Romaji.romaji2kana('kinkakuji').should == 'キンカクジ'
14
14
  Romaji.romaji2kana('tottori').should == 'トットリ'
15
+ Romaji.romaji2kana('イイハナシダナー').should == 'イイハナシダナー'
15
16
  end
16
17
 
17
18
  it 'should transliterate with kana_type' do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romaji
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shimpei Makimoto
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-06 00:00:00 Z
18
+ date: 2012-08-16 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements: []
166
166
 
167
167
  rubyforge_project:
168
- rubygems_version: 1.8.17
168
+ rubygems_version: 1.8.24
169
169
  signing_key:
170
170
  specification_version: 3
171
171
  summary: Yet another Romaji-Kana transliterator