Hello community, here is the log from the commit of package rubygem-rake for openSUSE:Factory checked in at 2017-11-01 11:09:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rake (Old) and /work/SRC/openSUSE:Factory/.rubygem-rake.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rake" Wed Nov 1 11:09:28 2017 rev:4 rq:537505 version:12.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rake/rubygem-rake.changes 2017-09-13 22:36:02.447412623 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rake.new/rubygem-rake.changes 2017-11-01 11:09:29.250103784 +0100 @@ -1,0 +2,28 @@ +Thu Oct 26 10:08:57 UTC 2017 - [email protected] + +- updated to version 12.2.1 + see installed History.rdoc + + === 12.2.1 + + ==== Bug fixes + + * Fixed to break Capistrano::Application on capistrano3. + + === 12.2.0 + + ==== Enhancements: + + * Make rake easier to use as a library + Pull request #211 by @drbrain + * Fix quadratic performance in FileTask#out_of_date? + Pull request #224 by @doudou + * Clarify output when printing nested exception traces + Pull request #232 by @urbanautomaton + + ==== Bug fixes + + * Account for a file that match 2 or more patterns. + Pull request #231 by @styd + +------------------------------------------------------------------- Old: ---- rake-12.1.0.gem New: ---- rake-12.2.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rake.spec ++++++ --- /var/tmp/diff_new_pack.F4lFkT/_old 2017-11-01 11:09:30.146071057 +0100 +++ /var/tmp/diff_new_pack.F4lFkT/_new 2017-11-01 11:09:30.150070911 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rake -Version: 12.1.0 +Version: 12.2.1 Release: 0 %define mod_name rake %define mod_full_name %{mod_name}-%{version} ++++++ rake-12.1.0.gem -> rake-12.2.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc --- old/History.rdoc 2017-09-11 04:22:49.000000000 +0200 +++ new/History.rdoc 2017-10-25 04:05:33.000000000 +0200 @@ -1,3 +1,25 @@ +=== 12.2.1 + +==== Bug fixes + +* Fixed to break Capistrano::Application on capistrano3. + +=== 12.2.0 + +==== Enhancements: + +* Make rake easier to use as a library + Pull request #211 by @drbrain +* Fix quadratic performance in FileTask#out_of_date? + Pull request #224 by @doudou +* Clarify output when printing nested exception traces + Pull request #232 by @urbanautomaton + +==== Bug fixes + +* Account for a file that match 2 or more patterns. + Pull request #231 by @styd + === 12.1.0 ==== Enhancements: @@ -14,7 +36,7 @@ Pull request #183 by @aycabta. * Make LoadError from running tests more obvious. Pull request #195 by Eric Hodel. -* Fix unexpected TypeError with hash stayle option. Pull request #202 +* Fix unexpected TypeError with hash style option. Pull request #202 by Kuniaki IGARASHI. === 12.0.0 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-09-11 04:22:49.000000000 +0200 +++ new/lib/rake/application.rb 2017-10-25 04:05:33.000000000 +0200 @@ -62,6 +62,8 @@ add_loader("rake", DefaultLoader.new) @tty_output = STDOUT.tty? @terminal_columns = ENV["RAKE_COLUMNS"].to_i + + set_default_options end # Run the Rake application. The run method performs the following @@ -74,19 +76,24 @@ # If you wish to build a custom rake command, you should call # +init+ on your application. Then define any tasks. Finally, # call +top_level+ to run your top level tasks. - def run + def run(argv = ARGV) standard_exception_handling do - init + init "rake", argv load_rakefile top_level end end # Initialize the command line parameters and app name. - def init(app_name="rake") + def init(app_name="rake", argv = ARGV) standard_exception_handling do @name = app_name - args = handle_options + begin + args = handle_options argv + rescue ArgumentError + # Backword compatibility for capistrano + args = handle_options + end collect_command_line_tasks(args) end end @@ -205,13 +212,22 @@ end def display_exception_details(ex) # :nodoc: - seen = Thread.current[:rake_display_exception_details_seen] ||= [] - return if seen.include? ex - seen << ex + display_exception_details_seen << ex display_exception_message_details(ex) display_exception_backtrace(ex) - display_exception_details(ex.cause) if has_cause?(ex) + display_cause_details(ex.cause) if has_cause?(ex) + end + + def display_cause_details(ex) # :nodoc: + return if display_exception_details_seen.include? ex + + trace "\nCaused by:" + display_exception_details(ex) + end + + def display_exception_details_seen # :nodoc: + Thread.current[:rake_display_exception_details_seen] ||= [] end def has_cause?(ex) # :nodoc: @@ -618,9 +634,8 @@ # Read and handle the command line options. Returns the command line # arguments that we didn't understand, which should (in theory) be just # task names and env vars. - def handle_options # :nodoc: - options.rakelib = ["rakelib"] - options.trace_output = $stderr + def handle_options(argv) # :nodoc: + set_default_options OptionParser.new do |opts| opts.banner = "#{Rake.application.name} [-f rakefile] {options} targets..." @@ -634,7 +649,7 @@ standard_rake_options.each { |args| opts.on(*args) } opts.environment("RAKEOPT") - end.parse(ARGV) + end.parse(argv) end # Similar to the regular Ruby +require+ command, but will check @@ -782,5 +797,28 @@ backtrace.find { |str| str =~ re } || "" end + def set_default_options + options.always_multitask = false + options.backtrace = false + options.build_all = false + options.dryrun = false + options.ignore_deprecate = false + options.ignore_system = false + options.job_stats = false + options.load_system = false + options.nosearch = false + options.rakelib = %w[rakelib] + options.show_all_tasks = false + options.show_prereqs = false + options.show_task_pattern = nil + options.show_tasks = nil + options.silent = false + options.suppress_backtrace_pattern = nil + options.thread_pool_size = Rake.suggested_thread_count + options.trace = false + options.trace_output = $stderr + options.trace_rules = false + end + end end 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 2017-09-11 04:22:49.000000000 +0200 +++ new/lib/rake/file_list.rb 2017-10-25 04:05:33.000000000 +0200 @@ -318,14 +318,14 @@ # Return a new file list that only contains file names from the current # file list that exist on the file system. def existing - select { |fn| File.exist?(fn) } + select { |fn| File.exist?(fn) }.uniq end # Modify the current file list so that it contains only file name that # exist on the file system. def existing! resolve - @items = @items.select { |fn| File.exist?(fn) } + @items = @items.select { |fn| File.exist?(fn) }.uniq self end 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 2017-09-11 04:22:49.000000000 +0200 +++ new/lib/rake/file_task.rb 2017-10-25 04:05:33.000000000 +0200 @@ -30,10 +30,10 @@ # Are there any prerequisites with a later time than the given time stamp? def out_of_date?(stamp) - @prerequisites.any? { |prereq| + all_prerequisite_tasks.any? { |prereq| prereq_task = application[prereq, @scope] if prereq_task.instance_of?(Rake::FileTask) - prereq_task.timestamp > stamp || prereq_task.needed? + prereq_task.timestamp > stamp || @application.options.build_all else prereq_task.timestamp > stamp end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rake/rake_module.rb new/lib/rake/rake_module.rb --- old/lib/rake/rake_module.rb 2017-09-11 04:22:49.000000000 +0200 +++ new/lib/rake/rake_module.rb 2017-10-25 04:05:33.000000000 +0200 @@ -34,6 +34,34 @@ application.options.rakelib ||= [] application.options.rakelib.concat(files) end + + # Make +block_application+ the default rake application inside a block so + # you can load rakefiles into a different application. + # + # This is useful when you want to run rake tasks inside a library without + # running rake in a sub-shell. + # + # Example: + # + # Dir.chdir 'other/directory' + # + # other_rake = Rake.with_application do |rake| + # rake.load_rakefile + # end + # + # puts other_rake.tasks + + def with_application(block_application = Rake::Application.new) + orig_application = Rake.application + + Rake.application = block_application + + yield block_application + + block_application + ensure + Rake.application = orig_application + end end 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 2017-09-11 04:22:49.000000000 +0200 +++ new/lib/rake/version.rb 2017-10-25 04:05:33.000000000 +0200 @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "12.1.0" + VERSION = "12.2.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-09-11 04:22:49.000000000 +0200 +++ new/metadata 2017-10-25 04:05:33.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: rake version: !ruby/object:Gem::Version - version: 12.1.0 + version: 12.2.1 platform: ruby authors: - Hiroshi SHIBATA @@ -10,7 +10,7 @@ autorequire: bindir: exe cert_chain: [] -date: 2016-12-06 00:00:00.000000000 Z +date: 2017-10-25 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler @@ -189,7 +189,7 @@ version: 1.3.2 requirements: [] rubyforge_project: -rubygems_version: 2.6.13 +rubygems_version: 2.6.14 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-09-11 04:22:49.000000000 +0200 +++ new/rake.gemspec 2017-10-25 04:05:33.000000000 +0200 @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.name = "rake".freeze s.version = Rake::VERSION - s.date = "2016-12-06" + 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]
