pthread 0.0.6 → 0.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd1570a572376007e47ce0749ed8bdb17d049390
4
- data.tar.gz: 9fdeb6e2ae5d6d0e83a2bd4cdc4d1828689379a4
3
+ metadata.gz: 8b4115d829039a0033707e7ee8c61c20b9811ce8
4
+ data.tar.gz: 914e7300414d2f88e9e0c4a1c570f49b1168e46e
5
5
  SHA512:
6
- metadata.gz: 1e61ea8d5a55760ab2f9fa00abc8ca07945916e358ce6d21ae7f5ef1579cfba1cf873dce80266c91dadb442c53bed0a59412dbbc43be36d62f7834b49b4b9326
7
- data.tar.gz: ac8986d1b4bec161083d3184239dd168dd2e243b9dadae47ced0006209dcbf8425faed7b1d64af41f69e9fd848625e9caa9d1d9523e9d12e47a8a66d8a78b52f
6
+ metadata.gz: f55558ad0dce52d87478486f6c3e072bceecde87eaac811440f700b3b324f2cfc49f8c75b419290df2972c794361cb41042be2eb331a9fc2ba2eb42f3ee3c758
7
+ data.tar.gz: ad5ca10800236855b77ca24696d1a4828f62568f5e50c0259b270848fea202b16a0915d38989010f9a46f5ee5f8759439786babaedd86e79e5838aadaef7bd1b
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+ - 2.0.0
4
5
  script: bundle exec rspec spec
@@ -24,6 +24,7 @@ class Pthread::Pthread
24
24
 
25
25
  def self.kill_executors
26
26
  Process.kill 'HUP', *@@pids
27
+ @@pids = []
27
28
  end
28
29
 
29
30
  def initialize(job)
@@ -1,3 +1,3 @@
1
1
  module Pthread
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
@@ -2,6 +2,11 @@ require 'spec_helper'
2
2
 
3
3
  describe Pthread::Pthread do
4
4
 
5
+ before(:all) do
6
+ Pthread::Pthread.start_service 'localhost:54321'
7
+ Pthread::Pthread.add_executor 'tasks'
8
+ end
9
+
5
10
  let(:x) { 5 }
6
11
 
7
12
  let(:pthread) do
@@ -10,11 +15,6 @@ describe Pthread::Pthread do
10
15
  }, context: { x: x }
11
16
  end
12
17
 
13
- before do
14
- Pthread::Pthread.start_service 'localhost:54321'
15
- Pthread::Pthread.add_executor 'tasks'
16
- end
17
-
18
18
  context 'without exceptions' do
19
19
  it 'should calculate value in a separate process' do
20
20
  pthread.value.should eq 5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pthread
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikita Cernovs