weakref 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/test.yml +2 -4
- data/Rakefile +1 -1
- data/lib/weakref.rb +1 -4
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c5ff61d8b29ce0a0389fe2dbbc2b358c0747e1aef6526c5561bd929add5261
|
4
|
+
data.tar.gz: ad7ed5b81f8a9387338b6e76e068c666d74b136046eb5cffe248c551b5219133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e9e4a2f7d7344377629aa2d1143dac85379b673643aef04976dcd90fef65f35ffb340f96e14730adfd8236f1ac3ccf0d30400eb5fa39d2d55e7a8b5a5c2375a
|
7
|
+
data.tar.gz: 46eb30d43965f63fede62634b719d4dd833e00d548ded79872561b212d9c765307cdb1580f2aff7177739dbf6ebdb22ef94040f5fcd1f1480499421948e590fc
|
data/.github/workflows/test.yml
CHANGED
@@ -11,14 +11,12 @@ jobs:
|
|
11
11
|
os: [ ubuntu-latest, macos-latest ]
|
12
12
|
runs-on: ${{ matrix.os }}
|
13
13
|
steps:
|
14
|
-
- uses: actions/checkout@
|
14
|
+
- uses: actions/checkout@v3
|
15
15
|
- name: Set up Ruby
|
16
16
|
uses: ruby/setup-ruby@v1
|
17
17
|
with:
|
18
18
|
ruby-version: ${{ matrix.ruby }}
|
19
19
|
- name: Install dependencies
|
20
|
-
run:
|
21
|
-
gem install bundler --no-document
|
22
|
-
bundle install
|
20
|
+
run: bundle install
|
23
21
|
- name: Run test
|
24
22
|
run: rake test
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ end
|
|
9
9
|
|
10
10
|
task :sync_tool do
|
11
11
|
require 'fileutils'
|
12
|
-
FileUtils.cp "../ruby/tool/lib/
|
12
|
+
FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
|
13
13
|
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
|
14
14
|
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
|
15
15
|
end
|
data/lib/weakref.rb
CHANGED
@@ -17,7 +17,7 @@ require "delegate"
|
|
17
17
|
#
|
18
18
|
|
19
19
|
class WeakRef < Delegator
|
20
|
-
VERSION = "0.1.
|
20
|
+
VERSION = "0.1.2"
|
21
21
|
|
22
22
|
##
|
23
23
|
# RefError is raised when a referenced object has been recycled by the
|
@@ -30,9 +30,6 @@ class WeakRef < Delegator
|
|
30
30
|
|
31
31
|
##
|
32
32
|
# Creates a weak reference to +orig+
|
33
|
-
#
|
34
|
-
# Raises an ArgumentError if the given +orig+ is immutable, such as Symbol,
|
35
|
-
# Integer, or Float.
|
36
33
|
|
37
34
|
def initialize(orig)
|
38
35
|
case orig
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weakref
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yukihiro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: delegate
|
@@ -31,6 +31,7 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- ".github/dependabot.yml"
|
34
35
|
- ".github/workflows/test.yml"
|
35
36
|
- ".gitignore"
|
36
37
|
- Gemfile
|
@@ -63,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
64
|
- !ruby/object:Gem::Version
|
64
65
|
version: '0'
|
65
66
|
requirements: []
|
66
|
-
rubygems_version: 3.
|
67
|
+
rubygems_version: 3.4.0.dev
|
67
68
|
signing_key:
|
68
69
|
specification_version: 4
|
69
70
|
summary: Allows a referenced object to be garbage-collected.
|