pr-zlib 1.0.4 → 1.0.5

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
- SHA1:
3
- metadata.gz: f91f981aeb850390b786d7fdfa5b5d7fed8effb2
4
- data.tar.gz: d1d379ff6e4021f75a41ec925c03022799fcc809
2
+ SHA256:
3
+ metadata.gz: e267929bdd826d6886a7c925291f1a8e2f344e9d2d6a4458c11f7fff0a68f896
4
+ data.tar.gz: 04d530d76deb665ba5b825545ac41b032ae0b2a792d24b72ab09e5bc3281c642
5
5
  SHA512:
6
- metadata.gz: 96a4ec05eb0576fd939422c5354de20577617d3bc988bb9d99585c48f9c22e4aeed8514673b3006d085ca7e85b04d955883cb35c3faf0276fc9a57fded48b4db
7
- data.tar.gz: 8b392dd00349ce6c7d9c8fee5c1e73d2a6f31dacf604f45aa0a1794243e9b91dcf7db4065b5cd4e5fa02e9e2c2219ef58c093b2e030fdd7cc9fb466152fc34fe
6
+ metadata.gz: 5bfa36efad4f579428aa55297044cf0a1174fbded31d7b0e4c2d79815306bb9406f9b48ed4afb7c71c2e12d8114650efca13a444c391dcc5f11a72bc56da3073
7
+ data.tar.gz: ae47b4147c1607ec1ab0962a5c49200874c3b62010186a1648b2c27f8b85f341a5ef83074774acdaa9b809c73d21938098850279cc037b3742fce98321675381
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,11 @@
1
+ = 1.0.5 - 18-Mar-2018
2
+ * Set the frozen_string_literal pragma, which gives us a small performance
3
+ boost for reads.
4
+ * Removed the custom Fixnum#ord method.
5
+ * This library now requires Ruby 2.2 or later
6
+ * Added metadata to the gemspec plus some other minor updates.
7
+ * Updated cert.
8
+
1
9
  = 1.0.4 - 15-Nov-2016
2
10
  * Fixed an endian bug. Thanks go to Benoit Daloze for the patch.
3
11
  * The version constants are now frozen (and fixed the version number).
@@ -1,21 +1,26 @@
1
1
  -----BEGIN CERTIFICATE-----
2
- MIIDcDCCAligA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tYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
18
+ /3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
19
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
20
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
21
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
22
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
23
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
24
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
25
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
21
26
  -----END CERTIFICATE-----
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # rbrzlib -- pure ruby version of 'zlib' general purpose compression library
2
4
  # version 1.2.3, July 18th, 2005
3
5
  #
@@ -30,12 +32,6 @@
30
32
  # Copyright (C) 2009 by Park Heesob phasis@gmail.com
31
33
  #
32
34
 
33
- class Fixnum
34
- def ord
35
- self
36
- end
37
- end
38
-
39
35
  module Rbzlib
40
36
  MAX_MEM_LEVEL = 9
41
37
  DEF_MEM_LEVEL = 8
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # zlib.rb -- An interface for rbzlib
2
4
  # Copyright (C) UENO Katsuhiro 2000-2003
3
5
  #
@@ -9,7 +11,7 @@ include Rbzlib
9
11
  module Zlib
10
12
 
11
13
  RUBY_ZLIB_VERSION = '0.6.0'.freeze
12
- PR_ZLIB_VERSION = '1.0.4'.freeze
14
+ PR_ZLIB_VERSION = '1.0.5'.freeze
13
15
 
14
16
  class Error < StandardError
15
17
  end
@@ -2,9 +2,9 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'pr-zlib'
5
- spec.version = '1.0.4'
5
+ spec.version = '1.0.5'
6
6
  spec.authors = ['Park Heesob', 'Daniel Berger']
7
- spec.email = 'phasis@gmail.com'
7
+ spec.email = ['phasis@gmail.com', 'djberg96@gmail.com'],
8
8
  spec.homepage = 'https://github.com/djberg96/pr-zlib'
9
9
  spec.license = 'zlib'
10
10
  spec.summary = 'Pure Ruby version of the zlib library'
@@ -15,6 +15,17 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.add_development_dependency('test-unit', '>= 2.4.0')
17
17
  spec.add_development_dependency('ruby-prof')
18
+
19
+ spec.required_ruby_version = '>= 2.2.0'
20
+
21
+ spec.metadata = {
22
+ 'homepage_uri' => 'https://github.com/djberg96/pr-zlib',
23
+ 'bug_tracker_uri' => 'https://github.com/djberg96/pr-zlib/issues',
24
+ 'changelog_uri' => 'https://github.com/djberg96/pr-zlib/CHANGES',
25
+ 'documentation_uri' => 'https://github.com/djberg96/pr-zlib/wiki',
26
+ 'source_code_uri' => 'https://github.com/djberg96/pr-zlib',
27
+ 'wiki_uri' => 'https://github.com/djberg96/pr-zlib/wiki'
28
+ }
18
29
 
19
30
  spec.description = <<-EOF
20
31
  The pr-zlib library is a pure Ruby implementation of both the zlib C
@@ -7,162 +7,156 @@ require 'test-unit'
7
7
  require 'pr/zlib'
8
8
 
9
9
  class TC_Zlib < Test::Unit::TestCase
10
- def self.startup
11
- end
12
-
13
- def setup
14
- @zstream_funcs = Zlib::ZStreamFuncs.new
15
- end
16
-
17
- def test_ruby_zlib_version
18
- assert_equal('0.6.0', Zlib::VERSION)
19
- assert_equal('0.6.0', Zlib::RUBY_ZLIB_VERSION)
20
- end
21
-
22
- def test_zlib_version
23
- assert_equal('1.2.3', Zlib::ZLIB_VERSION)
24
- assert_equal('1.0.4', Zlib::PR_ZLIB_VERSION)
25
- end
26
-
27
- def test_zlib_included_constants
28
- assert_not_nil(Zlib::BINARY)
29
- assert_not_nil(Zlib::ASCII)
30
- assert_not_nil(Zlib::UNKNOWN)
31
- end
32
-
33
- def test_zlib_included_compression_constants
34
- assert_not_nil(Zlib::NO_COMPRESSION)
35
- assert_not_nil(Zlib::BEST_SPEED)
36
- assert_not_nil(Zlib::BEST_COMPRESSION)
37
- assert_not_nil(Zlib::DEFAULT_COMPRESSION)
38
- end
39
-
40
- def test_zlib_included_encoding_constants
41
- assert_not_nil(Zlib::FILTERED)
42
- assert_not_nil(Zlib::HUFFMAN_ONLY)
43
- assert_not_nil(Zlib::DEFAULT_STRATEGY)
44
- assert_not_nil(Zlib::MAX_WBITS)
45
- assert_not_nil(Zlib::DEF_MEM_LEVEL)
46
- assert_not_nil(Zlib::MAX_MEM_LEVEL)
47
- assert_not_nil(Zlib::NO_FLUSH)
48
- assert_not_nil(Zlib::SYNC_FLUSH)
49
- assert_not_nil(Zlib::FULL_FLUSH)
50
- assert_not_nil(Zlib::FINISH)
51
- end
52
-
53
- def test_zlib_os_constants
54
- assert_equal(0x00, Zlib::OS_MSDOS)
55
- assert_equal(0x01, Zlib::OS_AMIGA)
56
- assert_equal(0x02, Zlib::OS_VMS)
57
- assert_equal(0x03, Zlib::OS_UNIX)
58
- assert_equal(0x05, Zlib::OS_ATARI)
59
- assert_equal(0x06, Zlib::OS_OS2)
60
- assert_equal(0x07, Zlib::OS_MACOS)
61
- assert_equal(0x0a, Zlib::OS_TOPS20)
62
- assert_equal(0x0b, Zlib::OS_WIN32)
63
- end
64
-
65
- def test_zlib_zstream_flag_constants
66
- assert_equal(0x1, Zlib::ZSTREAM_FLAG_READY)
67
- assert_equal(0x2, Zlib::ZSTREAM_FLAG_IN_STREAM)
68
- assert_equal(0x4, Zlib::ZSTREAM_FLAG_FINISHED)
69
- assert_equal(0x8, Zlib::ZSTREAM_FLAG_CLOSING)
70
- assert_equal(0x10, Zlib::ZSTREAM_FLAG_UNUSED)
71
- end
72
-
73
- def test_zlib_zstream_buffer_constants
74
- assert_equal(1024, Zlib::ZSTREAM_INITIAL_BUFSIZE)
75
- assert_equal(16384, Zlib::ZSTREAM_AVAIL_OUT_STEP_MAX)
76
- assert_equal(2048, Zlib::ZSTREAM_AVAIL_OUT_STEP_MIN)
77
- end
78
-
79
- def test_zlib_version_module_function
80
- assert_respond_to(Zlib, :zlib_version)
81
- end
82
-
83
- def test_adler32_module_function_basic
84
- assert_respond_to(Zlib, :adler32)
85
- assert_nothing_raised{ Zlib.adler32 }
86
- end
87
-
88
- def test_adler32_module_function
89
- assert_equal(1, Zlib.adler32)
90
- assert_equal(73204161, Zlib.adler32('test'))
91
- assert_equal(1, Zlib.adler32(nil, 3))
92
- assert_equal(73728451, Zlib.adler32('test', 3))
93
- end
10
+ def setup
11
+ @zstream_funcs = Zlib::ZStreamFuncs.new
12
+ end
13
+
14
+ def test_ruby_zlib_version
15
+ assert_equal('0.6.0', Zlib::VERSION)
16
+ assert_equal('0.6.0', Zlib::RUBY_ZLIB_VERSION)
17
+ end
18
+
19
+ def test_zlib_version
20
+ assert_equal('1.2.3', Zlib::ZLIB_VERSION)
21
+ assert_equal('1.0.5', Zlib::PR_ZLIB_VERSION)
22
+ end
23
+
24
+ def test_zlib_included_constants
25
+ assert_not_nil(Zlib::BINARY)
26
+ assert_not_nil(Zlib::ASCII)
27
+ assert_not_nil(Zlib::UNKNOWN)
28
+ end
29
+
30
+ def test_zlib_included_compression_constants
31
+ assert_not_nil(Zlib::NO_COMPRESSION)
32
+ assert_not_nil(Zlib::BEST_SPEED)
33
+ assert_not_nil(Zlib::BEST_COMPRESSION)
34
+ assert_not_nil(Zlib::DEFAULT_COMPRESSION)
35
+ end
36
+
37
+ def test_zlib_included_encoding_constants
38
+ assert_not_nil(Zlib::FILTERED)
39
+ assert_not_nil(Zlib::HUFFMAN_ONLY)
40
+ assert_not_nil(Zlib::DEFAULT_STRATEGY)
41
+ assert_not_nil(Zlib::MAX_WBITS)
42
+ assert_not_nil(Zlib::DEF_MEM_LEVEL)
43
+ assert_not_nil(Zlib::MAX_MEM_LEVEL)
44
+ assert_not_nil(Zlib::NO_FLUSH)
45
+ assert_not_nil(Zlib::SYNC_FLUSH)
46
+ assert_not_nil(Zlib::FULL_FLUSH)
47
+ assert_not_nil(Zlib::FINISH)
48
+ end
49
+
50
+ def test_zlib_os_constants
51
+ assert_equal(0x00, Zlib::OS_MSDOS)
52
+ assert_equal(0x01, Zlib::OS_AMIGA)
53
+ assert_equal(0x02, Zlib::OS_VMS)
54
+ assert_equal(0x03, Zlib::OS_UNIX)
55
+ assert_equal(0x05, Zlib::OS_ATARI)
56
+ assert_equal(0x06, Zlib::OS_OS2)
57
+ assert_equal(0x07, Zlib::OS_MACOS)
58
+ assert_equal(0x0a, Zlib::OS_TOPS20)
59
+ assert_equal(0x0b, Zlib::OS_WIN32)
60
+ end
61
+
62
+ def test_zlib_zstream_flag_constants
63
+ assert_equal(0x1, Zlib::ZSTREAM_FLAG_READY)
64
+ assert_equal(0x2, Zlib::ZSTREAM_FLAG_IN_STREAM)
65
+ assert_equal(0x4, Zlib::ZSTREAM_FLAG_FINISHED)
66
+ assert_equal(0x8, Zlib::ZSTREAM_FLAG_CLOSING)
67
+ assert_equal(0x10, Zlib::ZSTREAM_FLAG_UNUSED)
68
+ end
69
+
70
+ def test_zlib_zstream_buffer_constants
71
+ assert_equal(1024, Zlib::ZSTREAM_INITIAL_BUFSIZE)
72
+ assert_equal(16384, Zlib::ZSTREAM_AVAIL_OUT_STEP_MAX)
73
+ assert_equal(2048, Zlib::ZSTREAM_AVAIL_OUT_STEP_MIN)
74
+ end
75
+
76
+ def test_zlib_version_module_function
77
+ assert_respond_to(Zlib, :zlib_version)
78
+ end
79
+
80
+ def test_adler32_module_function_basic
81
+ assert_respond_to(Zlib, :adler32)
82
+ assert_nothing_raised{ Zlib.adler32 }
83
+ end
84
+
85
+ def test_adler32_module_function
86
+ assert_equal(1, Zlib.adler32)
87
+ assert_equal(73204161, Zlib.adler32('test'))
88
+ assert_equal(1, Zlib.adler32(nil, 3))
89
+ assert_equal(73728451, Zlib.adler32('test', 3))
90
+ end
94
91
 
