parallel 0.5.17 → 0.5.18
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -4
- data/Gemfile.lock +1 -1
- data/Readme.md +2 -2
- data/lib/parallel.rb +1 -1
- data/lib/parallel/version.rb +1 -1
- metadata +22 -35
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
@@ -9,7 +9,7 @@ Usage
|
|
9
9
|
=====
|
10
10
|
# 2 CPUs -> work in 2 processes (a,b + c)
|
11
11
|
results = Parallel.map(['a','b','c']) do |one_letter|
|
12
|
-
expensive_calculation(
|
12
|
+
expensive_calculation(one_letter)
|
13
13
|
end
|
14
14
|
|
15
15
|
# 3 Processes -> finished after 1 run
|
@@ -49,7 +49,7 @@ TODO
|
|
49
49
|
Authors
|
50
50
|
=======
|
51
51
|
|
52
|
-
### [Contributors](
|
52
|
+
### [Contributors](https://github.com/grosser/parallel/contributors)
|
53
53
|
- [Przemyslaw Wroblewski](http://github.com/lowang)
|
54
54
|
- [TJ Holowaychuk](http://vision-media.ca/)
|
55
55
|
- [Masatomo Nakano](http://twitter.com/masatomo2)
|
data/lib/parallel.rb
CHANGED
@@ -66,7 +66,7 @@ module Parallel
|
|
66
66
|
`hwprefs cpu_count`.to_i
|
67
67
|
when /darwin/
|
68
68
|
(hwprefs_available? ? `hwprefs thread_count` : `sysctl -n hw.ncpu`).to_i
|
69
|
-
when /linux/
|
69
|
+
when /linux|cygwin/
|
70
70
|
`grep -c processor /proc/cpuinfo`.to_i
|
71
71
|
when /(open|free)bsd/
|
72
72
|
`sysctl -n hw.ncpu`.to_i
|
data/lib/parallel/version.rb
CHANGED
metadata
CHANGED
@@ -1,32 +1,22 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.18
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
- 17
|
10
|
-
version: 0.5.17
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Michael Grosser
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2012-06-03 00:00:00 Z
|
12
|
+
date: 2012-08-17 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
14
|
description:
|
22
15
|
email: michael@grosser.it
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
18
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
19
|
+
files:
|
30
20
|
- Gemfile
|
31
21
|
- Gemfile.lock
|
32
22
|
- Rakefile
|
@@ -62,37 +52,34 @@ files:
|
|
62
52
|
- spec/parallel_spec.rb
|
63
53
|
- spec/spec_helper.rb
|
64
54
|
homepage: http://github.com/grosser/parallel
|
65
|
-
licenses:
|
55
|
+
licenses:
|
66
56
|
- MIT
|
67
57
|
post_install_message:
|
68
58
|
rdoc_options: []
|
69
|
-
|
70
|
-
require_paths:
|
59
|
+
require_paths:
|
71
60
|
- lib
|
72
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
62
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
segments:
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
segments:
|
79
68
|
- 0
|
80
|
-
|
81
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
hash: -2123722403146893619
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
71
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
segments:
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
segments:
|
88
77
|
- 0
|
89
|
-
|
78
|
+
hash: -2123722403146893619
|
90
79
|
requirements: []
|
91
|
-
|
92
80
|
rubyforge_project:
|
93
81
|
rubygems_version: 1.8.24
|
94
82
|
signing_key:
|
95
83
|
specification_version: 3
|
96
84
|
summary: Run any kind of code in parallel processes
|
97
85
|
test_files: []
|
98
|
-
|