rake 12.3.0 → 12.3.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rake might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/History.rdoc +21 -3
- data/README.rdoc +3 -3
- data/Rakefile +7 -4
- data/lib/rake/application.rb +1 -1
- data/lib/rake/multi_task.rb +1 -37
- data/lib/rake/rake_test_loader.rb +1 -0
- data/lib/rake/task.rb +31 -11
- data/lib/rake/task_manager.rb +12 -8
- data/lib/rake/version.rb +1 -1
- data/rake.gemspec +1 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b9ff07e1f0f9a98e322529b863347c78cbcf73dcf5f37d2fc99e46c467c0b1a
|
4
|
+
data.tar.gz: 944f537241285a1e4ab625ad32b0011c4b333645db6d250b0eb28f509a276967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7da79be40b88106ef9c4b839ddb00cc0306ab82620c6f126a79067af134ba9efe3adac6fcc5f170116ca373a425a0bcb3f767b604c1d1fd89a05f88953c0a3b
|
7
|
+
data.tar.gz: 8ded8d08547574dd077d4286e4f506765efa911c49a3f0e4d0551a243d73d156228222844499146458771a55fd83c65fa0c6ff3788065258aa7de7b224d6aec4
|
data/History.rdoc
CHANGED
@@ -1,11 +1,29 @@
|
|
1
|
+
=== 12.3.1
|
2
|
+
|
3
|
+
==== Bug fixes
|
4
|
+
|
5
|
+
* Support did_you_mean >= v1.2.0 which has a breaking change on formatters.
|
6
|
+
Pull request #262 by FUJI Goro.
|
7
|
+
|
8
|
+
==== Enhancements:
|
9
|
+
|
10
|
+
* Don't run task if it depends on already invoked but failed task.
|
11
|
+
Pull request #252 by Gonzalo Rodriguez.
|
12
|
+
* Make space trimming consistent for all task arguments.
|
13
|
+
Pull request #259 by Gonzalo Rodriguez.
|
14
|
+
* Removes duplicated inclusion of Rake::DSL in tests.
|
15
|
+
Pull request #254 by Gonzalo Rodriguez.
|
16
|
+
* Re-raise a LoadError that didn't come from require in the test loader.
|
17
|
+
Pull request #250 by Dylan Thacker-Smith.
|
18
|
+
|
1
19
|
=== 12.3.0
|
2
20
|
|
3
21
|
==== Compatibility Changes
|
4
22
|
|
5
|
-
* Bump `
|
6
|
-
removed
|
23
|
+
* Bump `required_ruby_version` to Ruby 2.0.0. Rake has already
|
24
|
+
removed support for Ruby 1.9.x.
|
7
25
|
|
8
|
-
|
26
|
+
==== Enhancements:
|
9
27
|
|
10
28
|
* Support `test-bundled-gems` task on ruby core.
|
11
29
|
|
data/README.rdoc
CHANGED
@@ -25,8 +25,8 @@ Rake has the following features:
|
|
25
25
|
|
26
26
|
* A library of prepackaged tasks to make building rakefiles easier. For example,
|
27
27
|
tasks for building tarballs. (Formerly
|
28
|
-
tasks for building RDoc, Gems and publishing to FTP were included in rake but they're now
|
29
|
-
available in RDoc, RubyGems and
|
28
|
+
tasks for building RDoc, Gems, and publishing to FTP were included in rake but they're now
|
29
|
+
available in RDoc, RubyGems, and rake-contrib respectively.)
|
30
30
|
|
31
31
|
* Supports parallel execution of tasks.
|
32
32
|
|
@@ -130,7 +130,7 @@ Rake is available under an MIT-style license.
|
|
130
130
|
= Other stuff
|
131
131
|
|
132
132
|
Author:: Jim Weirich <jim.weirich@gmail.com>
|
133
|
-
Requires:: Ruby
|
133
|
+
Requires:: Ruby 2.0.0 or later
|
134
134
|
License:: Copyright Jim Weirich.
|
135
135
|
Released under an MIT-style license. See the MIT-LICENSE
|
136
136
|
file included in the distribution.
|
data/Rakefile
CHANGED
@@ -9,16 +9,19 @@
|
|
9
9
|
lib = File.expand_path("../lib", __FILE__)
|
10
10
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
11
11
|
|
12
|
-
|
13
|
-
require "
|
14
|
-
|
12
|
+
begin
|
13
|
+
require "bundler/gem_tasks"
|
14
|
+
rescue LoadError
|
15
|
+
end
|
15
16
|
|
17
|
+
require "rake/testtask"
|
16
18
|
Rake::TestTask.new(:test) do |t|
|
17
19
|
t.libs << "test"
|
18
20
|
t.verbose = true
|
19
21
|
t.test_files = FileList["test/**/test_*.rb"]
|
20
22
|
end
|
21
23
|
|
24
|
+
require "rdoc/task"
|
22
25
|
RDoc::Task.new do |doc|
|
23
26
|
doc.main = "README.rdoc"
|
24
27
|
doc.title = "Rake -- Ruby Make"
|
@@ -27,7 +30,7 @@ RDoc::Task.new do |doc|
|
|
27
30
|
end
|
28
31
|
|
29
32
|
task ghpages: :rdoc do
|
30
|
-
|
33
|
+
%x[git checkout gh-pages]
|
31
34
|
require "fileutils"
|
32
35
|
FileUtils.rm_rf "/tmp/html"
|
33
36
|
FileUtils.mv "html", "/tmp"
|
data/lib/rake/application.rb
CHANGED
data/lib/rake/multi_task.rb
CHANGED
@@ -5,46 +5,10 @@ module Rake
|
|
5
5
|
# parallel using Ruby threads.
|
6
6
|
#
|
7
7
|
class MultiTask < Task
|
8
|
-
|
9
|
-
# Same as invoke, but explicitly pass a call chain to detect
|
10
|
-
# circular dependencies. This is largely copied from Rake::Task
|
11
|
-
# but has been updated such that if multiple tasks depend on this
|
12
|
-
# one in parallel, they will all fail if the first execution of
|
13
|
-
# this task fails.
|
14
|
-
def invoke_with_call_chain(task_args, invocation_chain)
|
15
|
-
new_chain = Rake::InvocationChain.append(self, invocation_chain)
|
16
|
-
@lock.synchronize do
|
17
|
-
begin
|
18
|
-
if @already_invoked
|
19
|
-
if @invocation_exception
|
20
|
-
if application.options.trace
|
21
|
-
application.trace "** Previous invocation of #{name} failed #{format_trace_flags}"
|
22
|
-
end
|
23
|
-
raise @invocation_exception
|
24
|
-
else
|
25
|
-
return
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
if application.options.trace
|
30
|
-
application.trace "** Invoke #{name} #{format_trace_flags}"
|
31
|
-
end
|
32
|
-
@already_invoked = true
|
33
|
-
|
34
|
-
invoke_prerequisites(task_args, new_chain)
|
35
|
-
execute(task_args) if needed?
|
36
|
-
rescue Exception => ex
|
37
|
-
add_chain_to(ex, new_chain)
|
38
|
-
@invocation_exception = ex
|
39
|
-
raise
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
8
|
private
|
9
|
+
|
45
10
|
def invoke_prerequisites(task_args, invocation_chain) # :nodoc:
|
46
11
|
invoke_prerequisites_concurrently(task_args, invocation_chain)
|
47
12
|
end
|
48
13
|
end
|
49
|
-
|
50
14
|
end
|
data/lib/rake/task.rb
CHANGED
@@ -103,6 +103,7 @@ module Rake
|
|
103
103
|
@scope = app.current_scope
|
104
104
|
@arg_names = nil
|
105
105
|
@locations = []
|
106
|
+
@invocation_exception = nil
|
106
107
|
end
|
107
108
|
|
108
109
|
# Enhance a task with prerequisites or actions. Returns self.
|
@@ -183,20 +184,39 @@ module Rake
|
|
183
184
|
|
184
185
|
# Same as invoke, but explicitly pass a call chain to detect
|
185
186
|
# circular dependencies.
|
186
|
-
|
187
|
-
|
187
|
+
#
|
188
|
+
# If multiple tasks depend on this
|
189
|
+
# one in parallel, they will all fail if the first execution of
|
190
|
+
# this task fails.
|
191
|
+
def invoke_with_call_chain(task_args, invocation_chain)
|
192
|
+
new_chain = Rake::InvocationChain.append(self, invocation_chain)
|
188
193
|
@lock.synchronize do
|
189
|
-
|
190
|
-
application.trace
|
194
|
+
begin
|
195
|
+
if application.options.trace
|
196
|
+
application.trace "** Invoke #{name} #{format_trace_flags}"
|
197
|
+
end
|
198
|
+
|
199
|
+
if @already_invoked
|
200
|
+
if @invocation_exception
|
201
|
+
if application.options.trace
|
202
|
+
application.trace "** Previous invocation of #{name} failed #{format_trace_flags}"
|
203
|
+
end
|
204
|
+
raise @invocation_exception
|
205
|
+
else
|
206
|
+
return
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
@already_invoked = true
|
211
|
+
|
212
|
+
invoke_prerequisites(task_args, new_chain)
|
213
|
+
execute(task_args) if needed?
|
214
|
+
rescue Exception => ex
|
215
|
+
add_chain_to(ex, new_chain)
|
216
|
+
@invocation_exception = ex
|
217
|
+
raise ex
|
191
218
|
end
|
192
|
-
return if @already_invoked
|
193
|
-
@already_invoked = true
|
194
|
-
invoke_prerequisites(task_args, new_chain)
|
195
|
-
execute(task_args) if needed?
|
196
219
|
end
|
197
|
-
rescue Exception => ex
|
198
|
-
add_chain_to(ex, new_chain)
|
199
|
-
raise ex
|
200
220
|
end
|
201
221
|
protected :invoke_with_call_chain
|
202
222
|
|
data/lib/rake/task_manager.rb
CHANGED
@@ -61,16 +61,20 @@ module Rake
|
|
61
61
|
|
62
62
|
def generate_message_for_undefined_task(task_name)
|
63
63
|
message = "Don't know how to build task '#{task_name}' (see --tasks)"
|
64
|
+
message + generate_did_you_mean_suggestions(task_name)
|
65
|
+
end
|
64
66
|
|
65
|
-
|
66
|
-
|
67
|
-
suggestions = ::DidYouMean::SpellChecker.new(dictionary: @tasks.keys).correct(task_name.to_s)
|
68
|
-
::DidYouMean::Formatter.new(suggestions).to_s
|
69
|
-
else
|
70
|
-
""
|
71
|
-
end
|
67
|
+
def generate_did_you_mean_suggestions(task_name)
|
68
|
+
return "" unless defined?(::DidYouMean::SpellChecker)
|
72
69
|
|
73
|
-
|
70
|
+
suggestions = ::DidYouMean::SpellChecker.new(dictionary: @tasks.keys).correct(task_name.to_s)
|
71
|
+
if ::DidYouMean.respond_to?(:formatter)# did_you_mean v1.2.0 or later
|
72
|
+
::DidYouMean.formatter.message_for(suggestions)
|
73
|
+
elsif defined?(::DidYouMean::Formatter) # before did_you_mean v1.2.0
|
74
|
+
::DidYouMean::Formatter.new(suggestions).to_s
|
75
|
+
else
|
76
|
+
""
|
77
|
+
end
|
74
78
|
end
|
75
79
|
|
76
80
|
def synthesize_file_task(task_name) # :nodoc:
|
data/lib/rake/version.rb
CHANGED
data/rake.gemspec
CHANGED
@@ -5,7 +5,6 @@ require 'rake/version'
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "rake".freeze
|
7
7
|
s.version = Rake::VERSION
|
8
|
-
s.date = "2017-10-25"
|
9
8
|
s.authors = ["Hiroshi SHIBATA".freeze, "Eric Hodel".freeze, "Jim Weirich".freeze]
|
10
9
|
s.email = ["hsbt@ruby-lang.org".freeze, "drbrain@segment7.net".freeze, "".freeze]
|
11
10
|
|
@@ -24,7 +23,7 @@ Rake has the following features:
|
|
24
23
|
s.homepage = "https://github.com/ruby/rake".freeze
|
25
24
|
s.licenses = ["MIT".freeze]
|
26
25
|
|
27
|
-
s.files =
|
26
|
+
s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } -
|
28
27
|
%w[.rubocop.yml .travis.yml appveyor.yml]
|
29
28
|
s.bindir = "exe"
|
30
29
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
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: 12.3.
|
4
|
+
version: 12.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi SHIBATA
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2018-03-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
version: 1.3.2
|
190
190
|
requirements: []
|
191
191
|
rubyforge_project:
|
192
|
-
rubygems_version: 2.7.
|
192
|
+
rubygems_version: 2.7.6
|
193
193
|
signing_key:
|
194
194
|
specification_version: 4
|
195
195
|
summary: Rake is a Make-like program implemented in Ruby
|