Hello community, here is the log from the commit of package rubygem-base32 for openSUSE:Factory checked in at 2020-10-05 19:30:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-base32 (Old) and /work/SRC/openSUSE:Factory/.rubygem-base32.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-base32" Mon Oct 5 19:30:01 2020 rev:2 rq:838021 version:0.3.4 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-base32/rubygem-base32.changes 2018-02-02 22:21:29.724079495 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-base32.new.4249/rubygem-base32.changes 2020-10-05 19:30:08.924544226 +0200 @@ -1,0 +2,24 @@ +Fri Sep 25 13:41:46 UTC 2020 - Stephan Kulow <[email protected]> + +updated to version 0.3.4 + see installed CHANGELOG.md + + ## 0.3.4 + - PR #7: Updated README formatting (contributer: codehs) + - PR #8: Include license in gemspec (contributer: flavio) + - PR #9: Detect invalid characters when decoding (contributer: voondo) + - PR #10: Properly initialize character table (contributer: pwnall) + - PR #11: Move version.rb into lib/base32 (contributer: pravi) + - PR #12: Fix deprecation warnings (contributer: kenchan) + - PR #13: Fix build errors (contributor: kenchan) + + ## 0.3.2 + + - PR #5: Make padding optional for `random_base32` (contributer: lukesteensen) + + ## 0.3.1 + + - PR #4: Fix compatibility with older JRubies (contributor: localshred) + + +------------------------------------------------------------------- Old: ---- base32-0.3.2.gem New: ---- base32-0.3.4.gem gem2rpm.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-base32.spec ++++++ --- /var/tmp/diff_new_pack.AoPzTS/_old 2020-10-05 19:30:09.984545250 +0200 +++ /var/tmp/diff_new_pack.AoPzTS/_new 2020-10-05 19:30:09.988545254 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-base32 # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,20 +12,28 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields # Name: rubygem-base32 -Version: 0.3.2 +Version: 0.3.4 Release: 0 %define mod_name base32 %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 5 -BuildRequires: %{ruby} BuildRequires: %{rubygem gem2rpm} -Url: https://github.com/stesla/base32 -Source: http://rubygems.org/gems/%{mod_full_name}.gem +BuildRequires: %{ruby} +BuildRequires: ruby-macros >= 5 +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml Summary: Ruby extension for base32 encoding and decoding License: MIT Group: Development/Languages/Ruby @@ -39,7 +47,7 @@ %install %gem_install \ - --doc-files="CHANGELOG.md LICENSE README" \ + --doc-files="CHANGELOG.md LICENSE README.md" \ -f %gem_packages ++++++ base32-0.3.2.gem -> base32-0.3.4.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 1970-01-01 01:00:00.000000000 +0100 +++ new/CHANGELOG.md 2020-08-25 04:23:47.000000000 +0200 @@ -1,5 +1,22 @@ # CHANGELOG +## 0.3.4 +- PR #7: Updated README formatting (contributer: codehs) +- PR #8: Include license in gemspec (contributer: flavio) +- PR #9: Detect invalid characters when decoding (contributer: voondo) +- PR #10: Properly initialize character table (contributer: pwnall) +- PR #11: Move version.rb into lib/base32 (contributer: pravi) +- PR #12: Fix deprecation warnings (contributer: kenchan) +- PR #13: Fix build errors (contributor: kenchan) + +## 0.3.2 + +- PR #5: Make padding optional for `random_base32` (contributer: lukesteensen) + +## 0.3.1 + +- PR #4: Fix compatibility with older JRubies (contributor: localshred) + ## 0.3.0 - Add `Base32::random_base32` function diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README new/README --- old/README 1970-01-01 01:00:00.000000000 +0100 +++ new/README 1970-01-01 01:00:00.000000000 +0100 @@ -1,50 +0,0 @@ -= base32 - -{<img src="https://travis-ci.org/stesla/base32.png" />}[https://travis-ci.org/stesla/base32] -{<img src="https://codeclimate.com/github/stesla/base32.png" />}[https://codeclimate.com/github/stesla/base32] - -For Version: 0.1.3 - -This package contains base32, a Ruby extension for encoding and decoding -in base32 per RFC 3548. - -== Download - -The latest version of base32 can be found at - -http://rubyforge.org/frs/?group_id=3938 - -== Installation - -=== Normal Installation - -You can install base32 with the following command from the distribution -directory. - - % rake install - -=== Gem Installation - -Download and install base32 with the following command. - - % gem install --remote base32 - -=== Running the Test Suite - -If you want to run the automated tests for base32, issue this command from the -distribution directory. - - % rake test:all - -== References - -* RFC 3548: http://www.faqs.org/rfcs/rfc3548.html - -== Simple Example - - require "base32" - - encoded = Base32.encode("chunky bacon!") #==> "MNUHK3TLPEQGEYLDN5XCC===" - decoded = Base32.decode(encoded) #==> "chunky bacon!" - - puts %Q{"#{decoded}" is "#{encoded}" in base32} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 1970-01-01 01:00:00.000000000 +0100 +++ new/README.md 2020-08-25 04:23:47.000000000 +0200 @@ -0,0 +1,49 @@ +# base32 + +For Version: 0.1.3 + +This package contains base32, a Ruby extension for encoding and decoding +in base32 per RFC 3548. + +## Download + +The latest version of base32 can be found at + +http://rubyforge.org/frs/?group_id=3938 + +## Installation + +### Normal Installation + +You can install base32 with the following command from the distribution +directory. + + ` rake install` + +### Gem Installation + +Download and install base32 with the following command. + + ` gem install --remote base32` + +### Running the Test Suite + +If you want to run the automated tests for base32, issue this command from the +distribution directory. + + ` rake test:all` + +## References + +* RFC 3548: http://www.faqs.org/rfcs/rfc3548.html + +## Simple Example + +```rb + require "base32" + + encoded = Base32.encode("chunky bacon!") #==> "MNUHK3TLPEQGEYLDN5XCC===" + decoded = Base32.decode(encoded) #==> "chunky bacon!" + + puts %Q{"#{decoded}" is "#{encoded}" in base32} +``` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/base32.gemspec new/base32.gemspec --- old/base32.gemspec 1970-01-01 01:00:00.000000000 +0100 +++ new/base32.gemspec 2020-08-25 04:23:47.000000000 +0200 @@ -1,5 +1,5 @@ -$:.push File.expand_path('../lib', __FILE__) -require 'version' +$:.unshift File.expand_path('../lib', __FILE__) +require 'base32/version' Gem::Specification.new do |s| s.name = 'base32' @@ -7,16 +7,14 @@ s.authors = ['Samuel Tesla'] s.email = '[email protected]' s.summary = 'Ruby extension for base32 encoding and decoding' + s.licenses = ['MIT'] s.files = `git ls-files`.split($/) s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) } s.test_files = s.files.grep(%r{^(test|spec|features)/}) s.require_paths = ['lib'] - s.has_rdoc = true - s.extra_rdoc_files = ['README'] - - s.post_install_message = File.read('UPGRADING') if File.exists?('UPGRADING') + s.post_install_message = File.read('UPGRADING') if File.exist?('UPGRADING') s.add_development_dependency 'rake' s.add_development_dependency 'minitest' Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/base32/version.rb new/lib/base32/version.rb --- old/lib/base32/version.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/base32/version.rb 2020-08-25 04:23:47.000000000 +0200 @@ -0,0 +1,3 @@ +module Base32 + VERSION = '0.3.4' +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/base32.rb new/lib/base32.rb --- old/lib/base32.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/base32.rb 2020-08-25 04:23:47.000000000 +0200 @@ -3,6 +3,11 @@ # Module for encoding and decoding in Base32 per RFC 3548 module Base32 TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'.freeze + @table = TABLE + + class <<self + attr_reader :table + end class Chunk def initialize(bytes) @@ -13,7 +18,11 @@ bytes = @bytes.take_while {|c| c != 61} # strip padding n = (bytes.length * 5.0 / 8.0).floor p = bytes.length < 8 ? 5 - (n * 8) % 5 : 0 - c = bytes.inject(0) {|m,o| (m << 5) + Base32.table.index(o.chr)} >> p + c = bytes.inject(0) do |m,o| + i = Base32.table.index(o.chr) + raise ArgumentError, "invalid character '#{o.chr}'" if i.nil? + (m << 5) + i + end >> p (0..n-1).to_a.reverse.collect {|i| ((c >> i * 8) & 0xff).chr} end @@ -57,10 +66,6 @@ @table = table end - def self.table - @table || TABLE - end - def self.table_valid?(table) table.bytes.to_a.size == 32 && table.bytes.to_a.uniq.size == 32 end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/version.rb new/lib/version.rb --- old/lib/version.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/version.rb 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ -module Base32 - VERSION = '0.3.2' -end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 1970-01-01 01:00:00.000000000 +0100 +++ new/metadata 2020-08-25 04:23:47.000000000 +0200 @@ -1,106 +1,97 @@ --- !ruby/object:Gem::Specification name: base32 version: !ruby/object:Gem::Version - version: 0.3.2 - prerelease: + version: 0.3.4 platform: ruby authors: - Samuel Tesla autorequire: bindir: bin cert_chain: [] -date: 2014-02-18 00:00:00.000000000 Z +date: 2020-08-25 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake requirement: !ruby/object:Gem::Requirement - none: false requirements: - - - ! '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement - none: false requirements: - - - ! '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: minitest requirement: !ruby/object:Gem::Requirement - none: false requirements: - - - ! '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement - none: false requirements: - - - ! '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: gem-release requirement: !ruby/object:Gem::Requirement - none: false requirements: - - - ! '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement - none: false requirements: - - - ! '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' description: email: [email protected] executables: [] extensions: [] -extra_rdoc_files: -- README +extra_rdoc_files: [] files: -- .gitignore -- .travis.yml +- ".gitignore" +- ".travis.yml" - CHANGELOG.md - Gemfile - LICENSE -- README +- README.md - Rakefile - base32.gemspec - config/environment.rb - lib/base32.rb -- lib/version.rb +- lib/base32/version.rb - test/base32_test.rb homepage: -licenses: [] +licenses: +- MIT +metadata: {} post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement - none: false requirements: - - - ! '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement - none: false requirements: - - - ! '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' requirements: [] -rubyforge_project: -rubygems_version: 1.8.23 +rubygems_version: 3.1.2 signing_key: -specification_version: 3 +specification_version: 4 summary: Ruby extension for base32 encoding and decoding test_files: - test/base32_test.rb ++++++ gem2rpm.yml ++++++ # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # :post_patch: # if you need to fiddle with the source dir before rebuilding the gem # ## used by gem2rpm :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '....' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV="no" # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom_pkgs: # apache: # :preamble: |- # Requires: ..... # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # # bar # :post: |- # /bin/echo foo # :preamble: |- # %if 0%{?suse_version} && 0%{?suse_version} < 1330 # %define rb_build_versions ruby24 ruby25 # %define rb_default_ruby_abi ruby:2.4.0 ruby:2.5.0 # %endif # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # :post_patch: # if you need to fiddle with the source dir before rebuilding the gem # ## used by gem2rpm :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '....' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV="no" # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom_pkgs: # apache: # :preamble: |- # Requires: ..... # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # # bar # :post: |- # /bin/echo foo # :preamble: |- # %if 0%{?suse_version} && 0%{?suse_version} < 1330 # %define rb_build_versions ruby24 ruby25 # %define rb_default_ruby_abi ruby:2.4.0 ruby:2.5.0 # %endif
