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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.autotest +7 -0
- data/History.rdoc +6 -0
- data/Manifest.txt +1 -1
- data/Rakefile +13 -9
- data/lib/rake.rb +1 -1
- data/lib/rake/application.rb +4 -1
- data/lib/rake/cpu_counter.rb +7 -4
- data/test/test_rake_backtrace.rb +4 -2
- data/test/test_rake_cpu_counter.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
- data/Gemfile +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b66c8db881d40c6377afd994a676debcc3c45e66
|
4
|
+
data.tar.gz: a6f5c565ddeb55cfe056ecaf2b5c9fe1ea4fc12c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f1c1d7803af1168613c18408d39861dcfc92674453428e08a2d39ca3e4065dc0aa385368cd628e930fbe1d40923eb6366fdcee42781294e5c409a7765f612b
|
7
|
+
data.tar.gz: dd436ff37c98c0159ee4e33762e6a82806304e85e92cc23fb72378f03fc8af0410226ba54197fed860e852c10cd8ac86e5a12dd54f3651ca1a3d1f3240c93a9b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.autotest
ADDED
data/History.rdoc
CHANGED
data/Manifest.txt
CHANGED
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.
|
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
|
-
|
63
|
+
begin
|
64
|
+
require 'rdoc/task'
|
64
65
|
|
65
|
-
RDoc::Task.new :rdoc => 'docs', :clobber_rdoc => 'clobber_docs' do |doc|
|
66
|
-
|
67
|
-
|
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
|
-
|
70
|
-
|
70
|
+
rdoc_files = Rake::FileList.new %w[lib History.rdoc MIT-LICENSE doc]
|
71
|
+
rdoc_files.add hoe.extra_rdoc_files
|
71
72
|
|
72
|
-
|
73
|
+
doc.rdoc_files = rdoc_files
|
73
74
|
|
74
|
-
|
75
|
+
doc.rdoc_dir = 'html'
|
76
|
+
end
|
77
|
+
rescue LoadError
|
78
|
+
warn 'run `rake newb` to install rdoc'
|
75
79
|
end
|
76
80
|
|
data/lib/rake.rb
CHANGED
data/lib/rake/application.rb
CHANGED
@@ -151,7 +151,10 @@ module Rake
|
|
151
151
|
end
|
152
152
|
|
153
153
|
def parse_task_string(string) # :nodoc:
|
154
|
-
/^(
|
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?
|
data/lib/rake/cpu_counter.rb
CHANGED
@@ -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
|
-
|
80
|
-
|
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
|
-
|
100
|
-
|
102
|
+
Open3.popen3 'which', command do |_, out,|
|
103
|
+
out.eof? ? nil : command
|
101
104
|
end
|
102
105
|
end
|
103
106
|
end
|
data/test/test_rake_backtrace.rb
CHANGED
@@ -11,8 +11,9 @@ class TestBacktraceSuppression < Rake::TestCase
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def test_system_dir_suppressed
|
14
|
-
path =
|
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 =
|
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
|
|
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.
|
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-
|
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:
|
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
|