95
92
  def test_adler32_module_function_expected_errors
96
93
  assert_raise(RangeError){ Zlib.adler32('test', 2**128) }
97
94
  end
98
95
 
99
- def test_crc32_module_function_basic
100
- assert_respond_to(Zlib, :crc32)
101
- assert_nothing_raised{ Zlib.crc32 }
102
- end
96
+ def test_crc32_module_function_basic
97
+ assert_respond_to(Zlib, :crc32)
98
+ assert_nothing_raised{ Zlib.crc32 }
99
+ end
103
100
 
104
- def test_crc32_module_function
105
- assert_equal(0, Zlib.crc32)
106
- assert_equal(3632233996, Zlib.crc32('test'))
107
- assert_equal(0, Zlib.crc32(nil, 3))
108
- assert_equal(3402289634, Zlib.crc32('test', 3))
109
- end
101
+ def test_crc32_module_function
102
+ assert_equal(0, Zlib.crc32)
103
+ assert_equal(3632233996, Zlib.crc32('test'))
104
+ assert_equal(0, Zlib.crc32(nil, 3))
105
+ assert_equal(3402289634, Zlib.crc32('test', 3))
106
+ end
110
107
 
111
108
  def test_crc32_module_function_expected_errors
112
109
  assert_raise(RangeError){ Zlib.crc32('test', 2**128) }
113
110
  end
114
111
 
115
- def test_crc_table_module_function_basic
116
- assert_respond_to(Zlib, :crc_table)
117
- assert_nothing_raised{ Zlib.crc_table }
118
- assert_kind_of(Array, Zlib.crc_table)
119
- end
120
-
121
- def test_zstream_funcs_struct
122
- assert_kind_of(Zlib::ZStreamFuncs, @zstream_funcs)
123
- assert_respond_to(@zstream_funcs, :reset)
124
- assert_respond_to(@zstream_funcs, :end)
125
- assert_respond_to(@zstream_funcs, :run)
126
- end
112
+ def test_crc_table_module_function_basic
113
+ assert_respond_to(Zlib, :crc_table)
114
+ assert_nothing_raised{ Zlib.crc_table }
115
+ assert_kind_of(Array, Zlib.crc_table)
116
+ end
127
117
 
