parallel 0.5.11 → 0.5.12
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/Readme.md +1 -0
- data/VERSION +1 -1
- data/lib/parallel.rb +2 -0
- data/parallel.gemspec +3 -3
- metadata +5 -5
data/Readme.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.12
|
data/lib/parallel.rb
CHANGED
|
@@ -77,6 +77,8 @@ class Parallel
|
|
|
77
77
|
wmi = WIN32OLE.connect("winmgmts://")
|
|
78
78
|
cpu = wmi.ExecQuery("select NumberOfLogicalProcessors from Win32_Processor")
|
|
79
79
|
cpu.to_enum.first.NumberOfLogicalProcessors
|
|
80
|
+
when /solaris2/
|
|
81
|
+
`psrinfo -p`.to_i
|
|
80
82
|
else
|
|
81
83
|
$stderr.puts "Unknown architecture ( #{RbConfig::CONFIG["host_os"]} ) assuming one processor."
|
|
82
84
|
1
|
data/parallel.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "parallel"
|
|
8
|
-
s.version = "0.5.
|
|
8
|
+
s.version = "0.5.12"
|
|
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"]
|
|
12
|
-
s.date = "
|
|
12
|
+
s.date = "2012-01-20"
|
|
13
13
|
s.email = "grosser.michael@gmail.com"
|
|
14
14
|
s.files = [
|
|
15
15
|
"Gemfile",
|
|
@@ -49,7 +49,7 @@ Gem::Specification.new do |s|
|
|
|
49
49
|
s.licenses = ["MIT"]
|
|
50
50
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
51
51
|
s.require_paths = ["lib"]
|
|
52
|
-
s.rubygems_version = "1.8.
|
|
52
|
+
s.rubygems_version = "1.8.15"
|
|
53
53
|
s.summary = "Run any kind of code in parallel processes"
|
|
54
54
|
s.test_files = [
|
|
55
55
|
"spec/spec_helper.rb",
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: parallel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 12
|
|
10
|
+
version: 0.5.12
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Michael Grosser
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
18
|
+
date: 2012-01-20 00:00:00 Z
|
|
19
19
|
dependencies: []
|
|
20
20
|
|
|
21
21
|
description:
|
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
88
88
|
requirements: []
|
|
89
89
|
|
|
90
90
|
rubyforge_project:
|
|
91
|
-
rubygems_version: 1.8.
|
|
91
|
+
rubygems_version: 1.8.15
|
|
92
92
|
signing_key:
|
|
93
93
|
specification_version: 3
|
|
94
94
|
summary: Run any kind of code in parallel processes
|