rake 13.0.1 → 13.1.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 +35 -0
- data/README.rdoc +14 -14
- data/lib/rake/application.rb +33 -2
- data/lib/rake/dsl_definition.rb +1 -1
- data/lib/rake/file_task.rb +8 -4
- data/lib/rake/file_utils.rb +0 -2
- data/lib/rake/packagetask.rb +1 -1
- data/lib/rake/rake_test_loader.rb +17 -17
- data/lib/rake/task.rb +2 -2
- data/lib/rake/task_manager.rb +2 -2
- data/lib/rake/testtask.rb +1 -36
- data/lib/rake/thread_pool.rb +1 -1
- data/lib/rake/version.rb +1 -1
- data/rake.gemspec +86 -28
- metadata +10 -23
- data/.github/workflows/macos.yml +0 -22
- data/.github/workflows/ubuntu-rvm.yml +0 -28
- data/.github/workflows/ubuntu.yml +0 -20
- data/.github/workflows/windows.yml +0 -20
- data/CONTRIBUTING.rdoc +0 -43
- data/Gemfile +0 -10
- data/Rakefile +0 -41
- data/bin/bundle +0 -105
- data/bin/console +0 -7
- data/bin/rake +0 -29
- data/bin/rdoc +0 -29
- data/bin/rubocop +0 -29
- data/bin/setup +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 350499af9d666ea7ce0d89d4f2a9807cfec42df036da69a455edcc8e0a7928e4
|
4
|
+
data.tar.gz: 4825cb7208619ca06d3f3f627c41a5dfc23a831d889d15e5dacafe035e72c5e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33ed2f30b780e6f26409bb513b26923c454b115e368f64c42aced2f200d3efb0c05afe8425aeeb907f591c2a735f61160ad105550aecdbab43c30c79078fd8a3
|
7
|
+
data.tar.gz: 0c97f16eb81f98917bd87445f9dd34488a08d5fc0b6cb6c82f18b0ae23939081617f6f2472c8aa95c717054e05dfb18cb51794b86287abe9b66958d968c19749
|
data/History.rdoc
CHANGED
@@ -1,3 +1,38 @@
|
|
1
|
+
=== 13.0.6
|
2
|
+
|
3
|
+
* Additional fix for #389
|
4
|
+
Pull request #390 by hsbt
|
5
|
+
|
6
|
+
=== 13.0.5
|
7
|
+
|
8
|
+
* Fixed the regression of #388
|
9
|
+
Pull request #389 by hsbt
|
10
|
+
|
11
|
+
=== 13.0.4
|
12
|
+
|
13
|
+
* Fix rake test loader swallowing useful error information.
|
14
|
+
Pull request #367 by deivid-rodriguez
|
15
|
+
* Add -C/--directory option the same as GNU make.
|
16
|
+
Pull request #376 by nobu
|
17
|
+
|
18
|
+
=== 13.0.3
|
19
|
+
|
20
|
+
* Fix breaking change of execution order on TestTask.
|
21
|
+
Pull request #368 by ysakasin
|
22
|
+
|
23
|
+
=== 13.0.2
|
24
|
+
|
25
|
+
==== Enhancements
|
26
|
+
|
27
|
+
* Fix tests to work with current FileUtils
|
28
|
+
Pull Request #358 by jeremyevans
|
29
|
+
* Simplify default rake test loader
|
30
|
+
Pull Request #357 by deivid-rodriguez
|
31
|
+
* Update rdoc
|
32
|
+
Pull Request #366 by bahasalien
|
33
|
+
* Update broken links to rake articles from Avdi in README
|
34
|
+
Pull Request #360 by svl7
|
35
|
+
|
1
36
|
=== 13.0.1
|
2
37
|
|
3
38
|
==== Bug fixes
|
data/README.rdoc
CHANGED
@@ -82,27 +82,27 @@ Type "rake --help" for all available options.
|
|
82
82
|
=== Presentations and Articles about Rake
|
83
83
|
|
84
84
|
* Avdi Grimm's rake series:
|
85
|
-
1. {Rake Basics}[
|
86
|
-
2. {Rake File Lists}[
|
87
|
-
3. {Rake Rules}[
|
88
|
-
4. {Rake Pathmap}[
|
89
|
-
5. {File Operations}[
|
90
|
-
6. {Clean and Clobber}[
|
91
|
-
7. {MultiTask}[
|
92
|
-
* {Jim Weirich's 2003 RubyConf presentation}[
|
93
|
-
* Martin Fowler's article on Rake:
|
85
|
+
1. {Rake Basics}[https://avdi.codes/rake-part-1-basics/]
|
86
|
+
2. {Rake File Lists}[https://avdi.codes/rake-part-2-file-lists-2/]
|
87
|
+
3. {Rake Rules}[https://avdi.codes/rake-part-3-rules/]
|
88
|
+
4. {Rake Pathmap}[https://avdi.codes/rake-part-4-pathmap/]
|
89
|
+
5. {File Operations}[https://avdi.codes/rake-part-5-file-operations/]
|
90
|
+
6. {Clean and Clobber}[https://avdi.codes/rake-part-6-clean-and-clobber/]
|
91
|
+
7. {MultiTask}[https://avdi.codes/rake-part-7-multitask/]
|
92
|
+
* {Jim Weirich's 2003 RubyConf presentation}[https://web.archive.org/web/20140221123354/http://onestepback.org/articles/buildingwithrake/]
|
93
|
+
* Martin Fowler's article on Rake: https://martinfowler.com/articles/rake.html
|
94
94
|
|
95
95
|
== Other Make Re-envisionings ...
|
96
96
|
|
97
97
|
Rake is a late entry in the make replacement field. Here are links to
|
98
98
|
other projects with similar (and not so similar) goals.
|
99
99
|
|
100
|
-
*
|
100
|
+
* https://directory.fsf.org/wiki/Bras -- Bras, one of earliest
|
101
101
|
implementations of "make in a scripting language".
|
102
102
|
* http://www.a-a-p.org -- Make in Python
|
103
|
-
*
|
104
|
-
*
|
105
|
-
*
|
103
|
+
* https://ant.apache.org -- The Ant project
|
104
|
+
* https://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System
|
105
|
+
* https://www.rubydoc.info/gems/rant/0.5.7/frames -- Rant, another Ruby make tool.
|
106
106
|
|
107
107
|
== Credits
|
108
108
|
|
@@ -116,7 +116,7 @@ other projects with similar (and not so similar) goals.
|
|
116
116
|
|
117
117
|
[<b>Eric Hodel</b>] For aid in maintaining rake.
|
118
118
|
|
119
|
-
[<b>Hiroshi SHIBATA</b>] Maintainer of Rake 10
|
119
|
+
[<b>Hiroshi SHIBATA</b>] Maintainer of Rake 10 and later
|
120
120
|
|
121
121
|
== License
|
122
122
|
|
data/lib/rake/application.rb
CHANGED
@@ -94,10 +94,32 @@ module Rake
|
|
94
94
|
# Backward compatibility for capistrano
|
95
95
|
args = handle_options
|
96
96
|
end
|
97
|
+
load_debug_at_stop_feature
|
97
98
|
collect_command_line_tasks(args)
|
98
99
|
end
|
99
100
|
end
|
100
101
|
|
102
|
+
def load_debug_at_stop_feature
|
103
|
+
return unless ENV["RAKE_DEBUG"]
|
104
|
+
require "debug/session"
|
105
|
+
DEBUGGER__::start no_sigint_hook: true, nonstop: true
|
106
|
+
Rake::Task.prepend Module.new {
|
107
|
+
def execute(*)
|
108
|
+
exception = DEBUGGER__::SESSION.capture_exception_frames(/(exe|bin|lib)\/rake/) do
|
109
|
+
super
|
110
|
+
end
|
111
|
+
|
112
|
+
if exception
|
113
|
+
STDERR.puts exception.message
|
114
|
+
DEBUGGER__::SESSION.enter_postmortem_session exception
|
115
|
+
raise exception
|
116
|
+
end
|
117
|
+
end
|
118
|
+
}
|
119
|
+
rescue LoadError
|
120
|
+
end
|
121
|
+
private :load_debug_at_stop_feature
|
122
|
+
|
101
123
|
# Find the rakefile and then load it and any pending imports.
|
102
124
|
def load_rakefile
|
103
125
|
standard_exception_handling do
|
@@ -124,7 +146,7 @@ module Rake
|
|
124
146
|
|
125
147
|
yield
|
126
148
|
|
127
|
-
thread_pool.join
|
149
|
+
thread_pool.join if defined?(@thread_pool)
|
128
150
|
if options.job_stats
|
129
151
|
stats = thread_pool.statistics
|
130
152
|
puts "Maximum active threads: #{stats[:max_active_threads]} + main"
|
@@ -237,6 +259,8 @@ module Rake
|
|
237
259
|
def display_exception_message_details(ex) # :nodoc:
|
238
260
|
if ex.instance_of?(RuntimeError)
|
239
261
|
trace ex.message
|
262
|
+
elsif ex.respond_to?(:detailed_message)
|
263
|
+
trace "#{ex.class.name}: #{ex.detailed_message(highlight: false)}"
|
240
264
|
else
|
241
265
|
trace "#{ex.class.name}: #{ex.message}"
|
242
266
|
end
|
@@ -433,6 +457,13 @@ module Rake
|
|
433
457
|
select_tasks_to_show(options, :describe, value)
|
434
458
|
}
|
435
459
|
],
|
460
|
+
["--directory", "-C [DIRECTORY]",
|
461
|
+
"Change to DIRECTORY before doing anything.",
|
462
|
+
lambda { |value|
|
463
|
+
Dir.chdir value
|
464
|
+
@original_dir = Dir.pwd
|
465
|
+
}
|
466
|
+
],
|
436
467
|
["--dry-run", "-n",
|
437
468
|
"Do a dry run without executing actions.",
|
438
469
|
lambda { |value|
|
@@ -568,7 +599,7 @@ module Rake
|
|
568
599
|
["--tasks", "-T [PATTERN]",
|
569
600
|
"Display the tasks (matching optional PATTERN) " +
|
570
601
|
"with descriptions, then exit. " +
|
571
|
-
"-AT combination displays all
|
602
|
+
"-AT combination displays all the tasks, including those without descriptions.",
|
572
603
|
lambda { |value|
|
573
604
|
select_tasks_to_show(options, :tasks, value)
|
574
605
|
}
|
data/lib/rake/dsl_definition.rb
CHANGED
data/lib/rake/file_task.rb
CHANGED
@@ -14,14 +14,18 @@ module Rake
|
|
14
14
|
# Is this file task needed? Yes if it doesn't exist, or if its time stamp
|
15
15
|
# is out of date.
|
16
16
|
def needed?
|
17
|
-
|
17
|
+
begin
|
18
|
+
out_of_date?(File.mtime(name)) || @application.options.build_all
|
19
|
+
rescue Errno::ENOENT
|
20
|
+
true
|
21
|
+
end
|
18
22
|
end
|
19
23
|
|
20
24
|
# Time stamp for file task.
|
21
25
|
def timestamp
|
22
|
-
|
23
|
-
File.mtime(name
|
24
|
-
|
26
|
+
begin
|
27
|
+
File.mtime(name)
|
28
|
+
rescue Errno::ENOENT
|
25
29
|
Rake::LATE
|
26
30
|
end
|
27
31
|
end
|
data/lib/rake/file_utils.rb
CHANGED
@@ -60,8 +60,6 @@ module FileUtils
|
|
60
60
|
|
61
61
|
def create_shell_runner(cmd) # :nodoc:
|
62
62
|
show_command = sh_show_command cmd
|
63
|
-
show_command = show_command[0, 42] + "..." unless $trace
|
64
|
-
|
65
63
|
lambda do |ok, status|
|
66
64
|
ok or
|
67
65
|
fail "Command failed with status (#{status.exitstatus}): " +
|
data/lib/rake/packagetask.rb
CHANGED
@@ -79,7 +79,7 @@ module Rake
|
|
79
79
|
# Zip command for zipped archives. The default is 'zip'.
|
80
80
|
attr_accessor :zip_command
|
81
81
|
|
82
|
-
# True if parent directory should be
|
82
|
+
# True if parent directory should be omitted (default is false)
|
83
83
|
attr_accessor :without_parent_dir
|
84
84
|
|
85
85
|
# Create a Package Task with the given name and version. Use +:noversion+
|
@@ -1,26 +1,26 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
|
3
|
+
require "rake/file_list"
|
3
4
|
|
4
5
|
# Load the test files from the command line.
|
5
6
|
argv = ARGV.select do |argument|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
7
|
+
case argument
|
8
|
+
when /^-/ then
|
9
|
+
argument
|
10
|
+
when /\*/ then
|
11
|
+
Rake::FileList[argument].to_a.each do |file|
|
12
|
+
require File.expand_path file
|
13
|
+
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
false
|
16
|
+
else
|
17
|
+
path = File.expand_path argument
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
abort "\nFile does not exist: #{path}\n\n" unless File.exist?(path)
|
20
|
+
|
21
|
+
require path
|
22
|
+
|
23
|
+
false
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
data/lib/rake/task.rb
CHANGED
@@ -276,9 +276,9 @@ module Rake
|
|
276
276
|
application.trace "** Execute #{name}" if application.options.trace
|
277
277
|
application.enhance_with_matching_rule(name) if @actions.empty?
|
278
278
|
if opts = Hash.try_convert(args) and !opts.empty?
|
279
|
-
@actions.each { |act| act.call(self, args, **opts)}
|
279
|
+
@actions.each { |act| act.call(self, args, **opts) }
|
280
280
|
else
|
281
|
-
@actions.each { |act| act.call(self, args)}
|
281
|
+
@actions.each { |act| act.call(self, args) }
|
282
282
|
end
|
283
283
|
end
|
284
284
|
|
data/lib/rake/task_manager.rb
CHANGED
@@ -300,8 +300,8 @@ module Rake
|
|
300
300
|
when /^\./
|
301
301
|
source = task_name.sub(task_pattern, ext)
|
302
302
|
source == ext ? task_name.ext(ext) : source
|
303
|
-
when String
|
304
|
-
ext
|
303
|
+
when String, Symbol
|
304
|
+
ext.to_s
|
305
305
|
when Proc, Method
|
306
306
|
if ext.arity == 1
|
307
307
|
ext.call(task_name)
|
data/lib/rake/testtask.rb
CHANGED
@@ -181,44 +181,9 @@ module Rake
|
|
181
181
|
when :testrb
|
182
182
|
"-S testrb"
|
183
183
|
when :rake
|
184
|
-
"#{
|
184
|
+
"#{__dir__}/rake_test_loader.rb"
|
185
185
|
end
|
186
186
|
end
|
187
187
|
|
188
|
-
def rake_loader # :nodoc:
|
189
|
-
find_file("rake/rake_test_loader") or
|
190
|
-
fail "unable to find rake test loader"
|
191
|
-
end
|
192
|
-
|
193
|
-
def find_file(fn) # :nodoc:
|
194
|
-
$LOAD_PATH.each do |path|
|
195
|
-
file_path = File.join(path, "#{fn}.rb")
|
196
|
-
return file_path if File.exist? file_path
|
197
|
-
end
|
198
|
-
nil
|
199
|
-
end
|
200
|
-
|
201
|
-
def rake_include_arg # :nodoc:
|
202
|
-
spec = Gem.loaded_specs["rake"]
|
203
|
-
if spec.respond_to?(:default_gem?) && spec.default_gem?
|
204
|
-
""
|
205
|
-
else
|
206
|
-
"-I\"#{rake_lib_dir}\""
|
207
|
-
end
|
208
|
-
end
|
209
|
-
|
210
|
-
def rake_lib_dir # :nodoc:
|
211
|
-
find_dir("rake") or
|
212
|
-
fail "unable to find rake lib"
|
213
|
-
end
|
214
|
-
|
215
|
-
def find_dir(fn) # :nodoc:
|
216
|
-
$LOAD_PATH.each do |path|
|
217
|
-
file_path = File.join(path, "#{fn}.rb")
|
218
|
-
return path if File.exist? file_path
|
219
|
-
end
|
220
|
-
nil
|
221
|
-
end
|
222
|
-
|
223
188
|
end
|
224
189
|
end
|
data/lib/rake/thread_pool.rb
CHANGED
data/lib/rake/version.rb
CHANGED
data/rake.gemspec
CHANGED
@@ -1,43 +1,101 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
require_relative "lib/rake/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name = "rake"
|
6
|
+
s.name = "rake"
|
7
7
|
s.version = Rake::VERSION
|
8
|
-
s.authors = ["Hiroshi SHIBATA"
|
9
|
-
s.email = ["hsbt@ruby-lang.org"
|
8
|
+
s.authors = ["Hiroshi SHIBATA", "Eric Hodel", "Jim Weirich"]
|
9
|
+
s.email = ["hsbt@ruby-lang.org", "drbrain@segment7.net", ""]
|
10
10
|
|
11
|
-
s.summary = "Rake is a Make-like program implemented in Ruby"
|
12
|
-
s.description =
|
13
|
-
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
|
14
|
-
specified in standard Ruby syntax.
|
15
|
-
Rake has the following features:
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
s.summary = "Rake is a Make-like program implemented in Ruby"
|
12
|
+
s.description = <<~DESCRIPTION
|
13
|
+
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
|
14
|
+
specified in standard Ruby syntax.
|
15
|
+
Rake has the following features:
|
16
|
+
* Rakefiles (rake's version of Makefiles) are completely defined in standard Ruby syntax.
|
17
|
+
No XML files to edit. No quirky Makefile syntax to worry about (is that a tab or a space?)
|
18
|
+
* Users can specify tasks with prerequisites.
|
19
|
+
* Rake supports rule patterns to synthesize implicit tasks.
|
20
|
+
* Flexible FileLists that act like arrays but know about manipulating file names and paths.
|
21
|
+
* Supports parallel execution of tasks.
|
22
22
|
DESCRIPTION
|
23
|
-
s.homepage = "https://github.com/ruby/rake"
|
24
|
-
s.licenses = ["MIT"
|
23
|
+
s.homepage = "https://github.com/ruby/rake"
|
24
|
+
s.licenses = ["MIT"]
|
25
25
|
|
26
26
|
s.metadata = {
|
27
|
-
"bug_tracker_uri"
|
28
|
-
"changelog_uri"
|
27
|
+
"bug_tracker_uri" => "https://github.com/ruby/rake/issues",
|
28
|
+
"changelog_uri" => "https://github.com/ruby/rake/blob/v#{s.version}/History.rdoc",
|
29
29
|
"documentation_uri" => "https://ruby.github.io/rake",
|
30
|
-
"source_code_uri"
|
30
|
+
"source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}"
|
31
31
|
}
|
32
32
|
|
33
|
-
s.files =
|
34
|
-
|
33
|
+
s.files = [
|
34
|
+
"History.rdoc",
|
35
|
+
"MIT-LICENSE",
|
36
|
+
"README.rdoc",
|
37
|
+
"doc/command_line_usage.rdoc",
|
38
|
+
"doc/example/Rakefile1",
|
39
|
+
"doc/example/Rakefile2",
|
40
|
+
"doc/example/a.c",
|
41
|
+
"doc/example/b.c",
|
42
|
+
"doc/example/main.c",
|
43
|
+
"doc/glossary.rdoc",
|
44
|
+
"doc/jamis.rb",
|
45
|
+
"doc/proto_rake.rdoc",
|
46
|
+
"doc/rake.1",
|
47
|
+
"doc/rakefile.rdoc",
|
48
|
+
"doc/rational.rdoc",
|
49
|
+
"exe/rake",
|
50
|
+
"lib/rake.rb",
|
51
|
+
"lib/rake/application.rb",
|
52
|
+
"lib/rake/backtrace.rb",
|
53
|
+
"lib/rake/clean.rb",
|
54
|
+
"lib/rake/cloneable.rb",
|
55
|
+
"lib/rake/cpu_counter.rb",
|
56
|
+
"lib/rake/default_loader.rb",
|
57
|
+
"lib/rake/dsl_definition.rb",
|
58
|
+
"lib/rake/early_time.rb",
|
59
|
+
"lib/rake/ext/core.rb",
|
60
|
+
"lib/rake/ext/string.rb",
|
61
|
+
"lib/rake/file_creation_task.rb",
|
62
|
+
"lib/rake/file_list.rb",
|
63
|
+
"lib/rake/file_task.rb",
|
64
|
+
"lib/rake/file_utils.rb",
|
65
|
+
"lib/rake/file_utils_ext.rb",
|
66
|
+
"lib/rake/invocation_chain.rb",
|
67
|
+
"lib/rake/invocation_exception_mixin.rb",
|
68
|
+
"lib/rake/late_time.rb",
|
69
|
+
"lib/rake/linked_list.rb",
|
70
|
+
"lib/rake/loaders/makefile.rb",
|
71
|
+
"lib/rake/multi_task.rb",
|
72
|
+
"lib/rake/name_space.rb",
|
73
|
+
"lib/rake/packagetask.rb",
|
74
|
+
"lib/rake/phony.rb",
|
75
|
+
"lib/rake/private_reader.rb",
|
76
|
+
"lib/rake/promise.rb",
|
77
|
+
"lib/rake/pseudo_status.rb",
|
78
|
+
"lib/rake/rake_module.rb",
|
79
|
+
"lib/rake/rake_test_loader.rb",
|
80
|
+
"lib/rake/rule_recursion_overflow_error.rb",
|
81
|
+
"lib/rake/scope.rb",
|
82
|
+
"lib/rake/task.rb",
|
83
|
+
"lib/rake/task_argument_error.rb",
|
84
|
+
"lib/rake/task_arguments.rb",
|
85
|
+
"lib/rake/task_manager.rb",
|
86
|
+
"lib/rake/tasklib.rb",
|
87
|
+
"lib/rake/testtask.rb",
|
88
|
+
"lib/rake/thread_history_display.rb",
|
89
|
+
"lib/rake/thread_pool.rb",
|
90
|
+
"lib/rake/trace_output.rb",
|
91
|
+
"lib/rake/version.rb",
|
92
|
+
"lib/rake/win32.rb",
|
93
|
+
"rake.gemspec"
|
94
|
+
]
|
35
95
|
s.bindir = "exe"
|
36
96
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
37
|
-
s.require_paths = ["lib"
|
97
|
+
s.require_paths = ["lib"]
|
38
98
|
|
39
|
-
s.required_ruby_version = Gem::Requirement.new(">= 2.
|
40
|
-
s.
|
41
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2".freeze)
|
42
|
-
s.rdoc_options = ["--main".freeze, "README.rdoc".freeze]
|
99
|
+
s.required_ruby_version = Gem::Requirement.new(">= 2.3")
|
100
|
+
s.rdoc_options = ["--main", "README.rdoc"]
|
43
101
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.0
|
4
|
+
version: 13.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi SHIBATA
|
8
8
|
- Eric Hodel
|
9
9
|
- Jim Weirich
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-10-28 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: |
|
16
16
|
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
|
@@ -31,22 +31,9 @@ executables:
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- ".github/workflows/macos.yml"
|
35
|
-
- ".github/workflows/ubuntu-rvm.yml"
|
36
|
-
- ".github/workflows/ubuntu.yml"
|
37
|
-
- ".github/workflows/windows.yml"
|
38
|
-
- CONTRIBUTING.rdoc
|
39
|
-
- Gemfile
|
40
34
|
- History.rdoc
|
41
35
|
- MIT-LICENSE
|
42
36
|
- README.rdoc
|
43
|
-
- Rakefile
|
44
|
-
- bin/bundle
|
45
|
-
- bin/console
|
46
|
-
- bin/rake
|
47
|
-
- bin/rdoc
|
48
|
-
- bin/rubocop
|
49
|
-
- bin/setup
|
50
37
|
- doc/command_line_usage.rdoc
|
51
38
|
- doc/example/Rakefile1
|
52
39
|
- doc/example/Rakefile2
|
@@ -109,10 +96,10 @@ licenses:
|
|
109
96
|
- MIT
|
110
97
|
metadata:
|
111
98
|
bug_tracker_uri: https://github.com/ruby/rake/issues
|
112
|
-
changelog_uri: https://github.com/ruby/rake/blob/v13.0
|
99
|
+
changelog_uri: https://github.com/ruby/rake/blob/v13.1.0/History.rdoc
|
113
100
|
documentation_uri: https://ruby.github.io/rake
|
114
|
-
source_code_uri: https://github.com/ruby/rake/tree/v13.0
|
115
|
-
post_install_message:
|
101
|
+
source_code_uri: https://github.com/ruby/rake/tree/v13.1.0
|
102
|
+
post_install_message:
|
116
103
|
rdoc_options:
|
117
104
|
- "--main"
|
118
105
|
- README.rdoc
|
@@ -122,15 +109,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
109
|
requirements:
|
123
110
|
- - ">="
|
124
111
|
- !ruby/object:Gem::Version
|
125
|
-
version: '2.
|
112
|
+
version: '2.3'
|
126
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
114
|
requirements:
|
128
115
|
- - ">="
|
129
116
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
117
|
+
version: '0'
|
131
118
|
requirements: []
|
132
|
-
rubygems_version: 3.0.
|
133
|
-
signing_key:
|
119
|
+
rubygems_version: 3.5.0.dev
|
120
|
+
signing_key:
|
134
121
|
specification_version: 4
|
135
122
|
summary: Rake is a Make-like program implemented in Ruby
|
136
123
|
test_files: []
|
data/.github/workflows/macos.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
name: macos
|
2
|
-
|
3
|
-
on: [push]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
build:
|
7
|
-
runs-on: macos-latest
|
8
|
-
strategy:
|
9
|
-
matrix:
|
10
|
-
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@master
|
13
|
-
- name: Set up Ruby
|
14
|
-
uses: actions/setup-ruby@v1
|
15
|
-
with:
|
16
|
-
ruby-version: ${{ matrix.ruby }}
|
17
|
-
- name: Install dependencies
|
18
|
-
run: gem install minitest
|
19
|
-
- name: Run test
|
20
|
-
env:
|
21
|
-
COVERALLS: "yes"
|
22
|
-
run: ruby -Ilib exe/rake
|
@@ -1,28 +0,0 @@
|
|
1
|
-
name: ubuntu-rvm
|
2
|
-
|
3
|
-
on: [push]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
build:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
strategy:
|
9
|
-
matrix:
|
10
|
-
ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'ruby-head', '2.3.8', '2.2.10' ]
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@master
|
13
|
-
- name: Set up RVM
|
14
|
-
run: |
|
15
|
-
curl -sSL https://get.rvm.io | bash
|
16
|
-
- name: Set up Ruby
|
17
|
-
run: |
|
18
|
-
source $HOME/.rvm/scripts/rvm
|
19
|
-
rvm install ${{ matrix.ruby }} --binary
|
20
|
-
rvm --default use ${{ matrix.ruby }}
|
21
|
-
- name: Install dependencies
|
22
|
-
run: |
|
23
|
-
source $HOME/.rvm/scripts/rvm
|
24
|
-
gem install minitest
|
25
|
-
- name: Run test
|
26
|
-
run: |
|
27
|
-
source $HOME/.rvm/scripts/rvm
|
28
|
-
ruby -Ilib exe/rake
|
@@ -1,20 +0,0 @@
|
|
1
|
-
name: ubuntu
|
2
|
-
|
3
|
-
on: [push]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
build:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
strategy:
|
9
|
-
matrix:
|
10
|
-
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@master
|
13
|
-
- name: Set up Ruby
|
14
|
-
uses: actions/setup-ruby@v1
|
15
|
-
with:
|
16
|
-
ruby-version: ${{ matrix.ruby }}
|
17
|
-
- name: Install dependencies
|
18
|
-
run: gem install minitest
|
19
|
-
- name: Run test
|
20
|
-
run: ruby -Ilib exe/rake
|
@@ -1,20 +0,0 @@
|
|
1
|
-
name: windows
|
2
|
-
|
3
|
-
on: [push]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
build:
|
7
|
-
runs-on: windows-latest
|
8
|
-
strategy:
|
9
|
-
matrix:
|
10
|
-
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@master
|
13
|
-
- name: Set up Ruby
|
14
|
-
uses: actions/setup-ruby@v1
|
15
|
-
with:
|
16
|
-
ruby-version: ${{ matrix.ruby }}
|
17
|
-
- name: Install dependencies
|
18
|
-
run: gem install minitest
|
19
|
-
- name: Run test
|
20
|
-
run: ruby -Ilib exe/rake
|
data/CONTRIBUTING.rdoc
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
= Source Repository
|
2
|
-
|
3
|
-
Rake is currently hosted at github. The github web page is
|
4
|
-
https://github.com/ruby/rake . The public git clone URL is
|
5
|
-
|
6
|
-
https://github.com/ruby/rake.git
|
7
|
-
|
8
|
-
= Running the Rake Test Suite
|
9
|
-
|
10
|
-
If you wish to run the unit and functional tests that come with Rake:
|
11
|
-
|
12
|
-
* +cd+ into the top project directory of rake.
|
13
|
-
* Install gem dependency using bundler:
|
14
|
-
|
15
|
-
$ bundle install # Install bundler, minitest and rdoc
|
16
|
-
|
17
|
-
* Run the test suite
|
18
|
-
|
19
|
-
$ rake
|
20
|
-
|
21
|
-
= Rubocop
|
22
|
-
|
23
|
-
Rake uses Rubocop to enforce a consistent style on new changes being
|
24
|
-
proposed. You can check your code with Rubocop using:
|
25
|
-
|
26
|
-
$ ./bin/rubocop
|
27
|
-
|
28
|
-
= Issues and Bug Reports
|
29
|
-
|
30
|
-
Feel free to submit commits or feature requests. If you send a patch,
|
31
|
-
remember to update the corresponding unit tests. In fact, I prefer
|
32
|
-
new feature to be submitted in the form of new unit tests.
|
33
|
-
|
34
|
-
For other information, feel free to ask on the ruby-talk mailing list.
|
35
|
-
|
36
|
-
If you have found a bug in rake please try with the latest version of rake
|
37
|
-
before filing an issue. Also check History.rdoc for bug fixes that may have
|
38
|
-
addressed your issue.
|
39
|
-
|
40
|
-
When submitting pull requests please check the rake Travis-CI page for test
|
41
|
-
failures:
|
42
|
-
|
43
|
-
https://travis-ci.org/ruby/rake
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# Rakefile for rake -*- ruby -*-
|
2
|
-
|
3
|
-
# Copyright 2003, 2004, 2005 by Jim Weirich (jim@weirichhouse.org)
|
4
|
-
# All rights reserved.
|
5
|
-
|
6
|
-
# This file may be distributed under an MIT style license. See
|
7
|
-
# MIT-LICENSE for details.
|
8
|
-
|
9
|
-
lib = File.expand_path("../lib", __FILE__)
|
10
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
11
|
-
|
12
|
-
begin
|
13
|
-
require "bundler/gem_tasks"
|
14
|
-
rescue LoadError
|
15
|
-
end
|
16
|
-
|
17
|
-
require "rake/testtask"
|
18
|
-
Rake::TestTask.new(:test) do |t|
|
19
|
-
t.libs << "test"
|
20
|
-
t.verbose = true
|
21
|
-
t.test_files = FileList["test/**/test_*.rb"]
|
22
|
-
end
|
23
|
-
|
24
|
-
require "rdoc/task"
|
25
|
-
RDoc::Task.new do |doc|
|
26
|
-
doc.main = "README.rdoc"
|
27
|
-
doc.title = "Rake -- Ruby Make"
|
28
|
-
doc.rdoc_files = FileList.new %w[lib MIT-LICENSE doc/**/*.rdoc *.rdoc]
|
29
|
-
doc.rdoc_dir = "html"
|
30
|
-
end
|
31
|
-
|
32
|
-
task ghpages: :rdoc do
|
33
|
-
%x[git checkout gh-pages]
|
34
|
-
require "fileutils"
|
35
|
-
FileUtils.rm_rf "/tmp/html"
|
36
|
-
FileUtils.mv "html", "/tmp"
|
37
|
-
FileUtils.rm_rf "*"
|
38
|
-
FileUtils.cp_r Dir.glob("/tmp/html/*"), "."
|
39
|
-
end
|
40
|
-
|
41
|
-
task default: :test
|
data/bin/bundle
DELETED
@@ -1,105 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'bundle' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require "rubygems"
|
12
|
-
|
13
|
-
m = Module.new do
|
14
|
-
module_function
|
15
|
-
|
16
|
-
def invoked_as_script?
|
17
|
-
File.expand_path($0) == File.expand_path(__FILE__)
|
18
|
-
end
|
19
|
-
|
20
|
-
def env_var_version
|
21
|
-
ENV["BUNDLER_VERSION"]
|
22
|
-
end
|
23
|
-
|
24
|
-
def cli_arg_version
|
25
|
-
return unless invoked_as_script? # don't want to hijack other binstubs
|
26
|
-
return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
|
27
|
-
bundler_version = nil
|
28
|
-
update_index = nil
|
29
|
-
ARGV.each_with_index do |a, i|
|
30
|
-
if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
|
31
|
-
bundler_version = a
|
32
|
-
end
|
33
|
-
next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
|
34
|
-
bundler_version = $1 || ">= 0.a"
|
35
|
-
update_index = i
|
36
|
-
end
|
37
|
-
bundler_version
|
38
|
-
end
|
39
|
-
|
40
|
-
def gemfile
|
41
|
-
gemfile = ENV["BUNDLE_GEMFILE"]
|
42
|
-
return gemfile if gemfile && !gemfile.empty?
|
43
|
-
|
44
|
-
File.expand_path("../../Gemfile", __FILE__)
|
45
|
-
end
|
46
|
-
|
47
|
-
def lockfile
|
48
|
-
lockfile =
|
49
|
-
case File.basename(gemfile)
|
50
|
-
when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
|
51
|
-
else "#{gemfile}.lock"
|
52
|
-
end
|
53
|
-
File.expand_path(lockfile)
|
54
|
-
end
|
55
|
-
|
56
|
-
def lockfile_version
|
57
|
-
return unless File.file?(lockfile)
|
58
|
-
lockfile_contents = File.read(lockfile)
|
59
|
-
return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
|
60
|
-
Regexp.last_match(1)
|
61
|
-
end
|
62
|
-
|
63
|
-
def bundler_version
|
64
|
-
@bundler_version ||= begin
|
65
|
-
env_var_version || cli_arg_version ||
|
66
|
-
lockfile_version || "#{Gem::Requirement.default}.a"
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
def load_bundler!
|
71
|
-
ENV["BUNDLE_GEMFILE"] ||= gemfile
|
72
|
-
|
73
|
-
# must dup string for RG < 1.8 compatibility
|
74
|
-
activate_bundler(bundler_version.dup)
|
75
|
-
end
|
76
|
-
|
77
|
-
def activate_bundler(bundler_version)
|
78
|
-
if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new("2.0")
|
79
|
-
bundler_version = "< 2"
|
80
|
-
end
|
81
|
-
gem_error = activation_error_handling do
|
82
|
-
gem "bundler", bundler_version
|
83
|
-
end
|
84
|
-
return if gem_error.nil?
|
85
|
-
require_error = activation_error_handling do
|
86
|
-
require "bundler/version"
|
87
|
-
end
|
88
|
-
return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION))
|
89
|
-
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}'`"
|
90
|
-
exit 42
|
91
|
-
end
|
92
|
-
|
93
|
-
def activation_error_handling
|
94
|
-
yield
|
95
|
-
nil
|
96
|
-
rescue StandardError, LoadError => e
|
97
|
-
e
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
m.load_bundler!
|
102
|
-
|
103
|
-
if m.invoked_as_script?
|
104
|
-
load Gem.bin_path("bundler", "bundle")
|
105
|
-
end
|
data/bin/console
DELETED
data/bin/rake
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'rake' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require "pathname"
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
-
|
17
|
-
if File.file?(bundle_binstub)
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
-
load(bundle_binstub)
|
20
|
-
else
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
require "rubygems"
|
27
|
-
require "bundler/setup"
|
28
|
-
|
29
|
-
load Gem.bin_path("rake", "rake")
|
data/bin/rdoc
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'rdoc' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require "pathname"
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
-
|
17
|
-
if File.file?(bundle_binstub)
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
-
load(bundle_binstub)
|
20
|
-
else
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
require "rubygems"
|
27
|
-
require "bundler/setup"
|
28
|
-
|
29
|
-
load Gem.bin_path("rdoc", "rdoc")
|
data/bin/rubocop
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'rubocop' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require "pathname"
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
-
|
17
|
-
if File.file?(bundle_binstub)
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
-
load(bundle_binstub)
|
20
|
-
else
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
require "rubygems"
|
27
|
-
require "bundler/setup"
|
28
|
-
|
29
|
-
load Gem.bin_path("rubocop", "rubocop")
|