rake 13.0.6 → 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: d15ff579792b6bca336893adc15bc3de3d8c8580fcdb2b2201926df30752284d
4
- data.tar.gz: 499353c3ebbcd6492fb8d9fdd96078bf7954c1b3ec21f1d80bac8bf1ea592ea0
3
+ metadata.gz: 2f0dfe4cdb0a88ad0df787318f603bf719066a217bb302ce0a00f5b8088e97b3
4
+ data.tar.gz: 531066b57ebab5784756b6ebf3e8fc29e2fcd41d5685d1b1b0821d1edf274f42
5
5
  SHA512:
6
- metadata.gz: 664fa6daddc629e8bb6fd1863a765e8a7d7f2eda234ab423800dc810fe9bded3d4622e19f633e4307d322cd14adfb0c197de04394df1a0a6fa0b86fc702a7d93
7
- data.tar.gz: 7f0f7208745a41dacf9959b2a4ee063deeee549d0d2e90904c47d3e84feb976e65fcc4e33f943eefdfa0ec0334e83b63ad280be0ff3926aff471a9c0b25acef9
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
 
@@ -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.X and Rake 11.X
119
+ [<b>Hiroshi SHIBATA</b>] Maintainer of Rake 10 and later
120
120
 
121
121
  == License
122
122
 
@@ -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
 
@@ -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"
@@ -143,7 +165,13 @@ module Rake
143
165
 
144
166
  # Application options from the command line
145
167
  def options
146
- @options ||= OpenStruct.new
168
+ @options ||= Struct.new(
169
+ :always_multitask, :backtrace, :build_all, :dryrun,
170
+ :ignore_deprecate, :ignore_system, :job_stats, :load_system,
171
+ :nosearch, :rakelib, :show_all_tasks, :show_prereqs,
172
+ :show_task_pattern, :show_tasks, :silent, :suppress_backtrace_pattern,
173
+ :thread_pool_size, :trace, :trace_output, :trace_rules
174
+ ).new
147
175
  end
148
176
 
149
177
  # Return the thread pool used for multithreaded processing.
@@ -215,7 +243,7 @@ module Rake
215
243
  display_exception_details_seen << ex
216
244
 
217
245
  display_exception_message_details(ex)
218
- display_exception_backtrace(ex)
246
+ display_exception_backtrace(ex) if ex.backtrace
219
247
  display_cause_details(ex.cause) if has_cause?(ex)
220
248
  end
221
249
 
@@ -237,6 +265,8 @@ module Rake
237
265
  def display_exception_message_details(ex) # :nodoc:
238
266
  if ex.instance_of?(RuntimeError)
239
267
  trace ex.message
268
+ elsif ex.respond_to?(:detailed_message)
269
+ trace "#{ex.class.name}: #{ex.detailed_message(highlight: false)}"
240
270
  else
241
271
  trace "#{ex.class.name}: #{ex.message}"
242
272
  end
@@ -575,7 +605,7 @@ module Rake
575
605
  ["--tasks", "-T [PATTERN]",
576
606
  "Display the tasks (matching optional PATTERN) " +
577
607
  "with descriptions, then exit. " +
578
- "-AT combination displays all of tasks contained no description.",
608
+ "-AT combination displays all the tasks, including those without descriptions.",
579
609
  lambda { |value|
580
610
  select_tasks_to_show(options, :tasks, value)
581
611
  }
@@ -661,7 +691,7 @@ module Rake
661
691
 
662
692
  # Similar to the regular Ruby +require+ command, but will check
663
693
  # for *.rake files in addition to *.rb files.
664
- def rake_require(file_name, paths=$LOAD_PATH, loaded=$") # :nodoc:
694
+ def rake_require(file_name, paths=$LOAD_PATH, loaded=$LOADED_FEATURES) # :nodoc:
665
695
  fn = file_name + ".rake"
666
696
  return false if loaded.include?(fn)
667
697
  paths.each do |path|
@@ -725,14 +755,7 @@ module Rake
725
755
 
726
756
  # The directory path containing the system wide rakefiles.
727
757
  def system_dir # :nodoc:
728
- @system_dir ||=
729
- begin
730
- if ENV["RAKE_SYSTEM"]
731
- ENV["RAKE_SYSTEM"]
732
- else
733
- standard_system_dir
734
- end
735
- end
758
+ @system_dir ||= ENV["RAKE_SYSTEM"] || standard_system_dir
736
759
  end
737
760
 
738
761
  # The standard directory containing system wide rake files.
@@ -742,7 +765,7 @@ module Rake
742
765
  end
743
766
  else
744
767
  def standard_system_dir #:nodoc:
745
- File.join(File.expand_path("~"), ".rake")
768
+ File.join(Dir.home, ".rake")
746
769
  end
747
770
  end
748
771
  private :standard_system_dir
@@ -10,6 +10,7 @@ module Rake
10
10
  map { |f| File.expand_path(f) }.
11
11
  reject { |s| s.nil? || s =~ /^ *$/ }
12
12
  SUPPRESSED_PATHS_RE = SUPPRESSED_PATHS.map { |f| Regexp.quote(f) }.join("|")
13
+ SUPPRESSED_PATHS_RE << "|^<internal:\\w+>"
13
14
  SUPPRESSED_PATHS_RE << "|^org\\/jruby\\/\\w+\\.java" if
14
15
  Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == "jruby"
15
16
 
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
 
@@ -90,6 +90,7 @@ module Rake
90
90
  # directory "testdata/doc"
91
91
  #
92
92
  def directory(*args, &block) # :doc:
93
+ args = args.flat_map { |arg| arg.is_a?(FileList) ? arg.to_a.flatten : arg }
93
94
  result = file_create(*args, &block)
94
95
  dir, _ = *Rake.application.resolve_args(args)
95
96
  dir = Rake.from_pathname(dir)
@@ -145,7 +146,7 @@ module Rake
145
146
  #
146
147
  # Example:
147
148
  # rule '.o' => '.c' do |t|
148
- # sh 'cc', '-o', t.name, t.source
149
+ # sh 'cc', '-c', '-o', t.name, t.source
149
150
  # end
150
151
  #
151
152
  def rule(*args, &block) # :doc:
@@ -158,7 +159,7 @@ module Rake
158
159
  #
159
160
  # Example:
160
161
  # desc "Run the Unit Tests"
161
- # task test: [:build]
162
+ # task test: [:build] do
162
163
  # # ... run tests
163
164
  # end
164
165
  #
@@ -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
 
@@ -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
- !File.exist?(name) || out_of_date?(timestamp) || @application.options.build_all
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
- if File.exist?(name)
23
- File.mtime(name.to_s)
24
- else
26
+ begin
27
+ File.mtime(name)
28
+ rescue Errno::ENOENT
25
29
  Rake::LATE
26
30
  end
27
31
  end
@@ -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}): " +
@@ -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
 
@@ -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 omited (default is false)
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+
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
 
@@ -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
 
@@ -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,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rake/promise"
3
+ require_relative "promise"
4
+ require "set"
4
5
 
5
6
  module Rake
6
7
 
@@ -9,7 +10,6 @@ module Rake
9
10
  # Creates a ThreadPool object. The +thread_count+ parameter is the size
10
11
  # of the pool.
11
12
  def initialize(thread_count)
12
- require "set"
13
13
  @max_active_threads = [thread_count, 0].max
14
14
  @threads = Set.new
15
15
  @threads_mon = Monitor.new
data/lib/rake/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Rake
3
- VERSION = "13.0.6"
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,45 +23,42 @@
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"
30
30
  require "singleton"
31
31
  require "monitor"
32
32
  require "optparse"
33
- require "ostruct"
34
33
 
35
- require "rake/ext/string"
34
+ require_relative "rake/ext/string"
36
35
 
37
- require "rake/win32"
36
+ require_relative "rake/win32"
38
37
 
39
- require "rake/linked_list"
40
- require "rake/cpu_counter"
41
- require "rake/scope"
42
- require "rake/task_argument_error"
43
- require "rake/rule_recursion_overflow_error"
44
- require "rake/rake_module"
45
- require "rake/trace_output"
46
- require "rake/pseudo_status"
47
- require "rake/task_arguments"
48
- require "rake/invocation_chain"
49
- require "rake/task"
50
- require "rake/file_task"
51
- require "rake/file_creation_task"
52
- require "rake/multi_task"
53
- require "rake/dsl_definition"
54
- require "rake/file_utils_ext"
55
- require "rake/file_list"
56
- require "rake/default_loader"
57
- require "rake/early_time"
58
- require "rake/late_time"
59
- require "rake/name_space"
60
- require "rake/task_manager"
61
- require "rake/application"
62
- require "rake/backtrace"
63
-
64
- $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"
65
62
 
66
63
  # :stopdoc:
67
64
  #
data/rake.gemspec CHANGED
@@ -1,32 +1,33 @@
1
1
  # frozen_string_literal: true
