parallel 0.5.20 → 0.5.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parallel (0.5.20)
4
+ parallel (0.5.21)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
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/>
@@ -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/
@@ -1,3 +1,3 @@
1
1
  module Parallel
2
- VERSION = Version = '0.5.20'
2
+ VERSION = Version = '0.5.21'
3
3
  end
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.20
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-11-27 00:00:00.000000000 Z
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: 2227886358623378037
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: 2227886358623378037
78
+ hash: -4018217091904548173
79
79
  requirements: []
80
80
  rubyforge_project:
81
81
  rubygems_version: 1.8.24