rake 13.2.1 → 13.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70e1c62235097400cab35576324e9b3fcb48b90559477aedbbef03c9815a2fff
4
- data.tar.gz: 94599a5608579b6b1e475a96694f2474a8d0fb4ee4fd526aeb82f13188aed3f4
3
+ metadata.gz: 2f0dfe4cdb0a88ad0df787318f603bf719066a217bb302ce0a00f5b8088e97b3
4
+ data.tar.gz: 531066b57ebab5784756b6ebf3e8fc29e2fcd41d5685d1b1b0821d1edf274f42
5
5
  SHA512:
6
- metadata.gz: 1fa7156b0b9dd984ca3b08061fb62d386407584a69b9442d88c424d847a20523d68555cc9a6e59b8dea58390839e0b588f5f406097cf8670b079672ad543cba4
7
- data.tar.gz: 56edb7f28a274c3d2ba30ad80906194a0ef44a765c8d6ee11c922e62f075ccb132e3bcebbe9d25194ce498dc83748eec85a56aa99fd7d34a20eed553bf79f8ee
6
+ metadata.gz: 180ec362668e3a6c36dc0158c01169c20b8ca5bbd9ea6723e1bdfd645371e77247fbecbe05ed11ab24139657d11421c8935c44e53465dacb41d13e6ea6617f4b
7
+ data.tar.gz: 5736568428c9bfac4be006ff2628a0d673c8ca5a18cc431a16e5ace07f527aaf1e2587b274b7fa86700d284e4a4862cfd761dc75bf96d139222c6ca88efc5e0b
data/History.rdoc CHANGED
@@ -1,3 +1,54 @@
1
+ === 13.2.1
2
+
3
+ * Suppressed "internal:array:52:in 'Array#each'" from backtrace by @hsbt in #554
4
+ * Bump actions/configure-pages from 4 to 5 by @dependabot in #553
5
+
6
+ === 13.2.0
7
+
8
+ * Fix rule example to be correct by @zenspider in #525
9
+ * Switch to use test-unit by @hsbt in #536
10
+ * Removed redundant block by @hsbt in #537
11
+ * Use Struct instead of OpenStruct. by @hsbt in #545
12
+ * Accept FileList object as directory task's target by @gemmaro in #530
13
+ * Fix exception when exception has nil backtrace by @janbiedermann in #451
14
+ * Add TruffleRuby on CI by @andrykonchin in #551
15
+
16
+ === 13.1.0
17
+
18
+ * Added dependabot.yml for actions by @hsbt in #416
19
+ * Add Ruby 3.1 to the CI matrix by @petergoldstein in #415
20
+ * (Performance) Remove unnecessary I/O syscalls for FileTasks by @da2x in #393
21
+ * Skip test failure with JRuby by @hsbt in #418
22
+ * Remove bin/rdoc by @tnir in #421
23
+ * Remove bin/rake by @tnir in #422
24
+ * Remove bin/bundle by @tnir in #425
25
+ * Apply RuboCop linting for Ruby 2.3 by @tnir in #423
26
+ * Update rubocop to work with Ruby 2.4 compatible by @tnir in #424
27
+ * chore: fix typo in comments by @tnir in #429
28
+ * Use 'test' as workflow name on Actions by @tnir in #427
29
+ * docs: update CONTRIBUTING.rdoc by @tnir in #428
30
+ * Add RuboCop job to Actions by @tnir in #426
31
+ * Lock minitest-5.15.0 for Ruby 2.2 by @hsbt in #442
32
+ * Eagerly require set in thread_pool.rb by @jeremyevans in #440
33
+ * Avoid creating an unnecessary thread pool by @jeremyevans in #441
34
+ * Add credit for maintenance in Rake 12/13 by @tnir in #443
35
+ * Sh fully echoes commands which error exit by @MarkDBlackwell in #147
36
+ * Correct RuboCop offenses by @deivid-rodriguez in #444
37
+ * [StepSecurity] ci: Harden GitHub Actions by @step-security-bot in #450
38
+ * Add ruby 3.2 to test matrix by @hanneskaeufler in #458
39
+ * Missing 'do' on example by @zzak in #467
40
+ * Try to use dependabot automerge by @hsbt in #470
41
+ * Rewrite auto-merge feature for dependabot by @hsbt in #471
42
+ * Update bundler in Dependabot by @ono-max in #472
43
+ * Fix grammar in help text by @mebezac in #381
44
+ * Try to use ruby/ruby/.github/workflows/ruby_versions.yml@master by @hsbt in #475
45
+ * Use GitHub Pages Action for generating rdoc page by @hsbt in #477
46
+ * Support #detailed_message when task failed by @ksss in #486
47
+ * Debug at stop when task fail by @ksss in #489
48
+ * Drop to support Ruby 2.2 by @hsbt in #492
49
+ * Bump up setup-ruby by @hsbt in #497
50
+ * Update development dependencies by @hsbt in #505
51
+
1
52
  === 13.0.6
2
53
 
3
54
  * Additional fix for #389
@@ -37,7 +88,7 @@
37
88
 
38
89
  ==== Bug fixes
39
90
 
40
- * Fixed bug: Reenabled task raises previous exception on second invokation
91
+ * Fixed bug: Reenabled task raises previous exception on second invokation
41
92
  Pull Request #271 by thorsteneckel
42
93
  * Fix an incorrectly resolved arg pattern
43
94
  Pull Request #327 by mjbellantoni
@@ -48,7 +99,7 @@
48
99
 
49
100
  * Follows recent changes on keyword arguments in ruby 2.7.
50
101
  Pull Request #326 by nobu
51
- * Make `PackageTask` be able to omit parent directory while packing files
102
+ * Make `PackageTask` be able to omit parent directory while packing files
52
103
  Pull Request #310 by tonytonyjan
53
104
  * Add order only dependency
54
105
  Pull Request #269 by take-cheeze
data/README.rdoc CHANGED
@@ -74,10 +74,10 @@ Type "rake --help" for all available options.
74
74
 
75
75
  === Rake Information
76
76
 
77
- * {Rake command-line}[link:doc/command_line_usage.rdoc]
78
- * {Writing Rakefiles}[link:doc/rakefile.rdoc]
79
- * The original {Rake announcement}[link:doc/rational.rdoc]
80
- * Rake {glossary}[link:doc/glossary.rdoc]
77
+ * {Rake command-line}[rdoc-ref:doc/command_line_usage.rdoc]
78
+ * {Writing Rakefiles}[rdoc-ref:doc/rakefile.rdoc]
79
+ * The original {Rake announcement}[rdoc-ref:doc/rational.rdoc]
80
+ * Rake {glossary}[rdoc-ref:doc/glossary.rdoc]
81
81
 
82
82
  === Presentations and Articles about Rake
83
83
 
