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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/mutex_m.rb +6 -8
  4. data/mutex_m.gemspec +1 -0
  5. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 389c43478a26e3bc30dc387d92d0149034f3e890287a40063f600ab994db843a
4
- data.tar.gz: ca465e9e47b3fe2eaec3bbf194e066c30e39a6b8101aed4a04043fdd11198ca3
3
+ metadata.gz: 88572cf91c2e6eb6f9c5152967666b5253a2edad27a0a3a97fd06515f85de11f
4
+ data.tar.gz: 0c1bb10f5fc6fcf7dc30721aae8d9b70e4cbb74f92286a86bb3af0a1e5e6041a
5
5
  SHA512:
6
- metadata.gz: 7aef07f0fbd0f288e2baf81d07b5ea8647412477c5d74e124c70706712c1081ced417628c554097103f6dba5625e4a080e483ff45c366df1f8f6a600a20e2f6c
7
- data.tar.gz: bab89102486ae0f41895647b2b19c5020c9424bb271fcb4d7092405b5d69d9b91da88f2c69d0790cf57aaf2356ed32bb3b044f1eeb26a692b89cdaa922ceadb6
6
+ metadata.gz: a879eccfb2a6acd4997fac6fc3d2217129a405363d0442ad4274ec917106ecfa0c4221fa9d13c1e965c5c1ecd9e77b38f883d4fc59659575c33095dba7800912
7
+ data.tar.gz: 690a40841f4e9fc43ae58f4750a30ecabc173e2416d3bb0cdd070377d0025e8a83fc5c762d0a6c43aeaae048382fe789874c7d77ad8d697063aca0090f744eaf
data/README.md CHANGED
@@ -23,7 +23,7 @@ Or install it yourself as:
23
23
  Start by requiring the standard library Mutex_m:
24
24
 
25
25
  ```ruby
26
- require "mutex_m.rb"
26
+ require "mutex_m"
27
27
  ```
28
28
 
29
29
  From here you can extend an object with Mutex instance methods:
data/lib/mutex_m.rb CHANGED
@@ -40,17 +40,15 @@
40
40
  #
41
41
  module Mutex_m
42
42
 
43
- VERSION = "0.1.2"
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.module_eval %q{
48
- alias locked? mu_locked?
49
- alias lock mu_lock
50
- alias unlock mu_unlock
51
- alias try_lock mu_try_lock
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.1.2
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: 2022-12-05 00:00:00.000000000 Z
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: '0'
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.4.0.dev
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.