rake 10.2.1 → 10.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5526ef643df265a66792b148005665bc7dec267a
4
- data.tar.gz: c046ec9d12b759f1c195938e1477dd3294ea8c2b
3
+ metadata.gz: b66c8db881d40c6377afd994a676debcc3c45e66
4
+ data.tar.gz: a6f5c565ddeb55cfe056ecaf2b5c9fe1ea4fc12c
5
5
  SHA512:
6
- metadata.gz: 565697f87893dac5b1eec4c6b695df1f4b3c467c5b961edb34d1108f436d7debf294f6ca1134e15ef9d67b3ff80710835430b2362dc762c6fa3082e86aa7b8d6
7
- data.tar.gz: 7d7c3e023f428a8d165b5942c345b0755f63aa52584ee81280c95a1edc5fd5399b40d075a5936ab5fa9edba101c45728daba82118137595dd31a6d5a0470b063
6
+ metadata.gz: b5f1c1d7803af1168613c18408d39861dcfc92674453428e08a2d39ca3e4065dc0aa385368cd628e930fbe1d40923eb6366fdcee42781294e5c409a7765f612b
7
+ data.tar.gz: dd436ff37c98c0159ee4e33762e6a82806304e85e92cc23fb72378f03fc8af0410226ba54197fed860e852c10cd8ac86e5a12dd54f3651ca1a3d1f3240c93a9b
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -0,0 +1,7 @@
1
+ require 'autotest/restart'
2
+
3
+ Autotest.add_hook :initialize do |at|
4
+ at.testlib = ''
5
+ at.add_exception '.git'
6
+ end
7
+
@@ -1,3 +1,9 @@
1
+ === 10.2.2 / 2014-03-27
2
+
3
+ Bug fixes:
4
+
5
+ * Restored Ruby 1.8.7 compatibility
6
+
1
7
  === 10.2.1 / 2014-03-25
2
8
 
3
9
  Bug fixes:
@@ -1,6 +1,6 @@
1
+ .autotest
1
2
  .rubocop.yml
2
3
  .togglerc
3
- Gemfile
4
4
  History.rdoc
5
5
  MIT-LICENSE
6
6
  Manifest.txt
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ hoe = Hoe.spec 'rake' do
24
24
  developer 'Eric Hodel', 'drbrain@segment7.net'
25
25
  developer 'Jim Weirich', ''
26
26
 
27
- require_ruby_version '>= 1.9'
27
+ require_ruby_version '>= 1.8.7'
28
28
  require_rubygems_version '>= 1.3.2'
29
29
 
30
30
  dependency 'minitest', '~> 4.0', :developer
@@ -60,17 +60,21 @@ hoe.test_prelude = 'gem "minitest", "~> 4.0"'
60
60
  Rake::Task['docs'].clear
61
61
  Rake::Task['clobber_docs'].clear
62
62
 
63
- require 'rdoc/task'
63
+ begin
64
+ require 'rdoc/task'
64
65
 
65
- RDoc::Task.new :rdoc => 'docs', :clobber_rdoc => 'clobber_docs' do |doc|
66
- doc.main = hoe.readme_file
67
- doc.title = 'Rake -- Ruby Make'
66
+ RDoc::Task.new :rdoc => 'docs', :clobber_rdoc => 'clobber_docs' do |doc|
67
+ doc.main = hoe.readme_file
68
+ doc.title = 'Rake -- Ruby Make'
68
69
 
69
- rdoc_files = Rake::FileList.new %w[lib History.rdoc MIT-LICENSE doc]
70
- rdoc_files.add hoe.extra_rdoc_files
70
+ rdoc_files = Rake::FileList.new %w[lib History.rdoc MIT-LICENSE doc]
71
+ rdoc_files.add hoe.extra_rdoc_files
71
72
 
72
- doc.rdoc_files = rdoc_files
73
+ doc.rdoc_files = rdoc_files
73
74
 
74
- doc.rdoc_dir = 'html'
75
+ doc.rdoc_dir = 'html'
76
+ end
77
+ rescue LoadError
78
+ warn 'run `rake newb` to install rdoc'
75
79
  end
76
80
 
@@ -21,7 +21,7 @@
21
21
  #++
22
22
 
23
23
  module Rake