@@ -148,7 +148,7 @@ February 2014. This repository was originally hosted at
148
148
  with his passing, has been moved to {ruby/rake}[https://github.com/ruby/rake].
149
149
 
150
150
  You can view Jim's last commit here:
151
- https://github.com/jimweirich/rake/tree/336559f28f55bce418e2ebcc0a57548dcbac4025
151
+ https://github.com/jimweirich/rake/commit/336559f28f55bce418e2ebcc0a57548dcbac4025
152
152
 
153
153
  You can {read more about Jim}[https://en.wikipedia.org/wiki/Jim_Weirich] at Wikipedia.
154
154
 
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
  require "optparse"
3
3
 
4
- require "rake/task_manager"
5
- require "rake/file_list"
6
- require "rake/thread_pool"
7
- require "rake/thread_history_display"
8
- require "rake/trace_output"
9
- require "rake/win32"
4
+ require_relative "task_manager"
5
+ require_relative "file_list"
6
+ require_relative "thread_pool"
7
+ require_relative "thread_history_display"
8
+ require_relative "trace_output"
9
+ require_relative "win32"
10
10
 
11
11
  module Rake
12
12
 
@@ -691,7 +691,7 @@ module Rake
691
691
 
692
692
  # Similar to the regular Ruby +require+ command, but will check
693
693
  # for *.rake files in addition to *.rb files.
694
- def rake_require(file_name, paths=$LOAD_PATH, loaded=$") # :nodoc:
694
+ def rake_require(file_name, paths=$LOAD_PATH, loaded=$LOADED_FEATURES) # :nodoc:
695
695
  fn = file_name + ".rake"
696
696
  return false if loaded.include?(fn)
697
697
  paths.each do |path|
@@ -755,14 +755,7 @@ module Rake
755
755
 
756
756
  # The directory path containing the system wide rakefiles.
757
757
  def system_dir # :nodoc:
758
- @system_dir ||=
759
- begin
760
- if ENV["RAKE_SYSTEM"]
761
- ENV["RAKE_SYSTEM"]
762
- else
763
- standard_system_dir
764
- end
765
- end
758
+ @system_dir ||= ENV["RAKE_SYSTEM"] || standard_system_dir
766
759
  end
767
760
 
768
761
  # The standard directory containing system wide rake files.
@@ -772,7 +765,7 @@ module Rake
772
765
  end
773
766
  else
774
767
  def standard_system_dir #:nodoc:
775
- File.join(File.expand_path("~"), ".rake")
768
+ File.join(Dir.home, ".rake")
776
769
  end
777
770
  end
778
771
  private :standard_system_dir
data/lib/rake/clean.rb CHANGED
@@ -12,7 +12,7 @@
12
12
  # The intent of this task is to return a project to its
13
13
  # pristine, just unpacked state.
14
14
 
15
- require "rake"
15
+ require_relative "../rake"
16
16
 
17
17
  # :stopdoc:
18
18
 
@@ -58,11 +58,20 @@ unless Rake::CpuCounter.method_defined?(:count)
58
58
  end
59
59
 
60
60
  def count_via_win32
61
- require 'win32ole'
62
- wmi = WIN32OLE.connect("winmgmts://")
63
- cpu = wmi.ExecQuery("select NumberOfCores from Win32_Processor") # TODO count hyper-threaded in this
64
- cpu.to_enum.first.NumberOfCores
65
- rescue StandardError, LoadError
61
+ # Get-CimInstance introduced in PowerShell 3 or earlier: https://learn.microsoft.com/en-us/previous-versions/powershell/module/cimcmdlets/get-ciminstance?view=powershell-3.0
62
+ result = run_win32(
63
+ 'powershell -command "Get-CimInstance -ClassName Win32_Processor -Property NumberOfCores ' \
64
+ '| Select-Object -Property NumberOfCores"'
65
+ )
66
+ if !result || $?.exitstatus != 0
67
+ # fallback to deprecated wmic for older systems
68
+ result = run_win32("wmic cpu get NumberOfCores")
69
+ end
70
+
71
+ # powershell: "\nNumberOfCores\n-------------\n 4\n\n\n"
72
+ # wmic: "NumberOfCores \n\n4 \n\n\n\n"
73
+ result.scan(/\d+/).map(&:to_i).reduce(:+) if result
74
+ rescue StandardError
66
75
  nil
67
76
  end
68
77
 
@@ -87,6 +96,12 @@ unless Rake::CpuCounter.method_defined?(:count)
87
96
  end
88
97
  end
89
98
 
99
+ def run_win32(command, *args)
100
+ IO.popen(command, &:read)
101
+ rescue Errno::ENOENT
102
+ nil
103
+ end
104
+
90
105
  def resolve_command(command)
91
106
  look_for_command("/usr/sbin", command) ||
92
107
  look_for_command("/sbin", command) ||
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  # Rake DSL functions.
3
- require "rake/file_utils_ext"
3
+ require_relative "file_utils_ext"
4
4
 
5
5
  module Rake
6
6
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "rake/ext/core"
2
+ require_relative "core"
3
3
 
4
4
  class String
5
5
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require "rake/file_task"
3
- require "rake/early_time"
2
+ require_relative "file_task"
3
+ require_relative "early_time"
4
4
 
5
5
  module Rake
6
6
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require "rake/cloneable"
3
- require "rake/file_utils_ext"
4
- require "rake/ext/string"
2
+ require_relative "cloneable"
3
+ require_relative "file_utils_ext"
4
+ require_relative "ext/string"
5
5
 
6
6
  module Rake
7
7
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require "rake/task"
3
- require "rake/early_time"
2
+ require_relative "task"
3
+ require_relative "early_time"
4
4
 
5
5
  module Rake
6
6
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "rake/file_utils"
2
+ require_relative "file_utils"
3
3
 
4
4
  module Rake
5
5
  #
@@ -2,8 +2,8 @@
2
2
  # Define a package task library to aid in the definition of
3
3
  # redistributable package files.
4
4
 
5
- require "rake"
6
- require "rake/tasklib"
5
+ require_relative "../rake"
6
+ require_relative "tasklib"
7
7
 
8
8
  module Rake
9
9
 
data/lib/rake/phony.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # See FileTask#out_of_date? and Task#timestamp for more info.
7
7
 
8
- require "rake"
8
+ require_relative "../rake"
9
9
 
10
10
  task :phony
11
11
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rake/file_list"
3
+ require_relative "file_list"
4
4
 
5
5
  # Load the test files from the command line.
6
6
  argv = ARGV.select do |argument|
data/lib/rake/task.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "rake/invocation_exception_mixin"
2
+ require_relative "invocation_exception_mixin"
3
3
 
4
4
  module Rake
5
5
 
@@ -94,6 +94,10 @@ module Rake
94
94
  @hash.fetch(*args, &block)
95
95
  end
96
96
 
97
+ def deconstruct_keys(keys)
98
+ @hash.slice(*keys)
99
+ end
100
+
97
101
  protected
98
102
 
99
103
  def lookup(name) # :nodoc:
@@ -35,7 +35,7 @@ module Rake
35
35
  task.set_arg_names(arg_names) unless arg_names.empty?
36
36
  if Rake::TaskManager.record_task_metadata
37
37
  add_location(task)
38
- task.add_description(get_description(task))
38
+ task.add_description(get_description)
39
39
  end
40
40
  task.enhance(Task.format_deps(deps), &block)
41
41
  task | order_only unless order_only.nil?
@@ -316,7 +316,7 @@ module Rake
316
316
  end
317
317
 
318
318
  # Return the current description, clearing it in the process.
319
- def get_description(task)
319
+ def get_description
320
320
  desc = @last_description
321
321
  @last_description = nil
322
322
  desc
data/lib/rake/tasklib.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "rake"
2
+ require_relative "../rake"
3
3
 
4
4
  module Rake
5
5
 
data/lib/rake/testtask.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require "rake"
3
- require "rake/tasklib"
2
+ require_relative "../rake"
3
+ require_relative "tasklib"
4
4
 
5
5
  module Rake
6
6
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "rake/private_reader"
2
+ require_relative "private_reader"
3
3
 
4
4
  module Rake
5
5
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rake/promise"
3
+ require_relative "promise"
4
4
  require "set"
5
5
 
6
6
  module Rake
data/lib/rake/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Rake
3
- VERSION = "13.2.1"
3
+ VERSION = "13.3.0"
4
4
 
5
5
  module Version # :nodoc: all
6
6
  MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "."
data/lib/rake.rb CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
  module Rake; end
25
25
 
26
- require "rake/version"
26
+ require_relative "rake/version"
27
27
 
28
28
  require "rbconfig"
29
29
  require "fileutils"
@@ -31,36 +31,34 @@ require "singleton"
31
31
  require "monitor"
32
32
  require "optparse"
33
33
 
34
- require "rake/ext/string"
34
+ require_relative "rake/ext/string"
35
35
 
36
- require "rake/win32"
36
+ require_relative "rake/win32"
37
37
 
38
- require "rake/linked_list"
39
- require "rake/cpu_counter"
40
- require "rake/scope"
41
- require "rake/task_argument_error"
42
- require "rake/rule_recursion_overflow_error"
43
- require "rake/rake_module"
44
- require "rake/trace_output"
45
- require "rake/pseudo_status"
46
- require "rake/task_arguments"
47
- require "rake/invocation_chain"
48
- require "rake/task"
49
- require "rake/file_task"
50
- require "rake/file_creation_task"
51
- require "rake/multi_task"
52
- require "rake/dsl_definition"
53
- require "rake/file_utils_ext"
54
- require "rake/file_list"
55
- require "rake/default_loader"
56
- require "rake/early_time"
57
- require "rake/late_time"
58
- require "rake/name_space"
59
- require "rake/task_manager"
60
- require "rake/application"
61
- require "rake/backtrace"
62
-
63
- $trace = false
38
+ require_relative "rake/linked_list"
39
+ require_relative "rake/cpu_counter"
40
+ require_relative "rake/scope"
41
+ require_relative "rake/task_argument_error"
42
+ require_relative "rake/rule_recursion_overflow_error"
43
+ require_relative "rake/rake_module"
44
+ require_relative "rake/trace_output"
45
+ require_relative "rake/pseudo_status"
46
+ require_relative "rake/task_arguments"
47
+ require_relative "rake/invocation_chain"
48
+ require_relative "rake/task"
49
+ require_relative "rake/file_task"
50
+ require_relative "rake/file_creation_task"
51
+ require_relative "rake/multi_task"
52
+ require_relative "rake/dsl_definition"
53
+ require_relative "rake/file_utils_ext"
54
+ require_relative "rake/file_list"
55
+ require_relative "rake/default_loader"
56
+ require_relative "rake/early_time"
57
+ require_relative "rake/late_time"
58
+ require_relative "rake/name_space"
59
+ require_relative "rake/task_manager"
60
+ require_relative "rake/application"
61
+ require_relative "rake/backtrace"
64
62
 
65
63
  # :stopdoc:
66
64
  #
data/rake.gemspec CHANGED
@@ -25,9 +25,9 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.metadata = {
27
27
  "bug_tracker_uri" => "https://github.com/ruby/rake/issues",
28
- "changelog_uri" => "https://github.com/ruby/rake/blob/v#{s.version}/History.rdoc",
28
+ "changelog_uri" => "https://github.com/ruby/rake/releases",
29
29
  "documentation_uri" => "https://ruby.github.io/rake",
30
- "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}"
30
+ "source_code_uri" => "#{s.homepage}/releases/v#{s.version}"
31
31
  }
32
32
 
33
33
  s.files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.2.1
4
+ version: 13.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi SHIBATA
@@ -9,7 +9,7 @@ authors:
9
9
  - Jim Weirich
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-04-05 00:00:00.000000000 Z
12
+ date: 1980-01-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |
15
15
  Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
@@ -95,9 +95,9 @@ licenses:
95
95
  - MIT
96
96
  metadata:
97
97
  bug_tracker_uri: https://github.com/ruby/rake/issues
98
- changelog_uri: https://github.com/ruby/rake/blob/v13.2.1/History.rdoc
98
+ changelog_uri: https://github.com/ruby/rake/releases
99
99
  documentation_uri: https://ruby.github.io/rake
100
- source_code_uri: https://github.com/ruby/rake/tree/v13.2.1
100
+ source_code_uri: https://github.com/ruby/rake/releases/v13.3.0
101
101
  rdoc_options:
102
102
  - "--main"
103
103
  - README.rdoc
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
- rubygems_version: 3.6.0.dev
117
+ rubygems_version: 3.6.7
118
118
  specification_version: 4
119
119
  summary: Rake is a Make-like program implemented in Ruby
120
120
  test_files: []