runify 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/runify.rb +2 -2
- data/lib/runify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 187e7fc5cca108c27ca05c678e722d902d950647
|
4
|
+
data.tar.gz: 3d2c96cf35ca337e49612c8b77c03b4ee8a5e085
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 124eeac060119ad6cd9fba2d8b0620817b56b49e9c63ddabb6a5302641198783600e4b3b552ce3b4e6d4fe0f00700f3eb55f46f5d42ed09840ae1e327da65e62
|
7
|
+
data.tar.gz: 8f33aaddf7df64bd2b135a53363fb79d345fd33d4ea1d65fba6363ade000206b3f118c3756b1c47b6ad78e6fe0a6b7e918ebcdc4cf2f9bf098686fe181d4f5ea
|
data/lib/runify.rb
CHANGED
@@ -14,7 +14,7 @@ module Runify
|
|
14
14
|
# Startup:
|
15
15
|
# Spawns a new Thread around the _run_ method.
|
16
16
|
def startup
|
17
|
-
return if @thread
|
17
|
+
return if defined?(@thread) && @thread
|
18
18
|
@stop = nil
|
19
19
|
@thread = Thread.new { run }
|
20
20
|
end
|
@@ -23,7 +23,7 @@ module Runify
|
|
23
23
|
# Requests the _run_ method to complete and blocks until it returns.
|
24
24
|
def shutdown
|
25
25
|
@stop = true
|
26
|
-
@thread.join if @thread
|
26
|
+
@thread.join if defined?(@thread) && @thread
|
27
27
|
@thread = nil
|
28
28
|
end
|
29
29
|
|
data/lib/runify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eresse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|