mutex_m 0.1.0 → 0.1.1

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: 2cbc119ce68a11fe9437d7996558cbe8442a70993f81c041a3d275ce72190781
4
- data.tar.gz: 92174be4a48caf6bb633a5eacf27913a67a48bc0fca21dee595173692f5decc7
3
+ metadata.gz: 90b564c7decd5c539896cab3c66cee8f4b382ede5115f2e92ddd7dc687a2183c
4
+ data.tar.gz: 40ae6ead9b75d6ae11cb751f2529d66b25fef5b849168b9b464c0a372258b606
5
5
  SHA512:
6
- metadata.gz: '068be6b85e50d6ea6c01856db3b451f626f8fbbbb60a4d3bf8645a84ae8e89becb910bfc6d5aecc5a957549661caa161a58818b7d5bba871ef5e0784f7f8ae48'
7
- data.tar.gz: 44677a56e80a8ef21f4bc12bd2d750b4a51935f2c71ed33b0a2d70921ce7a378068c125f47132111608dd7020d767ece9bca4a8c3e7e244a224eb7076fdfa9fe
6
+ metadata.gz: 51bc30b53aa511090296a06ec98264070d675b78bb5aaaed8cc97334b12596237e7c8db43a14b717d49a048c87d5d436beab9b5ebeca6035c1de90a265bf4c93
7
+ data.tar.gz: 7fcf7827ed18774ca1470fe299113487bc87e643141fb381213882b6e410592545368484476498cafaa80332917ddcad4eeb903daed1010b0a49c72470bedb76
data/README.md CHANGED
@@ -22,27 +22,28 @@ Or install it yourself as:
22
22
 
23
23
  Start by requiring the standard library Mutex_m:
24
24
 
25
- ```
26
- require "mutex_m.rb"
25
+ ```ruby
26
+ require "mutex_m.rb"
27
27
  ```
28
28
 
29
29
  From here you can extend an object with Mutex instance methods:
30
30
 
31
- ```
32
- obj = Object.new
33
- obj.extend Mutex_m
31
+ ```ruby
32
+ obj = Object.new
33
+ obj.extend Mutex_m
34
34
  ```
35
35
 
36
36
  Or mixin Mutex_m into your module to your class inherit Mutex instance methods.
37
37
 
38
+ ```ruby
39
+ class Foo
40
+ include Mutex_m
41
+ # ...
42
+ end
43
+
44
+ obj = Foo.new
45
+ # this obj can be handled like Mutex
38
46
  ```
39
- class Foo
40
- include Mutex_m
41
- # ...
42
- end
43
- obj = Foo.new
44
- # this obj can be handled like Mutex
45
- g```
46
47
 
47
48
  ## Development
48
49
 
@@ -40,7 +40,7 @@
40
40
  #
41
41
  module Mutex_m
42
42
 
43
- VERSION = "0.1.0"
43
+ VERSION = "0.1.1"
44
44
 
45
45
  def Mutex_m.define_aliases(cl) # :nodoc:
46
46
  cl.module_eval %q{
@@ -113,4 +113,5 @@ module Mutex_m
113
113
  mu_initialize
114
114
  super
115
115
  end
116
+ ruby2_keywords(:initialize) if respond_to?(:ruby2_keywords, true)
116
117
  end
@@ -14,9 +14,9 @@ Gem::Specification.new do |spec|
14
14
  spec.summary = %q{Mixin to extend objects to be handled like a Mutex.}
15
15
  spec.description = %q{Mixin to extend objects to be handled like a Mutex.}
16
16
  spec.homepage = "https://github.com/ruby/mutex_m"
17
- spec.license = "BSD-2-Clause"
17
+ spec.licenses = ["Ruby", "BSD-2-Clause"]
18
18
 
19
- spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/mutex_m.rb", "mutex_m.gemspec"]
19
+ spec.files = ["Gemfile", "LICENSE.txt", "README.md", "Rakefile", "lib/mutex_m.rb", "mutex_m.gemspec"]
20
20
  spec.bindir = "exe"
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keiju ISHITSUKA
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-04 00:00:00.000000000 Z
11
+ date: 2020-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,21 +59,18 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - ".gitignore"
63
- - ".travis.yml"
64
62
  - Gemfile
65
63
  - LICENSE.txt
66
64
  - README.md
67
65
  - Rakefile
68
- - bin/console
69
- - bin/setup
70
66
  - lib/mutex_m.rb
71
67
  - mutex_m.gemspec
72
68
  homepage: https://github.com/ruby/mutex_m
73
69
  licenses:
70
+ - Ruby
74
71
  - BSD-2-Clause
75
72
  metadata: {}
76
- post_install_message:
73
+ post_install_message:
77
74
  rdoc_options: []
78
75
  require_paths:
79
76
  - lib
@@ -88,9 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
85
  - !ruby/object:Gem::Version
89
86
  version: '0'
90
87
  requirements: []
91
- rubyforge_project:
92
- rubygems_version: 2.7.6
93
- signing_key:
88
+ rubygems_version: 3.2.2
89
+ signing_key:
94
90
  specification_version: 4
95
91
  summary: Mixin to extend objects to be handled like a Mutex.
96
92
  test_files: []
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- Gemfile.lock
@@ -1,6 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5.1
5
- - ruby-head
6
- before_install: gem install bundler -v 1.16.2
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require_relative "../lib/mutex_m"
5
-
6
- require "irb"
7
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install