rake 13.0.0 → 13.0.1

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: 37ea7de22cf200ba287c8658d5d1587e155b1a819f2c6ba42236a3a7a69c8d38
4
+ data.tar.gz: ebf1622fc43aabcb464562bb109747ce4922ef4de79bf416527fd80211f24e4a
5
5
  SHA512:
6
- metadata.gz: 4d555cfe77533730f79bad9d9a430dadd800df2986a32d8885dc078f0c4b481b1c4b9ea99d4a637c662e860ec75a8a74f10a4374d7b00aaf6631f09666b1720b
7
- data.tar.gz: '03820d6035572fa9f3805f3190672265acd52dcfbc8bf8558351e1f4124031178ba70345647fae34a5770eaf32accb4ea337154f57055efbed2758c8862357f0'
6
+ metadata.gz: f64bb34011d4aae5b3fd776d759cafcd34476ad511483c74987d0465202b0985ef3ebe8ae936dd784c40597f52bd78e4c1f6f30fbe2414a18a1e566ca489a127
7
+ data.tar.gz: c9522c2fd5de3c0388264281dfc23ce20c670cba0a83499e9d3bece53dc8f17c78783acfeac27ee14fee9c555e06939bbccd1801a976005cbdc6027e17fcfeb9
@@ -7,13 +7,13 @@ jobs:
7
7
  runs-on: macos-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ]
10
+ ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
11
11
  steps:
12
12
  - uses: actions/checkout@master
13
13
  - name: Set up Ruby
14
14
  uses: actions/setup-ruby@v1
15
15
  with:
16
- version: ${{ matrix.ruby }}
16
+ ruby-version: ${{ matrix.ruby }}
17
17
  - name: Install dependencies
18
18
  run: gem install minitest
19
19
  - name: Run test
@@ -7,7 +7,7 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head', '2.2.10' ]
10
+ ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'ruby-head', '2.3.8', '2.2.10' ]
11
11
  steps:
12
12
  - uses: actions/checkout@master
13
13
  - name: Set up RVM
@@ -7,13 +7,13 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ]
10
+ ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
11
11
  steps:
12
12
  - uses: actions/checkout@master
13
13
  - name: Set up Ruby
14
14
  uses: actions/setup-ruby@v1
15
15
  with:
16
- version: ${{ matrix.ruby }}
16
+ ruby-version: ${{ matrix.ruby }}
17
17
  - name: Install dependencies
18
18
  run: gem install minitest
19
19
  - name: Run test
@@ -13,7 +13,7 @@ jobs:
13
13
  - name: Set up Ruby
14
14
  uses: actions/setup-ruby@v1
15
15
  with:
16
- version: ${{ matrix.ruby }}
16
+ ruby-version: ${{ matrix.ruby }}
17
17
  - name: Install dependencies
18
18
  run: gem install minitest
19
19
  - name: Run test
@@ -1,3 +1,12 @@
1
+ === 13.0.1
2
+
3
+ ==== Bug fixes
4
+
5
+ * Fixed bug: Reenabled task raises previous exception on second invokation
6
+ Pull Request #271 by thorsteneckel
7
+ * Fix an incorrectly resolved arg pattern
8
+ Pull Request #327 by mjbellantoni
9
+
1
10
  === 13.0.0
2
11
 
3
12
  ==== Enhancements
@@ -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]
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Rake
3
- VERSION = "13.0.0"
3
+ VERSION = "13.0.1"
4
4
 
5
5
  module Version # :nodoc: all
6
6
  MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "."
@@ -23,6 +23,13 @@ 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.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
+
26
33
  s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } -
27
34
  %w[.rubocop.yml .gitignore .travis.yml appveyor.yml]
28
35
  s.bindir = "exe"
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.0.0
4
+ version: 13.0.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: 2019-09-27 00:00:00.000000000 Z
13
+ date: 2019-11-12 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
@@ -107,7 +107,11 @@ files:
107
107
  homepage: https://github.com/ruby/rake
108
108
  licenses:
109
109
  - MIT
110
- metadata: {}
110
+ metadata:
111
+ bug_tracker_uri: https://github.com/ruby/rake/issues
112
+ changelog_uri: https://github.com/ruby/rake/blob/v13.0.1/History.rdoc
113
+ documentation_uri: https://ruby.github.io/rake
114
+ source_code_uri: https://github.com/ruby/rake/tree/v13.0.1
111
115
  post_install_message:
112
116
  rdoc_options:
113
117
  - "--main"