mutex_m 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/mutex_m.rb +6 -8
- data/mutex_m.gemspec +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88572cf91c2e6eb6f9c5152967666b5253a2edad27a0a3a97fd06515f85de11f
|
4
|
+
data.tar.gz: 0c1bb10f5fc6fcf7dc30721aae8d9b70e4cbb74f92286a86bb3af0a1e5e6041a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a879eccfb2a6acd4997fac6fc3d2217129a405363d0442ad4274ec917106ecfa0c4221fa9d13c1e965c5c1ecd9e77b38f883d4fc59659575c33095dba7800912
|
7
|
+
data.tar.gz: 690a40841f4e9fc43ae58f4750a30ecabc173e2416d3bb0cdd070377d0025e8a83fc5c762d0a6c43aeaae048382fe789874c7d77ad8d697063aca0090f744eaf
|
data/README.md
CHANGED
data/lib/mutex_m.rb
CHANGED
@@ -40,17 +40,15 @@
|
|
40
40
|
#
|
41
41
|
module Mutex_m
|
42
42
|
|
43
|
-
VERSION = "0.
|
43
|
+
VERSION = "0.2.0"
|
44
44
|
Ractor.make_shareable(VERSION) if defined?(Ractor)
|
45
45
|
|
46
46
|
def Mutex_m.define_aliases(cl) # :nodoc:
|
47
|
-
cl.
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
alias synchronize mu_synchronize
|
53
|
-
}
|
47
|
+
cl.alias_method(:locked?, :mu_locked?)
|
48
|
+
cl.alias_method(:lock, :mu_lock)
|
49
|
+
cl.alias_method(:unlock, :mu_unlock)
|
50
|
+
cl.alias_method(:try_lock, :mu_try_lock)
|
51
|
+
cl.alias_method(:synchronize, :mu_synchronize)
|
54
52
|
end
|
55
53
|
|
56
54
|
def Mutex_m.append_features(cl) # :nodoc:
|
data/mutex_m.gemspec
CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.bindir = "exe"
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
|
+
spec.required_ruby_version = '>= 2.5'
|
23
24
|
|
24
25
|
spec.add_development_dependency "bundler"
|
25
26
|
spec.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutex_m
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keiju ISHITSUKA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,14 +78,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '2.5'
|
82
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
84
|
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
88
|
+
rubygems_version: 3.5.0.dev
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Mixin to extend objects to be handled like a Mutex.
|