Hello community,

here is the log from the commit of package rubygem-rake for openSUSE:Factory 
checked in at 2017-09-13 22:34:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rake (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rake.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rake"

Wed Sep 13 22:34:32 2017 rev:3 rq:523495 version:12.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rake/rubygem-rake.changes        
2017-02-04 00:56:54.179266809 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-rake.new/rubygem-rake.changes   
2017-09-13 22:36:02.447412623 +0200
@@ -1,0 +2,25 @@
+Mon Sep 11 12:50:02 UTC 2017 - co...@suse.com
+
+- updated to version 12.1.0
+ see installed History.rdoc
+
+  === 12.1.0
+  
+  ==== Enhancements:
+  
+  * Added did_you_mean feature for invalid rake task.
+    Pull request #221 by @xtina-starr
+  * Enabled to dependency chained by extensions. Pull request #39 by Petr 
Skocik.
+  * Make all of string literals to frozen objects on Ruby 2.4 or later.
+  
+  ==== Bug fixes
+  
+  * Typo fixes in rakefile.rdoc. Pull request #180 by Yuta Kurotaki.
+  * Fix unexpected behavior of file task with dryrun option.
+    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
+    by Kuniaki IGARASHI.
+
+-------------------------------------------------------------------

Old:
----
  rake-12.0.0.gem

New:
----
  rake-12.1.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-rake.spec ++++++
--- /var/tmp/diff_new_pack.92VvWg/_old  2017-09-13 22:36:03.507263398 +0200
+++ /var/tmp/diff_new_pack.92VvWg/_new  2017-09-13 22:36:03.507263398 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-rake
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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,7 +24,7 @@
 #
 
 Name:           rubygem-rake
-Version:        12.0.0
+Version:        12.1.0
 Release:        0
 %define mod_name rake
 %define mod_full_name %{mod_name}-%{version}
@@ -35,7 +35,7 @@
 BuildRequires:  ruby-macros >= 5
 BuildRequires:  update-alternatives
 Url:            https://github.com/ruby/rake
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        Rake is a Make-like program implemented in Ruby
 License:        MIT

++++++ rake-12.0.0.gem -> rake-12.1.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.rubocop.yml new/.rubocop.yml
--- old/.rubocop.yml    2016-12-06 12:44:33.000000000 +0100
+++ new/.rubocop.yml    1970-01-01 01:00:00.000000000 +0100
@@ -1,57 +0,0 @@
-AllCops:
-  TargetRubyVersion: 2.3
-  DisabledByDefault: true
-  Exclude:
-    - doc/**/*.rb
-    - rake.gemspec
-
-Style/LineLength:
-  Enabled: true
-  Max: 120
-
-Style/HashSyntax:
-  Enabled: true
-
-Style/StringLiterals:
-  Enabled: true
-  EnforcedStyle: double_quotes
-
-Style/IndentationWidth:
-  Enabled: true
-
-Style/Tab:
-  Enabled: true
-
-Style/EmptyLines:
-  Enabled: true
-
-Style/TrailingBlankLines:
-  Enabled: true
-
-Style/TrailingWhitespace:
-  Enabled: true
-
-Style/SpaceBeforeBlockBraces:
-  Enabled: true
-
-Style/SpaceInsideBlockBraces:
-  Enabled: true
-
-Style/SpaceInsideHashLiteralBraces:
-  Enabled: true
-
-Style/CaseIndentation:
-  Enabled: true
-
-Style/MultilineIfThen:
-  Enabled: true
-
-Style/MethodDefParentheses:
-  Enabled: true
-
-Style/BracesAroundHashParameters:
-  Enabled: true
-
-Lint/EndAlignment:
-  Enabled: true
-  AlignWith: variable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2016-12-06 12:44:33.000000000 +0100
+++ new/.travis.yml     1970-01-01 01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-language: ruby
-sudo: false
-rvm:
-  - 1.9.3
-  - 2.0.0
-  - 2.1.10
-  - 2.2.5
-  - 2.3.1
-  - ruby-head
-  - jruby-1.7.20
-  - jruby-9.1.6.0
-  - jruby-head
-before_install:
-  - gem install bundler --no-document -v '~> 1.13.3'
-before_script:
-  - unset JRUBY_OPTS
-script: ruby -Ilib exe/rake
-notifications:
-  email:
-  - h...@ruby-lang.org
-  - drbr...@segment7.net
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc    2016-12-06 12:44:33.000000000 +0100
+++ new/History.rdoc    2017-09-11 04:22:49.000000000 +0200
@@ -1,10 +1,29 @@
+=== 12.1.0
+
+==== Enhancements:
+
+* Added did_you_mean feature for invalid rake task.
+  Pull request #221 by @xtina-starr
+* Enabled to dependency chained by extensions. Pull request #39 by Petr Skocik.
+* Make all of string literals to frozen objects on Ruby 2.4 or later.
+
+==== Bug fixes
+
+* Typo fixes in rakefile.rdoc. Pull request #180 by Yuta Kurotaki.
+* Fix unexpected behavior of file task with dryrun option.
+  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
+  by Kuniaki IGARASHI.
+
 === 12.0.0
 
 ==== Compatibility Changes
 
-* Remove arguments on clear #157 by Jesse Bowes
+* Removed arguments on clear #157 by Jesse Bowes
 * Removed `rake/contrib` packages. These are extracted to `rake-contrib` gem.
-* Removed to deprecated warnings for `last\_comment`.
+* Removed deprecated method named `last\_comment`.
 
 ==== Enhancements:
 
@@ -385,7 +404,7 @@
   programatically add rake task libraries.
 
 * You can specific backtrace suppression patterns (see
-  --supress-backtrace)
+  --suppress-backtrace)
 
 * Directory tasks can now take prerequisites and actions
 
@@ -633,7 +652,7 @@
   programatically add rake task libraries.
 
 * You can specific backtrace suppression patterns (see
-  --supress-backtrace)
+  --suppress-backtrace)
 
 * Directory tasks can now take prerequisites and actions
 
@@ -843,7 +862,7 @@
   programatically add rake task libraries.
 
 * You can specific backtrace suppression patterns (see
-  --supress-backtrace)
+  --suppress-backtrace)
 
 * Directory tasks can now take prerequisites and actions
 
@@ -1415,7 +1434,7 @@
 The next to argumements are the names of the parameters expected by
 :name (:first_name and :last_name in the example).
 
-To access the values of the paramters, the block defining the task
+To access the values of the parameters, the block defining the task
 behaviour can now accept a second parameter:
 
    task :name, :first_name, :last_name do |t, args|
@@ -1518,7 +1537,7 @@
 The next to argumements are the names of the parameters expected by
 :name (:first_name and :last_name in the example).
 
-To access the values of the paramters, the block defining the task
+To access the values of the parameters, the block defining the task
 behaviour can now accept a second parameter:
 
    task :name, :first_name, :last_name do |t, args|
@@ -1738,7 +1757,7 @@
 * RDoc defaults to internal (in-process) invocation.  The old behavior
   is still available by setting the +external+ flag to true.
 * Rakefiles are now loaded with the expanded path to prevent
-  accidental polution from the Ruby load path.
+  accidental pollution from the Ruby load path.
 * Task objects my now be used in prerequisite lists directly.
 * Task objects (in addition to task names) may now be included in the
   prerequisite list of a task.
@@ -1751,7 +1770,7 @@
 ===== Namespaces
 
 Tasks can now be nested inside their own namespaces.  Tasks within one
-namespace will not accidently interfer with tasks named in a different
+namespace will not accidentally interfer with tasks named in a different
 namespace.
 
 For example:
@@ -1809,7 +1828,7 @@
 The following people either contributed patches, made suggestions or
 made otherwise helpful comments.  Thanks to ...
 
-* Doug Young (inspriation for the parallel task)
+* Doug Young (inspiration for the parallel task)
 * David Heinemeier Hansson (for --trace message enhancement and for
   pushing for namespace support).
 * Ludvig Omholt (for the openAFS fix)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/appveyor.yml new/appveyor.yml
--- old/appveyor.yml    2016-12-06 12:44:33.000000000 +0100
+++ new/appveyor.yml    1970-01-01 01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
----
-clone_depth: 10
-install:
-  - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
-  - gem install bundler --no-document
-  - bundle install
-build: off
-test_script:
-  - ruby -Ilib exe/rake
-deploy: off
-environment:
-  matrix:
-    - ruby_version: "193"
-    - ruby_version: "200"
-    - ruby_version: "200-x64"
-    - ruby_version: "21"
-    - ruby_version: "21-x64"
-    - ruby_version: "22"
-    - ruby_version: "22-x64"
-    - ruby_version: "23"
-    - ruby_version: "23-x64"
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/doc/jamis.rb new/doc/jamis.rb
--- old/doc/jamis.rb    2016-12-06 12:44:33.000000000 +0100
+++ new/doc/jamis.rb    2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module RDoc
 module Page
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/doc/rakefile.rdoc new/doc/rakefile.rdoc
--- old/doc/rakefile.rdoc       2016-12-06 12:44:33.000000000 +0100
+++ new/doc/rakefile.rdoc       2017-09-11 04:22:49.000000000 +0200
@@ -410,7 +410,7 @@
 describe your major tasks, you have a semi-automatic way of generating
 a summary of your Rake file.
 
-  traken$ rake -T
+  $ rake -T
   (in /home/.../rake)
   rake clean            # Remove any temporary products.
   rake clobber          # Remove any generated file.
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 2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/application.rb 2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "optparse"
 
 require "rake/task_manager"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/backtrace.rb new/lib/rake/backtrace.rb
--- old/lib/rake/backtrace.rb   2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/backtrace.rb   2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
   module Backtrace # :nodoc: all
     SYS_KEYS  = RbConfig::CONFIG.keys.grep(/(?:[a-z]prefix|libdir)\z/)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/clean.rb new/lib/rake/clean.rb
--- old/lib/rake/clean.rb       2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/clean.rb       2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 # The 'rake/clean' file defines two file lists (CLEAN and CLOBBER) and
 # two rake tasks (:clean and :clobber).
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/cloneable.rb new/lib/rake/cloneable.rb
--- old/lib/rake/cloneable.rb   2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/cloneable.rb   2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
   ##
   # Mixin for creating easily cloned objects.
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 2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/cpu_counter.rb 2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # Based on a script at:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/default_loader.rb 
new/lib/rake/default_loader.rb
--- old/lib/rake/default_loader.rb      2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/default_loader.rb      2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # Default Rakefile loader used by +import+.
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      2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/dsl_definition.rb      2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 # Rake DSL functions.
 require "rake/file_utils_ext"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/early_time.rb new/lib/rake/early_time.rb
--- old/lib/rake/early_time.rb  2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/early_time.rb  2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # EarlyTime is a fake timestamp that occurs _before_ any other time value.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/ext/core.rb new/lib/rake/ext/core.rb
--- old/lib/rake/ext/core.rb    2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/ext/core.rb    2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 class Module
   # Check for an existing method in the current class before extending.  If
   # the method already exists, then a warning is printed and the extension is
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/ext/string.rb new/lib/rake/ext/string.rb
--- old/lib/rake/ext/string.rb  2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/ext/string.rb  2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake/ext/core"
 
 class String
@@ -136,7 +137,7 @@
     # This String extension comes from Rake
     def pathmap(spec=nil, &block)
       return self if spec.nil?
-      result = ""
+      result = "".dup
       spec.scan(/%\{[^}]*\}-?\d*[sdpfnxX%]|%-?\d+d|%.|[^%]+/) do |frag|
         case frag
         when "%f"
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  2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/file_creation_task.rb  2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake/file_task"
 require "rake/early_time"
 
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   2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/file_list.rb   2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake/cloneable"
 require "rake/file_utils_ext"
 require "rake/ext/string"
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   2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/file_task.rb   2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake/task.rb"
 require "rake/early_time"
 
@@ -29,7 +30,14 @@
 
     # Are there any prerequisites with a later time than the given time stamp?
     def out_of_date?(stamp)
-      @prerequisites.any? { |n| application[n, @scope].timestamp > stamp }
+      @prerequisites.any? { |prereq|
+        prereq_task = application[prereq, @scope]
+        if prereq_task.instance_of?(Rake::FileTask)
+          prereq_task.timestamp > stamp || prereq_task.needed?
+        else
+          prereq_task.timestamp > stamp
+        end
+      }
     end
 
     # ----------------------------------------------------------------
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  2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/file_utils.rb  2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rbconfig"
 require "fileutils"
 
@@ -50,7 +51,7 @@
     Rake.rake_output_message sh_show_command cmd if verbose
 
     unless noop
-      res = system(*cmd, options)
+      res = (Hash === cmd.last) ? system(*cmd) : system(*cmd, options)
       status = $?
       status = Rake::PseudoStatus.new(1) if !res && status.nil?
       shell_runner.call(res, status)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/file_utils_ext.rb 
new/lib/rake/file_utils_ext.rb
--- old/lib/rake/file_utils_ext.rb      2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/file_utils_ext.rb      2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake/file_utils"
 
 module Rake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/invocation_chain.rb 
new/lib/rake/invocation_chain.rb
--- old/lib/rake/invocation_chain.rb    2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/invocation_chain.rb    2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # InvocationChain tracks the chain of task invocations to detect
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/invocation_exception_mixin.rb 
new/lib/rake/invocation_exception_mixin.rb
--- old/lib/rake/invocation_exception_mixin.rb  2016-12-06 12:44:33.000000000 
+0100
+++ new/lib/rake/invocation_exception_mixin.rb  2017-09-11 04:22:49.000000000 
+0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
   module InvocationExceptionMixin
     # Return the invocation chain (list of Rake tasks) that were in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/late_time.rb new/lib/rake/late_time.rb
--- old/lib/rake/late_time.rb   2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/late_time.rb   2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
   # LateTime is a fake timestamp that occurs _after_ any other time value.
   class LateTime
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/linked_list.rb new/lib/rake/linked_list.rb
--- old/lib/rake/linked_list.rb 2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/linked_list.rb 2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # Polylithic linked list structure used to implement several data
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/loaders/makefile.rb 
new/lib/rake/loaders/makefile.rb
--- old/lib/rake/loaders/makefile.rb    2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/loaders/makefile.rb    2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # Makefile loader to be used with the import file loader.  Use this to
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  2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/multi_task.rb  2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # Same as a regular task, but the immediate prerequisites are done in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/name_space.rb new/lib/rake/name_space.rb
--- old/lib/rake/name_space.rb  2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/name_space.rb  2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 ##
 # The NameSpace class will lookup task names in the scope defined by a
 # +namespace+ command.
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 2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/packagetask.rb 2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 # Define a package task library to aid in the definition of
 # redistributable package files.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/phony.rb new/lib/rake/phony.rb
--- old/lib/rake/phony.rb       2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/phony.rb       2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 # Defines a :phony task that you can use as a dependency. This allows
 # file-based tasks to use non-file-based tasks as prerequisites
 # without forcing them to rebuild.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/private_reader.rb 
new/lib/rake/private_reader.rb
--- old/lib/rake/private_reader.rb      2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/private_reader.rb      2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # Include PrivateReader to use +private_reader+.
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     2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/promise.rb     2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # A Promise object represents a promise to do work (a chore) in the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/pseudo_status.rb 
new/lib/rake/pseudo_status.rb
--- old/lib/rake/pseudo_status.rb       2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/pseudo_status.rb       2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   ##
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 2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/rake_module.rb 2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake/application"
 
 module Rake
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    2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/rake_test_loader.rb    2017-09-11 04:22:49.000000000 +0200
@@ -1,20 +1,25 @@
+# frozen_string_literal: true
 require "rake"
 
 # Load the test files from the command line.
 argv = ARGV.select do |argument|
-  case argument
-  when /^-/ then
-    argument
-  when /\*/ then
-    FileList[argument].to_a.each do |file|
-      require File.expand_path file
-    end
+  begin
+    case argument
+    when /^-/ then
+      argument
+    when /\*/ then
+      FileList[argument].to_a.each do |file|
+        require File.expand_path file
+      end
 
-    false
-  else
-    require File.expand_path argument
+      false
+    else
+      require File.expand_path argument
 
-    false
+      false
+    end
+  rescue LoadError => e
+    abort "\nFile does not exist: #{e.path}\n\n"
   end
 end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/rule_recursion_overflow_error.rb 
new/lib/rake/rule_recursion_overflow_error.rb
--- old/lib/rake/rule_recursion_overflow_error.rb       2016-12-06 
12:44:33.000000000 +0100
+++ new/lib/rake/rule_recursion_overflow_error.rb       2017-09-11 
04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # Error indicating a recursion overflow error in task selection.
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       2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/scope.rb       2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
   class Scope < LinkedList # :nodoc: all
 
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        2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/task.rb        2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake/invocation_exception_mixin"
 
 module Rake
@@ -320,7 +321,7 @@
     # Return a string describing the internal state of a task.  Useful for
     # debugging.
     def investigation
-      result = "------------------------------\n"
+      result = "------------------------------\n".dup
       result << "Investigating #{name}\n"
       result << "class: #{self.class}\n"
       result <<  "task needed: #{needed?}\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/task_argument_error.rb 
new/lib/rake/task_argument_error.rb
--- old/lib/rake/task_argument_error.rb 2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/task_argument_error.rb 2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # Error indicating an ill-formed task declaration.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/task_arguments.rb 
new/lib/rake/task_arguments.rb
--- old/lib/rake/task_arguments.rb      2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/task_arguments.rb      2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   ##
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        2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/task_manager.rb        2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
 
   # The TaskManager module is a mixin for managing tasks.
@@ -55,7 +56,21 @@
       self.lookup(task_name, scopes) or
         enhance_with_matching_rule(task_name) or
         synthesize_file_task(task_name) or
-        fail "Don't know how to build task '#{task_name}' (see --tasks)"
+        fail generate_message_for_undefined_task(task_name)
+    end
+
+    def generate_message_for_undefined_task(task_name)
+      message = "Don't know how to build task '#{task_name}' (see --tasks)"
+
+      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
+
+      message + suggestion_message
     end
 
     def synthesize_file_task(task_name) # :nodoc:
@@ -126,8 +141,8 @@
       fail Rake::RuleRecursionOverflowError,
         "Rule Recursion Too Deep" if level >= 16
       @rules.each do |pattern, args, extensions, block|
-        if pattern.match(task_name)
-          task = attempt_rule(task_name, args, extensions, block, level)
+        if pattern && pattern.match(task_name)
+          task = attempt_rule(task_name, pattern, args, extensions, block, 
level)
           return task if task
         end
       end
@@ -241,8 +256,8 @@
     end
 
     # Attempt to create a rule given the list of prerequisites.
-    def attempt_rule(task_name, args, extensions, block, level)
-      sources = make_sources(task_name, extensions)
+    def attempt_rule(task_name, task_pattern, args, extensions, block, level)
+      sources = make_sources(task_name, task_pattern, extensions)
       prereqs = sources.map { |source|
         trace_rule level, "Attempting Rule #{task_name} => #{source}"
         if File.exist?(source) || Rake::Task.task_defined?(source)
@@ -263,7 +278,7 @@
 
     # Make a list of sources from the list of file name extensions /
     # translation procs.
-    def make_sources(task_name, extensions)
+    def make_sources(task_name, task_pattern, extensions)
       result = extensions.map { |ext|
         case ext
         when /%/
@@ -271,7 +286,8 @@
         when %r{/}
           ext
         when /^\./
-          task_name.ext(ext)
+          source = task_name.sub(task_pattern, ext)
+          source == ext ? task_name.ext(ext) : source
         when String
           ext
         when Proc, Method
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/tasklib.rb new/lib/rake/tasklib.rb
--- old/lib/rake/tasklib.rb     2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/tasklib.rb     2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake"
 
 module Rake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/testtask.rb new/lib/rake/testtask.rb
--- old/lib/rake/testtask.rb    2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/testtask.rb    2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake"
 require "rake/tasklib"
 
@@ -50,6 +51,7 @@
 
     # Request that the tests be run with the warning flag set.
     # E.g. warning=true implies "ruby -w" used to run the tests.
+    # (default is true)
     attr_accessor :warning
 
     # Glob pattern to match test files. (default is 'test/test*.rb')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/thread_history_display.rb 
new/lib/rake/thread_history_display.rb
--- old/lib/rake/thread_history_display.rb      2016-12-06 12:44:33.000000000 
+0100
+++ new/lib/rake/thread_history_display.rb      2017-09-11 04:22:49.000000000 
+0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rake/private_reader"
 
 module Rake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/thread_pool.rb new/lib/rake/thread_pool.rb
--- old/lib/rake/thread_pool.rb 2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/thread_pool.rb 2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "set"
 
 require "rake/promise"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/trace_output.rb new/lib/rake/trace_output.rb
--- old/lib/rake/trace_output.rb        2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/trace_output.rb        2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module Rake
   module TraceOutput # :nodoc: all
 
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     2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/version.rb     2017-09-11 04:22:49.000000000 +0200
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
 module Rake
-  VERSION = "12.0.0"
+  VERSION = "12.1.0"
 
   module Version # :nodoc: all
     MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "."
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/win32.rb new/lib/rake/win32.rb
--- old/lib/rake/win32.rb       2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake/win32.rb       2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require "rbconfig"
 
 module Rake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake.rb new/lib/rake.rb
--- old/lib/rake.rb     2016-12-06 12:44:33.000000000 +0100
+++ new/lib/rake.rb     2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 #--
 # Copyright 2003-2010 by Jim Weirich (jim.weir...@gmail.com)
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-12-06 12:44:33.000000000 +0100
+++ new/metadata        2017-09-11 04:22:49.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: rake
 version: !ruby/object:Gem::Version
-  version: 12.0.0
+  version: 12.1.0
 platform: ruby
 authors:
 - Hiroshi SHIBATA
@@ -54,6 +54,34 @@
     - - ">="
       - !ruby/object:Gem::Version
         version: '0'
+- !ruby/object:Gem::Dependency
+  name: coveralls
+  requirement: !ruby/object:Gem::Requirement
+    requirements:
+    - - ">="
+      - !ruby/object:Gem::Version
+        version: '0'
+  type: :development
+  prerelease: false
+  version_requirements: !ruby/object:Gem::Requirement
+    requirements:
+    - - ">="
+      - !ruby/object:Gem::Version
+        version: '0'
+- !ruby/object:Gem::Dependency
+  name: rubocop
+  requirement: !ruby/object:Gem::Requirement
+    requirements:
+    - - ">="
+      - !ruby/object:Gem::Version
+        version: '0'
+  type: :development
+  prerelease: false
+  version_requirements: !ruby/object:Gem::Requirement
+    requirements:
+    - - ">="
+      - !ruby/object:Gem::Version
+        version: '0'
 description: |
   Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
   specified in standard Ruby syntax.
@@ -74,15 +102,12 @@
 extra_rdoc_files: []
 files:
 - ".gitignore"
-- ".rubocop.yml"
-- ".travis.yml"
 - CONTRIBUTING.rdoc
 - Gemfile
 - History.rdoc
 - MIT-LICENSE
 - README.rdoc
 - Rakefile
-- appveyor.yml
 - bin/console
 - bin/setup
 - doc/command_line_usage.rdoc
@@ -164,7 +189,7 @@
       version: 1.3.2
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.6.8
+rubygems_version: 2.6.13
 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    2016-12-06 12:44:33.000000000 +0100
+++ new/rake.gemspec    2017-09-11 04:22:49.000000000 +0200
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
 require 'rake/version'
 
@@ -23,7 +24,8 @@
   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 = `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]
@@ -36,4 +38,6 @@
   s.add_development_dependency(%q<bundler>.freeze)
   s.add_development_dependency(%q<minitest>.freeze)
   s.add_development_dependency(%q<rdoc>.freeze)
+  s.add_development_dependency(%q<coveralls>.freeze)
+  s.add_development_dependency(%q<rubocop>.freeze)
 end


Reply via email to