Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created December 3, 2021 03:31
Show Gist options
  • Save pvalena/d7f4a51cc7cb6535f282b4327dd74a2f to your computer and use it in GitHub Desktop.
Save pvalena/d7f4a51cc7cb6535f282b4327dd74a2f to your computer and use it in GitHub Desktop.
+ rpmdev-bumpspec -c 'Update to rubyzip 2.3.2.
Resolves: rhbz#1978909' -n 2.3.2 fedora/packages/rubygem-rubyzip/rubygem-rubyzip.spec
+ sed -i '/^# git clone https:\/\/github.com\/rubyzip\/rubyzip.git --no-checkout/ s/2.3.0/2.3.2/g' fedora/packages/rubygem-rubyzip/rubygem-rubyzip.spec
+ sed -i '/^# cd rubyzip && git archive -v -o rubyzip-2.3.0-test.txz v2.3.0 test\// s/2.3.0/2.3.2/g' fedora/packages/rubygem-rubyzip/rubygem-rubyzip.spec
$cmd: set -x && git clone https://github.com/rubyzip/rubyzip.git --no-checkout ; cd rubyzip && git archive -v -o rubyzip-2.3.2-test.txz v2.3.2 test/ && echo Ok || exit 1
>> execute $cmd.
+ git clone https://github.com/rubyzip/rubyzip.git --no-checkout
fatal: destination path 'rubyzip' already exists and is not an empty directory.
+ cd rubyzip
+ git archive -v -o rubyzip-2.3.2-test.txz v2.3.2 test/
test/
test/basic_zip_file_test.rb
test/bzip2_support_test.rb
test/case_sensitivity_test.rb
test/central_directory_entry_test.rb
test/central_directory_test.rb
test/constants_test.rb
test/crypto/
test/crypto/null_encryption_test.rb
test/crypto/traditional_encryption_test.rb
test/data/
test/data/WarnInvalidDate.zip
test/data/file1.txt
test/data/file1.txt.corrupt.deflatedData
test/data/file1.txt.deflatedData
test/data/file2.txt
test/data/globTest.zip
test/data/globTest/
test/data/globTest/foo.txt
test/data/globTest/foo/
test/data/globTest/foo/bar/
test/data/globTest/foo/bar/baz/
test/data/globTest/foo/bar/baz/foo.txt
test/data/globTest/food.txt
test/data/gpbit3stored.zip
test/data/mimetype
test/data/notzippedruby.rb
test/data/ntfs.zip
test/data/oddExtraField.zip
test/data/path_traversal/
test/data/path_traversal/Makefile
test/data/path_traversal/jwilk/
test/data/path_traversal/jwilk/README.md
test/data/path_traversal/jwilk/absolute1.zip
test/data/path_traversal/jwilk/absolute2.zip
test/data/path_traversal/jwilk/dirsymlink.zip
test/data/path_traversal/jwilk/dirsymlink2a.zip
test/data/path_traversal/jwilk/dirsymlink2b.zip
test/data/path_traversal/jwilk/relative0.zip
test/data/path_traversal/jwilk/relative2.zip
test/data/path_traversal/jwilk/symlink.zip
test/data/path_traversal/relative1.zip
test/data/path_traversal/tilde.zip
test/data/path_traversal/tuzovakaoff/
test/data/path_traversal/tuzovakaoff/README.md
test/data/path_traversal/tuzovakaoff/absolutepath.zip
test/data/path_traversal/tuzovakaoff/symlink.zip
test/data/rubycode.zip
test/data/rubycode2.zip
test/data/test.xls
test/data/testDirectory.bin
test/data/zip64-sample.zip
test/data/zipWithBzip2Compression.zip
test/data/zipWithDirs.zip
test/data/zipWithEncryption.zip
test/data/zipWithStoredCompression.zip
test/data/zipWithStoredCompressionAndEncryption.zip
test/decompressor_test.rb
test/deflater_test.rb
test/encryption_test.rb
test/entry_set_test.rb
test/entry_test.rb
test/errors_test.rb
test/extra_field_test.rb
test/extra_field_ut_test.rb
test/file_extract_directory_test.rb
test/file_extract_test.rb
test/file_options_test.rb
test/file_permissions_test.rb
test/file_split_test.rb
test/file_test.rb
test/filesystem/
test/filesystem/dir_iterator_test.rb
test/filesystem/directory_test.rb
test/filesystem/file_mutating_test.rb
test/filesystem/file_nonmutating_test.rb
test/filesystem/file_stat_test.rb
test/gentestfiles.rb
test/inflater_test.rb
test/input_stream_test.rb
test/ioextras/
test/ioextras/abstract_input_stream_test.rb
test/ioextras/abstract_output_stream_test.rb
test/ioextras/fake_io_test.rb
test/local_entry_test.rb
test/output_stream_test.rb
test/pass_thru_compressor_test.rb
test/pass_thru_decompressor_test.rb
test/path_traversal_test.rb
test/samples/
test/samples/example_recursive_test.rb
test/settings_test.rb
test/stored_support_test.rb
test/test_helper.rb
test/unicode_file_names_and_comments_test.rb
test/zip64_full_test.rb
test/zip64_support_test.rb
+ echo Ok
Ok
renamed './rubyzip/rubyzip-2.3.2-test.txz' -> './rubyzip-2.3.2-test.txz'
SHA512 (rubyzip-2.3.2.gem) = ded141768b205cca10da6eed62cb744111008703f0cd1377b2edba59f0fa66e3a209e43c10a86749088c9517238b4dcac6173b56ebca4e4b8340632d1794bcd2
SHA512 (rubyzip-2.3.2-test.txz) = 8ffb21d250af1e4927833c178c53fba70118e4a46849dc38c1ad7f0aa4928132c24584c7e08351b713ff1b661cd7c051a561825a9a242601953f7645a4e414af
[rebase 2012eaa] Update to rubyzip 2.3.2.
3 files changed, 10 insertions(+), 6 deletions(-)
--> Please check the gem compare output bellow: !
NOTE: Gem::Specification#has_rdoc is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc called from /usr/share/gems/gems/gem-compare-0.0.7/lib/rubygems/comparator/utils.rb:112.
NOTE: Gem::Specification#has_rdoc is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc called from /usr/share/gems/gems/gem-compare-0.0.7/lib/rubygems/comparator/utils.rb:112.
Compared versions: ["2.3.0", "2.3.2"]
DIFFERENT metadata:
2.3.0: {"bug_tracker_uri"=>"https://github.com/rubyzip/rubyzip/issues", "changelog_uri"=>"https://github.com/rubyzip/rubyzip/blob/v2.3.0/Changelog.md", "documentation_uri"=>"https://www.rubydoc.info/gems/rubyzip/2.3.0", "source_code_uri"=>"https://github.com/rubyzip/rubyzip/tree/v2.3.0", "wiki_uri"=>"https://github.com/rubyzip/rubyzip/wiki"}
2.3.2: {"bug_tracker_uri"=>"https://github.com/rubyzip/rubyzip/issues", "changelog_uri"=>"https://github.com/rubyzip/rubyzip/blob/v2.3.2/Changelog.md", "documentation_uri"=>"https://www.rubydoc.info/gems/rubyzip/2.3.2", "source_code_uri"=>"https://github.com/rubyzip/rubyzip/tree/v2.3.2", "wiki_uri"=>"https://github.com/rubyzip/rubyzip/wiki"}
DIFFERENT files:
2.3.0->2.3.2:
* Changed:
README.md
(!) New permissions: 100644 -> 100664
Rakefile
(!) New permissions: 100644 -> 100664
TODO
(!) New permissions: 100644 -> 100664
lib/zip.rb
(!) New permissions: 100644 -> 100664
lib/zip/central_directory.rb
(!) New permissions: 100644 -> 100664
lib/zip/compressor.rb
(!) New permissions: 100644 -> 100664
lib/zip/constants.rb
(!) New permissions: 100644 -> 100664
lib/zip/crypto/decrypted_io.rb
(!) New permissions: 100644 -> 100664
lib/zip/crypto/encryption.rb
(!) New permissions: 100644 -> 100664
lib/zip/crypto/null_encryption.rb
(!) New permissions: 100644 -> 100664
lib/zip/crypto/traditional_encryption.rb
(!) New permissions: 100644 -> 100664
lib/zip/decompressor.rb
(!) New permissions: 100644 -> 100664
lib/zip/deflater.rb
(!) New permissions: 100644 -> 100664
lib/zip/dos_time.rb
(!) New permissions: 100644 -> 100664
lib/zip/entry.rb
(!) New permissions: 100644 -> 100664
lib/zip/entry_set.rb
(!) New permissions: 100644 -> 100664
lib/zip/errors.rb
(!) New permissions: 100644 -> 100664
lib/zip/extra_field.rb
(!) New permissions: 100644 -> 100664
lib/zip/extra_field/generic.rb
(!) New permissions: 100644 -> 100664
lib/zip/extra_field/ntfs.rb
(!) New permissions: 100644 -> 100664
lib/zip/extra_field/old_unix.rb
(!) New permissions: 100644 -> 100664
lib/zip/extra_field/universal_time.rb
(!) New permissions: 100644 -> 100664
lib/zip/extra_field/unix.rb
(!) New permissions: 100644 -> 100664
lib/zip/extra_field/zip64.rb
(!) New permissions: 100644 -> 100664
lib/zip/extra_field/zip64_placeholder.rb
(!) New permissions: 100644 -> 100664
lib/zip/file.rb
(!) New permissions: 100644 -> 100664
lib/zip/filesystem.rb
(!) New permissions: 100644 -> 100664
lib/zip/inflater.rb
(!) New permissions: 100644 -> 100664
lib/zip/input_stream.rb
(!) New permissions: 100644 -> 100664
lib/zip/ioextras.rb
(!) New permissions: 100644 -> 100664
lib/zip/ioextras/abstract_input_stream.rb
(!) New permissions: 100644 -> 100664
lib/zip/ioextras/abstract_output_stream.rb
(!) New permissions: 100644 -> 100664
lib/zip/null_compressor.rb
(!) New permissions: 100644 -> 100664
lib/zip/null_decompressor.rb
(!) New permissions: 100644 -> 100664
lib/zip/null_input_stream.rb
(!) New permissions: 100644 -> 100664
lib/zip/output_stream.rb
(!) New permissions: 100644 -> 100664
lib/zip/pass_thru_compressor.rb
(!) New permissions: 100644 -> 100664
lib/zip/pass_thru_decompressor.rb
(!) New permissions: 100644 -> 100664
lib/zip/streamable_directory.rb
(!) New permissions: 100644 -> 100664
lib/zip/streamable_stream.rb
(!) New permissions: 100644 -> 100664
lib/zip/version.rb +1/-1
(!) New permissions: 100644 -> 100664
samples/example.rb
(!) New permissions: 100755 -> 100775
samples/example_filesystem.rb
(!) New permissions: 100755 -> 100775
samples/example_recursive.rb
(!) New permissions: 100644 -> 100664
samples/gtk_ruby_zip.rb
(!) New permissions: 100755 -> 100775
samples/qtzip.rb
(!) New permissions: 100755 -> 100775
samples/write_simple.rb
(!) New permissions: 100755 -> 100775
samples/zipfind.rb
(!) New permissions: 100755 -> 100775
> Continue with commit ammend.
[rebase dda2259] Update to rubyzip 2.3.2.
Date: Fri Dec 3 04:15:07 2021 +0100
3 files changed, 10 insertions(+), 6 deletions(-)
commit dda225969c398132634c35704a7ddd1888604d49
Author: Pavel Valena <pvalena@redhat.com>
Date: Fri Dec 3 04:15:07 2021 +0100
Update to rubyzip 2.3.2.
Resolves: rhbz#1978909
diff --git a/.gitignore b/.gitignore
index 613ff3c..a1fd17f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-/rubyzip-*-test.txz
/rubyzip-*.gem
+/rubyzip-*-test.txz
diff --git a/rubygem-rubyzip.spec b/rubygem-rubyzip.spec
index dbcaa71..bbb3d00 100644
--- a/rubygem-rubyzip.spec
+++ b/rubygem-rubyzip.spec
@@ -2,14 +2,14 @@
%global gem_name rubyzip
Name: rubygem-%{gem_name}
-Version: 2.3.0
-Release: 3%{?dist}
+Version: 2.3.2
+Release: 1%{?dist}
Summary: A ruby module for reading and writing zip files
License: Ruby or BSD
URL: http://github.com/rubyzip/rubyzip
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/rubyzip/rubyzip.git --no-checkout
-# cd rubyzip && git archive -v -o rubyzip-2.3.0-test.txz v2.3.0 test/
+# cd rubyzip && git archive -v -o rubyzip-2.3.2-test.txz v2.3.2 test/
Source1: %{gem_name}-%{version}-test.txz
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
@@ -66,6 +66,10 @@ popd
%changelog
+* Fri Dec 03 2021 Pavel Valena <pvalena@redhat.com> - 2.3.2-1
+- Update to rubyzip 2.3.2.
+ Resolves: rhbz#1978909
+
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
diff --git a/sources b/sources
index 84f6781..640fdca 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (rubyzip-2.3.0.gem) = 6c13c5ae766320b0fb74c9de64f5c18d39c9a24725d39571a1c4ed61d559bd97c658cdbf876b7e2a3c0077b67e5407e689952b9a1addc6d655b431eb8146ad8a
-SHA512 (rubyzip-2.3.0-test.txz) = ee182ff24ddb628333f2ffd096d23276b8996787f009bbc3e35d411f7f20b610ec368a8958523a0296aaa30dc6d39f27f96d4e10c9f4935a8477c2908f875208
+SHA512 (rubyzip-2.3.2.gem) = ded141768b205cca10da6eed62cb744111008703f0cd1377b2edba59f0fa66e3a209e43c10a86749088c9517238b4dcac6173b56ebca4e4b8340632d1794bcd2
+SHA512 (rubyzip-2.3.2-test.txz) = 8ffb21d250af1e4927833c178c53fba70118e4a46849dc38c1ad7f0aa4928132c24584c7e08351b713ff1b661cd7c051a561825a9a242601953f7645a4e414af
On branch rebase
Your branch and 'pvalena/rebase' have diverged,
and have 1 and 1 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit (use -u to show untracked files)
To git+ssh://pkgs.fedoraproject.org/forks/pvalena/rpms/rubygem-rubyzip.git
! [rejected] rebase -> rebase (non-fast-forward)
error: failed to push some refs to 'git+ssh://pkgs.fedoraproject.org/forks/pvalena/rpms/rubygem-rubyzip.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
--> Could not push to: pvalena/rebase!
remote: Sending to redis to log activity and send commit notification emails
remote: * Publishing information for 1 commits
remote: - to fedora-message
remote: 2021-12-03 03:15:23,567 [WARNING] pagure.lib.notify: pagure is about to send a message that has no schemas: pagure.git.receive
remote:
remote: Create a pull-request for rebase
remote: https://src.fedoraproject.org/fork/pvalena/rpms/rubygem-rubyzip/diff/rawhide..rebase
remote:
To git+ssh://pkgs.fedoraproject.org/forks/pvalena/rpms/rubygem-rubyzip.git
+ f5913ee...dda2259 rebase -> rebase (forced update)
Branch 'rebase' set up to track remote branch 'rebase' from 'pvalena'.
> Run copr build.
+ scripts/pkgs/cr-build.sh -c -t 30m rubygems
Created builds: 2999907
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment