iconv 1.0.8 → 1.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.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/test.yml +36 -0
- data/Gemfile +2 -10
- data/ext/iconv/iconv.c +6 -5
- data/lib/iconv/version.rb +1 -1
- data/test/utils.rb +0 -1
- metadata +5 -8
- data/.travis.yml +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc443a2df6e5fe877693e1c75475e5065a35cfabc7b12823de8d595aaabcebed
|
4
|
+
data.tar.gz: 276a25ea5b0e7e4bcb50b1044185a0075fb9a4ed4e906887e134cd90c22f2ed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67f12f04a1119f7237275aeb546661cb285136e705f040ea06452c33c06056df0ec93331e548c62119949a9337c68fc0b67d3a6178df334cfe41becd3886f366
|
7
|
+
data.tar.gz: 6388148cfaa9efa59af420514598e3ae8143e3e1778c6d53ef2af79e43b337692d2ab6115d7d390996b1efbda33bd35c829e0c03a71d99a8e4f8d3af93d1314c
|
@@ -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
|
-
|
7
|
-
gem 'rake', '~> 10.0'
|
8
|
-
else
|
9
|
-
gem 'rake'
|
10
|
-
end
|
6
|
+
gem 'rake'
|
11
7
|
|
12
8
|
group :development, :test do
|
13
|
-
|
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 _((
|
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(
|
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(
|
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(
|
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(
|
910
|
+
iconv_s_list(VALUE klass)
|
910
911
|
{
|
911
912
|
#ifdef HAVE_ICONVLIST
|
912
913
|
int state;
|
data/lib/iconv/version.rb
CHANGED
data/test/utils.rb
CHANGED
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
|
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:
|
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
|
-
|
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