tempfile 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tempfile.rb +2 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef81a8dfbe90ff3468ef6d7f52763a4a0882fe3c96822b0d3fbb1fe3fb01b944
4
- data.tar.gz: 0b920d194d7a08a1dd0ad13244c7746b19787d4068127648b5d2c561b8cd0079
3
+ metadata.gz: 8ae21b4105593d2be82c1def49b7c7b433bcf5836b2341889c11bee6aad4ed80
4
+ data.tar.gz: 4e457b305ce8076c7abfe64f5d95db965a6192292467874e1fdd7b280d8ee4c1
5
5
  SHA512:
6
- metadata.gz: 8788788b42ea43fd0e3d82304cb1edf2fd8a601c6c69e6c30870fa5c2783adfed0f6fbe7e77f39c5b4f561d42c628e25513ccd79b5da3f6199eecf680325e6d1
7
- data.tar.gz: 31319dfadc78caabea0e53c0073c157ae4707b6855172a95041f875f8ea39f2181d058c9b3665ff8244e15c7a8f42a4f39d72d00525cac3b5764faf5dfb05ab0
6
+ metadata.gz: bc03ae1521c4f7fbecb322604e61fe33ce3177b965c6804a33b73fc525b38a656c2ed52d91b06018178874d0c63ddc67507da4390f1c38f7113ee802fb236a52
7
+ data.tar.gz: bec509610ce14c88a314c0d2a57eec33ebcc11f7a831da2181440929f7a0cea0f31c6af53f72259ff36e83f7045721777c80a61018f9c6d18bf1cfe96317af4c
data/lib/tempfile.rb CHANGED
@@ -157,7 +157,7 @@ require 'tmpdir'
157
157
  class Tempfile < DelegateClass(File)
158
158
 
159
159
  # The version
160
- VERSION = "0.3.0"
160
+ VERSION = "0.3.1"
161
161
 
162
162
  # Creates a file in the underlying file system;
163
163
  # returns a new \Tempfile object based on that file.
@@ -593,9 +593,7 @@ private def create_with_filename(basename="", tmpdir=nil, mode: 0, **options)
593
593
  end
594
594
  end
595
595
 
596
- File.open(IO::NULL) do |f|
597
- File.new(f.fileno, autoclose: false, path: "").path
598
- rescue IOError
596
+ if RUBY_VERSION < "3.2"
599
597
  module PathAttr # :nodoc:
600
598
  attr_reader :path
601
599
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tempfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A utility class for managing temporary files.
14
14
  email: