string_z2h 0.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.
@@ -0,0 +1,2 @@
1
+ require 'test/unit'
2
+ require File.dirname(__FILE__) + '/../lib/string_z2h'
@@ -0,0 +1,23 @@
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ class TestStringZ2h < Test::Unit::TestCase
4
+
5
+ def setup
6
+ $KCODE = 'u'
7
+ end
8
+
9
+ def test_to_zen
10
+ assert_equal("ABCアイウ", "ABCアイウ".to_han())
11
+ assert_equal("ABCアイウ", "ABCアイウ".to_han(:all))
12
+ assert_equal("ABCアイウ", "ABCアイウ".to_han(:kana))
13
+ assert_equal("ABCアイウ", "ABCアイウ".to_han(:ascii))
14
+ end
15
+
16
+ def test_to_han
17
+ assert_equal("ABCアイウ", "ABCアイウ".to_zen())
18
+ assert_equal("ABCアイウ", "ABCアイウ".to_zen(:all))
19
+ assert_equal("ABCアイウ", "ABCアイウ".to_zen(:kana))
20
+ assert_equal("ABCアイウ", "ABCアイウ".to_zen(:ascii))
21
+ end
22
+
23
+ end
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.2
3
+ specification_version: 1
4
+ name: string_z2h
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.0
7
+ date: 2008-05-26 00:00:00 +09:00
8
+ summary: This library expands StringZ2hring class to convert 2byte character and 1byte character for Japanese Encoding.
9
+ require_paths:
10
+ - lib
11
+ email:
12
+ - uedak@nospam
13
+ homepage: http://stringz2h.rubyforge.org
14
+ rubyforge_project: stringz2h
15
+ description: This library expands StringZ2hring class to convert 2byte character and 1byte character for Japanese Encoding.
16
+ autorequire:
17
+ default_executable:
18
+ bindir: bin
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ - - ">"
23
+ - !ruby/object:Gem::Version
24
+ version: 0.0.0
25
+ version:
26
+ platform: ruby
27
+ signing_key:
28
+ cert_chain:
29
+ post_install_message:
30
+ authors:
31
+ - Kazutaka Ueda
32
+ files:
33
+ - History.txt
34
+ - License.txt
35
+ - Manifest.txt
36
+ - README.txt
37
+ - lib/string_z2h.rb
38
+ - lib/string_z2h/ascii.EUC
39
+ - lib/string_z2h/ascii.SJIS
40
+ - lib/string_z2h/ascii.UTF8
41
+ - lib/string_z2h/kana.EUC
42
+ - lib/string_z2h/kana.SJIS
43
+ - lib/string_z2h/kana.UTF8
44
+ - lib/string_z2h/version.rb
45
+ - setup.rb
46
+ - test/test_helper.rb
47
+ - test/test_string_z2h.rb
48
+ test_files:
49
+ - test/test_helper.rb
50
+ - test/test_string_z2h.rb
51
+ rdoc_options:
52
+ - --main
53
+ - README.txt
54
+ extra_rdoc_files:
55
+ - History.txt
56
+ - License.txt
57
+ - Manifest.txt
58
+ - README.txt
59
+ executables: []
60
+
61
+ extensions: []
62
+
63
+ requirements: []
64
+
65
+ dependencies: []
66
+