Hello community, here is the log from the commit of package rubygem-rake for openSUSE:Factory checked in at 2018-07-18 22:51:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rake (Old) and /work/SRC/openSUSE:Factory/.rubygem-rake.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rake" Wed Jul 18 22:51:17 2018 rev:5 rq:621032 version:12.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rake/rubygem-rake.changes 2017-11-01 11:09:29.250103784 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rake.new/rubygem-rake.changes 2018-07-18 22:52:25.807261295 +0200 @@ -1,0 +2,41 @@ +Thu Mar 22 05:30:42 UTC 2018 - [email protected] + +- updated to version 12.3.1 + see installed History.rdoc + + === 12.3.1 + + ==== Bug fixes + + * Support did_you_mean >= v1.2.0 which has a breaking change on formatters. + Pull request #262 by FUJI Goro. + + ==== Enhancements: + + * Don't run task if it depends on already invoked but failed task. + Pull request #252 by Gonzalo Rodriguez. + * Make space trimming consistent for all task arguments. + Pull request #259 by Gonzalo Rodriguez. + * Removes duplicated inclusion of Rake::DSL in tests. + Pull request #254 by Gonzalo Rodriguez. + * Re-raise a LoadError that didn't come from require in the test loader. + Pull request #250 by Dylan Thacker-Smith. + +------------------------------------------------------------------- +Sun Dec 3 19:32:14 UTC 2017 - [email protected] + +- updated to version 12.3.0 + see installed History.rdoc + + === 12.3.0 + + ==== Compatibility Changes + + * Bump `required_ruby_verion` to Ruby 2.0.0. Rake was already + removed to support for Ruby 1.9.x. + + === Enhancements: + + * Support `test-bundled-gems` task on ruby core. + +------------------------------------------------------------------- Old: ---- rake-12.2.1.gem New: ---- rake-12.3.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rake.spec ++++++ --- /var/tmp/diff_new_pack.oT2OwM/_old 2018-07-18 22:52:26.151260154 +0200 +++ /var/tmp/diff_new_pack.oT2OwM/_new 2018-07-18 22:52:26.155260141 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rake # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,12 +24,12 @@ # Name: rubygem-rake -Version: 12.2.1 +Version: 12.3.1 Release: 0 %define mod_name rake %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 1.9.3} +BuildRequires: %{ruby >= 2.0.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: %{rubygem rdoc > 3.10} BuildRequires: ruby-macros >= 5 ++++++ rake-12.2.1.gem -> rake-12.3.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc --- old/History.rdoc 2017-10-25 04:05:33.000000000 +0200 +++ new/History.rdoc 2018-03-22 05:46:32.000000000 +0100 @@ -1,3 +1,32 @@ +=== 12.3.1 + +==== Bug fixes + +* Support did_you_mean >= v1.2.0 which has a breaking change on formatters. + Pull request #262 by FUJI Goro. + +==== Enhancements: + +* Don't run task if it depends on already invoked but failed task. + Pull request #252 by Gonzalo Rodriguez. +* Make space trimming consistent for all task arguments. + Pull request #259 by Gonzalo Rodriguez. +* Removes duplicated inclusion of Rake::DSL in tests. + Pull request #254 by Gonzalo Rodriguez. +* Re-raise a LoadError that didn't come from require in the test loader. + Pull request #250 by Dylan Thacker-Smith. + +=== 12.3.0 + +==== Compatibility Changes + +* Bump `required_ruby_version` to Ruby 2.0.0. Rake has already + removed support for Ruby 1.9.x. + +==== Enhancements: + +* Support `test-bundled-gems` task on ruby core. + === 12.2.1 ==== Bug fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.rdoc new/README.rdoc --- old/README.rdoc 2017-10-25 04:05:33.000000000 +0200 +++ new/README.rdoc 2018-03-22 05:46:32.000000000 +0100 @@ -25,8 +25,8 @@ * A library of prepackaged tasks to make building rakefiles easier. For example, tasks for building tarballs. (Formerly - tasks for building RDoc, Gems and publishing to FTP were included in rake but they're now - available in RDoc, RubyGems and respectively.) + tasks for building RDoc, Gems, and publishing to FTP were included in rake but they're now + available in RDoc, RubyGems, and rake-contrib respectively.) * Supports parallel execution of tasks. @@ -130,7 +130,7 @@ = Other stuff Author:: Jim Weirich <[email protected]> -Requires:: Ruby 1.9.3 or later +Requires:: Ruby 2.0.0 or later License:: Copyright Jim Weirich. Released under an MIT-style license. See the MIT-LICENSE file included in the distribution. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2017-10-25 04:05:33.000000000 +0200 +++ new/Rakefile 2018-03-22 05:46:32.000000000 +0100 @@ -9,16 +9,19 @@ lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require "bundler/gem_tasks" -require "rake/testtask" -require "rdoc/task" +begin + require "bundler/gem_tasks" +rescue LoadError +end +require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test" t.verbose = true t.test_files = FileList["test/**/test_*.rb"] end +require "rdoc/task" RDoc::Task.new do |doc| doc.main = "README.rdoc" doc.title = "Rake -- Ruby Make" @@ -27,7 +30,7 @@ end task ghpages: :rdoc do - `git checkout gh-pages` + %x[git checkout gh-pages] require "fileutils" FileUtils.rm_rf "/tmp/html" FileUtils.mv "html", "/tmp" Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/application.rb new/lib/rake/application.rb --- old/lib/rake/application.rb 2017-10-25 04:05:33.000000000 +0200 +++ new/lib/rake/application.rb 2018-03-22 05:46:32.000000000 +0100 @@ -172,7 +172,7 @@ args = [] begin - /((?:[^\\,]|\\.)*?)\s*(?:,\s*(.*))?$/ =~ remaining_args + /\s*((?:[^\\,]|\\.)*?)\s*(?:,\s*(.*))?$/ =~ remaining_args remaining_args = $2 args << $1.gsub(/\\(.)/, '\1') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/multi_task.rb new/lib/rake/multi_task.rb --- old/lib/rake/multi_task.rb 2017-10-25 04:05:33.000000000 +0200 +++ new/lib/rake/multi_task.rb 2018-03-22 05:46:32.000000000 +0100 @@ -5,46 +5,10 @@ # parallel using Ruby threads. # class MultiTask < Task - - # Same as invoke, but explicitly pass a call chain to detect - # circular dependencies. This is largely copied from Rake::Task - # but has been updated such that if multiple tasks depend on this - # one in parallel, they will all fail if the first execution of - # this task fails. - def invoke_with_call_chain(task_args, invocation_chain) - new_chain = Rake::InvocationChain.append(self, invocation_chain) - @lock.synchronize do - begin - if @already_invoked - if @invocation_exception - if application.options.trace - application.trace "** Previous invocation of #{name} failed #{format_trace_flags}" - end - raise @invocation_exception - else - return - end - end - - if application.options.trace - application.trace "** Invoke #{name} #{format_trace_flags}" - end - @already_invoked = true - - invoke_prerequisites(task_args, new_chain) - execute(task_args) if needed? - rescue Exception => ex - add_chain_to(ex, new_chain) - @invocation_exception = ex - raise - end - end - end - private + def invoke_prerequisites(task_args, invocation_chain) # :nodoc: invoke_prerequisites_concurrently(task_args, invocation_chain) end end - end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/rake_test_loader.rb new/lib/rake/rake_test_loader.rb --- old/lib/rake/rake_test_loader.rb 2017-10-25 04:05:33.000000000 +0200 +++ new/lib/rake/rake_test_loader.rb 2018-03-22 05:46:32.000000000 +0100 @@ -19,6 +19,7 @@ false end rescue LoadError => e + raise unless e.path abort "\nFile does not exist: #{e.path}\n\n" end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/task.rb new/lib/rake/task.rb --- old/lib/rake/task.rb 2017-10-25 04:05:33.000000000 +0200 +++ new/lib/rake/task.rb 2018-03-22 05:46:32.000000000 +0100 @@ -103,6 +103,7 @@ @scope = app.current_scope @arg_names = nil @locations = [] + @invocation_exception = nil end # Enhance a task with prerequisites or actions. Returns self. @@ -183,20 +184,39 @@ # Same as invoke, but explicitly pass a call chain to detect # circular dependencies. - def invoke_with_call_chain(task_args, invocation_chain) # :nodoc: - new_chain = InvocationChain.append(self, invocation_chain) + # + # If multiple tasks depend on this + # one in parallel, they will all fail if the first execution of + # this task fails. + def invoke_with_call_chain(task_args, invocation_chain) + new_chain = Rake::InvocationChain.append(self, invocation_chain) @lock.synchronize do - if application.options.trace - application.trace "** Invoke #{name} #{format_trace_flags}" + begin + if application.options.trace + application.trace "** Invoke #{name} #{format_trace_flags}" + end + + if @already_invoked + if @invocation_exception + if application.options.trace + application.trace "** Previous invocation of #{name} failed #{format_trace_flags}" + end + raise @invocation_exception + else + return + end + end + + @already_invoked = true + + invoke_prerequisites(task_args, new_chain) + execute(task_args) if needed? + rescue Exception => ex + add_chain_to(ex, new_chain) + @invocation_exception = ex + raise ex end - return if @already_invoked - @already_invoked = true - invoke_prerequisites(task_args, new_chain) - execute(task_args) if needed? end - rescue Exception => ex - add_chain_to(ex, new_chain) - raise ex end protected :invoke_with_call_chain diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/task_manager.rb new/lib/rake/task_manager.rb --- old/lib/rake/task_manager.rb 2017-10-25 04:05:33.000000000 +0200 +++ new/lib/rake/task_manager.rb 2018-03-22 05:46:32.000000000 +0100 @@ -61,16 +61,20 @@ def generate_message_for_undefined_task(task_name) message = "Don't know how to build task '#{task_name}' (see --tasks)" + message + generate_did_you_mean_suggestions(task_name) + end - suggestion_message = \ - if defined?(::DidYouMean::SpellChecker) && defined?(::DidYouMean::Formatter) - suggestions = ::DidYouMean::SpellChecker.new(dictionary: @tasks.keys).correct(task_name.to_s) - ::DidYouMean::Formatter.new(suggestions).to_s - else - "" - end + def generate_did_you_mean_suggestions(task_name) + return "" unless defined?(::DidYouMean::SpellChecker) - message + suggestion_message + suggestions = ::DidYouMean::SpellChecker.new(dictionary: @tasks.keys).correct(task_name.to_s) + if ::DidYouMean.respond_to?(:formatter)# did_you_mean v1.2.0 or later + ::DidYouMean.formatter.message_for(suggestions) + elsif defined?(::DidYouMean::Formatter) # before did_you_mean v1.2.0 + ::DidYouMean::Formatter.new(suggestions).to_s + else + "" + end end def synthesize_file_task(task_name) # :nodoc: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/version.rb new/lib/rake/version.rb --- old/lib/rake/version.rb 2017-10-25 04:05:33.000000000 +0200 +++ new/lib/rake/version.rb 2018-03-22 05:46:32.000000000 +0100 @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "12.2.1" + VERSION = "12.3.1" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-10-25 04:05:33.000000000 +0200 +++ new/metadata 2018-03-22 05:46:32.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: rake version: !ruby/object:Gem::Version - version: 12.2.1 + version: 12.3.1 platform: ruby authors: - Hiroshi SHIBATA @@ -10,7 +10,7 @@ autorequire: bindir: exe cert_chain: [] -date: 2017-10-25 00:00:00.000000000 Z +date: 2018-03-22 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler @@ -181,7 +181,7 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: 1.9.3 + version: 2.0.0 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" @@ -189,7 +189,7 @@ version: 1.3.2 requirements: [] rubyforge_project: -rubygems_version: 2.6.14 +rubygems_version: 2.7.6 signing_key: specification_version: 4 summary: Rake is a Make-like program implemented in Ruby diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rake.gemspec new/rake.gemspec --- old/rake.gemspec 2017-10-25 04:05:33.000000000 +0200 +++ new/rake.gemspec 2018-03-22 05:46:32.000000000 +0100 @@ -5,7 +5,6 @@ Gem::Specification.new do |s| s.name = "rake".freeze s.version = Rake::VERSION - s.date = "2017-10-25" s.authors = ["Hiroshi SHIBATA".freeze, "Eric Hodel".freeze, "Jim Weirich".freeze] s.email = ["[email protected]".freeze, "[email protected]".freeze, "".freeze] @@ -24,13 +23,13 @@ s.homepage = "https://github.com/ruby/rake".freeze s.licenses = ["MIT".freeze] - s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - + s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - %w[.rubocop.yml .travis.yml appveyor.yml] s.bindir = "exe" s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) } s.require_paths = ["lib".freeze] - s.required_ruby_version = Gem::Requirement.new(">= 1.9.3".freeze) + s.required_ruby_version = Gem::Requirement.new(">= 2.0.0".freeze) s.rubygems_version = "2.6.1".freeze s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2".freeze) s.rdoc_options = ["--main".freeze, "README.rdoc".freeze]
