ropencc 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,7 +9,7 @@ ropencc is a project for conversion between Traditional and Simplified Chinese,
9
9
 
10
10
  还有若干语言习惯的问题,例如同一个地名的称呼就不一样,就不一一列举了
11
11
 
12
- 而 Open Chinese Convert(OpenCC)「开发中文转换」,是一个致力于中
12
+ 而 Open Chinese Convert(OpenCC)「开放中文转换」,是一个致力于中
13
13
  文简繁转换的项目,由清华大学的 [BYVoid](http://www.byvoid.com/blog/about/) 提供高质量词库和函数库(libopencc)。<a href='http://code.google.com/p/opencc/'>更多介紹</a>。
14
14
 
15
15
  Install
@@ -1,3 +1,3 @@
1
1
  module Ropencc
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/ropencc.rb CHANGED
@@ -32,6 +32,7 @@ module Ropencc
32
32
  out_str = ptr.read_string
33
33
  LibC.free ptr
34
34
  LibOpenCC.opencc_close od
35
+ out_str.force_encoding("UTF-8") if out_str.respond_to?(:force_encoding)
35
36
  out_str
36
37
  end
37
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ropencc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-27 00:00:00.000000000 Z
12
+ date: 2011-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- requirement: &2156708560 !ruby/object:Gem::Requirement
16
+ requirement: &2156308180 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156708560
24
+ version_requirements: *2156308180
25
25
  description: ! ' a project for conversion between Traditional and Simplified Chinese,
26
26
  wrapper in ruby. '
27
27
  email: