parallel 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40817d36e809f53070584921f2888e6cf971173b
4
- data.tar.gz: 70d12c6a3f66e3bef8bae8a628808a2218b2fd3d
3
+ metadata.gz: 10ae41bc42e4077103a8999f19ddcd6aca506690
4
+ data.tar.gz: 6eb5df58b696e04343ff18b71b471073adeca9b1
5
5
  SHA512:
6
- metadata.gz: 48f53946ff7ff200d2ddc7484b6abfcca1cd1c9e954475d7a4391ae20040cea4355b13b3c8e330f6ce556503779295f63b59432f9bc8e4f1d395d4e0dc58bd93
7
- data.tar.gz: 7693404c3c7209c9f33ac52b714bf67d6985cca2a08c85ca2b3137f64620c1c3a1a5f337e94967f021c342c3a347b92a8d6f18974ec0067ebc89210deaa967e1
6
+ metadata.gz: 33c14f039f882d0c008b02142057ed272b1a0588ca512889ca5336b9887a5f402fb0a4579ec5aa03b46fc427dc57880b1d62f358775812a09ef2a11c2a769b9f
7
+ data.tar.gz: b3990275434d77e4f6bad098ffeda2ae8d201ec4518f2e946573024f636f6214bb79e144a1ee3c7120922c278a733d38eb626b3b190d74624e95e76a11e78362
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- ?b���Rk�ſ�5xC}c/|5jzW`��9i�0��-,���X�p�Q+#:���bɝ=�-@��ED]{n���ԃU�T�����c������=16��OY}�i�MTc�s��0Qpz27b
2
- ��"��A=�*ALM�=����6ױ6��Y��]|
1
+ &?SO9JLu��m0J=����
2
+ �%[M�Ux�s����d֦4�V�,�Ԗ�f�7�f &t�ै��L�v��2r����;j�Y��ތڏSł<�ڧ
3
+ r�"��C�K��h��-#E�K"�G��Q�
data.tar.gz.sig CHANGED
Binary file
data/lib/parallel.rb CHANGED
@@ -144,23 +144,23 @@ module Parallel
144
144
  elsif File.readable?("/proc/cpuinfo")
145
145
  IO.read("/proc/cpuinfo").scan(/^processor/).size
146
146
  elsif File.executable?("/usr/bin/hwprefs")
147
- IO.popen(%w[/usr/bin/hwprefs thread_count]).read.to_i
147
+ IO.popen("/usr/bin/hwprefs thread_count").read.to_i
148
148
  elsif File.executable?("/usr/sbin/psrinfo")
149
149
  IO.popen("/usr/sbin/psrinfo").read.scan(/^.*on-*line/).size
150
150
  elsif File.executable?("/usr/sbin/ioscan")
151
- IO.popen(%w[/usr/sbin/ioscan -kC processor]) do |out|
151
+ IO.popen("/usr/sbin/ioscan -kC processor") do |out|
152
152
  out.read.scan(/^.*processor/).size
153
153
  end
154
154
  elsif File.executable?("/usr/sbin/pmcycles")
155
- IO.popen(%w[/usr/sbin/pmcycles -m]).read.count("\n")
155
+ IO.popen("/usr/sbin/pmcycles -m").read.count("\n")
156
156
  elsif File.executable?("/usr/sbin/lsdev")
157
- IO.popen(%w[/usr/sbin/lsdev -Cc processor -S 1]).read.count("\n")
157
+ IO.popen("/usr/sbin/lsdev -Cc processor -S 1").read.count("\n")
158
158
  elsif File.executable?("/usr/sbin/sysconf") and os_name =~ /irix/i
159
- IO.popen(%w[/usr/sbin/sysconf NPROC_ONLN]).read.to_i
159
+ IO.popen("/usr/sbin/sysconf NPROC_ONLN").read.to_i
160
160
  elsif File.executable?("/usr/sbin/sysctl")
161
- IO.popen(%w[/usr/sbin/sysctl -n hw.ncpu]).read.to_i
161
+ IO.popen("/usr/sbin/sysctl -n hw.ncpu").read.to_i
162
162
  elsif File.executable?("/sbin/sysctl")
163
- IO.popen(%w[/sbin/sysctl -n hw.ncpu]).read.to_i
163
+ IO.popen("/sbin/sysctl -n hw.ncpu").read.to_i
164
164
  else
165
165
  $stderr.puts "Unknown platform: " + RbConfig::CONFIG["target_os"]
166
166
  $stderr.puts "Assuming 1 processor."
@@ -175,7 +175,7 @@ module Parallel
175
175
  @physical_processor_count ||= begin
176
176
  ppc = case RbConfig::CONFIG["target_os"]
177
177
  when /darwin1/
178
- IO.popen(%w[/usr/sbin/sysctl -n hw.physicalcpu]).read.to_i
178
+ IO.popen("/usr/sbin/sysctl -n hw.physicalcpu").read.to_i
179
179
  when /linux/
180
180
  cores = {} # unique physical ID / core ID combinations
181
181
  phy = 0
@@ -1,3 +1,3 @@
1
1
  module Parallel
2
- VERSION = Version = '0.9.1'
2
+ VERSION = Version = '0.9.2'
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.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -29,7 +29,7 @@ cert_chain:
29
29
  y0kCSWmK6D+x/SbfS6r7Ke07MRqziJdB9GuE1+0cIRuFh8EQ+LN6HXCKM5pon/GU
30
30
  ycwMXfl0
31
31
  -----END CERTIFICATE-----
32
- date: 2013-11-25 00:00:00.000000000 Z
32
+ date: 2014-01-13 00:00:00.000000000 Z
33
33
  dependencies: []
34
34
  description:
35
35
  email: michael@grosser.it
metadata.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- �:�"E���r<�}������^a�@�\{�@�L؈:jH��=-�塤��C�� azU
2
- u�$�+pԨe7���꟞��$d8�o��EPe2�&G�&‡�l,]�n<�m%����4��z�~���N��|&�j��h[�tAK{U���E~:'��Z��RQ��Bb.���WPE��ub�Q�z�����mH��w{�&���T7OWi�E�<���'�G%�Pi2.�bI�)4}��p��;� ��<w��Ki
1
+ UP�´Z}�<�Pا6 &��3��l0�&S� ���0f,]cwu򲼌��3�������\!�Bp�ÍBuAi���߃�M9^
2
+ %[���YmAn0c)h/
3
+ �7��r]bb��<K����&qpрh<�����tmӦ>