128
- def test_error_class
129
- assert_not_nil(Zlib::Error)
130
- assert_kind_of(StandardError, Zlib::Error.new)
131
- end
118
+ def test_zstream_funcs_struct
119
+ assert_kind_of(Zlib::ZStreamFuncs, @zstream_funcs)
120
+ assert_respond_to(@zstream_funcs, :reset)
121
+ assert_respond_to(@zstream_funcs, :end)
122
+ assert_respond_to(@zstream_funcs, :run)
123
+ end
132
124
 
133
- def test_stream_end_class
134
- assert_not_nil(Zlib::StreamEnd)
135
- assert_kind_of(Zlib::Error, Zlib::StreamEnd.new)
136
- end
125
+ def test_error_class
126
+ assert_not_nil(Zlib::Error)
127
+ assert_kind_of(StandardError, Zlib::Error.new)
128
+ end
137
129
 
138
- def test_need_dict_class
139
- assert_kind_of(Zlib::Error, Zlib::NeedDict.new)
140
- end
130
+ def test_stream_end_class
131
+ assert_not_nil(Zlib::StreamEnd)
132
+ assert_kind_of(Zlib::Error, Zlib::StreamEnd.new)
133
+ end
141
134
 
142
- def test_data_error_class
143
- assert_kind_of(Zlib::Error, Zlib::DataError.new)
144
- end
135
+ def test_need_dict_class
136
+ assert_kind_of(Zlib::Error, Zlib::NeedDict.new)
137
+ end
145
138
 
146
- def test_stream_error_class
147
- assert_kind_of(Zlib::Error, Zlib::StreamError.new)
148
- end
139
+ def test_data_error_class
140
+ assert_kind_of(Zlib::Error, Zlib::DataError.new)
141
+ end
149
142
 
150
- def test_mem_error_class
151
- assert_kind_of(Zlib::Error, Zlib::MemError.new)
152
- end
143
+ def test_stream_error_class
144
+ assert_kind_of(Zlib::Error, Zlib::StreamError.new)
145
+ end
153
146
 
154
- def test_buf_error_class
155
- assert_kind_of(Zlib::Error, Zlib::BufError.new)
156
- end
147
+ def test_mem_error_class
148
+ assert_kind_of(Zlib::Error, Zlib::MemError.new)
149
+ end
157
150
 
158
- def test_version_error_class
159
- assert_kind_of(Zlib::Error, Zlib::VersionError.new)
160
- end
151
+ def test_buf_error_class
152
+ assert_kind_of(Zlib::Error, Zlib::BufError.new)
153
+ end
161
154
 
162
- def teardown
163
- @zstream_funcs = nil
164
- end
155
+ def test_version_error_class
156
+ assert_kind_of(Zlib::Error, Zlib::VersionError.new)
157
+ end
165
158
 
166
- def self.shutdown
167
- end
159
+ def teardown
160
+ @zstream_funcs = nil
161
+ end
168
162
  end
@@ -31,7 +31,7 @@ class TC_GzipReader < Test::Unit::TestCase
31
31
  end
32
32
 
33
33
  def test_lineno_get
34
- assert_kind_of(Fixnum, @gz_reader.lineno)
34
+ assert_kind_of(Integer, @gz_reader.lineno)
35
35
  assert_equal(0, @gz_reader.lineno)
36
36
  end
37
37
 
@@ -41,7 +41,7 @@ class TC_GzipReader < Test::Unit::TestCase
41
41
  end
42
42
 
