rake 13.0.0 → 13.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9da686fceba23353d1a9b4263d039b67c5e1ac76055165091a21e9c0cddbeffa
4
- data.tar.gz: 3e650670e2aa77cd440555ac8283f14df42e465e3771c2a5e1da961de2dde444
3
+ metadata.gz: 07dd3dbcae79b90825e935d513b41b158dc6f2f7cdafda2c78fc0068f23fbae8
4
+ data.tar.gz: e284b3c7f8d59c9c1de3709a9c6615c6d3d648f7508b9f6998f2a6c828720098
5
5
  SHA512:
6
- metadata.gz: 4d555cfe77533730f79bad9d9a430dadd800df2986a32d8885dc078f0c4b481b1c4b9ea99d4a637c662e860ec75a8a74f10a4374d7b00aaf6631f09666b1720b
7
- data.tar.gz: '03820d6035572fa9f3805f3190672265acd52dcfbc8bf8558351e1f4124031178ba70345647fae34a5770eaf32accb4ea337154f57055efbed2758c8862357f0'
6
+ metadata.gz: 659790f8e643f04372537a9b2387a018fe540a0b7b8b0c34a06d889c5b67389fffc46143e609c3ae3be823fdca415c97fbcebe1f6e5666b51128c1be0fcf8d4a
7
+ data.tar.gz: 95d6f1e08d52cf427dc24e713bc998e52551aeb28057134e91b86cc67d2d139907ba7c06797924996c7e5164d3993cb805dd5106e7fa4a7f7c5cf1a8a982d8ec
data/History.rdoc CHANGED
@@ -1,3 +1,30 @@
1
+ === 13.0.3
2
+
3
+ * Fix breaking change of execution order on TestTask.
4
+ Pull request #368 by ysakasin
5
+
6
+ === 13.0.2
7
+
8
+ ==== Enhancements
9
+
10
+ * Fix tests to work with current FileUtils
11
+ Pull Request #358 by jeremyevans
12
+ * Simplify default rake test loader
13
+ Pull Request #357 by deivid-rodriguez
14
+ * Update rdoc
15
+ Pull Request #366 by bahasalien
16
+ * Update broken links to rake articles from Avdi in README
17
+ Pull Request #360 by svl7
18
+
19
+ === 13.0.1
20
+
21
+ ==== Bug fixes
22
+
23
+ * Fixed bug: Reenabled task raises previous exception on second invokation
24
+ Pull Request #271 by thorsteneckel
25
+ * Fix an incorrectly resolved arg pattern
26
+ Pull Request #327 by mjbellantoni
27
+
1
28
  === 13.0.0
2
29
 
