iconv 1.0.8 → 1.1.1
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/push_gem.yml +46 -0
- data/.github/workflows/test.yml +36 -0
- data/BSDL +3 -3
- data/COPYING +56 -0
- data/Gemfile +2 -10
- data/ext/iconv/iconv.c +7 -6
- data/lib/iconv/version.rb +1 -1
- data/test/utils.rb +0 -1
- metadata +7 -9
- data/.travis.yml +0 -19
- data/LICENSE.txt +0 -56
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d71e03b109d86fd1d8f7c88d673d6dc2fac3de6b4c808701e5670a72b6583224
|
|
4
|
+
data.tar.gz: ac68f8ca7e9bfc0958890434e7218ac95d472030c66752be6d7bc95abf8452d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '077386fdc37899fe72aac320876638b828f1a54c3f04ef83fa43c281fc6b44dcee362dbd82df030960ced1585e3ffc08306873333d0dbb520b2f724368a15e64'
|
|
7
|
+
data.tar.gz: e9aef218e8aca3da082ad90138623ea7d4cbf43749b36ec60223c5226155de7c59492c1b94cb3199814ca649a6a84c1422cbd375534b714645b16a6a8025fc55
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
push:
|
|
13
|
+
if: github.repository == 'ruby/iconv'
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
environment:
|
|
17
|
+
name: rubygems.org
|
|
18
|
+
url: https://rubygems.org/gems/iconv
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
contents: write
|
|
22
|
+
id-token: write
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Harden Runner
|
|
26
|
+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
|
|
27
|
+
with:
|
|
28
|
+
egress-policy: audit
|
|
29
|
+
|
|
30
|
+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
31
|
+
|
|
32
|
+
- name: Set up Ruby
|
|
33
|
+
uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0
|
|
34
|
+
with:
|
|
35
|
+
bundler-cache: true
|
|
36
|
+
ruby-version: ruby
|
|
37
|
+
|
|
38
|
+
- name: Publish to RubyGems
|
|
39
|
+
uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b # v1.1.2
|
|
40
|
+
|
|
41
|
+
- name: Create GitHub release
|
|
42
|
+
run: |
|
|
43
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
|
44
|
+
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
45
|
+
env:
|
|
46
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -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@v6
|
|
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/BSDL
CHANGED
|
@@ -4,10 +4,10 @@ Redistribution and use in source and binary forms, with or without
|
|
|
4
4
|
modification, are permitted provided that the following conditions
|
|
5
5
|
are met:
|
|
6
6
|
1. Redistributions of source code must retain the above copyright
|
|
7
|
-
notice, this list of conditions and the following disclaimer.
|
|
7
|
+
notice, this list of conditions and the following disclaimer.
|
|
8
8
|
2. Redistributions in binary form must reproduce the above copyright
|
|
9
|
-
notice, this list of conditions and the following disclaimer in the
|
|
10
|
-
documentation and/or other materials provided with the distribution.
|
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
|
10
|
+
documentation and/or other materials provided with the distribution.
|
|
11
11
|
|
|
12
12
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
13
13
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
data/COPYING
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
|
|
2
|
+
You can redistribute it and/or modify it under either the terms of the
|
|
3
|
+
2-clause BSDL (see the file BSDL), or the conditions below:
|
|
4
|
+
|
|
5
|
+
1. You may make and give away verbatim copies of the source form of the
|
|
6
|
+
software without restriction, provided that you duplicate all of the
|
|
7
|
+
original copyright notices and associated disclaimers.
|
|
8
|
+
|
|
9
|
+
2. You may modify your copy of the software in any way, provided that
|
|
10
|
+
you do at least ONE of the following:
|
|
11
|
+
|
|
12
|
+
a. place your modifications in the Public Domain or otherwise
|
|
13
|
+
make them Freely Available, such as by posting said
|
|
14
|
+
modifications to Usenet or an equivalent medium, or by allowing
|
|
15
|
+
the author to include your modifications in the software.
|
|
16
|
+
|
|
17
|
+
b. use the modified software only within your corporation or
|
|
18
|
+
organization.
|
|
19
|
+
|
|
20
|
+
c. give non-standard binaries non-standard names, with
|
|
21
|
+
instructions on where to get the original software distribution.
|
|
22
|
+
|
|
23
|
+
d. make other distribution arrangements with the author.
|
|
24
|
+
|
|
25
|
+
3. You may distribute the software in object code or binary form,
|
|
26
|
+
provided that you do at least ONE of the following:
|
|
27
|
+
|
|
28
|
+
a. distribute the binaries and library files of the software,
|
|
29
|
+
together with instructions (in the manual page or equivalent)
|
|
30
|
+
on where to get the original distribution.
|
|
31
|
+
|
|
32
|
+
b. accompany the distribution with the machine-readable source of
|
|
33
|
+
the software.
|
|
34
|
+
|
|
35
|
+
c. give non-standard binaries non-standard names, with
|
|
36
|
+
instructions on where to get the original software distribution.
|
|
37
|
+
|
|
38
|
+
d. make other distribution arrangements with the author.
|
|
39
|
+
|
|
40
|
+
4. You may modify and include the part of the software into any other
|
|
41
|
+
software (possibly commercial). But some files in the distribution
|
|
42
|
+
are not written by the author, so that they are not under these terms.
|
|
43
|
+
|
|
44
|
+
For the list of those files and their copying conditions, see the
|
|
45
|
+
file LEGAL.
|
|
46
|
+
|
|
47
|
+
5. The scripts and library files supplied as input to or produced as
|
|
48
|
+
output from the software do not automatically fall under the
|
|
49
|
+
copyright of the software, but belong to whomever generated them,
|
|
50
|
+
and may be sold commercially, and may be aggregated with this
|
|
51
|
+
software.
|
|
52
|
+
|
|
53
|
+
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
|
54
|
+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
55
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
56
|
+
PURPOSE.
|
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
|
|
@@ -776,7 +776,7 @@ iconv_s_open(int argc, VALUE *argv, VALUE self)
|
|
|
776
776
|
#endif
|
|
777
777
|
|
|
778
778
|
if (rb_block_given_p()) {
|
|
779
|
-
return rb_ensure(rb_yield, self,
|
|
779
|
+
return rb_ensure(rb_yield, self, iconv_finish, self);
|
|
780
780
|
}
|
|
781
781
|
else {
|
|
782
782
|
return self;
|
|
@@ -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.
|
|
4
|
+
version: 1.1.1
|
|
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: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: iconv wrapper library
|
|
14
13
|
email:
|
|
@@ -18,11 +17,13 @@ extensions:
|
|
|
18
17
|
- ext/iconv/extconf.rb
|
|
19
18
|
extra_rdoc_files: []
|
|
20
19
|
files:
|
|
20
|
+
- ".github/dependabot.yml"
|
|
21
|
+
- ".github/workflows/push_gem.yml"
|
|
22
|
+
- ".github/workflows/test.yml"
|
|
21
23
|
- ".gitignore"
|
|
22
|
-
- ".travis.yml"
|
|
23
24
|
- BSDL
|
|
25
|
+
- COPYING
|
|
24
26
|
- Gemfile
|
|
25
|
-
- LICENSE.txt
|
|
26
27
|
- README.md
|
|
27
28
|
- Rakefile
|
|
28
29
|
- ext/iconv/charset_alias.rb
|
|
@@ -39,7 +40,6 @@ files:
|
|
|
39
40
|
homepage: https://github.com/ruby/iconv
|
|
40
41
|
licenses: []
|
|
41
42
|
metadata: {}
|
|
42
|
-
post_install_message:
|
|
43
43
|
rdoc_options: []
|
|
44
44
|
require_paths:
|
|
45
45
|
- lib
|
|
@@ -54,9 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
56
|
requirements: []
|
|
57
|
-
|
|
58
|
-
rubygems_version: 2.7.6
|
|
59
|
-
signing_key:
|
|
57
|
+
rubygems_version: 3.6.9
|
|
60
58
|
specification_version: 4
|
|
61
59
|
summary: iconv wrapper library
|
|
62
60
|
test_files:
|
data/.travis.yml
DELETED
data/LICENSE.txt
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
|
|
2
|
-
You can redistribute it and/or modify it under either the terms of the
|
|
3
|
-
2-clause BSDL (see the file BSDL), or the conditions below:
|
|
4
|
-
|
|
5
|
-
1. You may make and give away verbatim copies of the source form of the
|
|
6
|
-
software without restriction, provided that you duplicate all of the
|
|
7
|
-
original copyright notices and associated disclaimers.
|
|
8
|
-
|
|
9
|
-
2. You may modify your copy of the software in any way, provided that
|
|
10
|
-
you do at least ONE of the following:
|
|
11
|
-
|
|
12
|
-
a) place your modifications in the Public Domain or otherwise
|
|
13
|
-
make them Freely Available, such as by posting said
|
|
14
|
-
modifications to Usenet or an equivalent medium, or by allowing
|
|
15
|
-
the author to include your modifications in the software.
|
|
16
|
-
|
|
17
|
-
b) use the modified software only within your corporation or
|
|
18
|
-
organization.
|
|
19
|
-
|
|
20
|
-
c) give non-standard binaries non-standard names, with
|
|
21
|
-
instructions on where to get the original software distribution.
|
|
22
|
-
|
|
23
|
-
d) make other distribution arrangements with the author.
|
|
24
|
-
|
|
25
|
-
3. You may distribute the software in object code or binary form,
|
|
26
|
-
provided that you do at least ONE of the following:
|
|
27
|
-
|
|
28
|
-
a) distribute the binaries and library files of the software,
|
|
29
|
-
together with instructions (in the manual page or equivalent)
|
|
30
|
-
on where to get the original distribution.
|
|
31
|
-
|
|
32
|
-
b) accompany the distribution with the machine-readable source of
|
|
33
|
-
the software.
|
|
34
|
-
|
|
35
|
-
c) give non-standard binaries non-standard names, with
|
|
36
|
-
instructions on where to get the original software distribution.
|
|
37
|
-
|
|
38
|
-
d) make other distribution arrangements with the author.
|
|
39
|
-
|
|
40
|
-
4. You may modify and include the part of the software into any other
|
|
41
|
-
software (possibly commercial). But some files in the distribution
|
|
42
|
-
are not written by the author, so that they are not under these terms.
|
|
43
|
-
|
|
44
|
-
For the list of those files and their copying conditions, see the
|
|
45
|
-
file LEGAL.
|
|
46
|
-
|
|
47
|
-
5. The scripts and library files supplied as input to or produced as
|
|
48
|
-
output from the software do not automatically fall under the
|
|
49
|
-
copyright of the software, but belong to whomever generated them,
|
|
50
|
-
and may be sold commercially, and may be aggregated with this
|
|
51
|
-
software.
|
|
52
|
-
|
|
53
|
-
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
|
54
|
-
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
55
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
56
|
-
PURPOSE.
|