stud 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stud/interval.rb +6 -1
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6052e9a657a08c734e6ca7326edc7e86e402305
4
- data.tar.gz: 9c681e29d45145e0df76800b6821d198c3003c57
3
+ metadata.gz: 4439aa90c275db83b7fce821dda08c3cdbdc002d
4
+ data.tar.gz: c0b94716bd3a0ec45f17701d59a84418fae9e199
5
5
  SHA512:
6
- metadata.gz: 3ac208ff1766b0f2827e8239e4739d344bbedff9dd6f9e6d84d4ffba3fd3314e7db6dffda9bea63ee3f61499d1dc1865058837762adb9ad29e9bcdbfb42878f9
7
- data.tar.gz: 07308bf3b065d429e16802786e4f571321cb31735b784d207619410b63b8d58c0d41ff6d5ee83f327fe602605b74eeb27bcd4aead1cb9d3ab7b9e286f5463fdf
6
+ metadata.gz: 40a1a2b71ee01dd942a64c467ab5ab2d73d52b23b42442aa84ff0116b2924bc5ff0900c8ff4b2d3efcac124ca122ca0e34c3da948e49c4bffe9051320a3fea90
7
+ data.tar.gz: c68d822264ad5ae552c98eae2df85154c161819fb46652b4b0e3207bde04546971a5079aa5fc3177e63fbb4ec9e3eb9e27c75786354614c289c8c9fe18bc01aa
@@ -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
- target.wakeup
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.22
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: 2015-09-17 00:00:00.000000000 Z
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.4.6
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: