Hello community, here is the log from the commit of package rubygem-rake for openSUSE:Factory checked in at 2019-01-21 10:24:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rake (Old) and /work/SRC/openSUSE:Factory/.rubygem-rake.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rake" Mon Jan 21 10:24:45 2019 rev:6 rq:656354 version:12.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rake/rubygem-rake.changes 2018-07-18 22:52:25.807261295 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rake.new.28833/rubygem-rake.changes 2019-01-21 10:24:52.813781844 +0100 @@ -1,0 +2,22 @@ +Sat Dec 8 16:30:12 UTC 2018 - Stephan Kulow <[email protected]> + +- updated to version 12.3.2 + see installed History.rdoc + + === 12.3.2 + + ==== Bug fixes + + * Fixed test fails caused by 2.6 warnings. + Pull Request #297 by hsbt + + ==== Enhancements: + + * Rdoc improvements. + Pull Request #293 by colby-swandale + * Improve multitask performance. + Pull Request #273 by jsm + * Add alias `prereqs`. + Pull Request #268 by take-cheeze + +------------------------------------------------------------------- Old: ---- rake-12.3.1.gem New: ---- rake-12.3.2.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rake.spec ++++++ --- /var/tmp/diff_new_pack.1RrqQW/_old 2019-01-21 10:24:53.445781149 +0100 +++ /var/tmp/diff_new_pack.1RrqQW/_new 2019-01-21 10:24:53.445781149 +0100 @@ -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-rake -Version: 12.3.1 +Version: 12.3.2 Release: 0 %define mod_name rake %define mod_full_name %{mod_name}-%{version} ++++++ rake-12.3.1.gem -> rake-12.3.2.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CONTRIBUTING.rdoc new/CONTRIBUTING.rdoc --- old/CONTRIBUTING.rdoc 2018-03-22 05:46:32.000000000 +0100 +++ new/CONTRIBUTING.rdoc 2018-12-07 10:47:17.000000000 +0100 @@ -3,7 +3,7 @@ Rake is currently hosted at github. The github web page is https://github.com/ruby/rake . The public git clone URL is - git://github.com/ruby/rake.git + https://github.com/ruby/rake.git = Running the Rake Test Suite @@ -12,11 +12,18 @@ * +cd+ into the top project directory of rake. * Install gem dependency using bundler: - bundle install # Install bundler, minitest and rdoc + $ bundle install # Install bundler, minitest and rdoc -* Type one of the following: +* Run the test suite - rake # If you have run rake's tests + $ rake + += Rubocop + +Rake uses Rubocop to enforce a consistent style on new changes being +proposed. You can check your code with Rubocop using: + + $ ./bin/rubocop = Issues and Bug Reports diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc --- old/History.rdoc 2018-03-22 05:46:32.000000000 +0100 +++ new/History.rdoc 2018-12-07 10:47:17.000000000 +0100 @@ -1,3 +1,19 @@ +=== 12.3.2 + +==== Bug fixes + +* Fixed test fails caused by 2.6 warnings. + Pull Request #297 by hsbt + +==== Enhancements: + +* Rdoc improvements. + Pull Request #293 by colby-swandale +* Improve multitask performance. + Pull Request #273 by jsm +* Add alias `prereqs`. + Pull Request #268 by take-cheeze + === 12.3.1 ==== Bug fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.rdoc new/README.rdoc --- old/README.rdoc 2018-03-22 05:46:32.000000000 +0100 +++ new/README.rdoc 2018-12-07 10:47:17.000000000 +0100 @@ -75,10 +75,10 @@ === Rake Information -* {Rake command-line}[rdoc-ref:doc/command_line_usage.rdoc] -* {Writing Rakefiles}[rdoc-ref:doc/rakefile.rdoc] -* The original {Rake announcement}[rdoc-ref:doc/rational.rdoc] -* Rake {glossary}[rdoc-ref:doc/glossary.rdoc] +* {Rake command-line}[link:doc/command_line_usage.rdoc] +* {Writing Rakefiles}[link:doc/rakefile.rdoc] +* The original {Rake announcement}[link:doc/rational.rdoc] +* Rake {glossary}[link:doc/glossary.rdoc] === Presentations and Articles about Rake diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bin/bundle new/bin/bundle --- old/bin/bundle 1970-01-01 01:00:00.000000000 +0100 +++ new/bin/bundle 2018-12-07 10:47:17.000000000 +0100 @@ -0,0 +1,105 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'bundle' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require "rubygems" + +m = Module.new do + module_function + + def invoked_as_script? + File.expand_path($0) == File.expand_path(__FILE__) + end + + def env_var_version + ENV["BUNDLER_VERSION"] + end + + def cli_arg_version + return unless invoked_as_script? # don't want to hijack other binstubs + return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update` + bundler_version = nil + update_index = nil + ARGV.each_with_index do |a, i| + if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN + bundler_version = a + end + next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/ + bundler_version = $1 || ">= 0.a" + update_index = i + end + bundler_version + end + + def gemfile + gemfile = ENV["BUNDLE_GEMFILE"] + return gemfile if gemfile && !gemfile.empty? + + File.expand_path("../../Gemfile", __FILE__) + end + + def lockfile + lockfile = + case File.basename(gemfile) + when "gems.rb" then gemfile.sub(/\.rb$/, gemfile) + else "#{gemfile}.lock" + end + File.expand_path(lockfile) + end + + def lockfile_version + return unless File.file?(lockfile) + lockfile_contents = File.read(lockfile) + return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/ + Regexp.last_match(1) + end + + def bundler_version + @bundler_version ||= begin + env_var_version || cli_arg_version || + lockfile_version || "#{Gem::Requirement.default}.a" + end + end + + def load_bundler! + ENV["BUNDLE_GEMFILE"] ||= gemfile + + # must dup string for RG < 1.8 compatibility + activate_bundler(bundler_version.dup) + end + + def activate_bundler(bundler_version) + if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new("2.0") + bundler_version = "< 2" + end + gem_error = activation_error_handling do + gem "bundler", bundler_version + end + return if gem_error.nil? + require_error = activation_error_handling do + require "bundler/version" + end + return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION)) + warn "Activating bundler (#{bundler_version}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_version}'`" + exit 42 + end + + def activation_error_handling + yield + nil + rescue StandardError, LoadError => e + e + end +end + +m.load_bundler! + +if m.invoked_as_script? + load Gem.bin_path("bundler", "bundle") +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bin/rake new/bin/rake --- old/bin/rake 1970-01-01 01:00:00.000000000 +0100 +++ new/bin/rake 2018-12-07 10:47:17.000000000 +0100 @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'rake' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +bundle_binstub = File.expand_path("../bundle", __FILE__) + +if File.file?(bundle_binstub) + if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ + load(bundle_binstub) + else + abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + end +end + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("rake", "rake") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bin/rdoc new/bin/rdoc --- old/bin/rdoc 1970-01-01 01:00:00.000000000 +0100 +++ new/bin/rdoc 2018-12-07 10:47:17.000000000 +0100 @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'rdoc' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +bundle_binstub = File.expand_path("../bundle", __FILE__) + +if File.file?(bundle_binstub) + if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ + load(bundle_binstub) + else + abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + end +end + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("rdoc", "rdoc") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bin/rubocop new/bin/rubocop --- old/bin/rubocop 1970-01-01 01:00:00.000000000 +0100 +++ new/bin/rubocop 2018-12-07 10:47:17.000000000 +0100 @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'rubocop' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +bundle_binstub = File.expand_path("../bundle", __FILE__) + +if File.file?(bundle_binstub) + if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ + load(bundle_binstub) + else + abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + end +end + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("rubocop", "rubocop") 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 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/application.rb 2018-12-07 10:47:17.000000000 +0100 @@ -91,7 +91,7 @@ begin args = handle_options argv rescue ArgumentError - # Backword compatibility for capistrano + # Backward compatibility for capistrano args = handle_options end collect_command_line_tasks(args) @@ -392,7 +392,7 @@ def sort_options(options) # :nodoc: options.sort_by { |opt| - opt.select { |o| o =~ /^-/ }.map(&:downcase).sort.reverse + opt.select { |o| o.is_a?(String) && o =~ /^-/ }.map(&:downcase).sort.reverse } end private :sort_options @@ -687,7 +687,7 @@ def raw_load_rakefile # :nodoc: rakefile, location = find_rakefile_location - if (! options.ignore_system) && + if (!options.ignore_system) && (options.load_system || rakefile.nil?) && system_dir && File.directory?(system_dir) print_rakefile_directory(location) @@ -797,7 +797,7 @@ backtrace.find { |str| str =~ re } || "" end - def set_default_options + def set_default_options # :nodoc: options.always_multitask = false options.backtrace = false options.build_all = false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/cpu_counter.rb new/lib/rake/cpu_counter.rb --- old/lib/rake/cpu_counter.rb 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/cpu_counter.rb 2018-12-07 10:47:17.000000000 +0100 @@ -32,7 +32,7 @@ require 'rbconfig' def count - if defined?(Java::Java) + if RUBY_PLATFORM == 'java' count_via_java_runtime else case RbConfig::CONFIG['host_os'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/dsl_definition.rb new/lib/rake/dsl_definition.rb --- old/lib/rake/dsl_definition.rb 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/dsl_definition.rb 2018-12-07 10:47:17.000000000 +0100 @@ -26,9 +26,9 @@ private # :call-seq: - # task task_name - # task task_name: dependencies - # task task_name, arguments => dependencies + # task(task_name) + # task(task_name: dependencies) + # task(task_name, arguments => dependencies) # # Declare a basic task. The +task_name+ is always the first argument. If # the task name contains a ":" it is defined in that namespace. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/file_creation_task.rb new/lib/rake/file_creation_task.rb --- old/lib/rake/file_creation_task.rb 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/file_creation_task.rb 2018-12-07 10:47:17.000000000 +0100 @@ -12,7 +12,7 @@ class FileCreationTask < FileTask # Is this file task needed? Yes if it doesn't exist. def needed? - ! File.exist?(name) + !File.exist?(name) end # Time stamp for file creation task. This time stamp is earlier diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/file_list.rb new/lib/rake/file_list.rb --- old/lib/rake/file_list.rb 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/file_list.rb 2018-12-07 10:47:17.000000000 +0100 @@ -385,7 +385,7 @@ /~$/ ] DEFAULT_IGNORE_PROCS = [ - proc { |fn| fn =~ /(^|[\/\\])core$/ && ! File.directory?(fn) } + proc { |fn| fn =~ /(^|[\/\\])core$/ && !File.directory?(fn) } ] def import(array) # :nodoc: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/file_task.rb new/lib/rake/file_task.rb --- old/lib/rake/file_task.rb 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/file_task.rb 2018-12-07 10:47:17.000000000 +0100 @@ -1,5 +1,5 @@ # frozen_string_literal: true -require "rake/task.rb" +require "rake/task" require "rake/early_time" module Rake @@ -14,7 +14,7 @@ # Is this file task needed? Yes if it doesn't exist, or if its time stamp # is out of date. def needed? - ! File.exist?(name) || out_of_date?(timestamp) || @application.options.build_all + !File.exist?(name) || out_of_date?(timestamp) || @application.options.build_all end # Time stamp for file task. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/file_utils.rb new/lib/rake/file_utils.rb --- old/lib/rake/file_utils.rb 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/file_utils.rb 2018-12-07 10:47:17.000000000 +0100 @@ -35,7 +35,7 @@ # # # check exit status after command runs # sh %{grep pattern file} do |ok, res| - # if ! ok + # if !ok # puts "pattern not found (status = #{res.exitstatus})" # end # end @@ -111,7 +111,7 @@ # Attempt to do a normal file link, but fall back to a copy if the link # fails. def safe_ln(*args) - if ! LN_SUPPORTED[0] + if !LN_SUPPORTED[0] cp(*args) else begin diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/packagetask.rb new/lib/rake/packagetask.rb --- old/lib/rake/packagetask.rb 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/packagetask.rb 2018-12-07 10:47:17.000000000 +0100 @@ -132,9 +132,7 @@ task package: ["#{package_dir}/#{file}"] file "#{package_dir}/#{file}" => [package_dir_path] + package_files do - chdir(package_dir) do - sh @tar_command, "#{flag}cvf", file, package_name - end + chdir(package_dir) { sh @tar_command, "#{flag}cvf", file, package_name } end end end @@ -143,9 +141,7 @@ task package: ["#{package_dir}/#{zip_file}"] file "#{package_dir}/#{zip_file}" => [package_dir_path] + package_files do - chdir(package_dir) do - sh @zip_command, "-r", zip_file, package_name - end + chdir(package_dir) { sh @zip_command, "-r", zip_file, package_name } end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/promise.rb new/lib/rake/promise.rb --- old/lib/rake/promise.rb 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/promise.rb 2018-12-07 10:47:17.000000000 +0100 @@ -71,12 +71,12 @@ # Do we have a result for the promise def result? - ! @result.equal?(NOT_SET) + [email protected]?(NOT_SET) end # Did the promise throw an error def error? - ! @error.equal?(NOT_SET) + [email protected]?(NOT_SET) end # Are we done with the promise diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/scope.rb new/lib/rake/scope.rb --- old/lib/rake/scope.rb 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/scope.rb 2018-12-07 10:47:17.000000000 +0100 @@ -16,7 +16,7 @@ # this trim beyond the toplevel scope. def trim(n) result = self - while n > 0 && ! result.empty? + while n > 0 && !result.empty? result = result.tail n -= 1 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 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/task.rb 2018-12-07 10:47:17.000000000 +0100 @@ -15,6 +15,7 @@ class Task # List of prerequisites for a task. attr_reader :prerequisites + alias prereqs prerequisites # List of actions attached to a task. attr_reader :actions @@ -247,7 +248,8 @@ r.invoke_with_call_chain(prereq_args, invocation_chain) end end - futures.each(&:value) + # Iterate in reverse to improve performance related to thread waiting and switching + futures.reverse_each(&:value) end # Format the trace flags for display. @@ -287,7 +289,7 @@ def add_description(description) return unless description comment = description.strip - add_comment(comment) if comment && ! comment.empty? + add_comment(comment) if comment && !comment.empty? end def comment=(comment) # :nodoc: 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 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/task_manager.rb 2018-12-07 10:47:17.000000000 +0100 @@ -60,7 +60,7 @@ end def generate_message_for_undefined_task(task_name) - message = "Don't know how to build task '#{task_name}' (see --tasks)" + message = "Don't know how to build task '#{task_name}' (See the list of available tasks with `rake --tasks`)" message + generate_did_you_mean_suggestions(task_name) end 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 2018-03-22 05:46:32.000000000 +0100 +++ new/lib/rake/version.rb 2018-12-07 10:47:17.000000000 +0100 @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "12.3.1" + VERSION = "12.3.2" 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 2018-03-22 05:46:32.000000000 +0100 +++ new/metadata 2018-12-07 10:47:17.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: rake version: !ruby/object:Gem::Version - version: 12.3.1 + version: 12.3.2 platform: ruby authors: - Hiroshi SHIBATA @@ -10,7 +10,7 @@ autorequire: bindir: exe cert_chain: [] -date: 2018-03-22 00:00:00.000000000 Z +date: 2018-12-07 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler @@ -108,7 +108,11 @@ - MIT-LICENSE - README.rdoc - Rakefile +- bin/bundle - bin/console +- bin/rake +- bin/rdoc +- bin/rubocop - bin/setup - doc/command_line_usage.rdoc - doc/example/Rakefile1
