Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-mocha for openSUSE:Factory checked in at 2022-04-30 22:52:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-mocha (Old) and /work/SRC/openSUSE:Factory/.rubygem-mocha.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-mocha" Sat Apr 30 22:52:33 2022 rev:32 rq:974056 version:1.14.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-mocha/rubygem-mocha.changes 2021-08-24 10:55:17.952287066 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mocha.new.1538/rubygem-mocha.changes 2022-04-30 22:52:42.060237498 +0200 @@ -1,0 +2,6 @@ +Thu Apr 28 05:36:28 UTC 2022 - Stephan Kulow <[email protected]> + +updated to version 1.14.0 + no changelog found + +------------------------------------------------------------------- Old: ---- mocha-1.13.0.gem New: ---- mocha-1.14.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-mocha.spec ++++++ --- /var/tmp/diff_new_pack.zFFvYT/_old 2022-04-30 22:52:43.972240085 +0200 +++ /var/tmp/diff_new_pack.zFFvYT/_new 2022-04-30 22:52:43.976240091 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mocha # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 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-mocha -Version: 1.13.0 +Version: 1.14.0 Release: 0 %define mod_name mocha %define mod_full_name %{mod_name}-%{version} ++++++ mocha-1.13.0.gem -> mocha-1.14.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2021-06-25 15:51:17.000000000 +0200 +++ new/Gemfile 1980-01-01 01:00:00.000000000 +0100 @@ -1,3 +1,34 @@ source 'https://rubygems.org' gemspec + +# rubocop:disable Bundler/DuplicatedGem +if RUBY_VERSION < '1.9.3' + gem 'rake', '~> 10.0' +elsif RUBY_VERSION < '2' + gem 'rake', '~> 12.2.1' +elsif RUBY_VERSION < '2.2' + gem 'rake', '~> 12.3.3' +else + gem 'rake' +end +# rubocop:enable Bundler/DuplicatedGem + +gem 'introspection', '~> 0.0.1' + +# Avoid breaking change in psych v4 (https://bugs.ruby-lang.org/issues/17866) +if RUBY_VERSION >= '3.1.0' + gem 'psych', '< 4' +end + +if RUBY_VERSION >= '2.2.0' + # No test libraries in standard library + gem 'minitest' +end +if RUBY_VERSION >= '2.2.0' + gem 'rubocop', '<= 0.58.2' +end +if ENV['MOCHA_GENERATE_DOCS'] + gem 'redcarpet' + gem 'yard' +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2021-06-25 15:51:17.000000000 +0200 +++ new/README.md 1980-01-01 01:00:00.000000000 +0100 @@ -1,4 +1,4 @@ -## Mocha [](https://app.circleci.com/pipelines/github/freerange/mocha) [](http://badge.fury.io/rb/mocha) [](https://dependabot.com/compatibility-score.html?dependency-name=mocha&package-manager=bundler&version-scheme=semver) +## Mocha [](https://app.circleci.com/pipelines/github/freerange/mocha) [](http://badge.fury.io/rb/mocha) ### Description @@ -338,7 +338,7 @@ * Sign in to rubygems.org and find API key - https://rubygems.org/profile/edit ```bash -$ curl -u [email protected] https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials` +$ curl -u [email protected] https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials ``` * Release gem to Rubygems: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/RELEASE.md new/RELEASE.md --- old/RELEASE.md 2021-06-25 15:51:17.000000000 +0200 +++ new/RELEASE.md 1980-01-01 01:00:00.000000000 +0100 @@ -1,5 +1,18 @@ # Release Notes +## 1.14.0 + +### External changes + +* Mock#expects,#stubs should return last expectation - thanks to @vlad-pisanov for #524 (b6b637db) + +### Internal changes + +* Avoid breaking change in psych v4 in ruby v3.1 (08b9f4ca) +* Remove broken Dependabot badge from README (d446657a) +* Add Ruby 3.0 to the CI matrix - thanks to @mishina2228 for #526 (65bc626e) +* Move development dependencies from gemspec to Gemfile - thanks to @mishina2228 for #527 (dd127f7b) + ## 1.13.0 ### External changes Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gemfiles/Gemfile.minitest.latest new/gemfiles/Gemfile.minitest.latest --- old/gemfiles/Gemfile.minitest.latest 2021-06-25 15:51:17.000000000 +0200 +++ new/gemfiles/Gemfile.minitest.latest 1980-01-01 01:00:00.000000000 +0100 @@ -3,5 +3,6 @@ gemspec :path=>"../" group :development do + gem "rake" gem "minitest" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gemfiles/Gemfile.test-unit.latest new/gemfiles/Gemfile.test-unit.latest --- old/gemfiles/Gemfile.test-unit.latest 2021-06-25 15:51:17.000000000 +0200 +++ new/gemfiles/Gemfile.test-unit.latest 1980-01-01 01:00:00.000000000 +0100 @@ -3,6 +3,7 @@ gemspec :path=>"../" group :development do + gem "rake" if RUBY_VERSION < '1.9' gem "test-unit", "~> 2" else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mocha/mock.rb new/lib/mocha/mock.rb --- old/lib/mocha/mock.rb 2021-06-25 15:51:17.000000000 +0200 +++ new/lib/mocha/mock.rb 1980-01-01 01:00:00.000000000 +0100 @@ -109,6 +109,7 @@ # object.expects(:expected_method_one).returns(:result_one) # object.expects(:expected_method_two).returns(:result_two) def expects(method_name_or_hash, backtrace = nil) + expectation = nil iterator = ArgumentIterator.new(method_name_or_hash) iterator.each do |*args| method_name = args.shift @@ -117,6 +118,7 @@ expectation.returns(args.shift) unless args.empty? @expectations.add(expectation) end + expectation end # Adds an expectation that the specified method may be called any number of times with any parameters. @@ -145,6 +147,7 @@ # object.stubs(:stubbed_method_one).returns(:result_one) # object.stubs(:stubbed_method_two).returns(:result_two) def stubs(method_name_or_hash, backtrace = nil) + expectation = nil iterator = ArgumentIterator.new(method_name_or_hash) iterator.each do |*args| method_name = args.shift @@ -154,6 +157,7 @@ expectation.returns(args.shift) unless args.empty? @expectations.add(expectation) end + expectation end # Removes the specified stubbed methods (added by calls to {#expects} or {#stubs}) and all expectations associated with them. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mocha/version.rb new/lib/mocha/version.rb --- old/lib/mocha/version.rb 2021-06-25 15:51:17.000000000 +0200 +++ new/lib/mocha/version.rb 1980-01-01 01:00:00.000000000 +0100 @@ -1,3 +1,3 @@ module Mocha - VERSION = '1.13.0'.freeze + VERSION = '1.14.0'.freeze end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2021-06-25 15:51:17.000000000 +0200 +++ new/metadata 1980-01-01 01:00:00.000000000 +0100 @@ -1,71 +1,15 @@ --- !ruby/object:Gem::Specification name: mocha version: !ruby/object:Gem::Version - version: 1.13.0 + version: 1.14.0 platform: ruby authors: - James Mead autorequire: bindir: bin cert_chain: [] -date: 2021-06-25 00:00:00.000000000 Z -dependencies: -- !ruby/object:Gem::Dependency - name: rake - requirement: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' -- !ruby/object:Gem::Dependency - name: introspection - requirement: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: 0.0.1 - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: 0.0.1 -- !ruby/object:Gem::Dependency - name: minitest - requirement: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' -- !ruby/object:Gem::Dependency - name: rubocop - requirement: !ruby/object:Gem::Requirement - requirements: - - - "<=" - - !ruby/object:Gem::Version - version: 0.58.2 - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - "<=" - - !ruby/object:Gem::Version - version: 0.58.2 +date: 1980-01-01 00:00:00.000000000 Z +dependencies: [] description: Mocking and stubbing library with JMock/SchMock syntax, which allows mocking and stubbing of methods on real (non-mock) classes. email: [email protected] @@ -212,7 +156,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubygems_version: 3.0.3 +rubygems_version: 3.2.26 signing_key: specification_version: 4 summary: Mocking and stubbing library diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mocha.gemspec new/mocha.gemspec --- old/mocha.gemspec 2021-06-25 15:51:17.000000000 +0200 +++ new/mocha.gemspec 1980-01-01 01:00:00.000000000 +0100 @@ -2,7 +2,7 @@ $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib) require 'mocha/version' -Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength +Gem::Specification.new do |s| s.name = 'mocha' s.version = Mocha::VERSION s.licenses = ['MIT', 'BSD-2-Clause'] @@ -21,35 +21,4 @@ s.homepage = 'https://mocha.jamesmead.org' s.require_paths = ['lib'] s.summary = 'Mocking and stubbing library' - - unless s.respond_to?(:add_development_dependency) - class << s - def add_development_dependency(*args) - add_dependency(*args) - end - end - end - - if RUBY_VERSION < '1.9.3' - s.add_development_dependency 'rake', '~> 10.0' - elsif RUBY_VERSION < '2' - s.add_development_dependency 'rake', '~> 12.2.1' - elsif RUBY_VERSION < '2.2' - s.add_development_dependency 'rake', '~> 12.3.3' - else - s.add_development_dependency 'rake' - end - - s.add_development_dependency('introspection', '~> 0.0.1') - if RUBY_VERSION >= '2.2.0' - # No test libraries in standard library - s.add_development_dependency('minitest') - end - if RUBY_VERSION >= '2.2.0' - s.add_development_dependency('rubocop', '<= 0.58.2') - end - if ENV['MOCHA_GENERATE_DOCS'] - s.add_development_dependency('redcarpet') - s.add_development_dependency('yard') - end end
