string_to_pinyin 1.0.0 → 1.1.0
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.
- data/.gitignore +1 -1
- data/CHANGELOG +18 -2
- data/README +2 -2
- data/VERSION +1 -1
- data/lib/string_to_pinyin.rb +3 -0
- metadata +4 -7
- data/pkg/string_to_pinyin-0.1.0.gem +0 -0
- data/pkg/string_to_pinyin-0.1.1.gem +0 -0
- data/pkg/string_to_pinyin-0.2.0.gem +0 -0
data/.gitignore
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
*.gemspec
|
2
|
-
|
2
|
+
pkg/
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
-
|
1
|
+
v1.1.0 - 2010-07-02
|
2
2
|
|
3
|
-
|
3
|
+
* Force Ruby < 1.9 to use utf-8 encoding
|
4
|
+
|
5
|
+
v1.0.0 - 2010-06-30
|
6
|
+
|
7
|
+
* License Under MIT, Release gem
|
8
|
+
|
9
|
+
v0.2.0 - 2010-06-21
|
10
|
+
|
11
|
+
* Switch to a more efficient grep based search method
|
12
|
+
|
13
|
+
v0.1.1 - 2010-06-21
|
14
|
+
|
15
|
+
* Handle characters which are not Simplified Chinese properly
|
16
|
+
|
17
|
+
v0.1.0 - 2010-06-21
|
18
|
+
|
19
|
+
* Release an initial version that does the job.
|
data/README
CHANGED
@@ -4,6 +4,7 @@ It adds a 'to_pinyin' method to the String class.
|
|
4
4
|
|
5
5
|
Example Usage:
|
6
6
|
|
7
|
+
require 'rubygems'
|
7
8
|
require 'string_to_pinyin'
|
8
9
|
|
9
10
|
a = '名'
|
@@ -13,8 +14,7 @@ puts a.to_pinyin
|
|
13
14
|
*Note: It requires the unix program 'grep' to be installed
|
14
15
|
|
15
16
|
Installation:
|
16
|
-
<sudo> gem
|
17
|
-
<sudo> gem install toritaba-ruby_string_to_pinyin
|
17
|
+
<sudo> gem install ruby_string_to_pinyin
|
18
18
|
|
19
19
|
|
20
20
|
License:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/lib/string_to_pinyin.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: string_to_pinyin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Toritaba
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-07-02 00:00:00 +05:30
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -53,9 +53,6 @@ files:
|
|
53
53
|
- VERSION
|
54
54
|
- data/idx99-tone.txt
|
55
55
|
- lib/string_to_pinyin.rb
|
56
|
-
- pkg/string_to_pinyin-0.1.0.gem
|
57
|
-
- pkg/string_to_pinyin-0.1.1.gem
|
58
|
-
- pkg/string_to_pinyin-0.2.0.gem
|
59
56
|
- spec/spec.opts
|
60
57
|
- spec/spec_helper.rb
|
61
58
|
- spec/string_to_pinyin_spec.rb
|
Binary file
|
Binary file
|
Binary file
|