parallel 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Readme.md +1 -0
  2. data/VERSION +1 -1
  3. data/lib/parallel.rb +3 -1
  4. data/parallel.gemspec +1 -1
  5. metadata +2 -2
data/Readme.md CHANGED
@@ -50,6 +50,7 @@ Authors
50
50
  - [Masatomo Nakano](http://twitter.com/masatomo2)
51
51
  - [Fred Wu](http://fredwu.me)
52
52
  - [mikezter](http://github.com/mikezter)
53
+ - [Jeremy Durham](http://www.jeremydurham.com)
53
54
 
54
55
  [Michael Grosser](http://pragmatig.wordpress.com)
55
56
  grosser.michael@gmail.com
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.5
1
+ 0.4.6
@@ -78,7 +78,9 @@ class Parallel
78
78
 
79
79
  def self.processor_count
80
80
  case RUBY_PLATFORM
81
- when /darwin/
81
+ when /darwin9/
82
+ `hwprefs cpu_count`.to_i
83
+ when /darwin10/
82
84
  `hwprefs thread_count`.to_i
83
85
  when /linux/
84
86
  `cat /proc/cpuinfo | grep processor | wc -l`.to_i
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{parallel}
8
- s.version = "0.4.5"
8
+ s.version = "0.4.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 5
9
- version: 0.4.5
8
+ - 6
9
+ version: 0.4.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser