Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-Ascii85 for openSUSE:Factory
checked in at 2021-01-21 21:55:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-Ascii85 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-Ascii85.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-Ascii85"
Thu Jan 21 21:55:11 2021 rev:2 rq:865166 version:1.1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-Ascii85/rubygem-Ascii85.changes
2020-10-23 16:54:23.861276568 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-Ascii85.new.28504/rubygem-Ascii85.changes
2021-01-21 21:55:15.749790831 +0100
@@ -1,0 +2,12 @@
+Wed Jan 20 11:59:33 UTC 2021 - Stephan Kulow <[email protected]>
+
+updated to version 1.1.0
+ see installed History.txt
+
+ === 1.1.0 / 2020-11-11
+
+ * Make use of frozen_string_literal
+ * Update tests to use newer minitest syntax
+
+
+-------------------------------------------------------------------
Old:
----
Ascii85-1.0.3.gem
New:
----
Ascii85-1.1.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-Ascii85.spec ++++++
--- /var/tmp/diff_new_pack.vkdokI/_old 2021-01-21 21:55:16.433791089 +0100
+++ /var/tmp/diff_new_pack.vkdokI/_new 2021-01-21 21:55:16.437791091 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-Ascii85
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# 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/
#
@@ -24,7 +24,7 @@
#
Name: rubygem-Ascii85
-Version: 1.0.3
+Version: 1.1.0
Release: 0
%define mod_name Ascii85
%define mod_full_name %{mod_name}-%{version}
@@ -33,7 +33,7 @@
BuildRequires: %{ruby}
BuildRequires: ruby-macros >= 5
BuildRequires: update-alternatives
-Url: https://github.com/DataWraith/ascii85gem/
+URL: https://github.com/DataWraith/ascii85gem/
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: Ascii85 encoder/decoder
++++++ Ascii85-1.0.3.gem -> Ascii85-1.1.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 2018-01-25 22:40:33.000000000 +0100
+++ new/.travis.yml 2020-11-12 15:24:13.000000000 +0100
@@ -1,7 +1,30 @@
language: ruby
rvm:
- - 1.8
- 1.9
+ - 2.0
+ - 2.1
+ - 2.2
+ - 2.3
+ - 2.4
- 2.5
+ - 2.6
+ - 2.7
- ruby-head
- jruby
+ - truffleruby
+env:
+ - RUBYOPT="--enable-frozen-string-literal"
+ - RUBYOPT=""
+matrix:
+ exclude:
+ - rvm: 1.9
+ env: RUBYOPT="--enable-frozen-string-literal"
+ - rvm: 2.0
+ env: RUBYOPT="--enable-frozen-string-literal"
+ - rvm: 2.1
+ env: RUBYOPT="--enable-frozen-string-literal"
+ - rvm: 2.2
+ env: RUBYOPT="--enable-frozen-string-literal"
+ # bundler did not support this back then
+ - rvm: 2.3
+ env: RUBYOPT="--enable-frozen-string-literal"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/History.txt new/History.txt
--- old/History.txt 2018-01-25 22:40:33.000000000 +0100
+++ new/History.txt 2020-11-12 15:24:13.000000000 +0100
@@ -1,3 +1,8 @@
+=== 1.1.0 / 2020-11-11
+
+ * Make use of frozen_string_literal
+ * Update tests to use newer minitest syntax
+
=== 1.0.3 / 2018-01-25
* Updated the gem's metadata
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2018-01-25 22:40:33.000000000 +0100
+++ new/README.md 2020-11-12 15:24:13.000000000 +0100
@@ -56,6 +56,13 @@
```
+## Contributors
+
+Thank you for your contribution!
+
+* [@aliismayilov](https://github.com/aliismayilov) contributed frozen String
handling
+
+
## License
Ascii85 is distributed under the MIT License. See the accompanying LICENSE file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/bin/ascii85 new/bin/ascii85
--- old/bin/ascii85 2018-01-25 22:40:33.000000000 +0100
+++ new/bin/ascii85 2020-11-12 15:24:13.000000000 +0100
@@ -51,7 +51,6 @@
else
abort "Superfluous operand(s): \"#{remaining_args.join('", "')}\""
end
-
end
if @options[:file] == '-'
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/Ascii85/version.rb new/lib/Ascii85/version.rb
--- old/lib/Ascii85/version.rb 2018-01-25 22:40:33.000000000 +0100
+++ new/lib/Ascii85/version.rb 2020-11-12 15:24:13.000000000 +0100
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Ascii85
- VERSION = "1.0.3"
+ VERSION = "1.1.0"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/ascii85.rb new/lib/ascii85.rb
--- old/lib/ascii85.rb 2018-01-25 22:40:33.000000000 +0100
+++ new/lib/ascii85.rb 2020-11-12 15:24:13.000000000 +0100
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: true
#
@@ -15,7 +16,6 @@
module Ascii85
-
#
# Encodes the bytes of the given String as Ascii85.
#
@@ -37,7 +37,6 @@
#
#
def self.encode(str, wrap_lines = 80)
-
to_encode = str.to_s
return '' if to_encode.empty?
@@ -59,7 +58,7 @@
if tuple == 0
'z'
else
- tmp = ""
+ tmp = String.new
5.times do
tmp << ((tuple % 85) + 33).chr
tuple /= 85
@@ -82,7 +81,6 @@
end
# Otherwise we wrap the lines
-
line_length = [2, wrap_lines.to_i].max
wrapped = []
@@ -122,7 +120,6 @@
# encountered.
#
def self.decode(str)
-
input = str.to_s
opening_delim = '<~'
@@ -134,9 +131,9 @@
# errors if an especially exotic input encoding is introduced.
# As of Ruby??1.9.2 all non-dummy encodings work fine though.
#
- if opening_delim.respond_to?(:encode!)
- opening_delim.encode!(input.encoding)
- closing_delim.encode!(input.encoding)
+ if opening_delim.respond_to?(:encode)
+ opening_delim = opening_delim.encode(input.encoding)
+ closing_delim = closing_delim.encode(input.encoding)
end
# Get the positions of the opening/closing delimiters. If there is
@@ -153,7 +150,6 @@
result = []
input.each_byte do |c|
-
case c.chr
when " ", "\t", "\r", "\n", "\f", "\0"
# Ignore whitespace
@@ -189,7 +185,6 @@
raise(Ascii85::DecodingError,
"Illegal character inside Ascii85: #{c.chr.dump}")
end
-
end
# Convert result into a String
@@ -225,5 +220,4 @@
# at least two characters.
#
class DecodingError < StandardError; end
-
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2018-01-25 22:40:33.000000000 +0100
+++ new/metadata 2020-11-12 15:24:13.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: Ascii85
version: !ruby/object:Gem::Version
- version: 1.0.3
+ version: 1.1.0
platform: ruby
authors:
- Johannes Holzfu??
autorequire:
bindir: bin
cert_chain: []
-date: 2018-01-25 00:00:00.000000000 Z
+date: 2020-11-12 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: bundler
@@ -92,8 +92,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubyforge_project:
-rubygems_version: 2.6.13
+rubygems_version: 3.1.4
signing_key:
specification_version: 4
summary: Ascii85 encoder/decoder
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spec/lib/ascii85_spec.rb new/spec/lib/ascii85_spec.rb
--- old/spec/lib/ascii85_spec.rb 2018-01-25 22:40:33.000000000 +0100
+++ new/spec/lib/ascii85_spec.rb 2020-11-12 15:24:13.000000000 +0100
@@ -7,11 +7,9 @@
require File.expand_path('../../../lib/ascii85', __FILE__)
describe Ascii85 do
-
UNSUPPORTED_MSG = "This version of Ruby does not support encodings"
TEST_CASES = {
-
"" => "",
" " => "<~+9~>",
@@ -44,9 +42,8 @@
}
it "#decode should be the inverse of #encode" do
-
# Generate a random string
- test_str = ""
+ test_str = String.new
(1 + rand(255)).times do
test_str << rand(256).chr
end
@@ -54,14 +51,13 @@
encoded = Ascii85.encode(test_str)
decoded = Ascii85.decode(encoded)
- decoded.must_equal test_str
+ assert_equal decoded, test_str
end
describe "#encode" do
-
it "should encode all specified test-cases correctly" do
TEST_CASES.each_pair do |input, encoded|
- Ascii85.encode(input).must_equal encoded
+ assert_equal Ascii85.encode(input), encoded
end
end
@@ -73,7 +69,7 @@
input_EUC_JP =
'????????????????????????????????????????????????'.encode('EUC-JP')
input_binary = input_EUC_JP.force_encoding('ASCII-8BIT')
- Ascii85.encode(input_EUC_JP).must_equal Ascii85.encode(input_binary)
+ assert_equal Ascii85.encode(input_EUC_JP), Ascii85.encode(input_binary)
end
it "should produce output lines no longer than specified" do
@@ -82,7 +78,7 @@
#
# No wrap
#
- Ascii85.encode(test_str, false).count("\n").must_equal 0
+ assert_equal Ascii85.encode(test_str, false).count("\n"), 0
#
# x characters per line, except for the last one
@@ -107,23 +103,21 @@
count_arr.delete_if { |len| len == x }
# Now count_arr should be empty
- count_arr.must_be_empty
+ assert_empty count_arr
end
it "should not split the end-marker to achieve correct line length" do
- Ascii85.encode("\0" * 4, 4).must_equal "<~z\n~>"
+ assert_equal Ascii85.encode("\0" * 4, 4), "<~z\n~>"
end
-
end
describe "#decode" do
-
it "should decode all specified test-cases correctly" do
TEST_CASES.each_pair do |decoded, input|
if String.new.respond_to?(:encoding)
- Ascii85.decode(input).must_equal
decoded.dup.force_encoding('ASCII-8BIT')
+ assert_equal Ascii85.decode(input),
decoded.dup.force_encoding('ASCII-8BIT')
else
- Ascii85.decode(input).must_equal decoded
+ assert_equal Ascii85.decode(input), decoded
end
end
end
@@ -149,7 +143,7 @@
begin
to_test = input_ascii85.encode(encoding)
- Ascii85.decode(to_test).force_encoding('UTF-8').must_equal input
+ assert_equal Ascii85.decode(to_test).force_encoding('UTF-8'), input
rescue Encoding::ConverterNotFoundError
# Ignore this encoding
end
@@ -157,19 +151,19 @@
end
it "should only process data within delimiters" do
- Ascii85.decode("<~~>").must_be_empty
- Ascii85.decode("Doesn't contain delimiters").must_be_empty
- Ascii85.decode("Mismatched ~> delimiters 1").must_be_empty
- Ascii85.decode("Mismatched <~ delimiters 2").must_be_empty
- Ascii85.decode("Mismatched ~><~ delimiters 3").must_be_empty
+ assert_empty Ascii85.decode("<~~>")
+ assert_empty Ascii85.decode("Doesn't contain delimiters")
+ assert_empty Ascii85.decode("Mismatched ~> delimiters 1")
+ assert_empty Ascii85.decode("Mismatched <~ delimiters 2")
+ assert_empty Ascii85.decode("Mismatched ~><~ delimiters 3")
- Ascii85.decode("<~;KZGo~><~z~>").must_equal "Ruby"
- Ascii85.decode("FooBar<~z~>BazQux").must_equal "\0\0\0\0"
+ assert_equal Ascii85.decode("<~;KZGo~><~z~>"), "Ruby"
+ assert_equal Ascii85.decode("FooBar<~z~>BazQux"), "\0\0\0\0"
end
it "should ignore whitespace" do
decoded = Ascii85.decode("<~6 #LdYA\r\08\n \n\n- *rF*(i\"Ch[s
\t(D.RU,@ <-\'jDJ=0\f/~>")
- decoded.must_equal 'Antidisestablishmentarianism'
+ assert_equal decoded, 'Antidisestablishmentarianism'
end
it "should return ASCII-8BIT encoded strings" do
@@ -177,29 +171,25 @@
skip(UNSUPPORTED_MSG)
end
- Ascii85.decode("<~;KZGo~>").encoding.name.must_equal "ASCII-8BIT"
+ assert_equal Ascii85.decode("<~;KZGo~>").encoding.name, "ASCII-8BIT"
end
describe "Error conditions" do
-
it "should raise DecodingError if it encounters a word >= 2**32" do
- lambda { Ascii85.decode('<~s8W-#~>')
}.must_raise(Ascii85::DecodingError)
+ assert_raises(Ascii85::DecodingError) { Ascii85.decode('<~s8W-#~>') }
end
it "should raise DecodingError if it encounters an invalid character" do
- lambda { Ascii85.decode('<~!!y!!~>')
}.must_raise(Ascii85::DecodingError)
+ assert_raises(Ascii85::DecodingError) { Ascii85.decode('<~!!y!!~>') }
end
it "should raise DecodingError if the last tuple consists of a single
character" do
- lambda { Ascii85.decode('<~!~>') }.must_raise(Ascii85::DecodingError)
+ assert_raises(Ascii85::DecodingError) { Ascii85.decode('<~!~>') }
end
it "should raise DecodingError if a z is found inside a 5-tuple" do
- lambda { Ascii85.decode('<~!!z!!~>') }.must_raise
Ascii85::DecodingError
+ assert_raises(Ascii85::DecodingError) { Ascii85.decode('<~!!z!!~>') }
end
-
end
-
end
-
end