chinese_pinyin 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/Gemfile +5 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +25 -15
- data/chinese_pinyin.gemspec +16 -38
- data/lib/chinese_pinyin/version.rb +4 -0
- data/lib/chinese_pinyin.rb +4 -3
- data/test/chinese_pinyin_test.rb +1 -1
- metadata +31 -37
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5befef40dd0b38603ff0ac39ff517b9a953420a9
|
4
|
+
data.tar.gz: 38697ba8b4544a80090af513de50b9d987c0be22
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0ba7873f62fee5316bcc8ef12f790dffa8b103f93610dbff79a76c8302ae94294394b56186850dc3eea6658909d3c2dbfe8c821953ed8c5321aae531f94f7b2a
|
7
|
+
data.tar.gz: 854f9df857c1951e732f1ea43a5514a672885482287ce582bf5c02c186509774147ba7de4c825ad0dfaa9b2aaddbd38bc5c64cb82b7e7876b73a61705d7469c7
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 - 2013 Richard Huang (flyerhzm@gmail.com)
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -1,8 +1,29 @@
|
|
1
|
-
|
1
|
+
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
2
|
+
require "bundler"
|
3
|
+
Bundler.setup
|
4
|
+
|
5
|
+
require "rake"
|
2
6
|
require 'rake/testtask'
|
3
|
-
require
|
4
|
-
|
5
|
-
require
|
7
|
+
require "rdoc/task"
|
8
|
+
|
9
|
+
require "chinese_pinyin/version"
|
10
|
+
|
11
|
+
task :build do
|
12
|
+
system "gem build chinese_pinyin.gemspec"
|
13
|
+
end
|
14
|
+
|
15
|
+
task :install => :build do
|
16
|
+
system "sudo gem install chinese_pinyin-#{ChinesePinyin::VERSION}.gem"
|
17
|
+
end
|
18
|
+
|
19
|
+
task :release => :build do
|
20
|
+
puts "Tagging #{ChinesePinyin::VERSION}..."
|
21
|
+
system "git tag -a #{ChinesePinyin::VERSION} -m 'Tagging #{ChinesePinyin::VERSION}'"
|
22
|
+
puts "Pushing to Github..."
|
23
|
+
system "git push --tags"
|
24
|
+
puts "Pushing to rubygems.org..."
|
25
|
+
system "gem push chinese_pinyin-#{ChinesePinyin::VERSION}.gem"
|
26
|
+
end
|
6
27
|
|
7
28
|
desc 'Default: run unit tests.'
|
8
29
|
task :default => :test
|
@@ -23,14 +44,3 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
23
44
|
rdoc.rdoc_files.include('README')
|
24
45
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
25
46
|
end
|
26
|
-
|
27
|
-
Jeweler::Tasks.new do |gemspec|
|
28
|
-
gemspec.name = 'chinese_pinyin'
|
29
|
-
gemspec.summary = 'translate chinese hanzi to pinyin.'
|
30
|
-
gemspec.description = 'translate chinese hanzi to pinyin.'
|
31
|
-
gemspec.email = 'flyerhzm@gmail.com'
|
32
|
-
gemspec.homepage = 'http://github.com/flyerhzm/chinese_pinyin'
|
33
|
-
gemspec.authors = ['Richard Huang']
|
34
|
-
gemspec.files.exclude '.gitignore'
|
35
|
-
end
|
36
|
-
Jeweler::GemcutterTasks.new
|
data/chinese_pinyin.gemspec
CHANGED
@@ -1,43 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
lib = File.expand_path('../lib/', __FILE__)
|
2
|
+
$:.unshift lib unless $:.include?(lib)
|
5
3
|
|
6
|
-
|
7
|
-
s.name = %q{chinese_pinyin}
|
8
|
-
s.version = "0.4.1"
|
4
|
+
require "chinese_pinyin/version"
|
9
5
|
|
10
|
-
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
"
|
17
|
-
|
18
|
-
s.
|
19
|
-
"README.md",
|
20
|
-
"Rakefile",
|
21
|
-
"VERSION",
|
22
|
-
"chinese_pinyin.gemspec",
|
23
|
-
"data/Mandarin.dat",
|
24
|
-
"lib/chinese_pinyin.rb",
|
25
|
-
"test/Words.dat",
|
26
|
-
"test/chinese_pinyin_test.rb",
|
27
|
-
"test/test_helper.rb"
|
28
|
-
]
|
29
|
-
s.homepage = %q{http://github.com/flyerhzm/chinese_pinyin}
|
30
|
-
s.require_paths = ["lib"]
|
31
|
-
s.rubygems_version = %q{1.6.2}
|
32
|
-
s.summary = %q{translate chinese hanzi to pinyin.}
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "chinese_pinyin"
|
8
|
+
s.version = ChinesePinyin::VERSION
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.authors = ["Richard Huang"]
|
11
|
+
s.email = ["flyerhzm@gmail.com"]
|
12
|
+
s.homepage = "http://github.com/flyerhzm/chinese_pinyin"
|
13
|
+
s.summary = "translate chinese hanzi to pinyin."
|
14
|
+
s.description = "translate chinese hanzi to pinyin."
|
33
15
|
|
34
|
-
|
35
|
-
s.specification_version = 3
|
16
|
+
s.required_rubygems_version = ">= 1.3.6"
|
36
17
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
else
|
41
|
-
end
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.require_paths = ["lib"]
|
42
21
|
end
|
43
|
-
|
data/lib/chinese_pinyin.rb
CHANGED
data/test/chinese_pinyin_test.rb
CHANGED
metadata
CHANGED
@@ -1,64 +1,58 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: chinese_pinyin
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.4.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.2
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Richard Huang
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-10-08 00:00:00 +08:00
|
14
|
-
default_executable:
|
11
|
+
date: 2013-03-01 00:00:00.000000000 Z
|
15
12
|
dependencies: []
|
16
|
-
|
17
13
|
description: translate chinese hanzi to pinyin.
|
18
|
-
email:
|
14
|
+
email:
|
15
|
+
- flyerhzm@gmail.com
|
19
16
|
executables: []
|
20
|
-
|
21
17
|
extensions: []
|
22
|
-
|
23
|
-
|
24
|
-
-
|
25
|
-
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- .gitignore
|
21
|
+
- Gemfile
|
22
|
+
- MIT-LICENSE
|
26
23
|
- README.md
|
27
24
|
- Rakefile
|
28
|
-
- VERSION
|
29
25
|
- chinese_pinyin.gemspec
|
30
26
|
- data/Mandarin.dat
|
31
27
|
- lib/chinese_pinyin.rb
|
28
|
+
- lib/chinese_pinyin/version.rb
|
32
29
|
- test/Words.dat
|
33
30
|
- test/chinese_pinyin_test.rb
|
34
31
|
- test/test_helper.rb
|
35
|
-
has_rdoc: true
|
36
32
|
homepage: http://github.com/flyerhzm/chinese_pinyin
|
37
33
|
licenses: []
|
38
|
-
|
34
|
+
metadata: {}
|
39
35
|
post_install_message:
|
40
36
|
rdoc_options: []
|
41
|
-
|
42
|
-
require_paths:
|
37
|
+
require_paths:
|
43
38
|
- lib
|
44
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: "0"
|
39
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 1.3.6
|
56
49
|
requirements: []
|
57
|
-
|
58
50
|
rubyforge_project:
|
59
|
-
rubygems_version:
|
51
|
+
rubygems_version: 2.0.0
|
60
52
|
signing_key:
|
61
|
-
specification_version:
|
53
|
+
specification_version: 4
|
62
54
|
summary: translate chinese hanzi to pinyin.
|
63
|
-
test_files:
|
64
|
-
|
55
|
+
test_files:
|
56
|
+
- test/Words.dat
|
57
|
+
- test/chinese_pinyin_test.rb
|
58
|
+
- test/test_helper.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.4.1
|