weakref 0.1.2 → 0.1.3

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: 32c5ff61d8b29ce0a0389fe2dbbc2b358c0747e1aef6526c5561bd929add5261
4
- data.tar.gz: ad7ed5b81f8a9387338b6e76e068c666d74b136046eb5cffe248c551b5219133
3
+ metadata.gz: 70702e388784f8d0eec95fc9bcb41fd678eea7d6bb4bc9a0d1a9cfec2029c891
4
+ data.tar.gz: 57d5f0eb26b0bed7a0f8e94c538b783aa9516265dea6b239dd61438952f60bbf
5
5
  SHA512:
6
- metadata.gz: 9e9e4a2f7d7344377629aa2d1143dac85379b673643aef04976dcd90fef65f35ffb340f96e14730adfd8236f1ac3ccf0d30400eb5fa39d2d55e7a8b5a5c2375a
7
- data.tar.gz: 46eb30d43965f63fede62634b719d4dd833e00d548ded79872561b212d9c765307cdb1580f2aff7177739dbf6ebdb22ef94040f5fcd1f1480499421948e590fc
6
+ metadata.gz: 1e8dd0db08f4cf88af0360a49acd97b9959c47422a233b721938ffe8b1b15d4f95be62697e7ede28fb4f3afd214f065a55bae59e7bf468242cead1c53ccaae03
7
+ data.tar.gz: 46b46e3ce80991a4f0c4ab868043ff6f7bfc7d3fddeb9fc3591622a673936e013609b2f7cc22fb355b9738985428bae766561d94cd946411eaec8c9a3df9e823
@@ -3,20 +3,26 @@ name: ubuntu
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
- build:
6
+ ruby-versions:
7
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8
+ with:
9
+ engine: cruby
10
+ min_version: 2.4
11
+
12
+ test:
13
+ needs: ruby-versions
7
14
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
15
  strategy:
9
16
  matrix:
10
- ruby: [ 2.7, 2.6, 2.5, 2.4, head ]
17
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
11
18
  os: [ ubuntu-latest, macos-latest ]
12
19
  runs-on: ${{ matrix.os }}
13
20
  steps:
14
- - uses: actions/checkout@v3
21
+ - uses: actions/checkout@v4
15
22
  - name: Set up Ruby
16
23
  uses: ruby/setup-ruby@v1
17
24
  with:
18
25
  ruby-version: ${{ matrix.ruby }}
19
- - name: Install dependencies
20
- run: bundle install
26
+ bundler-cache: true
21
27
  - name: Run test
22
- run: rake test
28
+ run: bundle exec rake test
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
  gem "bundler"
6
6
  gem "rake"
7
7
  gem "test-unit"
8
+ gem "test-unit-ruby-core"
data/Rakefile CHANGED
@@ -7,11 +7,4 @@ Rake::TestTask.new(:test) do |t|
7
7
  t.test_files = FileList["test/**/test_*.rb"]
8
8
  end
9
9
 
10
- task :sync_tool do
11
- require 'fileutils'
12
- FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
13
- FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
14
- FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
15
- end
16
-
17
10
  task :default => :test
data/lib/weakref.rb CHANGED
@@ -17,7 +17,7 @@ require "delegate"
17
17
  #
18
18
 
19
19
  class WeakRef < Delegator
20
- VERSION = "0.1.2"
20
+ VERSION = "0.1.3"
21
21
 
22
22
  ##
23
23
  # RefError is raised when a referenced object has been recycled by the
data/weakref.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  name = File.basename(__FILE__, ".gemspec")
4
- version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
4
+ version = ["lib", Array.new(name.count("-")+1, ".").join("/")].find do |dir|
5
5
  break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
6
6
  /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
7
7
  end rescue nil
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  # Specify which files should be added to the gem when it is released.
25
25
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
26
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
27
- `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
28
  end
29
29
  spec.bindir = "exe"
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-14 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: delegate
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 3.4.0.dev
67
+ rubygems_version: 3.5.0.dev
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: Allows a referenced object to be garbage-collected.