pr-zlib 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/CHANGES +5 -0
- data/certs/djberg96_pub.pem +15 -15
- data/lib/pr/rbzlib.rb +5 -5
- data/lib/pr/zlib.rb +5 -5
- data/pr-zlib.gemspec +1 -1
- data/test.rb +4 -0
- data/test/test_zlib.rb +1 -1
- metadata +19 -18
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f91f981aeb850390b786d7fdfa5b5d7fed8effb2
|
4
|
+
data.tar.gz: d1d379ff6e4021f75a41ec925c03022799fcc809
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96a4ec05eb0576fd939422c5354de20577617d3bc988bb9d99585c48f9c22e4aeed8514673b3006d085ca7e85b04d955883cb35c3faf0276fc9a57fded48b4db
|
7
|
+
data.tar.gz: 8b392dd00349ce6c7d9c8fee5c1e73d2a6f31dacf604f45aa0a1794243e9b91dcf7db4065b5cd4e5fa02e9e2c2219ef58c093b2e030fdd7cc9fb466152fc34fe
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
P�����[=�����S����H�����Q�xb�;ldiAQ���Ā���ֶ�JQenu��ЊI ����q�9���N��^��(YB��T��ƕz�ܠ0.m�PfX�:�;$�ߏ������ˑ-f���w�>M.ɝ�u����[:Lf���ɬ�U]6"l8��
|
2
|
+
N��
|
data/CHANGES
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
= 1.0.4 - 15-Nov-2016
|
2
|
+
* Fixed an endian bug. Thanks go to Benoit Daloze for the patch.
|
3
|
+
* The version constants are now frozen (and fixed the version number).
|
4
|
+
* Updated the cert.
|
5
|
+
|
1
6
|
= 1.0.3 - 3-Dec-2015
|
2
7
|
* Added a license. This library is now covered under the zlib license.
|
3
8
|
* Some performance tuning. Reads are 2-3 times faster, while writes are
|
data/certs/djberg96_pub.pem
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
2
|
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
3
3
|
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
4
|
-
|
4
|
+
MB4XDTE2MTAzMTE4NTcyNVoXDTE3MTAzMTE4NTcyNVowPzERMA8GA1UEAwwIZGpi
|
5
5
|
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
6
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALwqllig3Tyc29Y3SZgK
|
7
|
+
fFaApRB5R3l8KkOog3rwqr4Rr8bc8MfAMwHOzfqUMQRF7bPIyd5jLu24tPSC2X8D
|
8
|
+
SKDS3069iTzTEDSPin90MVes+nd/ngys93lgmJ9DSwpGXQzZ7sWqdaJjzqLqDMhZ
|
9
|
+
3LhTRZeMpDA8hyEiX7GmVp+VvhAXQ1pjfoFBmMNrzibUmYXcyllzqfEFcbI31/EK
|
10
|
+
vlkEmcTKdNyd4aIOFLadZpzVvLxWsxFqi6qwteAwlNk3zxaik6O82iAXq2tcnk8p
|
11
|
+
asWidshXCiRunncPhVogVYNCS4ISfYD6b/f85T9DsxJ6tsADNfeXnMTRxQcQv+1x
|
12
|
+
0l0CAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFC3D
|
13
|
+
p9cyKtYtWUAefeMpMh4kMUP4MB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
14
14
|
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
ggEBAEYzyGzoleAO3i6mOBi/Px1yWdVuU4ejvxrj8axHRK+wHQ+bYvx9eEosuRHB
|
16
|
+
mXjRvpN9UnOiY7wYbK36MpAALBq3swpcBpYXyfBOdv0JQvjMEGmKqXJS7AbNHNPc
|
17
|
+
ZbpPrVSdJJ+aTWEDvybl693eEUvEuiSkVIz8w4yNcJP1zOBRBKxG2viJdMKz5Ho7
|
18
|
+
2M9INmGCv3GCv4bljYlIIg4YYAyOaBbSQeAb2/F5XAlOR2oEB8ipB+RKGZXR8rq5
|
19
|
+
EkhPwYAx+jZ4KyPve9JKm34Du9veVFEzq3aW+opaveK167NEorK7xLpmdEcdo9bR
|
20
|
+
9CkYV0lClarK7w1ykAePuEeXD7k=
|
21
21
|
-----END CERTIFICATE-----
|
data/lib/pr/rbzlib.rb
CHANGED
@@ -241,19 +241,19 @@ module Rbzlib
|
|
241
241
|
end
|
242
242
|
|
243
243
|
def [](idx)
|
244
|
-
@buffer[(idx * 2) + @offset, 2].unpack('
|
244
|
+
@buffer[(idx * 2) + @offset, 2].unpack('v').first
|
245
245
|
end
|
246
246
|
|
247
247
|
def []=(idx, val)
|
248
|
-
@buffer[(idx * 2) + @offset, 2] = [val].pack('
|
248
|
+
@buffer[(idx * 2) + @offset, 2] = [val].pack('v')
|
249
249
|
end
|
250
250
|
|
251
251
|
def get()
|
252
|
-
@buffer[@offset, 2].unpack('
|
252
|
+
@buffer[@offset, 2].unpack('v').first
|
253
253
|
end
|
254
254
|
|
255
255
|
def set(val)
|
256
|
-
@buffer[@offset, 2] = [val].pack('
|
256
|
+
@buffer[@offset, 2] = [val].pack('v')
|
257
257
|
end
|
258
258
|
end
|
259
259
|
|
@@ -668,7 +668,7 @@ module Rbzlib
|
|
668
668
|
|
669
669
|
s.z_err = Z_DATA_ERROR if (c == Z_EOF)
|
670
670
|
|
671
|
-
return (x.unpack('
|
671
|
+
return (x.unpack('v').first)
|
672
672
|
end
|
673
673
|
|
674
674
|
# Check the gzip header of a gz_stream opened for reading. Set the stream
|
data/lib/pr/zlib.rb
CHANGED
@@ -8,8 +8,8 @@ include Rbzlib
|
|
8
8
|
|
9
9
|
module Zlib
|
10
10
|
|
11
|
-
RUBY_ZLIB_VERSION = '0.6.0'
|
12
|
-
PR_ZLIB_VERSION = '1.0.
|
11
|
+
RUBY_ZLIB_VERSION = '0.6.0'.freeze
|
12
|
+
PR_ZLIB_VERSION = '1.0.4'.freeze
|
13
13
|
|
14
14
|
class Error < StandardError
|
15
15
|
end
|
@@ -877,15 +877,15 @@ module Zlib
|
|
877
877
|
end
|
878
878
|
|
879
879
|
def gzfile_get16(src)
|
880
|
-
src.unpack('
|
880
|
+
src.unpack('v').first
|
881
881
|
end
|
882
882
|
|
883
883
|
def gzfile_get32(src)
|
884
|
-
src.unpack('
|
884
|
+
src.unpack('V').first
|
885
885
|
end
|
886
886
|
|
887
887
|
def gzfile_set32(n)
|
888
|
-
[n].pack('
|
888
|
+
[n].pack('V')
|
889
889
|
end
|
890
890
|
|
891
891
|
def gzfile_make_header
|
data/pr-zlib.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'pr-zlib'
|
5
|
-
spec.version = '1.0.
|
5
|
+
spec.version = '1.0.4'
|
6
6
|
spec.authors = ['Park Heesob', 'Daniel Berger']
|
7
7
|
spec.email = 'phasis@gmail.com'
|
8
8
|
spec.homepage = 'https://github.com/djberg96/pr-zlib'
|
data/test.rb
ADDED
data/test/test_zlib.rb
CHANGED
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
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Park Heesob
|
@@ -13,25 +13,25 @@ cert_chain:
|
|
13
13
|
-----BEGIN CERTIFICATE-----
|
14
14
|
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
15
15
|
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
16
|
-
|
16
|
+
MB4XDTE2MTAzMTE4NTcyNVoXDTE3MTAzMTE4NTcyNVowPzERMA8GA1UEAwwIZGpi
|
17
17
|
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALwqllig3Tyc29Y3SZgK
|
19
|
+
fFaApRB5R3l8KkOog3rwqr4Rr8bc8MfAMwHOzfqUMQRF7bPIyd5jLu24tPSC2X8D
|
20
|
+
SKDS3069iTzTEDSPin90MVes+nd/ngys93lgmJ9DSwpGXQzZ7sWqdaJjzqLqDMhZ
|
21
|
+
3LhTRZeMpDA8hyEiX7GmVp+VvhAXQ1pjfoFBmMNrzibUmYXcyllzqfEFcbI31/EK
|
22
|
+
vlkEmcTKdNyd4aIOFLadZpzVvLxWsxFqi6qwteAwlNk3zxaik6O82iAXq2tcnk8p
|
23
|
+
asWidshXCiRunncPhVogVYNCS4ISfYD6b/f85T9DsxJ6tsADNfeXnMTRxQcQv+1x
|
24
|
+
0l0CAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFC3D
|
25
|
+
p9cyKtYtWUAefeMpMh4kMUP4MB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
26
26
|
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
ggEBAEYzyGzoleAO3i6mOBi/Px1yWdVuU4ejvxrj8axHRK+wHQ+bYvx9eEosuRHB
|
28
|
+
mXjRvpN9UnOiY7wYbK36MpAALBq3swpcBpYXyfBOdv0JQvjMEGmKqXJS7AbNHNPc
|
29
|
+
ZbpPrVSdJJ+aTWEDvybl693eEUvEuiSkVIz8w4yNcJP1zOBRBKxG2viJdMKz5Ho7
|
30
|
+
2M9INmGCv3GCv4bljYlIIg4YYAyOaBbSQeAb2/F5XAlOR2oEB8ipB+RKGZXR8rq5
|
31
|
+
EkhPwYAx+jZ4KyPve9JKm34Du9veVFEzq3aW+opaveK167NEorK7xLpmdEcdo9bR
|
32
|
+
9CkYV0lClarK7w1ykAePuEeXD7k=
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: test-unit
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- test/test_zlib_gzip_writer.rb
|
106
106
|
- test/test_zlib_inflate.rb
|
107
107
|
- test/test_zlib_zstream.rb
|
108
|
+
- test.rb
|
108
109
|
homepage: https://github.com/djberg96/pr-zlib
|
109
110
|
licenses:
|
110
111
|
- zlib
|
@@ -125,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
126
|
version: '0'
|
126
127
|
requirements: []
|
127
128
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.6.8
|
129
130
|
signing_key:
|
130
131
|
specification_version: 4
|
131
132
|
summary: Pure Ruby version of the zlib library
|
metadata.gz.sig
CHANGED
Binary file
|