stud 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stud/interval.rb +6 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4439aa90c275db83b7fce821dda08c3cdbdc002d
|
4
|
+
data.tar.gz: c0b94716bd3a0ec45f17701d59a84418fae9e199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40a1a2b71ee01dd942a64c467ab5ab2d73d52b23b42442aa84ff0116b2924bc5ff0900c8ff4b2d3efcac124ca122ca0e34c3da948e49c4bffe9051320a3fea90
|
7
|
+
data.tar.gz: c68d822264ad5ae552c98eae2df85154c161819fb46652b4b0e3207bde04546971a5079aa5fc3177e63fbb4ec9e3eb9e27c75786354614c289c8c9fe18bc01aa
|
data/lib/stud/interval.rb
CHANGED
@@ -41,7 +41,12 @@ module Stud
|
|
41
41
|
def self.stop!(target = Thread.current)
|
42
42
|
# setting/getting threalocal var is thread safe in JRuby
|
43
43
|
target[STUD_STOP_REQUESTED] = true
|
44
|
-
|
44
|
+
begin
|
45
|
+
target.wakeup
|
46
|
+
rescue ThreadError => e
|
47
|
+
# The thread is dead, so there's nothing to do.
|
48
|
+
# There's no race-free way to detect this sadly
|
49
|
+
end
|
45
50
|
nil
|
46
51
|
end
|
47
52
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -77,9 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
80
|
+
rubygems_version: 2.6.11
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: stud - common code techniques
|
84
84
|
test_files: []
|
85
|
-
has_rdoc:
|