parallel 0.5.11 → 0.5.12

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 +2 -0
  4. data/parallel.gemspec +3 -3
  5. metadata +5 -5
data/Readme.md CHANGED
@@ -62,6 +62,7 @@ Authors
62
62
  - [Mikko Kokkonen](https://github.com/mikian)
63
63
  - [brian p o'rourke](https://github.com/bpo)
64
64
  - [Norio Sato]
65
+ - [Neal Stewart](https://github.com/n-time)
65
66
 
66
67
  [Michael Grosser](http://grosser.it)<br/>
67
68
  michael@grosser.it<br/>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.11
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.11"
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 = "2011-12-08"
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.12"
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: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 11
10
- version: 0.5.11
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: 2011-12-08 00:00:00 Z
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.12
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