fast_rake 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/fast_rake.rb CHANGED
@@ -28,7 +28,7 @@ module FastRake
28
28
  when /darwin9/
29
29
  `hwprefs cpu_count`.to_i
30
30
  when /darwin/
31
- (hwprefs_available? ? `hwprefs thread_count` : `sysctl -n hw.ncpu`).to_i
31
+ (_hwprefs_available? ? `hwprefs thread_count` : `sysctl -n hw.ncpu`).to_i
32
32
  when /linux|cygwin/
33
33
  `grep -c processor /proc/cpuinfo`.to_i
34
34
  when /(open|free)bsd/
@@ -45,4 +45,8 @@ module FastRake
45
45
  1
46
46
  end
47
47
  end
48
+
49
+ def self._hwprefs_available?
50
+ `which hwprefs` != ''
51
+ end
48
52
  end
@@ -1,6 +1,6 @@
1
1
  module FastRake
2
2
  VERSION_MAJOR = 0
3
3
  VERSION_MINOR = 2
4
- VERSION_PATCH = 0
4
+ VERSION_PATCH = 1
5
5
  VERSION = [VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH].join('.')
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_rake
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan Ricketson
@@ -52,7 +52,7 @@ licenses: []
52
52
  post_install_message:
53
53
  rdoc_options:
54
54
  - --title
55
- - fast_rake-0.2.0 Documentation
55
+ - fast_rake-0.2.1 Documentation
56
56
  require_paths:
57
57
  - lib
58
58
  required_ruby_version: !ruby/object:Gem::Requirement