parallel 0.5.20 → 0.5.21
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/Gemfile.lock +1 -1
- data/Readme.md +1 -0
- data/lib/parallel.rb +2 -2
- data/lib/parallel/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
|
@@ -89,6 +89,7 @@ Authors
|
|
|
89
89
|
- [Neal Stewart](https://github.com/n-time)
|
|
90
90
|
- [Jurriaan Pruis](http://github.com/jurriaan)
|
|
91
91
|
- [Rob Worley](http://github.com/robworley)
|
|
92
|
+
- [Tasveer Singh](https://github.com/tazsingh)
|
|
92
93
|
|
|
93
94
|
[Michael Grosser](http://grosser.it)<br/>
|
|
94
95
|
michael@grosser.it<br/>
|
data/lib/parallel.rb
CHANGED
|
@@ -61,7 +61,7 @@ module Parallel
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def self.processor_count
|
|
64
|
-
case RbConfig::CONFIG['host_os']
|
|
64
|
+
@processor_count ||= case RbConfig::CONFIG['host_os']
|
|
65
65
|
when /darwin9/
|
|
66
66
|
`hwprefs cpu_count`.to_i
|
|
67
67
|
when /darwin/
|
|
@@ -84,7 +84,7 @@ module Parallel
|
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
def self.physical_processor_count
|
|
87
|
-
case RbConfig::CONFIG['host_os']
|
|
87
|
+
@physical_processor_count ||= case RbConfig::CONFIG['host_os']
|
|
88
88
|
when /darwin1/, /freebsd/
|
|
89
89
|
`sysctl -n hw.physicalcpu`.to_i
|
|
90
90
|
when /linux/
|
data/lib/parallel/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: parallel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.21
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-12-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description:
|
|
15
15
|
email: michael@grosser.it
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
version: '0'
|
|
67
67
|
segments:
|
|
68
68
|
- 0
|
|
69
|
-
hash:
|
|
69
|
+
hash: -4018217091904548173
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
none: false
|
|
72
72
|
requirements:
|
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
version: '0'
|
|
76
76
|
segments:
|
|
77
77
|
- 0
|
|
78
|
-
hash:
|
|
78
|
+
hash: -4018217091904548173
|
|
79
79
|
requirements: []
|
|
80
80
|
rubyforge_project:
|
|
81
81
|
rubygems_version: 1.8.24
|