24
- VERSION = '10.2.1'
24
+ VERSION = '10.2.2'
25
25
  end
26
26
 
27
27
  require 'rake/version'
@@ -151,7 +151,10 @@ module Rake
151
151
  end
152
152
 
153
153
  def parse_task_string(string) # :nodoc:
154
- /^(?<name>[^\[]+)(\[(?<remaining_args>.*)\])$/ =~ string
154
+ /^([^\[]+)(?:\[(.*)\])$/ =~ string.to_s
155
+
156
+ name = $1
157
+ remaining_args = $2
155
158
 
156
159
  return string, [] unless name
157
160
  return name, [] if remaining_args.empty?
@@ -1,5 +1,8 @@
1
1
  require 'rbconfig'
2
2
 
3
+ # TODO: replace with IO.popen using array-style arguments in Rake 11
4
+ require 'open3'
5
+
3
6
  module Rake
4
7
 
5
8
  # Based on a script at:
@@ -76,8 +79,8 @@ module Rake
76
79
  def run(command, *args)
77
80
  cmd = resolve_command(command)
78
81
  if cmd
79
- IO.popen [cmd, *args] do |io|
80
- io.read.to_i
82
+ Open3.popen3 cmd, *args do |_, out|
83
+ out.read.to_i
81
84
  end
82
85
  else
83
86
  nil
@@ -96,8 +99,8 @@ module Rake
96
99
  end
97
100
 
98
101
  def in_path_command(command)
99
- IO.popen ['which', command] do |io|
100
- io.eof? ? nil : command
102
+ Open3.popen3 'which', command do |_, out,|
103
+ out.eof? ? nil : command
101
104
  end
102
105
  end
103
106
  end
@@ -11,8 +11,9 @@ class TestBacktraceSuppression < Rake::TestCase
11
11
  end
12
12
 
13
13
  def test_system_dir_suppressed
14
- path = File.expand_path(RbConfig::CONFIG['rubylibprefix'])
14
+ path = RbConfig::CONFIG['rubylibprefix']
15
15
  skip if path.nil?
16
+ path = File.expand_path path
16
17
 
17
18
  paths = [path + ":12"]
18
19
 
@@ -22,8 +23,9 @@ class TestBacktraceSuppression < Rake::TestCase
22
23
  end
23
24
 
24
25
  def test_near_system_dir_isnt_suppressed
25
- path = File.expand_path(RbConfig::CONFIG['rubylibprefix'])
26
+ path = RbConfig::CONFIG['rubylibprefix']
26
27
  skip if path.nil?
28
+ path = File.expand_path path
27
29
 
28
30
  paths = [" " + path + ":12"]
29
31
 
@@ -1,4 +1,4 @@
1
- require_relative 'helper'
1
+ require File.expand_path('../helper', __FILE__)
2
2
 
3
3
  class TestRakeCpuCounter < Rake::TestCase
4
4
 
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: 10.2.1
4
+ version: 10.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -30,7 +30,7 @@ cert_chain:
30
30
  pfkQPF5Ezsi73pEpFN93Fy21NKCYQH1jCwWeKUF29MIMGd6kE3ZmHW/7fz5GwKIM
31
31
  Ls5SgY48a0l7Hw==
32
32
  -----END CERTIFICATE-----
33
- date: 2014-03-25 00:00:00.000000000 Z
33
+ date: 2014-03-27 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: minitest
@@ -144,10 +144,10 @@ extra_rdoc_files:
144
144
  - doc/release_notes/rake-10.1.0.rdoc
145
145
  - MIT-LICENSE
146
146
  files:
147
+ - ".autotest"
147
148
  - ".gemtest"
148
149
  - ".rubocop.yml"
149
150
  - ".togglerc"
150
- - Gemfile
151
151
  - History.rdoc
152
152
  - MIT-LICENSE
153
153
  - Manifest.txt
@@ -320,7 +320,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
320
320
  requirements:
321
321
  - - ">="
322
322
  - !ruby/object:Gem::Version
323
- version: '1.9'
323
+ version: 1.8.7
324
324
  required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  requirements:
326
326
  - - ">="
metadata.gz.sig CHANGED
Binary file
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- if RUBY_VERSION < "2.0.0"
4
- gem 'minitest', '~> 4.3'
5
- end