chinese_pinyin 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.3.0
@@ -0,0 +1,47 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{chinese_pinyin}
8
+ s.version = "0.3.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Richard Huang"]
12
+ s.date = %q{2011-08-27}
13
+ s.description = %q{translate chinese hanzi to pinyin.}
14
+ s.email = %q{flyerhzm@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "README.md"
17
+ ]
18
+ s.files = [
19
+ "README.md",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "chinese_pinyin.gemspec",
23
+ "data/Mandarin.dat",
24
+ "lib/chinese_pinyin.rb",
25
+ "test/chinese_pinyin_test.rb",
26
+ "test/test_helper.rb"
27
+ ]
28
+ s.homepage = %q{http://github.com/flyerhzm/chinese_pinyin}
29
+ s.rdoc_options = ["--charset=UTF-8"]
30
+ s.require_paths = ["lib"]
31
+ s.rubygems_version = %q{1.6.2}
32
+ s.summary = %q{translate chinese hanzi to pinyin.}
33
+ s.test_files = [
34
+ "test/chinese_pinyin_test.rb",
35
+ "test/test_helper.rb"
36
+ ]
37
+
38
+ if s.respond_to? :specification_version then
39
+ s.specification_version = 3
40
+
41
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
+ else
43
+ end
44
+ else
45
+ end
46
+ end
47
+
@@ -1,4 +1,5 @@
1
- $KCODE = 'u'
1
+ # -*- encoding : utf-8 -*-
2
+ $KCODE = 'u' if RUBY_VERSION !~ /1\.9/
2
3
 
3
4
  class Pinyin
4
5
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'test_helper'
2
3
 
3
4
  class PinyinTest < Test::Unit::TestCase
data/test/test_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'rubygems'
2
3
  require 'test/unit'
3
4
  require File.join(File.dirname(__FILE__) + '/../lib/chinese_pinyin')
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chinese_pinyin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ prerelease:
5
+ version: 0.3.0
5
6
  platform: ruby
6
7
  authors:
7
8
  - Richard Huang
@@ -9,7 +10,7 @@ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2010-03-10 00:00:00 +08:00
13
+ date: 2011-08-27 00:00:00 +08:00
13
14
  default_executable:
14
15
  dependencies: []
15
16
 
@@ -24,10 +25,12 @@ extra_rdoc_files:
24
25
  files:
25
26
  - README.md
26
27
  - Rakefile
28
+ - VERSION
29
+ - chinese_pinyin.gemspec
27
30
  - data/Mandarin.dat
28
31
  - lib/chinese_pinyin.rb
29
- - test/test_helper.rb
30
32
  - test/chinese_pinyin_test.rb
33
+ - test/test_helper.rb
31
34
  has_rdoc: true
32
35
  homepage: http://github.com/flyerhzm/chinese_pinyin
33
36
  licenses: []
@@ -38,24 +41,24 @@ rdoc_options:
38
41
  require_paths:
39
42
  - lib
40
43
  required_ruby_version: !ruby/object:Gem::Requirement
44
+ none: false
41
45
  requirements:
42
46
  - - ">="
43
47
  - !ruby/object:Gem::Version
44
48
  version: "0"
45
- version:
46
49
  required_rubygems_version: !ruby/object:Gem::Requirement
50
+ none: false
47
51
  requirements:
48
52
  - - ">="
49
53
  - !ruby/object:Gem::Version
50
54
  version: "0"
51
- version:
52
55
  requirements: []
53
56
 
54
57
  rubyforge_project:
55
- rubygems_version: 1.3.5
58
+ rubygems_version: 1.6.2
56
59
  signing_key:
57
60
  specification_version: 3
58
61
  summary: translate chinese hanzi to pinyin.
59
62
  test_files:
60
- - test/test_helper.rb
61
63
  - test/chinese_pinyin_test.rb
64
+ - test/test_helper.rb