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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b00684be542fa249d7e2c7539f60a22d8125316
4
- data.tar.gz: 6b852a9a2211a2ccf2ba99d1f80b231bd710a2c2
3
+ metadata.gz: 5526ef643df265a66792b148005665bc7dec267a
4
+ data.tar.gz: c046ec9d12b759f1c195938e1477dd3294ea8c2b
5
5
  SHA512:
6
- metadata.gz: c1063cea22808d157107e1a3a4601ae2ba6b8b79c905d25234911c4f7e9c15a145a1a717eeddbf336fae95023138a99e921d91e0bb82da5bb97c6f53c9626516
7
- data.tar.gz: 4e336a918d4c1ca528bb556530a6d26014352dfb24efe0fcefb5160299e99be0f27c762369c473d19168eac1cb32285f634b70ff73d9028e7064bdae7688c5da
6
+ metadata.gz: 565697f87893dac5b1eec4c6b695df1f4b3c467c5b961edb34d1108f436d7debf294f6ca1134e15ef9d67b3ff80710835430b2362dc762c6fa3082e86aa7b8d6
7
+ data.tar.gz: 7d7c3e023f428a8d165b5942c345b0755f63aa52584ee81280c95a1edc5fd5399b40d075a5936ab5fa9edba101c45728daba82118137595dd31a6d5a0470b063
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,4 +1,13 @@
1
- === 10.1.2 / 2014-03-24
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',
@@ -21,7 +21,7 @@
21
21
  #++
22
22
 
23
23
  module Rake
24
- VERSION = '10.2.0'
24
+ VERSION = '10.2.1'
25
25
  end
26
26
 
27
27
  require 'rake/version'
@@ -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 /freebsd/
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
 
@@ -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(task_name.is_a? String)
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.0
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
- MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMRAwDgYDVQQDDAdkcmJy
14
+ MIIDNjCCAh6gAwIBAgIBAjANBgkqhkiG9w0BAQUFADBBMRAwDgYDVQQDDAdkcmJy
15
15
  YWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZFgNu
16
- ZXQwHhcNMTMwMjI4MDUyMjA4WhcNMTQwMjI4MDUyMjA4WjBBMRAwDgYDVQQDDAdk
16
+ ZXQwHhcNMTQwMzI0MjEwNTQ1WhcNMTUwMzI0MjEwNTQ1WjBBMRAwDgYDVQQDDAdk
17
17
  cmJyYWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZ
18
18
  FgNuZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbbgLrGLGIDE76
19
19
  LV/cvxdEzCuYuS3oG9PrSZnuDweySUfdp/so0cDq+j8bqy6OzZSw07gdjwFMSd6J
@@ -21,17 +21,16 @@ cert_chain:
21
21
  Gj/okWrQl0NjYOYBpDi+9PPmaH2RmLJ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6RxZdxaEHVZrbTX9cqGTAfnWhOIpsGJ/vNOofu1jIrw
29
+ dAwolOAbVCvXy7lPI7oFtVzGu18RT7NW6Q4frd28V0Qs4shmW+ckdlneSzN1hVft
30
+ pfkQPF5Ezsi73pEpFN93Fy21NKCYQH1jCwWeKUF29MIMGd6kE3ZmHW/7fz5GwKIM
31
+ Ls5SgY48a0l7Hw==
33
32
  -----END CERTIFICATE-----
34
- date: 2014-03-24 00:00:00.000000000 Z
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