ruby-pinyin 0.4.6 → 0.4.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/ruby-pinyin/backend/simple.rb +1 -1
- data/lib/ruby-pinyin/version.rb +1 -1
- 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: 12fc4340f3444228e1f0f1fad916931359973f38
|
|
4
|
+
data.tar.gz: 8962e1bc03bc543e50d0ece639a7491449c8be66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6eef2ece62d9ce79021e284c36c56074395dfa13d59b0e938d7be93f4f96ef055e06558b2677056361a4833c489f0a77e3c4ce048785e0471b85de14ec67ed2b
|
|
7
|
+
data.tar.gz: 5b2911b5445e2ba30a692801fd5ae51d1bd3f9209db0dad9a0039a7c0ebcadc860427a34a17a81158a8a648097483d63dd955f0e3e59332d3b3c7a7ff2619b29
|
|
@@ -20,7 +20,7 @@ module PinYin
|
|
|
20
20
|
res << Value.new(format(readings, tone), false)
|
|
21
21
|
else
|
|
22
22
|
val = [t].pack('U*')
|
|
23
|
-
if val =~ /^[
|
|
23
|
+
if val =~ /^[0-9a-zA-Z\s]*$/ # 复原,去除特殊字符,如全角符号等。
|
|
24
24
|
if res.last && res.last.english?
|
|
25
25
|
res.last << Value.new(val, true)
|
|
26
26
|
elsif val != ' '
|
data/lib/ruby-pinyin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-pinyin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Xie
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-09-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rmmseg-cpp
|