iconv 1.0.8 → 1.1.0

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: 6615521e0f655556e5e94d31d404da4cf8e2f15acc51328a294a24653c20edda
4
- data.tar.gz: bf25cd0289f192deeafbfbc9227deef04a9cd8cd0579541cebb0aa4d968d359f
3
+ metadata.gz: bc443a2df6e5fe877693e1c75475e5065a35cfabc7b12823de8d595aaabcebed
4
+ data.tar.gz: 276a25ea5b0e7e4bcb50b1044185a0075fb9a4ed4e906887e134cd90c22f2ed1
5
5
  SHA512:
6
- metadata.gz: fce654f313b8b057cf9eb713d6547d862190e82fdfaddceb8d381e2a265cdf8524b78863bdc72b017fd08279b409a35872f34ffd5564c02ab75dfa1a7a5786dc
7
- data.tar.gz: a360b2776c747d2af18825c4e2bc3ba698f9347123b14f76cc6d07735fae8a6de8355d4eebbbafaaee64545c9f15d88f68ec5e245dad756c4f2573476ce14ee3
6
+ metadata.gz: 67f12f04a1119f7237275aeb546661cb285136e705f040ea06452c33c06056df0ec93331e548c62119949a9337c68fc0b67d3a6178df334cfe41becd3886f366
7
+ data.tar.gz: 6388148cfaa9efa59af420514598e3ae8143e3e1778c6d53ef2af79e43b337692d2ab6115d7d390996b1efbda33bd35c829e0c03a71d99a8e4f8d3af93d1314c
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'weekly'
@@ -0,0 +1,36 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ ruby-versions:
7
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8
+ with:
9
+ engine: cruby-truffleruby
10
+ min_version: 2.3
11
+ test:
12
+ needs: ruby-versions
13
+ name: build (${{ matrix.ruby }} / ${{ matrix.os }})
14
+ strategy:
15
+ matrix:
16
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
17
+ os: [ ubuntu-latest, macos-13, macos-latest ]
18
+ exclude:
19
+ - ruby: 2.3
20
+ os: macos-latest
21
+ - ruby: 2.4
22
+ os: macos-latest
23
+ - ruby: 2.5
24
+ os: macos-latest
25
+ runs-on: ${{ matrix.os }}
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ - name: Set up Ruby
29
+ uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby }}
32
+ - name: Install dependencies
33
+ run: |
34
+ bundle install
35
+ - name: Run compile and test
36
+ run: rake
data/Gemfile CHANGED
@@ -3,16 +3,8 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in iconv.gemspec
4
4
  gemspec
5
5
 
6
- if RUBY_VERSION < '1.9.3'
7
- gem 'rake', '~> 10.0'
8
- else
9
- gem 'rake'
10
- end
6
+ gem 'rake'
11
7
 
12
8
  group :development, :test do
13
- if RUBY_VERSION < '1.9'
14
- gem 'test-unit', '~> 2.5'
15
- else
16
- gem 'test-unit'
17
- end
9
+ gem 'test-unit'
18
10
  end
data/ext/iconv/iconv.c CHANGED
@@ -188,7 +188,7 @@ static VALUE iconv_convert _((iconv_t cd, VALUE str, long start, long length, in
188
188
  static VALUE iconv_s_allocate _((VALUE klass));
189
189
  static VALUE iconv_initialize _((int argc, VALUE *argv, VALUE self));
190
190
  static VALUE iconv_s_open _((int argc, VALUE *argv, VALUE self));
191
- static VALUE iconv_s_convert _((struct iconv_env_t* env));
191
+ static VALUE iconv_s_convert _((VALUE self));
192
192
  static VALUE iconv_s_iconv _((int argc, VALUE *argv, VALUE self));
193
193
  static VALUE iconv_init_state _((VALUE cd));
194
194
  static VALUE iconv_finish _((VALUE self));
@@ -204,7 +204,7 @@ static VALUE charset_map;
204
204
  * Returns the map from canonical name to system dependent name.
205
205
  */
206
206
  static VALUE
207
- charset_map_get(void)
207
+ charset_map_get(VALUE klass)
208
208
  {
209
209
  return charset_map;
210
210
  }
@@ -642,7 +642,7 @@ iconv_s_allocate(VALUE klass)
642
642
  }
643
643
 
644
644
  static VALUE
645
- get_iconv_opt_i(VALUE i, VALUE arg)
645
+ get_iconv_opt_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, arg))
646
646
  {
647
647
  VALUE name;
648
648
  #if defined ICONV_SET_TRANSLITERATE || defined ICONV_SET_DISCARD_ILSEQ
@@ -784,8 +784,9 @@ iconv_s_open(int argc, VALUE *argv, VALUE self)
784
784
  }
785
785
 
786
786
  static VALUE
787
- iconv_s_convert(struct iconv_env_t* env)
787
+ iconv_s_convert(VALUE self)
788
788
  {
789
+ struct iconv_env_t* env = (struct iconv_env_t*)self;
789
790
  VALUE last = 0;
790
791
 
791
792
  for (; env->argc > 0; --env->argc, ++env->argv) {
@@ -906,7 +907,7 @@ list_iconv(unsigned int namescount, const char *const *names, void *data)
906
907
 
907
908
  #if defined(HAVE_ICONVLIST) || defined(HAVE___ICONV_FREE_LIST)
908
909
  static VALUE
909
- iconv_s_list(void)
910
+ iconv_s_list(VALUE klass)
910
911
  {
911
912
  #ifdef HAVE_ICONVLIST
912
913
  int state;
data/lib/iconv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Iconv
2
- VERSION = "1.0.8"
2
+ VERSION = "1.1.0"
3
3
  end
data/test/utils.rb CHANGED
@@ -1,4 +1,3 @@
1
- gem 'iconv'
2
1
  require 'iconv'
3
2
  require 'test/unit'
4
3
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iconv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NARUSE, Yui
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2019-01-30 00:00:00.000000000 Z
10
+ date: 2024-09-12 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: iconv wrapper library
14
13
  email:
@@ -18,8 +17,9 @@ extensions:
18
17
  - ext/iconv/extconf.rb
19
18
  extra_rdoc_files: []
20
19
  files:
20
+ - ".github/dependabot.yml"
21
+ - ".github/workflows/test.yml"
21
22
  - ".gitignore"
22
- - ".travis.yml"
23
23
  - BSDL
24
24
  - Gemfile
25
25
  - LICENSE.txt
@@ -39,7 +39,6 @@ files:
39
39
  homepage: https://github.com/ruby/iconv
40
40
  licenses: []
41
41
  metadata: {}
42
- post_install_message:
43
42
  rdoc_options: []
44
43
  require_paths:
45
44
  - lib
@@ -54,9 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
53
  - !ruby/object:Gem::Version
55
54
  version: '0'
56
55
  requirements: []
57
- rubyforge_project:
58
- rubygems_version: 2.7.6
59
- signing_key:
56
+ rubygems_version: 3.6.0.dev
60
57
  specification_version: 4
61
58
  summary: iconv wrapper library
62
59
  test_files:
data/.travis.yml DELETED
@@ -1,19 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - ruby-head
4
- - 2.6.0
5
- - 2.5.0
6
- - 2.4.3
7
- - 2.3.6
8
- - 2.2
9
- - 2.1
10
- - 2.0.0
11
- - 1.9.3
12
- - 1.9.2
13
- - 1.8.7
14
-
15
- before_install: gem install bundler -v '<2'
16
-
17
- branches:
18
- only:
19
- - master