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-08-09 15:26:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-hoe (Old) and /work/SRC/openSUSE:Factory/.rubygem-hoe.new.1521 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-hoe" Tue Aug 9 15:26:33 2022 rev:51 rq:993485 version:3.24.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-hoe/rubygem-hoe.changes 2022-02-07 23:38:43.302185270 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-hoe.new.1521/rubygem-hoe.changes 2022-08-09 15:26:43.897347331 +0200 @@ -1,0 +2,15 @@ +Thu Aug 4 13:14:17 UTC 2022 - Stephan Kulow <[email protected]> + +updated to version 3.24.0 + see installed History.rdoc + + === 3.24.0 / 2022-06-20 + + * 3 minor enhancements: + + * Add bindir and homepage accessor methods. (dsisnero) + * Don't auto-intuit values if they're already set. (dsisnero) + * Use bindir to determine executables. (dsisnero) + + +------------------------------------------------------------------- Old: ---- hoe-3.23.1.gem New: ---- hoe-3.24.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-hoe.spec ++++++ --- /var/tmp/diff_new_pack.Eso259/_old 2022-08-09 15:26:44.465348954 +0200 +++ /var/tmp/diff_new_pack.Eso259/_new 2022-08-09 15:26:44.469348965 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-hoe -Version: 3.23.1 +Version: 3.24.0 Release: 0 %define mod_name hoe %define mod_full_name %{mod_name}-%{version} ++++++ hoe-3.23.1.gem -> hoe-3.24.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc --- old/History.rdoc 2022-01-05 05:29:30.000000000 +0100 +++ new/History.rdoc 2022-06-20 22:42:37.000000000 +0200 @@ -1,3 +1,11 @@ +=== 3.24.0 / 2022-06-20 + +* 3 minor enhancements: + + * Add bindir and homepage accessor methods. (dsisnero) + * Don't auto-intuit values if they're already set. (dsisnero) + * Use bindir to determine executables. (dsisnero) + === 3.23.1 / 2022-01-04 * 1 bug fix: 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.rb new/lib/hoe.rb --- old/lib/hoe.rb 2022-01-05 05:29:30.000000000 +0100 +++ new/lib/hoe.rb 2022-06-20 22:42:37.000000000 +0200 @@ -87,7 +87,7 @@ include Rake::DSL if defined?(Rake::DSL) # duh - VERSION = "3.23.1" + VERSION = "3.24.0" @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package, :publish, :gemcutter, :signing, :test] @@ -223,6 +223,18 @@ attr_accessor :group_name ## + # Optional: The name of the executables directory. [default: bin] + + attr_accessor :bindir + + ## + # Optional: The homepage of the project. Auto-populates to the home key + # of the urls read from the README.txt + # + + attr_accessor :homepage + + ## # The Gem::Specification. attr_accessor :spec # :nodoc: @@ -525,17 +537,18 @@ s.version = version if version s.summary = summary s.email = email - s.homepage = urls["home"] || urls.values.first + s.homepage = homepage || urls["home"] || urls.values.first + s.description = description s.files = manifest - s.executables = s.files.grep(/^bin/) { |f| File.basename(f) } - s.bindir = "bin" + s.bindir = bindir || "bin" + s.executables = s.files.grep(/^#{s.bindir}/) { |f| File.basename(f) } s.require_paths = dirs unless dirs.empty? s.rdoc_options = ["--main", readme_file] s.post_install_message = post_install_message s.metadata = (urls.keys & URLS_TO_META_MAP.keys).map { |name| [URLS_TO_META_MAP[name], urls[name]] - }.to_h + }.to_h if urls missing "Manifest.txt" if s.files.empty? @@ -810,7 +823,9 @@ def post_initialize activate_plugin_deps - intuit_values File.read_utf readme_file if readme_file + unless skip_intuit_values? + intuit_values File.read_utf readme_file if readme_file + end validate_fields define_spec load_plugin_tasks @@ -896,6 +911,10 @@ end end + def skip_intuit_values? + %w[summary description homepage].all? { |field| send field } + end + ## # Loads ~/.hoerc, merges it with a .hoerc in the current pwd (if # any) and yields the configuration and its path diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2022-01-05 05:29:30.000000000 +0100 +++ new/metadata 2022-06-20 22:42:37.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: hoe version: !ruby/object:Gem::Version - version: 3.23.1 + version: 3.24.0 platform: ruby authors: - Ryan Davis @@ -29,7 +29,7 @@ JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V YsuyUzsMz6GQA4khyaMgKNSD -----END CERTIFICATE----- -date: 2022-01-05 00:00:00.000000000 Z +date: 2022-06-20 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -162,7 +162,7 @@ - !ruby/object:Gem::Version version: '1.4' requirements: [] -rubygems_version: 3.3.3 +rubygems_version: 3.3.12 signing_key: specification_version: 4 summary: Hoe is a rake/rubygems helper for project Rakefiles 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-01-05 05:29:30.000000000 +0100 +++ new/test/test_hoe.rb 2022-06-20 22:42:37.000000000 +0200 @@ -297,6 +297,30 @@ assert_equal exp, h.urls end + def test_intuit_values_should_be_silent_if_summary_description_and_homepage_are_set + h = nil + _readme = <<~EOM + == this is readme + + == description + this is a bogus description + EOM + + assert_silent do + h = Hoe.spec "blah" do + developer "auther", "email" + license "MIT" + self.homepage = 'http://myhome' + self.description = 'this is real description' + self.summary = 'this is summary' + end + end + + assert_equal h.homepage , 'http://myhome' + assert_equal h.description , 'this is real description' + assert_equal h.summary , 'this is summary' + end + def test_metadata hash = [ "home :: https://github.com/seattlerb/hoe", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_hoe_publish.rb new/test/test_hoe_publish.rb --- old/test/test_hoe_publish.rb 2022-01-05 05:29:30.000000000 +0100 +++ new/test/test_hoe_publish.rb 2022-06-20 22:42:37.000000000 +0200 @@ -19,9 +19,16 @@ end def test_make_rdoc_cmd + rdoc = Gem.bin_wrapper "rdoc" + + unless File.exist? rdoc then + extra = "-S" + rdoc = "rdoc" + end + expected = %W[ #{Gem.ruby} - #{Gem.bin_wrapper "rdoc"} + #{rdoc} --title blah-1.0\ Documentation -o doc --main README.rdoc @@ -29,7 +36,11 @@ History.rdoc Manifest.txt README.rdoc ] - skip if linux? - assert_equal expected, @hoe.make_rdoc_cmd + expected[1, 0] = extra if extra + + # skip if linux? + capture_io do + assert_equal expected, @hoe.make_rdoc_cmd + end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_hoe_test.rb new/test/test_hoe_test.rb --- old/test/test_hoe_test.rb 2022-01-05 05:29:30.000000000 +0100 +++ new/test/test_hoe_test.rb 2022-06-20 22:42:37.000000000 +0200 @@ -26,11 +26,14 @@ end end - EXPECTED = %W[-w -Ilib:bin:test:. + path = %w[lib bin test .].join File::PATH_SEPARATOR + mt_path = %w[lib test .].join File::PATH_SEPARATOR + + EXPECTED = %W[-w -I#{path} -e 'require "rubygems"; %srequire "test/test_hoe_test.rb"' --].join(" ") + " " - MT_EXPECTED = %W[-Ilib:test:. -w + MT_EXPECTED = %W[-I#{mt_path} -w -e '%srequire "test/test_hoe_test.rb"' --].join(" ") + " "