43
43
  def test_lineno_set
44
- assert_kind_of(Fixnum, @gz_reader.lineno = 0)
44
+ assert_kind_of(Integer, @gz_reader.lineno = 0)
45
45
  assert_equal(0, @gz_reader.lineno = 0)
46
46
  end
47
47
 
@@ -56,7 +56,7 @@ class TC_GzipReader < Test::Unit::TestCase
56
56
  end
57
57
 
58
58
  def test_pos
59
- assert_kind_of(Fixnum, @gz_reader.pos)
59
+ assert_kind_of(Integer, @gz_reader.pos)
60
60
  end
61
61
 
62
62
  def test_rewind_basic
@@ -92,7 +92,7 @@ class TC_Zlib_GzipWriter < Test::Unit::TestCase
92
92
  def test_pos_basic
93
93
  assert_respond_to(@writer, :pos)
94
94
  assert_nothing_raised{ @writer.pos }
95
- assert_kind_of(Fixnum, @writer.pos)
95
+ assert_kind_of(Integer, @writer.pos)
96
96
  end
97
97
 
98
98
  def test_pos
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pr-zlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Park Heesob
@@ -11,27 +11,32 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIDcDCCAligAw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YWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
30
+ /3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
31
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
32
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
33
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
34
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
35
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
36
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
37
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
33
38
  -----END CERTIFICATE-----
34
- date: 2016-11-15 00:00:00.000000000 Z
39
+ date: 2018-03-18 00:00:00.000000000 Z
35
40
  dependencies:
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: test-unit
@@ -65,7 +70,10 @@ description: |2
65
70
  The pr-zlib library is a pure Ruby implementation of both the zlib C
66
71
  library, and the Ruby zlib interface that ships as part of the standard
67
72
  library.
68
- email: phasis@gmail.com
73
+ email:
74
+ - - phasis@gmail.com
75
+ - djberg96@gmail.com
76
+ - https://github.com/djberg96/pr-zlib
69
77
  executables: []
70
78
  extensions: []
71
79
  extra_rdoc_files:
@@ -105,11 +113,16 @@ files:
105
113
  - test/test_zlib_gzip_writer.rb
106
114
  - test/test_zlib_inflate.rb
107
115
  - test/test_zlib_zstream.rb
108
- - test.rb
109
116
  homepage: https://github.com/djberg96/pr-zlib
110
117
  licenses:
111
118
  - zlib
112
- metadata: {}
119
+ metadata:
120
+ homepage_uri: https://github.com/djberg96/pr-zlib
121
+ bug_tracker_uri: https://github.com/djberg96/pr-zlib/issues
122
+ changelog_uri: https://github.com/djberg96/pr-zlib/CHANGES
123
+ documentation_uri: https://github.com/djberg96/pr-zlib/wiki
124
+ source_code_uri: https://github.com/djberg96/pr-zlib
125
+ wiki_uri: https://github.com/djberg96/pr-zlib/wiki
113
126
  post_install_message:
114
127
  rdoc_options: []
115
128
  require_paths:
@@ -118,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
131
  requirements:
119
132
  - - ">="
120
133
  - !ruby/object:Gem::Version
121
- version: '0'
134
+ version: 2.2.0
122
135
  required_rubygems_version: !ruby/object:Gem::Requirement
123
136
  requirements:
124
137
  - - ">="
@@ -126,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
139
  version: '0'
127
140
  requirements: []
128
141
  rubyforge_project:
129
- rubygems_version: 2.6.8
142
+ rubygems_version: 2.7.6
130
143
  signing_key:
131
144
  specification_version: 4
132
145
  summary: Pure Ruby version of the zlib library
metadata.gz.sig CHANGED
Binary file
data/test.rb DELETED
@@ -1,4 +0,0 @@
1
- require 'rubygems/package'
2
- spec = eval(IO.read('pr-zlib.gemspec'))
3
- spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
4
- Gem::Package.build(spec, true)