rake 10.2.0 → 10.2.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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +10 -1
- data/Rakefile +6 -1
- data/lib/rake.rb +1 -1
- data/lib/rake/cpu_counter.rb +2 -2
- data/lib/rake/task_manager.rb +2 -1
- data/test/test_rake_cpu_counter.rb +8 -0
- data/test/test_rake_directory_task.rb +6 -0
- metadata +12 -13
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5526ef643df265a66792b148005665bc7dec267a
|
4
|
+
data.tar.gz: c046ec9d12b759f1c195938e1477dd3294ea8c2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 565697f87893dac5b1eec4c6b695df1f4b3c467c5b961edb34d1108f436d7debf294f6ca1134e15ef9d67b3ff80710835430b2362dc762c6fa3082e86aa7b8d6
|
7
|
+
data.tar.gz: 7d7c3e023f428a8d165b5942c345b0755f63aa52584ee81280c95a1edc5fd5399b40d075a5936ab5fa9edba101c45728daba82118137595dd31a6d5a0470b063
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -1,4 +1,13 @@
|
|
1
|
-
=== 10.1
|
1
|
+
=== 10.2.1 / 2014-03-25
|
2
|
+
|
3
|
+
Bug fixes:
|
4
|
+
|
5
|
+
* File tasks including a ':' are now top-level tasks again. Issue #262 by
|
6
|
+
Josh Holtrop.
|
7
|
+
* Use sysctl for CPU count for all BSDs. Pull request #261 by Joshua Stein.
|
8
|
+
* Fixed CPU detection for unknown platforms.
|
9
|
+
|
10
|
+
=== 10.2.0 / 2014-03-24
|
2
11
|
|
3
12
|
Enhancements:
|
4
13
|
|
data/Rakefile
CHANGED
@@ -36,9 +36,14 @@ hoe = Hoe.spec 'rake' do
|
|
36
36
|
|
37
37
|
self.extra_rdoc_files.concat FileList[
|
38
38
|
'MIT-LICENSE',
|
39
|
-
'doc/**/*.rdoc'
|
39
|
+
'doc/**/*.rdoc',
|
40
|
+
'*.rdoc',
|
40
41
|
]
|
41
42
|
|
43
|
+
self.local_rdoc_dir = 'html'
|
44
|
+
self.rsync_args = '-avz --delete'
|
45
|
+
rdoc_locations << 'docs.seattlerb.org:/data/www/docs.seattlerb.org/rake/'
|
46
|
+
|
42
47
|
self.clean_globs += [
|
43
48
|
'**/*.o',
|
44
49
|
'**/*.rbc',
|
data/lib/rake.rb
CHANGED
data/lib/rake/cpu_counter.rb
CHANGED
@@ -26,7 +26,7 @@ module Rake
|
|
26
26
|
count_via_hwprefs_thread_count || count_via_sysctl
|
27
27
|
when /linux/
|
28
28
|
count_via_cpuinfo
|
29
|
-
when /
|
29
|
+
when /bsd/
|
30
30
|
count_via_sysctl
|
31
31
|
when /mswin|mingw/
|
32
32
|
count_via_win32
|
@@ -51,7 +51,7 @@ module Rake
|
|
51
51
|
wmi = WIN32OLE.connect("winmgmts://")
|
52
52
|
cpu = wmi.ExecQuery("select NumberOfCores from Win32_Processor") # TODO count hyper-threaded in this
|
53
53
|
cpu.to_enum.first.NumberOfCores
|
54
|
-
rescue StandardError
|
54
|
+
rescue StandardError, LoadError
|
55
55
|
nil
|
56
56
|
end
|
57
57
|
|
data/lib/rake/task_manager.rb
CHANGED
@@ -27,7 +27,8 @@ module Rake
|
|
27
27
|
task_name, arg_names, deps = resolve_args(args)
|
28
28
|
|
29
29
|
original_scope = @scope
|
30
|
-
if
|
30
|
+
if String === task_name and
|
31
|
+
not task_class.ancestors.include? Rake::FileTask then
|
31
32
|
task_name, *definition_scope = *(task_name.split(":").reverse)
|
32
33
|
@scope = Scope.make(*(definition_scope + @scope.to_a))
|
33
34
|
end
|
@@ -8,6 +8,14 @@ class TestRakeCpuCounter < Rake::TestCase
|
|
8
8
|
@cpu_counter = Rake::CpuCounter.new
|
9
9
|
end
|
10
10
|
|
11
|
+
def test_count_via_win32
|
12
|
+
if Rake::Win32.windows? then
|
13
|
+
assert_kind_of Numeric, @cpu_counter.count_via_win32
|
14
|
+
else
|
15
|
+
assert_nil @cpu_counter.count_via_win32
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
11
19
|
def test_in_path_command
|
12
20
|
with_ruby_in_path do |ruby|
|
13
21
|
assert_equal ruby, @cpu_counter.in_path_command(ruby)
|
@@ -25,6 +25,12 @@ class TestRakeDirectoryTask < Rake::TestCase
|
|
25
25
|
refute File.exist?("a/b/c")
|
26
26
|
end
|
27
27
|
|
28
|
+
def test_directory_colon
|
29
|
+
directory "a:b"
|
30
|
+
|
31
|
+
assert_equal FileCreationTask, Task['a:b'].class
|
32
|
+
end unless Rake::Win32.windows?
|
33
|
+
|
28
34
|
if Rake::Win32.windows?
|
29
35
|
def test_directory_win32
|
30
36
|
desc "WIN32 DESC"
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -11,9 +11,9 @@ bindir: bin
|
|
11
11
|
cert_chain:
|
12
12
|
- |
|
13
13
|
-----BEGIN CERTIFICATE-----
|
14
|
-
|
14
|
+
MIIDNjCCAh6gAwIBAgIBAjANBgkqhkiG9w0BAQUFADBBMRAwDgYDVQQDDAdkcmJy
|
15
15
|
YWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZFgNu
|
16
|
-
|
16
|
+
ZXQwHhcNMTQwMzI0MjEwNTQ1WhcNMTUwMzI0MjEwNTQ1WjBBMRAwDgYDVQQ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QPF5Ezsi73pEpFN93Fy21NKCYQH1jCwWeKUF29MIMGd6kE3ZmHW/7fz5GwKIM
|
31
|
+
Ls5SgY48a0l7Hw==
|
33
32
|
-----END CERTIFICATE-----
|
34
|
-
date: 2014-03-
|
33
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
36
|
name: minitest
|
metadata.gz.sig
CHANGED
Binary file
|