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 +4 -4
- data/History.rdoc +53 -2
- data/README.rdoc +5 -5
- data/lib/rake/application.rb +9 -16
- data/lib/rake/clean.rb +1 -1
- data/lib/rake/cpu_counter.rb +20 -5
- data/lib/rake/dsl_definition.rb +1 -1
- data/lib/rake/ext/string.rb +1 -1
- data/lib/rake/file_creation_task.rb +2 -2
- data/lib/rake/file_list.rb +3 -3
- data/lib/rake/file_task.rb +2 -2
- data/lib/rake/file_utils_ext.rb +1 -1
- data/lib/rake/packagetask.rb +2 -2
- data/lib/rake/phony.rb +1 -1
- data/lib/rake/rake_test_loader.rb +1 -1
- data/lib/rake/task.rb +1 -1
- data/lib/rake/task_arguments.rb +4 -0
- data/lib/rake/task_manager.rb +2 -2
- data/lib/rake/tasklib.rb +1 -1
- data/lib/rake/testtask.rb +2 -2
- data/lib/rake/thread_history_display.rb +1 -1
- data/lib/rake/thread_pool.rb +1 -1
- data/lib/rake/version.rb +1 -1
- data/lib/rake.rb +27 -29
- data/rake.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f0dfe4cdb0a88ad0df787318f603bf719066a217bb302ce0a00f5b8088e97b3
|
4
|
+
data.tar.gz: 531066b57ebab5784756b6ebf3e8fc29e2fcd41d5685d1b1b0821d1edf274f42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}[
|
78
|
-
* {Writing Rakefiles}[
|
79
|
-
* The original {Rake announcement}[
|
80
|
-
* Rake {glossary}[
|
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/
|
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
|
|
data/lib/rake/application.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require "optparse"
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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=$
|
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(
|
768
|
+
File.join(Dir.home, ".rake")
|
776
769
|
end
|
777
770
|
end
|
778
771
|
private :standard_system_dir
|
data/lib/rake/clean.rb
CHANGED
data/lib/rake/cpu_counter.rb
CHANGED
@@ -58,11 +58,20 @@ unless Rake::CpuCounter.method_defined?(:count)
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def count_via_win32
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
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) ||
|
data/lib/rake/dsl_definition.rb
CHANGED
data/lib/rake/ext/string.rb
CHANGED
data/lib/rake/file_list.rb
CHANGED
data/lib/rake/file_task.rb
CHANGED
data/lib/rake/file_utils_ext.rb
CHANGED
data/lib/rake/packagetask.rb
CHANGED
data/lib/rake/phony.rb
CHANGED
data/lib/rake/task.rb
CHANGED
data/lib/rake/task_arguments.rb
CHANGED
data/lib/rake/task_manager.rb
CHANGED
@@ -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
|
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
|
319
|
+
def get_description
|
320
320
|
desc = @last_description
|
321
321
|
@last_description = nil
|
322
322
|
desc
|
data/lib/rake/tasklib.rb
CHANGED
data/lib/rake/testtask.rb
CHANGED
data/lib/rake/thread_pool.rb
CHANGED
data/lib/rake/version.rb
CHANGED
data/lib/rake.rb
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
module Rake; end
|
25
25
|
|
26
|
-
|
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
|
-
|
34
|
+
require_relative "rake/ext/string"
|
35
35
|
|
36
|
-
|
36
|
+
require_relative "rake/win32"
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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/
|
28
|
+
"changelog_uri" => "https://github.com/ruby/rake/releases",
|
29
29
|
"documentation_uri" => "https://ruby.github.io/rake",
|
30
|
-
"source_code_uri" => "
|
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.
|
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:
|
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/
|
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/
|
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.
|
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: []
|