rubyzip 2.3.0 → 2.3.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zip.rb +21 -0
  3. data/lib/zip/version.rb +1 -1
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ffab0e42187d7bbd5b732ff0b9395a6215587a18ce5dd9d64da46d1c628a69c
4
- data.tar.gz: 3032ae5d4f62644c1a19d5de25d515844ecb8da0f59c774fcaa6b16904f496b7
3
+ metadata.gz: e91e4188ec03ce5ae7377b7eada4513ee75c6e0753d4f5ea97e0695fbf28a8f4
4
+ data.tar.gz: '098d3b2c4456e90a754b7f227022148031552c9f3537a7992c51b5ed09738ac9'
5
5
  SHA512:
6
- metadata.gz: 218f77b0c4ae423f2baed702bf56bb598e2c3d22a01fc9af8c2fa33432580e2706a820474fa1222480370517a9f28bda692a2f296d89620459d9c6239fcfff37
7
- data.tar.gz: a4ffa820bb2272b07bd918827d03751261f87d694966ef6c88f74f4ec569c94b0420c9288a92e5370653d00790478bdd85d3e89a9ef42ccd94834facb622c336
6
+ metadata.gz: 8c1b2ddc7bcab51c91c36a567bf74fc24333984cf4489f5a41220b8589ea48c8b8a3dcbc2084cdd07d576f66250d956c4bcdf33096e82ffd8a8c8e163615162f
7
+ data.tar.gz: a53a5f50235c9b8d093f8360c23e853a69acb44a7642ac8aecc657ec53bcb0d0d888969cb17ba4d45c047749df3f21ea97688e0e9a1d6d7d7117eafcde5ad3d6
data/lib/zip.rb CHANGED
@@ -34,6 +34,25 @@ require 'zip/streamable_directory'
34
34
  require 'zip/errors'
35
35
 
36
36
  module Zip
37
+ BANNER = [
38
+ 'RubyZip 3.0 is coming!',
39
+ '**********************',
40
+ '',
41
+ 'The public API of some Rubyzip classes has been modernized to use named',
42
+ 'parameters for optional arguments. Please check your usage of the',
43
+ 'following classes:',
44
+ ' * `Zip::File`',
45
+ ' * `Zip::Entry`',
46
+ ' * `Zip::InputStream`',
47
+ ' * `Zip::OutputStream`',
48
+ '',
49
+ 'Please ensure that your Gemfiles and .gemspecs are suitably restrictive',
50
+ 'to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).',
51
+ 'See https://github.com/rubyzip/rubyzip for details. The Changelog also',
52
+ 'lists other enhancements and bugfixes that have been implemented since',
53
+ 'version 2.3.0.'
54
+ ].freeze
55
+
37
56
  extend self
38
57
  attr_accessor :unicode_names,
39
58
  :on_exists_proc,
@@ -47,6 +66,8 @@ module Zip
47
66
  :validate_entry_sizes
48
67
 
49
68
  def reset!
69
+ warn BANNER.join("\n") unless BANNER.empty?
70
+
50
71
  @_ran_once = false
51
72
  @unicode_names = false
52
73
  @on_exists_proc = false
data/lib/zip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zip
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyzip
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Simonov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-14 00:00:00.000000000 Z
11
+ date: 2021-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -146,9 +146,9 @@ licenses:
146
146
  - BSD 2-Clause
147
147
  metadata:
148
148
  bug_tracker_uri: https://github.com/rubyzip/rubyzip/issues
149
- changelog_uri: https://github.com/rubyzip/rubyzip/blob/v2.3.0/Changelog.md
150
- documentation_uri: https://www.rubydoc.info/gems/rubyzip/2.3.0
151
- source_code_uri: https://github.com/rubyzip/rubyzip/tree/v2.3.0
149
+ changelog_uri: https://github.com/rubyzip/rubyzip/blob/v2.3.1/Changelog.md
150
+ documentation_uri: https://www.rubydoc.info/gems/rubyzip/2.3.1
151
+ source_code_uri: https://github.com/rubyzip/rubyzip/tree/v2.3.1
152
152
  wiki_uri: https://github.com/rubyzip/rubyzip/wiki
153
153
  post_install_message:
154
154
  rdoc_options: []
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.0.3
168
+ rubygems_version: 3.1.4
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: rubyzip is a ruby module for reading and writing zip files