iconv 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/iconv/iconv.c +1 -1
- data/lib/iconv/version.rb +1 -1
- data/test/test_basic.rb +6 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6615521e0f655556e5e94d31d404da4cf8e2f15acc51328a294a24653c20edda
|
4
|
+
data.tar.gz: bf25cd0289f192deeafbfbc9227deef04a9cd8cd0579541cebb0aa4d968d359f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fce654f313b8b057cf9eb713d6547d862190e82fdfaddceb8d381e2a265cdf8524b78863bdc72b017fd08279b409a35872f34ffd5564c02ab75dfa1a7a5786dc
|
7
|
+
data.tar.gz: a360b2776c747d2af18825c4e2bc3ba698f9347123b14f76cc6d07735fae8a6de8355d4eebbbafaaee64545c9f15d88f68ec5e245dad756c4f2573476ce14ee3
|
data/ext/iconv/iconv.c
CHANGED
@@ -746,7 +746,7 @@ iconv_initialize(int argc, VALUE *argv, VALUE self)
|
|
746
746
|
DATA_PTR(self) = NULL;
|
747
747
|
DATA_PTR(self) = (void *)ICONV2VALUE(iconv_create(to, from, &opt, &idx));
|
748
748
|
#ifdef HAVE_RUBY_ENCODING_H
|
749
|
-
|
749
|
+
ICONV_ENCODING_SET(self, idx);
|
750
750
|
#endif
|
751
751
|
return self;
|
752
752
|
}
|
data/lib/iconv/version.rb
CHANGED
data/test/test_basic.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# coding: US-ASCII
|
2
|
+
# This file needs to be compatible with Ruby 1.8
|
1
3
|
require File.expand_path("../utils.rb", __FILE__)
|
2
4
|
|
3
5
|
class TestIconv::Basic < TestIconv
|
@@ -59,9 +61,11 @@ class TestIconv::Basic < TestIconv
|
|
59
61
|
|
60
62
|
def test_github_issue_16
|
61
63
|
i = Iconv.new('SHIFT_JISX0213', 'UTF-8')
|
62
|
-
ret = i.iconv(
|
64
|
+
ret = i.iconv("\xE3\x81\xBB\xE3\x81\x92")
|
63
65
|
ret << i.iconv(nil)
|
64
66
|
i.close
|
65
|
-
assert_equal "\x82\xD9\x82\xB0"
|
67
|
+
assert_equal "\x82\xD9\x82\xB0", ret
|
68
|
+
rescue Iconv::InvalidEncoding
|
69
|
+
# ignore if the iconv doesn't support SHIFT_JISX0213
|
66
70
|
end
|
67
71
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iconv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NARUSE, Yui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: iconv wrapper library
|
14
14
|
email:
|
@@ -54,7 +54,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
|
-
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 2.7.6
|
58
59
|
signing_key:
|
59
60
|
specification_version: 4
|
60
61
|
summary: iconv wrapper library
|