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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f5a276d2517ce5592e1bbe94c3c8897bdaa70eb8d52fe334746ea8dd287013f
4
- data.tar.gz: ec2d9899c3ce1f58aefab4516f2d79da7b301ded1e27473bc825645f7710e919
3
+ metadata.gz: 6615521e0f655556e5e94d31d404da4cf8e2f15acc51328a294a24653c20edda
4
+ data.tar.gz: bf25cd0289f192deeafbfbc9227deef04a9cd8cd0579541cebb0aa4d968d359f
5
5
  SHA512:
6
- metadata.gz: b43b19ba95361b57c2a3ff7778f344cb9ad5aeef98b24089fc4a698c5ebd286590ac76fcf9e274c799050fc02220219b090c6dd3c0df07697904348bbde36a9b
7
- data.tar.gz: 609d4ab133902601820e5c4478387c7049fbedb2ce74b0def6c66c390e6fe886cf39697a4a2eb31544bfde98e1375b9a5aced9cd223711b64c0db84d5ace4623
6
+ metadata.gz: fce654f313b8b057cf9eb713d6547d862190e82fdfaddceb8d381e2a265cdf8524b78863bdc72b017fd08279b409a35872f34ffd5564c02ab75dfa1a7a5786dc
7
+ data.tar.gz: a360b2776c747d2af18825c4e2bc3ba698f9347123b14f76cc6d07735fae8a6de8355d4eebbbafaaee64545c9f15d88f68ec5e245dad756c4f2573476ce14ee3
@@ -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
- if (idx >= 0) ICONV_ENCODING_SET(self, idx);
749
+ ICONV_ENCODING_SET(self, idx);
750
750
  #endif
751
751
  return self;
752
752
  }
@@ -1,3 +1,3 @@
1
1
  class Iconv
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
@@ -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".b, ret
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.7
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-17 00:00:00.000000000 Z
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
- rubygems_version: 3.0.0.beta3
57
+ rubyforge_project:
58
+ rubygems_version: 2.7.6
58
59
  signing_key:
59
60
  specification_version: 4
60
61
  summary: iconv wrapper library