commit rubygem-rspec-support for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2020-01-30 09:35:00 Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.26092 (New) Package is "rubygem-rspec-support" Thu Jan 30 09:35:00 2020 rev:12 rq:767647 version:3.9.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2019-12-28 13:40:13.098923883 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.26092/rubygem-rspec-support.changes 2020-01-30 09:35:13.641291880 +0100 @@ -1,0 +2,7 @@ +Mon Jan 27 11:01:58 UTC 2020 - Manuel Schnitzer + +- updated to version 3.9.2 + + * Remove unneeded eval. (Matijs van Zuijlen, #394) + +--- Old: rspec-support-3.9.0.gem New: rspec-support-3.9.2.gem Other differences: -- ++ rubygem-rspec-support.spec ++ --- /var/tmp/diff_new_pack.gRmG7F/_old 2020-01-30 09:35:14.441292308 +0100 +++ /var/tmp/diff_new_pack.gRmG7F/_new 2020-01-30 09:35:14.445292309 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rspec-support # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-rspec-support -Version:3.9.0 +Version:3.9.2 Release:0 %define mod_name rspec-support %define mod_full_name %{mod_name}-%{version} ++ rspec-support-3.9.0.gem -> rspec-support-3.9.2.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md2019-10-07 23:34:56.0 +0200 +++ new/Changelog.md2019-12-30 11:45:17.0 +0100 @@ -1,10 +1,27 @@ +### 3.9.2 / 2019-12-30 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.1...v3.9.2) + +Bug Fixes: + +* Remove unneeded eval. (Matijs van Zuijlen, #394) + +### 3.9.1 / 2019-12-28 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.0...v3.9.1) + +Bug Fixes: + +* Remove warning caused by keyword arguments on Ruby 2.7.0. + (Jon Rowe, #392) + ### 3.9.0 / 2019-10-07 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.3...v3.9.0) *NO CHANGES* Version 3.9.0 was released to allow other RSpec gems to release 3.9.0. ### 3.8.3 / 2019-10-02 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.2...v3.8.3) Bug Fixes: Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/encoded_string.rb new/lib/rspec/support/encoded_string.rb --- old/lib/rspec/support/encoded_string.rb 2019-10-07 23:34:56.0 +0200 +++ new/lib/rspec/support/encoded_string.rb 2019-12-30 11:45:17.0 +0100 @@ -5,31 +5,11 @@ # Reduce allocations by storing constants. UTF_8= "UTF-8" US_ASCII = "US-ASCII" - # - # In MRI 2.1 'invalid: :replace' changed to also replace an invalid byte sequence - # see https://github.com/ruby/ruby/blob/v2_1_0/NEWS#L176 - # https://www.ruby-forum.com/topic/6861247 - # https://twitter.com/nalsh/status/553413844685438976 - # - # For example, given: - # "\x80".force_encoding("Emacs-Mule").encode(:invalid => :replace).bytes.to_a - # - # On MRI 2.1 or above: 63 # '?' - # else : 128 # "\x80" - # + # Ruby's default replacement string is: # U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else # ? ("\x3F") REPLACE = "?" - ENCODE_UNCONVERTABLE_BYTES = { -:invalid => :replace, -:undef => :replace, -:replace => REPLACE - } - ENCODE_NO_CONVERTER = { -:invalid => :replace, -:replace => REPLACE - } def initialize(string, encoding=nil) @encoding = encoding @@ -112,9 +92,25 @@ string = remove_invalid_bytes(string) string.encode(@encoding) rescue Encoding::UndefinedConversionError, Encoding::InvalidByteSequenceError - string.encode(@encoding, ENCODE_UNCONVERTABLE_BYTES) + # Originally defined as a constant to avoid uneeded allocations, this hash must + # be defined i
commit rubygem-rspec-support for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2015-12-01 10:02:31 Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new (New) Package is "rubygem-rspec-support" Changes: --- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2015-06-15 17:45:36.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new/rubygem-rspec-support.changes 2015-12-01 10:02:33.0 +0100 @@ -1,0 +2,38 @@ +Mon Nov 23 05:31:27 UTC 2015 - co...@suse.com + +- updated to version 3.4.1 + see installed Changelog.md + + ### 3.4.1 / 2015-11-20 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.4.0...v3.4.1) + + Bug Fixes: + + * Fix `RSpec::Support::RubyFeature.ripper_supported?` so it returns +`false` on Rubinius since the Rubinius team has no plans to support +it. This prevents rspec-core from trying to load and use ripper to +extract failure snippets. (Aaron Stone, #251) + +--- +Fri Nov 13 05:39:32 UTC 2015 - co...@suse.com + +- updated to version 3.4.0 + see installed Changelog.md + + ### 3.4.0 / 2015-11-11 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.3.0...v3.4.0) + + Enhancements: + + * Improve formatting of `Delegator` based objects (e.g. `SimpleDelgator`) in +failure messages and diffs. (Andrew Horner, #215) + * Add `ComparableVersion`. (Yuji Nakayama, #245) + * Add `Ripper` support detection. (Yuji Nakayama, #245) + + Bug Fixes: + + * Work around bug in JRuby that reports that `attr_writer` methods +have no parameters, causing RSpec's verifying doubles to wrongly +fail when mocking or stubbing a writer method on JRuby. (Myron Marston, #225) + +--- Old: rspec-support-3.3.0.gem New: rspec-support-3.4.1.gem Other differences: -- ++ rubygem-rspec-support.spec ++ --- /var/tmp/diff_new_pack.y0IgR2/_old 2015-12-01 10:02:33.0 +0100 +++ /var/tmp/diff_new_pack.y0IgR2/_new 2015-12-01 10:02:33.0 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rspec-support -Version:3.3.0 +Version:3.4.1 Release:0 %define mod_name rspec-support %define mod_full_name %{mod_name}-%{version} @@ -49,7 +49,7 @@ %install %gem_install \ - --doc-files="Changelog.md LICENSE.txt README.md" \ + --doc-files="Changelog.md LICENSE.md README.md" \ -f %gem_packages ++ rspec-support-3.3.0.gem -> rspec-support-3.4.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md2015-06-12 17:05:41.0 +0200 +++ new/Changelog.md2015-11-20 17:49:33.0 +0100 @@ -1,3 +1,29 @@ +### 3.4.1 / 2015-11-20 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.4.0...v3.4.1) + +Bug Fixes: + +* Fix `RSpec::Support::RubyFeature.ripper_supported?` so it returns + `false` on Rubinius since the Rubinius team has no plans to support + it. This prevents rspec-core from trying to load and use ripper to + extract failure snippets. (Aaron Stone, #251) + +### 3.4.0 / 2015-11-11 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.3.0...v3.4.0) + +Enhancements: + +* Improve formatting of `Delegator` based objects (e.g. `SimpleDelgator`) in + failure messages and diffs. (Andrew Horner, #215) +* Add `ComparableVersion`. (Yuji Nakayama, #245) +* Add `Ripper` support detection. (Yuji Nakayama, #245) + +Bug Fixes: + +* Work around bug in JRuby that reports that `attr_writer` methods + have no parameters, causing RSpec's verifying doubles to wrongly + fail when mocking or stubbing a writer method on JRuby. (Myron Marston, #225) + ### 3.3.0 / 2015-06-12 [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.2...v3.3.0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE.md new/LICENSE.md --- old/LICENSE.md 1970-01-01 01:00:00.0 +0100 +++ new/LICENSE.md 2015-11-20 17:49:33.0 +0100 @@ -0,0 +1,23 @@ +The MIT License (MIT) + + +* Copyright © 2013 David Chelimsky, Myron Marston, Jon Rowe, Sam Phippen, Xavier Shay, Bradley Schaefer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute
commit rubygem-rspec-support for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2015-06-15 17:45:34 Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new (New) Package is "rubygem-rspec-support" Changes: --- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2015-03-01 14:57:46.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new/rubygem-rspec-support.changes 2015-06-15 17:45:36.0 +0200 @@ -1,0 +2,25 @@ +Sat Jun 13 04:35:37 UTC 2015 - co...@suse.com + +- updated to version 3.3.0 + see installed Changelog.md + + ### 3.3.0 / 2015-06-12 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.2...v3.3.0) + + Enhancements: + + * Improve formatting of arrays and hashes in failure messages so they +use our custom formatting of matchers, time objects, etc. +(Myron Marston, Nicholas Chmielewski, #205) + * Use improved formatting for diffs as well. (Nicholas Chmielewski, #205) + + Bug Fixes: + + * Fix `FuzzyMatcher` so that it checks `expected == actual` rather than +`actual == expected`, which avoids errors in situations where the +`actual` object's `==` is improperly implemented to assume that only +objects of the same type will be given. This allows rspec-mocks' +`anything` to match against objects with buggy `==` definitions. +(Myron Marston, #193) + +--- Old: rspec-support-3.2.2.gem New: rspec-support-3.3.0.gem Other differences: -- ++ rubygem-rspec-support.spec ++ --- /var/tmp/diff_new_pack.DnFWDS/_old 2015-06-15 17:45:37.0 +0200 +++ /var/tmp/diff_new_pack.DnFWDS/_new 2015-06-15 17:45:37.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rspec-support -Version:3.2.2 +Version:3.3.0 Release:0 %define mod_name rspec-support %define mod_full_name %{mod_name}-%{version} ++ rspec-support-3.2.2.gem -> rspec-support-3.3.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md2015-02-24 04:35:55.0 +0100 +++ new/Changelog.md2015-06-12 17:05:41.0 +0200 @@ -1,4 +1,24 @@ +### 3.3.0 / 2015-06-12 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.2...v3.3.0) + +Enhancements: + +* Improve formatting of arrays and hashes in failure messages so they + use our custom formatting of matchers, time objects, etc. + (Myron Marston, Nicholas Chmielewski, #205) +* Use improved formatting for diffs as well. (Nicholas Chmielewski, #205) + +Bug Fixes: + +* Fix `FuzzyMatcher` so that it checks `expected == actual` rather than + `actual == expected`, which avoids errors in situations where the + `actual` object's `==` is improperly implemented to assume that only + objects of the same type will be given. This allows rspec-mocks' + `anything` to match against objects with buggy `==` definitions. + (Myron Marston, #193) + ### 3.2.2 / 2015-02-23 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.1...v3.2.2) Bug Fixes: Files old/checksums.yaml.gz and new/checksums.yaml.gz differ Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/differ.rb new/lib/rspec/support/differ.rb --- old/lib/rspec/support/differ.rb 2015-02-24 04:35:55.0 +0100 +++ new/lib/rspec/support/differ.rb 2015-06-12 17:05:41.0 +0200 @@ -1,5 +1,6 @@ RSpec::Support.require_rspec_support 'encoded_string' RSpec::Support.require_rspec_support 'hunk_generator' +RSpec::Support.require_rspec_support "object_formatter" require 'pp' @@ -25,7 +26,7 @@ # rubocop:disable MethodLength def diff_as_string(actual, expected) -encoding = pick_encoding(actual, expected) +encoding = EncodedString.pick_encoding(actual, expected) actual = EncodedString.new(actual, encoding) expected = EncodedString.new(expected, encoding) @@ -59,8 +60,9 @@ diff_as_string(actual_as_string, expected_as_string) end - attr_reader :color - alias_method :color?, :color + def color? +@color + end def initialize(opts={}) @color = opts.fetch(:color, false) @@ -177,12 +179,9 @@ object = @object_preparer.call(object) case object when Hash - object.keys.sort_by { |k| k.to_s }.map
commit rubygem-rspec-support for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2020-05-11 13:32:07 Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.2738 (New) Package is "rubygem-rspec-support" Mon May 11 13:32:07 2020 rev:13 rq:802374 version:3.9.3 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2020-01-30 09:35:13.641291880 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.2738/rubygem-rspec-support.changes 2020-05-11 13:34:41.124278863 +0200 @@ -1,0 +2,16 @@ +Thu May 7 21:26:01 UTC 2020 - Stephan Kulow + +- updated to version 3.9.3 + see installed Changelog.md + + ### 3.9.3 / 2020-05-02 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.2...v3.9.3) + + Bug Fixes: + + * Mark ripper as unsupported on Truffle Ruby. (Brandon Fish, #395) + * Mark ripper as unsupported on JRuby 9.2.0.0. (Brian Hawley, #400) + * Capture `Mutex.new` for our `RSpec::Support:Mutex` in order to +allow stubbing `Mutex.new`. (Jon Rowe, #411) + +--- Old: rspec-support-3.9.2.gem New: rspec-support-3.9.3.gem Other differences: -- ++ rubygem-rspec-support.spec ++ --- /var/tmp/diff_new_pack.E0dBfQ/_old 2020-05-11 13:34:42.276281278 +0200 +++ /var/tmp/diff_new_pack.E0dBfQ/_new 2020-05-11 13:34:42.276281278 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rspec-support # -# Copyright (c) 2020 SUSE LINUX 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 @@ -24,7 +24,7 @@ # Name: rubygem-rspec-support -Version:3.9.2 +Version:3.9.3 Release:0 %define mod_name rspec-support %define mod_full_name %{mod_name}-%{version} @@ -33,7 +33,7 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: %{rubygem rdoc > 3.10} BuildRequires: ruby-macros >= 5 -Url:https://github.com/rspec/rspec-support +URL:https://github.com/rspec/rspec-support Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Common code needed by the other RSpec gems ++ rspec-support-3.9.2.gem -> rspec-support-3.9.3.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md2019-12-30 11:45:17.0 +0100 +++ new/Changelog.md2020-05-02 22:54:23.0 +0200 @@ -1,3 +1,13 @@ +### 3.9.3 / 2020-05-02 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.2...v3.9.3) + +Bug Fixes: + +* Mark ripper as unsupported on Truffle Ruby. (Brandon Fish, #395) +* Mark ripper as unsupported on JRuby 9.2.0.0. (Brian Hawley, #400) +* Capture `Mutex.new` for our `RSpec::Support:Mutex` in order to + allow stubbing `Mutex.new`. (Jon Rowe, #411) + ### 3.9.2 / 2019-12-30 [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.1...v3.9.2) Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/reentrant_mutex.rb new/lib/rspec/support/reentrant_mutex.rb --- old/lib/rspec/support/reentrant_mutex.rb2019-12-30 11:45:17.0 +0100 +++ new/lib/rspec/support/reentrant_mutex.rb2020-05-02 22:54:23.0 +0200 @@ -43,7 +43,15 @@ if defined? ::Mutex # On 1.9 and up, this is in core, so we just use the real one - Mutex = ::Mutex + class Mutex < ::Mutex +# If you mock Mutex.new you break our usage of Mutex, so +# instead we capture the original method to return Mutexs. +NEW_MUTEX_METHOD = Mutex.method(:new) + +def self.new + NEW_MUTEX_METHOD.call +end + end else # For 1.8.7 # :nocov: RSpec::Support.require_rspec_support "mutex" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/ruby_features.rb new/lib/rspec/support/ruby_features.rb --- old/lib/rspec/support/ruby_features.rb 2019-12-30 11:45:17.0 +0100 +++ new/lib/rspec/support/ruby_features.rb 2020-05-02 22:54:23.0 +0200 @@ -47,6 +47,10 @@ def mri? !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' end + +
commit rubygem-rspec-support for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2015-03-01 14:57:45 Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new (New) Package is "rubygem-rspec-support" Changes: --- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2015-02-08 13:03:35.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new/rubygem-rspec-support.changes 2015-03-01 14:57:46.0 +0100 @@ -1,0 +2,9 @@ +Thu Feb 26 05:34:24 UTC 2015 - co...@suse.com + +- updated to version 3.2.2 + Bug Fixes: + + * Fix an encoding issue with `EncodedString#split` when encountering an + invalid byte string. (Benjamin Fleischer, #1760) + +--- Old: rspec-support-3.2.1.gem New: rspec-support-3.2.2.gem Other differences: -- ++ rubygem-rspec-support.spec ++ --- /var/tmp/diff_new_pack.0Rltqm/_old 2015-03-01 14:57:47.0 +0100 +++ /var/tmp/diff_new_pack.0Rltqm/_new 2015-03-01 14:57:47.0 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rspec-support -Version:3.2.1 +Version:3.2.2 Release:0 %define mod_name rspec-support %define mod_full_name %{mod_name}-%{version} ++ rspec-support-3.2.1.gem -> rspec-support-3.2.2.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md2015-02-04 23:48:43.0 +0100 +++ new/Changelog.md2015-02-24 04:35:55.0 +0100 @@ -1,3 +1,10 @@ +### 3.2.2 / 2015-02-23 + +Bug Fixes: + +* Fix an encoding issue with `EncodedString#split` when encountering an + invalid byte string. (Benjamin Fleischer, #1760) + ### 3.2.1 / 2015-02-04 [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.0...v3.2.1) Files old/checksums.yaml.gz and new/checksums.yaml.gz differ Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/encoded_string.rb new/lib/rspec/support/encoded_string.rb --- old/lib/rspec/support/encoded_string.rb 2015-02-04 23:48:43.0 +0100 +++ new/lib/rspec/support/encoded_string.rb 2015-02-24 04:35:55.0 +0100 @@ -3,16 +3,32 @@ # @private class EncodedString # Reduce allocations by storing constants. - UTF_8 = "UTF-8" - US_ASCII = 'US-ASCII' - # else: '?' 63.chr ("\x3F") + UTF_8= "UTF-8" + US_ASCII = "US-ASCII" + # + # In MRI 2.1 'invalid: :replace' changed to also replace an invalid byte sequence + # see https://github.com/ruby/ruby/blob/v2_1_0/NEWS#L176 + # https://www.ruby-forum.com/topic/6861247 + # https://twitter.com/nalsh/status/553413844685438976 + # + # For example, given: + # "\x80".force_encoding("Emacs-Mule").encode(:invalid => :replace).bytes.to_a + # + # On MRI 2.1 or above: 63 # '?' + # else : 128 # "\x80" + # + # Ruby's default replacement string is: + # U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else + # ? ("\x3F") REPLACE = "?" ENCODE_UNCONVERTABLE_BYTES = { :invalid => :replace, -:undef => :replace +:undef => :replace, +:replace => REPLACE } ENCODE_NO_CONVERTER = { :invalid => :replace, +:replace => REPLACE } def initialize(string, encoding=nil) @@ -54,7 +70,7 @@ # vs "\x80".encode('UTF-8','ASCII-8BIT', undef: :replace, replace: '') # # => '' # Encoding::CompatibilityError -#when Enconding.compatbile?(str1, str2) is false +# when Encoding.compatibile?(str1, str2) is nil # e.g. utf_16le_emoji_string.split("\n") # e.g. valid_unicode_string.encode(utf8_encoding) << ascii_string # Encoding::InvalidByteSequenceError: @@ -64,13 +80,13 @@ # vs "\x80".encode('UTF-8','US-ASCII', invalid: :replace, replace: '') # # => '' # ArgumentError -#when operating on a string with invalid bytes -# e.g."\xEF".split("\n") +# when operating on a string with invalid bytes +# e.g."\x80".split("\n") # TypeError -#when a symbol is passed as an encoding -#Encoding.find(:"utf-8") -#when calling force_encoding on an object -#that doesn'
commit rubygem-rspec-support for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2016-07-16 22:11:08 Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new (New) Package is "rubygem-rspec-support" Changes: --- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2015-12-01 10:02:33.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new/rubygem-rspec-support.changes 2016-07-16 22:11:09.0 +0200 @@ -1,0 +2,43 @@ +Sat Jul 2 05:30:48 UTC 2016 - co...@suse.com + +- updated to version 3.5.0 + see installed Changelog.md + + ### 3.5.0 / 2016-07-01 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta4...v3.5.0) + + **No user facing changes since beat4** + + ### 3.5.0.beta4 / 2016-06-05 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta3...v3.5.0.beta4) + + Enhancements: + * Improve `MethodSignature` to better support keyword arguments. (#250, Rob Smith). + + ### 3.5.0.beta3 / 2016-04-02 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta2...v3.5.0.beta3) + + Bug Fixes: + + * Fix `EncodedString` to properly handle the behavior of `String#split` +on JRuby when the string contains invalid bytes. (Jon Rowe, #268) + * Fix `ObjectFormatter` so that formatting objects that don't respond to +`#inspect` (such as `BasicObject`) does not cause `NoMethodError`. +(Yuji Nakayama, #269) + * Fix `ObjectFormatter` so that formatting recursive array or hash does not +cause `SystemStackError`. (Yuji Nakayama, #270, #272) + + ### 3.5.0.beta2 / 2016-03-10 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta1...v3.5.0.beta2) + + No user-facing changes. + + ### 3.5.0.beta1 / 2016-02-06 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.4.1...v3.5.0.beta1) + + Enhancements: + + * Improve formatting of objects by allowing truncation to a pre-configured length. +(Liam M, #256) + +--- Old: rspec-support-3.4.1.gem New: rspec-support-3.5.0.gem Other differences: -- ++ rubygem-rspec-support.spec ++ --- /var/tmp/diff_new_pack.NYTE6Y/_old 2016-07-16 22:11:11.0 +0200 +++ /var/tmp/diff_new_pack.NYTE6Y/_new 2016-07-16 22:11:11.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rspec-support # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-rspec-support -Version:3.4.1 +Version:3.5.0 Release:0 %define mod_name rspec-support %define mod_full_name %{mod_name}-%{version} ++ rspec-support-3.4.1.gem -> rspec-support-3.5.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md2015-11-20 17:49:33.0 +0100 +++ new/Changelog.md2016-07-01 17:48:07.0 +0200 @@ -1,3 +1,40 @@ +### 3.5.0 / 2016-07-01 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta4...v3.5.0) + +**No user facing changes since beat4** + +### 3.5.0.beta4 / 2016-06-05 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta3...v3.5.0.beta4) + +Enhancements: +* Improve `MethodSignature` to better support keyword arguments. (#250, Rob Smith). + +### 3.5.0.beta3 / 2016-04-02 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta2...v3.5.0.beta3) + +Bug Fixes: + +* Fix `EncodedString` to properly handle the behavior of `String#split` + on JRuby when the string contains invalid bytes. (Jon Rowe, #268) +* Fix `ObjectFormatter` so that formatting objects that don't respond to + `#inspect` (such as `BasicObject`) does not cause `NoMethodError`. + (Yuji Nakayama, #269) +* Fix `ObjectFormatter` so that formatting recursive array or hash does not + cause `SystemStackError`. (Yuji Nakayama, #270, #272) + +### 3.5.0.beta2 / 2016-03-10 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta1...v3.5.0.beta2) + +No user-facing changes. + +### 3.5.0.beta1 / 2016-02-06 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.4.1...v3.5.0.beta1) + +Enhancements: + +* Improve formatting of objects by allowing truncation to a pre-configured length. + (Liam M, #256) + ### 3.4.1 / 2015-11
commit rubygem-rspec-support for openSUSE:Factory
binHwvF2UrWsv.bin Description: Binary data
commit rubygem-rspec-support for openSUSE:Factory
bincHmmhQhPjb.bin Description: Binary data
commit rubygem-rspec-support for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2019-07-22 12:16:33 Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.4126 (New) Package is "rubygem-rspec-support" Mon Jul 22 12:16:33 2019 rev:10 rq:714004 version:3.8.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2018-11-01 18:51:34.277947199 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.4126/rubygem-rspec-support.changes 2019-07-22 12:16:34.659725068 +0200 @@ -1,0 +2,24 @@ +Mon Jul 8 08:18:52 UTC 2019 - Manuel Schnitzer + +- updated to version 3.8.2 + + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.1...v3.8.2) + + Bug Fixes: + + * Ensure that optional hash arguments are recognised correctly vs keyword +arguments. (Evgeni Dzhelyov, #366) + * Ensure that an empty hash is recognised as empty keyword arguments when +applicable. (Thomas Walpole, #375) + * Ensure that diffing truthy values produce diffs consistently. +(Lucas Nestor, #377) + + ### 3.8.1 / 2019-03-03 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.0...v3.8.1) + + Bug Fixes: + + * Ensure that inspecting a `SimpleDelegator` based object works regardless of +visibilty of the `__getobj__` method. (Jon Rowe, #369) + +--- Old: rspec-support-3.8.0.gem New: rspec-support-3.8.2.gem Other differences: -- ++ rubygem-rspec-support.spec ++ --- /var/tmp/diff_new_pack.ZLVmGc/_old 2019-07-22 12:16:36.111724673 +0200 +++ /var/tmp/diff_new_pack.ZLVmGc/_new 2019-07-22 12:16:36.119724671 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rspec-support # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # 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-rspec-support -Version:3.8.0 +Version:3.8.2 Release:0 %define mod_name rspec-support %define mod_full_name %{mod_name}-%{version} ++ rspec-support-3.8.0.gem -> rspec-support-3.8.2.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md2018-08-04 21:48:57.0 +0200 +++ new/Changelog.md2019-06-10 22:04:21.0 +0200 @@ -1,3 +1,23 @@ +### 3.8.2 / 2019-06-10 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.1...v3.8.2) + +Bug Fixes: + +* Ensure that optional hash arguments are recognised correctly vs keyword + arguments. (Evgeni Dzhelyov, #366) +* Ensure that an empty hash is recognised as empty keyword arguments when + applicable. (Thomas Walpole, #375) +* Ensure that diffing truthy values produce diffs consistently. + (Lucas Nestor, #377) + +### 3.8.1 / 2019-03-03 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.0...v3.8.1) + +Bug Fixes: + +* Ensure that inspecting a `SimpleDelegator` based object works regardless of + visibilty of the `__getobj__` method. (Jon Rowe, #369) + ### 3.8.0 / 2018-08-04 [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.1...v3.8.0) Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/differ.rb new/lib/rspec/support/differ.rb --- old/lib/rspec/support/differ.rb 2018-08-04 21:48:57.0 +0200 +++ new/lib/rspec/support/differ.rb 2019-06-10 22:04:21.0 +0200 @@ -11,7 +11,7 @@ def diff(actual, expected) diff = "" -if actual && expected +unless actual.nil? || expected.nil? if all_strings?(actual, expected) if any_multiline_strings?(actual, expected) diff = diff_as_string(coerce_to_string(actual), coerce_to_string(expected)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/method_signature_verifier.rb
commit rubygem-rspec-support for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2017-05-27 13:11:43 Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new (New) Package is "rubygem-rspec-support" Sat May 27 13:11:43 2017 rev:6 rq:497703 version:3.6.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2016-07-16 22:11:09.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new/rubygem-rspec-support.changes 2017-05-27 13:11:50.050904099 +0200 @@ -1,0 +2,25 @@ +Tue May 23 10:18:18 UTC 2017 - co...@suse.com + +- updated to version 3.6.0 + see installed Changelog.md + + ### 3.6.0 / 2017-05-04 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta2...3.6.0) + + Enhancements: + + * Import `Source` classes from rspec-core. (Yuji Nakayama, #315) + + ### 3.6.0.beta2 / 2016-12-12 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta1...v3.6.0.beta2) + + No user-facing changes. + + ### 3.6.0.beta1 / 2016-10-09 + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0...v3.6.0.beta1) + + Bug Fixes: + + * Prevent truncated formatted object output from mangling console codes. (#294, Anson Kelly) + +--- Old: rspec-support-3.5.0.gem New: rspec-support-3.6.0.gem Other differences: -- ++ rubygem-rspec-support.spec ++ --- /var/tmp/diff_new_pack.gTfRY7/_old 2017-05-27 13:11:50.494841335 +0200 +++ /var/tmp/diff_new_pack.gTfRY7/_new 2017-05-27 13:11:50.498840769 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rspec-support # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-rspec-support -Version:3.5.0 +Version:3.6.0 Release:0 %define mod_name rspec-support %define mod_full_name %{mod_name}-%{version} ++ rspec-support-3.5.0.gem -> rspec-support-3.6.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md2016-07-01 17:48:07.0 +0200 +++ new/Changelog.md2017-05-05 01:59:55.0 +0200 @@ -1,7 +1,26 @@ +### 3.6.0 / 2017-05-04 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta2...3.6.0) + +Enhancements: + +* Import `Source` classes from rspec-core. (Yuji Nakayama, #315) + +### 3.6.0.beta2 / 2016-12-12 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta1...v3.6.0.beta2) + +No user-facing changes. + +### 3.6.0.beta1 / 2016-10-09 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0...v3.6.0.beta1) + +Bug Fixes: + +* Prevent truncated formatted object output from mangling console codes. (#294, Anson Kelly) + ### 3.5.0 / 2016-07-01 [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta4...v3.5.0) -**No user facing changes since beat4** +**No user facing changes since beta4** ### 3.5.0.beta4 / 2016-06-05 [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta3...v3.5.0.beta4) Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/object_formatter.rb new/lib/rspec/support/object_formatter.rb --- old/lib/rspec/support/object_formatter.rb 2016-07-01 17:48:07.0 +0200 +++ new/lib/rspec/support/object_formatter.rb 2017-05-05 01:59:55.0 +0200 @@ -37,8 +37,8 @@ if formatted_object.length < max_formatted_output_length return formatted_object else -beginning = formatted_object[0 .. max_formatted_output_length / 2] -ending = formatted_object[-max_formatted_output_length / 2 ..-1] +beginning = truncate_string formatted_object, 0, max_formatted_output_length / 2 +ending = truncate_string formatted_object, -max_formatted_output_length / 2, -1 return beginning + ELLIPSIS + ending end end @@ -243,7 +243,26 @@ DescribableMatcherInspector, DelegatorInspector, InspectableObjectInspector - ]
commit rubygem-rspec-support for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2019-12-28 13:40:05 Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.6675 (New) Package is "rubygem-rspec-support" Sat Dec 28 13:40:05 2019 rev:11 rq:747741 version:3.9.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2019-07-22 12:16:34.659725068 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.6675/rubygem-rspec-support.changes 2019-12-28 13:40:13.098923883 +0100 @@ -1,0 +2,11 @@ +Tue Nov 12 14:48:40 UTC 2019 - Manuel Schnitzer + +- updated to version 3.9.0 + + [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.3...v3.9.0) + + *NO CHANGES* + + Version 3.9.0 was released to allow other RSpec gems to release 3.9.0. + +--- Old: rspec-support-3.8.2.gem New: rspec-support-3.9.0.gem Other differences: -- ++ rubygem-rspec-support.spec ++ --- /var/tmp/diff_new_pack.cYjC8s/_old 2019-12-28 13:40:13.490924080 +0100 +++ /var/tmp/diff_new_pack.cYjC8s/_new 2019-12-28 13:40:13.494924082 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rspec-support -Version:3.8.2 +Version:3.9.0 Release:0 %define mod_name rspec-support %define mod_full_name %{mod_name}-%{version} ++ rspec-support-3.8.2.gem -> rspec-support-3.9.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md2019-06-10 22:04:21.0 +0200 +++ new/Changelog.md2019-10-07 23:34:56.0 +0200 @@ -1,10 +1,23 @@ -### 3.8.2 / 2019-06-10 -[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.1...v3.8.2) +### 3.9.0 / 2019-10-07 + +*NO CHANGES* + +Version 3.9.0 was released to allow other RSpec gems to release 3.9.0. + +### 3.8.3 / 2019-10-02 Bug Fixes: +* Escape \r when outputting strings inside arrays. + (Tomita Masahiro, Jon Rowe, #378) * Ensure that optional hash arguments are recognised correctly vs keyword arguments. (Evgeni Dzhelyov, #366) + +### 3.8.2 / 2019-06-10 +[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.1...v3.8.2) + +Bug Fixes: + * Ensure that an empty hash is recognised as empty keyword arguments when applicable. (Thomas Walpole, #375) * Ensure that diffing truthy values produce diffs consistently. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/differ.rb new/lib/rspec/support/differ.rb --- old/lib/rspec/support/differ.rb 2019-06-10 22:04:21.0 +0200 +++ new/lib/rspec/support/differ.rb 2019-10-07 23:34:56.0 +0200 @@ -97,7 +97,7 @@ if Array === entry entry.inspect else -entry.to_s.gsub("\n", "\\n") +entry.to_s.gsub("\n", "\\n").gsub("\r", "\\r") end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/method_signature_verifier.rb new/lib/rspec/support/method_signature_verifier.rb --- old/lib/rspec/support/method_signature_verifier.rb 2019-06-10 22:04:21.0 +0200 +++ new/lib/rspec/support/method_signature_verifier.rb 2019-10-07 23:34:56.0 +0200 @@ -77,6 +77,8 @@ given_kw_args - @allowed_kw_args end +# If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments +# the rest will be grouped in another Hash and passed as positional argument. def has_kw_args_in?(args) Hash === args.last && could_contain_kw_args?(args) && @@ -87,6 +89,7 @@ # contain keyword arguments? def could_contain_kw_args?(args) return false if args.count <= min_non_kw_args + @allows_any_kw_args || @allowed_kw_args.any? end @@ -359,7 +362,14 @@ def split_args(*args) kw_args = if @signature.has_kw_args_in?(args) -args.pop.keys +last = args.pop +non_kw_args = last.reject { |k, _| k.is_a?(Symbol) } +if non_kw_args.empty? + last.keys +else + args << non_kw_args + last.select { |k, _| k.is_a?
commit rubygem-rspec-support for openSUSE:Factory
binnmnvfnVvJj.bin Description: Binary data