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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d56ad0750e8a018c49c7a60e69394a17a2726b74
4
- data.tar.gz: f5c2ba3691a0a6df44b128e0aecd0fa32dadfd55
3
+ metadata.gz: f91f981aeb850390b786d7fdfa5b5d7fed8effb2
4
+ data.tar.gz: d1d379ff6e4021f75a41ec925c03022799fcc809
5
5
  SHA512:
6
- metadata.gz: f7a049e78965461d40e160ebb5481c5c53277c8db3bb88f127f8108fe2059731db06b37c1584064339102a053d76c316689a44eceaee885eaa70ff00dae61a12
7
- data.tar.gz: fdba625c358fb736e964b921e0c1b6c1698b4601aae61d3b5ba27df5767f96cbf98b9411c894c0215ef7813870491f85a226c4446e28893f6c04636d6e460b88
6
+ metadata.gz: 96a4ec05eb0576fd939422c5354de20577617d3bc988bb9d99585c48f9c22e4aeed8514673b3006d085ca7e85b04d955883cb35c3faf0276fc9a57fded48b4db
7
+ data.tar.gz: 8b392dd00349ce6c7d9c8fee5c1e73d2a6f31dacf604f45aa0a1794243e9b91dcf7db4065b5cd4e5fa02e9e2c2219ef58c093b2e030fdd7cc9fb466152fc34fe
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- �� @�H �5X���ˢm�+b��/3�6��z(H�a���V@�Õ���𞐫���D�F ���%b��l����<��h��)�<�Q��6Iae�Nܪmv����nlb1��V�[s��(س��Fv �i��ڻ+����B.+�<P"�l�ߺ�d���A���J�2�y���\����,��M./�v�������� F���ם[���ږhE *��o1�Sz�1���)઀�]�1�0�[Mմ�Ѐ��58
1
+ P�����[=�����S����H�����Q�xb�;ldiAQ�� �Ā���ֶ�JQenu��ЊI ����q9���N��^��(YB��T��ƕz�ܠ0.mPfX�:�;$�ߏ������ˑ-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
@@ -1,21 +1,21 @@
1
1
  -----BEGIN CERTIFICATE-----
2
2
  MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
3
3
  cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
4
- MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
4
+ MB4XDTE2MTAzMTE4NTcyNVoXDTE3MTAzMTE4NTcyNVowPzERMA8GA1UEAwwIZGpi
5
5
  ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
7
- Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
8
- S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
9
- gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
10
- FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
11
- zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
12
- DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
13
- nn6bfJADmuIDiMSOzed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/Px1yWdVuU4ejvxrj8axHRK+wHQ+bYvx9eEosuRHB
16
+ mXjRvpN9UnOiY7wYbK36MpAALBq3swpcBpYXyfBOdv0JQvjMEGmKqXJS7AbNHNPc
17
+ ZbpPrVSdJJ+aTWEDvybl693eEUvEuiSkVIz8w4yNcJP1zOBRBKxG2viJdMKz5Ho7
18
+ 2M9INmGCv3GCv4bljYlIIg4YYAyOaBbSQeAb2/F5XAlOR2oEB8ipB+RKGZXR8rq5
19
+ EkhPwYAx+jZ4KyPve9JKm34Du9veVFEzq3aW+opaveK167NEorK7xLpmdEcdo9bR
20
+ 9CkYV0lClarK7w1ykAePuEeXD7k=
21
21
  -----END CERTIFICATE-----
@@ -241,19 +241,19 @@ module Rbzlib
241
241
  end
242
242
 
243
243
  def [](idx)
244
- @buffer[(idx * 2) + @offset, 2].unpack('S').first
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('S')
248
+ @buffer[(idx * 2) + @offset, 2] = [val].pack('v')
249
249
  end
250
250
 
251
251
  def get()
252
- @buffer[@offset, 2].unpack('S').first
252
+ @buffer[@offset, 2].unpack('v').first
253
253
  end
254
254
 
255
255
  def set(val)
256
- @buffer[@offset, 2] = [val].pack('S')
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('L').first)
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
@@ -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.2'
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('S').first
880
+ src.unpack('v').first
881
881
  end
882
882
 
883
883
  def gzfile_get32(src)
884
- src.unpack('L').first
884
+ src.unpack('V').first
885
885
  end
886
886
 
887
887
  def gzfile_set32(n)
888
- [n].pack('L')
888
+ [n].pack('V')
889
889
  end
890
890
 
891
891
  def gzfile_make_header
@@ -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.3'
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
@@ -0,0 +1,4 @@
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)
@@ -21,7 +21,7 @@ class TC_Zlib < Test::Unit::TestCase
21
21
 
22
22
  def test_zlib_version
23
23
  assert_equal('1.2.3', Zlib::ZLIB_VERSION)
24
- assert_equal('1.0.2', Zlib::PR_ZLIB_VERSION)
24
+ assert_equal('1.0.4', Zlib::PR_ZLIB_VERSION)
25
25
  end
26
26
 
27
27
  def test_zlib_included_constants
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.3
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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aveK167NEorK7xLpmdEcdo9bR
32
+ 9CkYV0lClarK7w1ykAePuEeXD7k=
33
33
  -----END CERTIFICATE-----
34
- date: 2015-12-03 00:00:00.000000000 Z
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.5.0
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