zinzout 0.1.0 → 0.1.3
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/workflows/tests.yml +27 -0
- data/Gemfile.lock +16 -14
- data/LICENSE.txt +23 -19
- data/lib/zinzout/version.rb +1 -1
- data/lib/zinzout.rb +1 -1
- data/zinzout.gemspec +4 -4
- metadata +25 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b05a5e6cd0f7fa11cacc3ba8f3402208f6a82df3646d60a7ea208aa7c66fa53
|
|
4
|
+
data.tar.gz: 5c7e21ad5e4986c3d04946b5432d00b71a798a7167bdda9563871f100272772a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70b2ad7c6a030ee163cd6e8a1618fb0406d7c417898a382f06f956fd5f01588a1a1f8db37f5d08e39e7e1a95ab93e8a6bdf63df857dbc5dd8128d99af69efb10
|
|
7
|
+
data.tar.gz: 0c69ca49a9911f1c3598f4e46284de42b0f496e91d21eb9a98805c9cc0a5d8a32dba0d67fbbd0785d5385cb7ac7c1ecf092eaccf49094dd46a1744dfd976771b
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Run Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
# See https://github.com/jruby/jruby/issues/5509
|
|
11
|
+
JAVA_OPTS: "--add-opens java.xml/com.sun.org.apache.xerces.internal.impl=org.jruby.dist"
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
tests:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
strategy:
|
|
17
|
+
matrix:
|
|
18
|
+
ruby: [3.2, 3.3, 3.4, 4.0, jruby]
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v6
|
|
21
|
+
- name: Set up Ruby
|
|
22
|
+
uses: ruby/setup-ruby@v1
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
|
25
|
+
bundler-cache: true
|
|
26
|
+
- name: Run tests
|
|
27
|
+
run: bundle exec rake
|
data/Gemfile.lock
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
zinzout (0.1.
|
|
4
|
+
zinzout (0.1.3)
|
|
5
|
+
ostruct
|
|
5
6
|
|
|
6
7
|
GEM
|
|
7
8
|
remote: https://rubygems.org/
|
|
8
9
|
specs:
|
|
9
|
-
diff-lcs (1.
|
|
10
|
+
diff-lcs (1.6.2)
|
|
11
|
+
ostruct (0.6.3)
|
|
10
12
|
rake (12.3.3)
|
|
11
|
-
rspec (3.
|
|
12
|
-
rspec-core (~> 3.
|
|
13
|
-
rspec-expectations (~> 3.
|
|
14
|
-
rspec-mocks (~> 3.
|
|
15
|
-
rspec-core (3.
|
|
16
|
-
rspec-support (~> 3.
|
|
17
|
-
rspec-expectations (3.
|
|
13
|
+
rspec (3.13.2)
|
|
14
|
+
rspec-core (~> 3.13.0)
|
|
15
|
+
rspec-expectations (~> 3.13.0)
|
|
16
|
+
rspec-mocks (~> 3.13.0)
|
|
17
|
+
rspec-core (3.13.6)
|
|
18
|
+
rspec-support (~> 3.13.0)
|
|
19
|
+
rspec-expectations (3.13.5)
|
|
18
20
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
|
-
rspec-support (~> 3.
|
|
20
|
-
rspec-mocks (3.
|
|
21
|
+
rspec-support (~> 3.13.0)
|
|
22
|
+
rspec-mocks (3.13.8)
|
|
21
23
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
-
rspec-support (~> 3.
|
|
23
|
-
rspec-support (3.
|
|
24
|
+
rspec-support (~> 3.13.0)
|
|
25
|
+
rspec-support (3.13.7)
|
|
24
26
|
|
|
25
27
|
PLATFORMS
|
|
26
28
|
ruby
|
|
@@ -31,4 +33,4 @@ DEPENDENCIES
|
|
|
31
33
|
zinzout!
|
|
32
34
|
|
|
33
35
|
BUNDLED WITH
|
|
34
|
-
2.
|
|
36
|
+
2.6.7
|
data/LICENSE.txt
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
The
|
|
1
|
+
Copyright (c) 2018, The Regents of the University of Michigan.
|
|
2
|
+
All rights reserved.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
* Redistributions of source code must retain the above copyright
|
|
7
|
+
notice, this list of conditions and the following disclaimer.
|
|
8
|
+
* 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.
|
|
11
|
+
* Neither the name of the University of Michigan nor the
|
|
12
|
+
names of its contributors may be used to endorse or promote products
|
|
13
|
+
derived from this software without specific prior written permission.
|
|
4
14
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE REGENTS OF THE UNIVERSITY OF MICHIGAN AND
|
|
16
|
+
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
|
|
17
|
+
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
18
|
+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OF THE
|
|
19
|
+
UNIVERSITY OF MICHIGAN BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
20
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
21
|
+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
22
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
23
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
24
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
25
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/lib/zinzout/version.rb
CHANGED
data/lib/zinzout.rb
CHANGED
|
@@ -68,7 +68,7 @@ module Zinzout
|
|
|
68
68
|
class ZoutFile < ZinFile
|
|
69
69
|
def io_from_file(filename, encoding)
|
|
70
70
|
if /\.gz\Z/.match(filename)
|
|
71
|
-
Zlib::GzipWriter.open(filename, encoding: encoding)
|
|
71
|
+
Zlib::GzipWriter.open(filename, nil, nil, encoding: encoding)
|
|
72
72
|
else
|
|
73
73
|
File.open(filename, 'w', encoding: encoding)
|
|
74
74
|
end
|
data/zinzout.gemspec
CHANGED
|
@@ -3,14 +3,14 @@ require_relative 'lib/zinzout/version'
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "zinzout"
|
|
5
5
|
spec.version = Zinzout::VERSION
|
|
6
|
-
spec.authors = ["Bill Dueber"]
|
|
7
|
-
spec.email = ["bill@dueber.com"]
|
|
6
|
+
spec.authors = ["Bill Dueber", "Aaron Elkiss"]
|
|
7
|
+
spec.email = ["bill@dueber.com", "aelkiss@hathitrust.org"]
|
|
8
8
|
|
|
9
9
|
spec.summary = %q{Transparently open gzipped files for input/output}
|
|
10
|
-
spec.homepage = "https://github.com/
|
|
10
|
+
spec.homepage = "https://github.com/hathitrust/zinzout"
|
|
11
11
|
spec.license = "MIT"
|
|
12
12
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
|
13
|
-
|
|
13
|
+
spec.add_dependency "ostruct"
|
|
14
14
|
|
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
16
16
|
spec.metadata["source_code_uri"] = spec.homepage
|
metadata
CHANGED
|
@@ -1,22 +1,37 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zinzout
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bill Dueber
|
|
8
|
-
|
|
8
|
+
- Aaron Elkiss
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
-
dependencies:
|
|
13
|
-
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: ostruct
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
14
27
|
email:
|
|
15
28
|
- bill@dueber.com
|
|
29
|
+
- aelkiss@hathitrust.org
|
|
16
30
|
executables: []
|
|
17
31
|
extensions: []
|
|
18
32
|
extra_rdoc_files: []
|
|
19
33
|
files:
|
|
34
|
+
- ".github/workflows/tests.yml"
|
|
20
35
|
- ".gitignore"
|
|
21
36
|
- ".rspec"
|
|
22
37
|
- ".travis.yml"
|
|
@@ -30,14 +45,13 @@ files:
|
|
|
30
45
|
- lib/zinzout.rb
|
|
31
46
|
- lib/zinzout/version.rb
|
|
32
47
|
- zinzout.gemspec
|
|
33
|
-
homepage: https://github.com/
|
|
48
|
+
homepage: https://github.com/hathitrust/zinzout
|
|
34
49
|
licenses:
|
|
35
50
|
- MIT
|
|
36
51
|
metadata:
|
|
37
|
-
homepage_uri: https://github.com/
|
|
38
|
-
source_code_uri: https://github.com/
|
|
39
|
-
changelog_uri: https://github.com/
|
|
40
|
-
post_install_message:
|
|
52
|
+
homepage_uri: https://github.com/hathitrust/zinzout
|
|
53
|
+
source_code_uri: https://github.com/hathitrust/zinzout
|
|
54
|
+
changelog_uri: https://github.com/hathitrust/zinzout/CHANGELOG.md
|
|
41
55
|
rdoc_options: []
|
|
42
56
|
require_paths:
|
|
43
57
|
- lib
|
|
@@ -52,8 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
52
66
|
- !ruby/object:Gem::Version
|
|
53
67
|
version: '0'
|
|
54
68
|
requirements: []
|
|
55
|
-
rubygems_version: 3.
|
|
56
|
-
signing_key:
|
|
69
|
+
rubygems_version: 3.6.9
|
|
57
70
|
specification_version: 4
|
|
58
71
|
summary: Transparently open gzipped files for input/output
|
|
59
72
|
test_files: []
|