3
30
  ==== Enhancements
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}[http://devblog.avdi.org/2014/04/21/rake-part-1-basics/]
86
- 2. {Rake File Lists}[http://devblog.avdi.org/2014/04/22/rake-part-2-file-lists/]
87
- 3. {Rake Rules}[http://devblog.avdi.org/2014/04/23/rake-part-3-rules/]
88
- 4. {Rake Pathmap}[http://devblog.avdi.org/2014/04/24/rake-part-4-pathmap/]
89
- 5. {File Operations}[http://devblog.avdi.org/2014/04/25/rake-part-5-file-operations/]
90
- 6. {Clean and Clobber}[http://devblog.avdi.org/2014/04/28/rake-part-6-clean-and-clobber/]
91
- 7. {MultiTask}[http://devblog.avdi.org/2014/04/29/rake-part-7-multitask/]
92
- * {Jim Weirich's 2003 RubyConf presentation}[http://web.archive.org/web/20140221123354/http://onestepback.org/articles/buildingwithrake/]
93
- * Martin Fowler's article on Rake: http://martinfowler.com/articles/rake.html
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
- * http://directory.fsf.org/wiki/Bras -- Bras, one of earliest
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
- * http://ant.apache.org -- The Ant project
104
- * http://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System
105
- * http://www.rubydoc.info/gems/rant/0.5.7/frames -- Rant, another Ruby make tool.
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
 
data/lib/rake/task.rb CHANGED
@@ -146,6 +146,7 @@ module Rake
146
146
  # is invoked again.
147
147
  def reenable
148
148
  @already_invoked = false
149
+ @invocation_exception = nil
149
150
  end
150
151
 
151
152
  # Clear the existing prerequisites, actions, comments, and arguments of a rake task.
@@ -83,8 +83,8 @@ module Rake
83
83
  define_task(Rake::FileTask, task_name)
84
84
  end
85
85
 
86
- # Resolve the arguments for a task/rule. Returns a triplet of
87
- # [task_name, arg_name_list, prerequisites].
86
+ # Resolve the arguments for a task/rule. Returns a tuple of
87
+ # [task_name, arg_name_list, prerequisites, order_only_prerequisites].
88
88
  def resolve_args(args)
89
89
  if args.last.is_a?(Hash)
90
90
  deps = args.pop
@@ -118,8 +118,11 @@ module Rake
118
118
  #
119
119
  # The patterns recognized by this argument resolving function are:
120
120
  #
121
+ # task :t, order_only: [:e]
121
122
  # task :t => [:d]
123
+ # task :t => [:d], order_only: [:e]
122
124
  # task :t, [a] => [:d]
125
+ # task :t, [a] => [:d], order_only: [:e]
123
126
  #
124
127
  def resolve_args_with_dependencies(args, hash) # :nodoc:
125
128
  fail "Task Argument Error" if
@@ -133,8 +136,8 @@ module Rake
133
136
  deps = value || []
134
137
  else
135
138
  task_name = args.shift
136
- arg_names = key
137
- deps = value
139
+ arg_names = key || args.shift|| []
140
+ deps = value || []
138
141
  end
139
142
  deps = [deps] unless deps.respond_to?(:to_ary)
140
143
  [task_name, arg_names, deps, order_only]
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
- "#{rake_include_arg} \"#{rake_loader}\""
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/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Rake
3
- VERSION = "13.0.0"
3
+ VERSION = "13.0.3"
4
4
 
5
5
  module Version # :nodoc: all
6
6
  MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "."
data/rake.gemspec CHANGED
@@ -23,7 +23,14 @@ Rake has the following features:
23
23
  s.homepage = "https://github.com/ruby/rake".freeze
24
24
  s.licenses = ["MIT".freeze]
25
25
 
26
- s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } -
26
+ s.metadata = {
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
+ "documentation_uri" => "https://ruby.github.io/rake",
30
+ "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}",
31
+ }
32
+
33
+ s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.github)/}) } -
27
34
  %w[.rubocop.yml .gitignore .travis.yml appveyor.yml]
28
35
  s.bindir = "exe"
29
36
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
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.0
4
+ version: 13.0.3
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: 2019-09-27 00:00:00.000000000 Z
13
+ date: 2020-12-21 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,10 +31,6 @@ 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
34
  - CONTRIBUTING.rdoc
39
35
  - Gemfile
40
36
  - History.rdoc
@@ -107,8 +103,12 @@ files:
107
103
  homepage: https://github.com/ruby/rake
108
104
  licenses:
109
105
  - MIT
110
- metadata: {}
111
- post_install_message:
106
+ metadata:
107
+ bug_tracker_uri: https://github.com/ruby/rake/issues
108
+ changelog_uri: https://github.com/ruby/rake/blob/v13.0.3/History.rdoc
109
+ documentation_uri: https://ruby.github.io/rake
110
+ source_code_uri: https://github.com/ruby/rake/tree/v13.0.3
111
+ post_install_message:
112
112
  rdoc_options:
113
113
  - "--main"
114
114
  - README.rdoc
@@ -125,8 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: 1.3.2
127
127
  requirements: []
128
- rubygems_version: 3.0.3
129
- signing_key:
128
+ rubygems_version: 3.2.2
129
+ signing_key:
130
130
  specification_version: 4
131
131
  summary: Rake is a Make-like program implemented in Ruby
132
132
  test_files: []
@@ -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', '2.3.x' ]
11
- steps:
12
- - uses: actions/checkout@master
13
- - name: Set up Ruby
14
- uses: actions/setup-ruby@v1
15
- with:
16
- 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.8.0', 'ruby-head', '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', '2.3.x' ]
11
- steps:
12
- - uses: actions/checkout@master
13
- - name: Set up Ruby
14
- uses: actions/setup-ruby@v1
15
- with:
16
- 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
- version: ${{ matrix.ruby }}
17
- - name: Install dependencies
18
- run: gem install minitest
19
- - name: Run test
20
- run: ruby -Ilib exe/rake