2
- require_relative 'lib/rake/version'
2
+
3
+ require_relative "lib/rake/version"
3
4
 
4
5
  Gem::Specification.new do |s|
5
- s.name = "rake".freeze
6
+ s.name = "rake"
6
7
  s.version = Rake::VERSION
7
- s.authors = ["Hiroshi SHIBATA".freeze, "Eric Hodel".freeze, "Jim Weirich".freeze]
8
- s.email = ["hsbt@ruby-lang.org".freeze, "drbrain@segment7.net".freeze, "".freeze]
8
+ s.authors = ["Hiroshi SHIBATA", "Eric Hodel", "Jim Weirich"]
9
+ s.email = ["hsbt@ruby-lang.org", "drbrain@segment7.net", ""]
9
10
 
10
- s.summary = "Rake is a Make-like program implemented in Ruby".freeze
11
- s.description = <<-DESCRIPTION
12
- Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
13
- specified in standard Ruby syntax.
14
- Rake has the following features:
15
- * Rakefiles (rake's version of Makefiles) are completely defined in standard Ruby syntax.
16
- No XML files to edit. No quirky Makefile syntax to worry about (is that a tab or a space?)
17
- * Users can specify tasks with prerequisites.
18
- * Rake supports rule patterns to synthesize implicit tasks.
19
- * Flexible FileLists that act like arrays but know about manipulating file names and paths.
20
- * Supports parallel execution of tasks.
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.
21
22
  DESCRIPTION
22
- s.homepage = "https://github.com/ruby/rake".freeze
23
- s.licenses = ["MIT".freeze]
23
+ s.homepage = "https://github.com/ruby/rake"
24
+ s.licenses = ["MIT"]
24
25
 
25
26
  s.metadata = {
26
- "bug_tracker_uri" => "https://github.com/ruby/rake/issues",
27
- "changelog_uri" => "https://github.com/ruby/rake/blob/v#{s.version}/History.rdoc",
27
+ "bug_tracker_uri" => "https://github.com/ruby/rake/issues",
28
+ "changelog_uri" => "https://github.com/ruby/rake/releases",
28
29
  "documentation_uri" => "https://ruby.github.io/rake",
29
- "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}",
30
+ "source_code_uri" => "#{s.homepage}/releases/v#{s.version}"
30
31
  }
31
32
 
32
33
  s.files = [
@@ -93,8 +94,8 @@ Rake has the following features:
93
94
  ]
94
95
  s.bindir = "exe"
95
96
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
96
- s.require_paths = ["lib".freeze]
97
+ s.require_paths = ["lib"]
97
98
 
98
- s.required_ruby_version = Gem::Requirement.new(">= 2.2".freeze)
99
- 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"]
100
101
  end
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.0.6
4
+ version: 13.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi SHIBATA
8
8
  - Eric Hodel
9
9
  - Jim Weirich
10
- autorequire:
11
10
  bindir: exe
12
11
  cert_chain: []
13
- date: 2021-07-09 00:00:00.000000000 Z
12
+ date: 1980-01-02 00:00:00.000000000 Z
14
13
  dependencies: []
15
14
  description: |
16
15
  Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
@@ -96,10 +95,9 @@ licenses:
96
95
  - MIT
97
96
  metadata:
98
97
  bug_tracker_uri: https://github.com/ruby/rake/issues
99
- changelog_uri: https://github.com/ruby/rake/blob/v13.0.6/History.rdoc
98
+ changelog_uri: https://github.com/ruby/rake/releases
100
99
  documentation_uri: https://ruby.github.io/rake
101
- source_code_uri: https://github.com/ruby/rake/tree/v13.0.6
102
- post_install_message:
100
+ source_code_uri: https://github.com/ruby/rake/releases/v13.3.0
103
101
  rdoc_options:
104
102
  - "--main"
105
103
  - README.rdoc
@@ -109,15 +107,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
107
  requirements:
110
108
  - - ">="
111
109
  - !ruby/object:Gem::Version
112
- version: '2.2'
110
+ version: '2.3'
113
111
  required_rubygems_version: !ruby/object:Gem::Requirement
114
112
  requirements:
115
113
  - - ">="
116
114
  - !ruby/object:Gem::Version
117
115
  version: '0'
118
116
  requirements: []
119
- rubygems_version: 3.3.0.dev
120
- signing_key:
117
+ rubygems_version: 3.6.7
121
118
  specification_version: 4
122
119
  summary: Rake is a Make-like program implemented in Ruby
123
120
  test_files: []