ext_monitor 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: b2abb83750952f6b00f14985dd62a0ee33432ffbc803696ede5f14cb45721e8d
4
- data.tar.gz: 8888f1ac546d1ddcc6bcba0795227fdeee0173abe45aa5a8004959819335326a
3
+ metadata.gz: 3cb1d0da758f8b65bbddf62957f4ca1a6730e1e88e17d06fe975e6dc45fd4aca
4
+ data.tar.gz: 6bd1bbbd7762645c0015c6c6f6ca641973d793650ae1b0a7c40b150959f41c57
5
5
  SHA512:
6
- metadata.gz: 21b680cdee1b799bdca61ab63b4c15ce8f3b76818ef9ef5471e5b0b94ed1b992d235146328fb554e9f54b736f441505d5cc5c6a5321c7afe3ae951760e9f72dc
7
- data.tar.gz: e42238b31b11ad32ac339042dafb22159edc77180049145c6c60bec98b7e193eda4f4aac55ee8946843be027e10541c0dcacc4b3285e3023f450cec801b814d5
6
+ metadata.gz: f18fb2f8dfb43bec38ec43c13b138ce52e4a9280b6bef0eace0febad69ad7a84d92638ef820953fb82ec920d9dd02d38fed75b31c9e7afb15000a361853d868f
7
+ data.tar.gz: 9bae890db6a29c6f5012271c394d926c5d8f33aa818105f220af1c227b0bb68bc951f32d6adbe128501d4e7724e24f2f8c49fd7d4c74220c875c9bd158f26ccd
@@ -68,11 +68,12 @@ module MonitorMixin
68
68
  # +MonitorMixin+.
69
69
  #
70
70
  def mon_synchronize(&b)
71
- @mon_data.enter
71
+ mon_data = defined?(@mon_data) ? @mon_data : use_monitor_core
72
+ mon_data.enter
72
73
  begin
73
74
  yield
74
75
  ensure
75
- @mon_data.exit
76
+ mon_data.exit
76
77
  end
77
78
  end
78
79
 
@@ -1,3 +1,3 @@
1
1
  module ExtMonitor
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ext_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - NARUSE, Yui
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler