chinese_pinyin 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chinese_pinyin.rb +6 -2
- data/lib/chinese_pinyin/version.rb +1 -1
- data/test/chinese_pinyin_test.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dec1353e411c20fc6546a9157733afa6fbc86ad
|
4
|
+
data.tar.gz: 366cb811f7f80aabda938d9518b3a23326b4da0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a91657ede038e57584b9b2419fd1beb764683a2e859ba81fb50781eced9ab416261ebb36d9bfabf1fbd2efbea98bf4b65b9c867f0176ff3cbeec4817d4e5f145
|
7
|
+
data.tar.gz: 2c162a64a704f120c98ba11efd8c156629ac4fb54e211273603645feeb985223556066faa8f4b2bf9da82de8480c3a716909098f3289fbc2a9c751b847bbd453
|
data/lib/chinese_pinyin.rb
CHANGED
data/test/chinese_pinyin_test.rb
CHANGED
@@ -34,4 +34,8 @@ class PinyinTest < Test::Unit::TestCase
|
|
34
34
|
assert_equal("Shang-Hai", Pinyin.t('上海', camelcase: true, splitter: '-'))
|
35
35
|
assert_equal("Shang4-Hai3", Pinyin.t('上海', camelcase: true, tone:true, splitter: '-'))
|
36
36
|
end
|
37
|
+
|
38
|
+
def test_t_with_chinese_punctuation
|
39
|
+
assert_equal("ce-shi-yi-xia-Think-diff", Pinyin.t('测试一下,Think diff', splitter: '-'))
|
40
|
+
end
|
37
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chinese_pinyin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: translate chinese hanzi to pinyin.
|
15
15
|
email:
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: 1.3.6
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.1.11
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: translate chinese hanzi to pinyin.
|