Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-hoe for openSUSE:Factory checked in at 2022-09-03 23:18:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-hoe (Old) and /work/SRC/openSUSE:Factory/.rubygem-hoe.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-hoe" Sat Sep 3 23:18:46 2022 rev:52 rq:1000909 version:3.25.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-hoe/rubygem-hoe.changes 2022-08-09 15:26:43.897347331 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-hoe.new.2083/rubygem-hoe.changes 2022-09-03 23:18:55.587791641 +0200 @@ -1,0 +2,17 @@ +Mon Aug 29 06:51:36 UTC 2022 - Stephan Kulow <[email protected]> + +updated to version 3.25.0 + see installed History.rdoc + + === 3.25.0 / 2022-08-18 + + * 1 minor enhancement: + + * Added otp_command config option for OTP auth on gem push. + + * 1 bug fix: + + * Use sh instead of system during gem install to raise on error. + + +------------------------------------------------------------------- Old: ---- hoe-3.24.0.gem New: ---- hoe-3.25.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-hoe.spec ++++++ --- /var/tmp/diff_new_pack.YxLb0x/_old 2022-09-03 23:18:56.791794789 +0200 +++ /var/tmp/diff_new_pack.YxLb0x/_new 2022-09-03 23:18:56.799794810 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-hoe -Version: 3.24.0 +Version: 3.25.0 Release: 0 %define mod_name hoe %define mod_full_name %{mod_name}-%{version} ++++++ hoe-3.24.0.gem -> hoe-3.25.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc --- old/History.rdoc 2022-06-20 22:42:37.000000000 +0200 +++ new/History.rdoc 2022-08-18 19:39:18.000000000 +0200 @@ -1,3 +1,13 @@ +=== 3.25.0 / 2022-08-18 + +* 1 minor enhancement: + + * Added otp_command config option for OTP auth on gem push. + +* 1 bug fix: + + * Use sh instead of system during gem install to raise on error. + === 3.24.0 / 2022-06-20 * 3 minor enhancements: 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/hoe/gemcutter.rb new/lib/hoe/gemcutter.rb --- old/lib/hoe/gemcutter.rb 2022-06-20 22:42:37.000000000 +0200 +++ new/lib/hoe/gemcutter.rb 2022-08-18 19:39:18.000000000 +0200 @@ -1,8 +1,29 @@ require "rake" +## +# Gemcutter plugin for hoe. +# +# === Extra Configuration Options: +# +# otp_command:: Shell command to run to populate GEM_HOST_OTP_CODE. + module Hoe::Gemcutter include Rake::DSL if defined?(Rake::DSL) + Hoe::DEFAULT_CONFIG["otp_command"] = false + + def gem_push gems + with_config do |config, _| + otp_command = config["otp_command"] + + ENV["GEM_HOST_OTP_CODE"] = `#{otp_command}`.chomp if otp_command + end + + gems.each do |g| + sh Gem.ruby, "-S", "gem", "push", g + end + end + ## # Define release_to_gemcutter and attach it to the release task. @@ -11,11 +32,8 @@ task :release_to_gemcutter => [:clean, :package, :release_sanity] do pkg = "pkg/#{spec.name}-#{spec.version}" gems = Dir["#{pkg}*.gem"] - gems.each do |g| - # TODO - once gemcutter supports command invocation, use it. - # We could still fail here due to --format executable - sh Gem.ruby, "-S", "gem", "push", g - end + + gem_push gems end task :release_to => :release_to_gemcutter diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hoe/package.rb new/lib/hoe/package.rb --- old/lib/hoe/package.rb 2022-06-20 22:42:37.000000000 +0200 +++ new/lib/hoe/package.rb 2022-08-18 19:39:18.000000000 +0200 @@ -100,8 +100,7 @@ cmd += " --no-document" unless rdoc cmd += " #{null_dev}" unless Rake.application.options.trace - puts cmd if Rake.application.options.trace - result = system cmd + result = sh cmd Gem::Specification.reset result end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hoe.rb new/lib/hoe.rb --- old/lib/hoe.rb 2022-06-20 22:42:37.000000000 +0200 +++ new/lib/hoe.rb 2022-08-18 19:39:18.000000000 +0200 @@ -87,7 +87,7 @@ include Rake::DSL if defined?(Rake::DSL) # duh - VERSION = "3.24.0" + VERSION = "3.25.0" @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package, :publish, :gemcutter, :signing, :test] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2022-06-20 22:42:37.000000000 +0200 +++ new/metadata 2022-08-18 19:39:18.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: hoe version: !ruby/object:Gem::Version - version: 3.24.0 + version: 3.25.0 platform: ruby authors: - Ryan Davis @@ -29,7 +29,7 @@ JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V YsuyUzsMz6GQA4khyaMgKNSD -----END CERTIFICATE----- -date: 2022-06-20 00:00:00.000000000 Z +date: 2022-08-18 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -52,6 +52,20 @@ - !ruby/object:Gem::Version version: '15.0' - !ruby/object:Gem::Dependency + name: minitest + requirement: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: '5.16' + type: :development + prerelease: false + version_requirements: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: '5.16' +- !ruby/object:Gem::Dependency name: rdoc requirement: !ruby/object:Gem::Requirement requirements: Binary files old/metadata.gz.sig and new/metadata.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_hoe.rb new/test/test_hoe.rb --- old/test/test_hoe.rb 2022-06-20 22:42:37.000000000 +0200 +++ new/test/test_hoe.rb 2022-08-18 19:39:18.000000000 +0200 @@ -465,14 +465,14 @@ def test_nosudo hoe = self.hoe do - def system cmd + def sh cmd cmd end end - assert_match(/^(sudo )?(j|maglev-)?gem.*/, hoe.install_gem("foo")) + assert_match(/^(sudo )?gem.*/, hoe.install_gem("foo")) ENV["NOSUDO"] = "1" - assert_match(/^(j|maglev-)?gem.*/, hoe.install_gem("foo")) + assert_match(/^gem.*/, hoe.install_gem("foo")) ensure ENV.delete "NOSUDO" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_hoe_gemcutter.rb new/test/test_hoe_gemcutter.rb --- old/test/test_hoe_gemcutter.rb 2022-06-20 22:42:37.000000000 +0200 +++ new/test/test_hoe_gemcutter.rb 2022-08-18 19:39:18.000000000 +0200 @@ -11,5 +11,28 @@ assert Rake::Task[:release_to].prerequisites.include?("release_to_gemcutter") end - # TODO add tests for push once using Gem::Commands::Push (waiting on rubygems release) + def sh *cmd_args + @cmd_args = cmd_args + end + + def with_config + yield({ "otp_command" => "echo my_otp_code"}, "~/.hoerc") + end + + def save_env + orig_env = ENV.to_h + yield + ensure + ENV.replace orig_env + end + + def test_gem_push + save_env do + gem_push %w[pkg/blah-123.gem] + + exp = %W[#{Gem.ruby} -S gem push pkg/blah-123.gem] + assert_equal exp, @cmd_args + assert_equal "my_otp_code", ENV["GEM_HOST_OTP_CODE"] + end + end end
