tmpdir 0.3.1 → 0.3.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/lib/tmpdir.rb +2 -2
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4eb38a5bf61de2e4ee459fbc8edfde50a1bb3a2bdd04c4afcdbb3fb763e1d3c6
|
|
4
|
+
data.tar.gz: acb48285b4eea792d1fbc72b4eaa1d07fd852d72d4108a3e92a60497525451b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98b1a5b86859465bba6c73a1046a42d25b4c1413f85c34d52f7482d6cc94fbfd14912c94458641d63a9c7488c2d39f22e84adf6785eb1fd8e9bb8fbad752fc46
|
|
7
|
+
data.tar.gz: 8c6c65aed1b0f7f41a1545f6fd53e8076bd638df3917aad75db0b6affc9c4b29fb64058b56365b0055fa4d7a32b2bf65e267be07bac4ea80919ca52d0d75be2d
|
data/lib/tmpdir.rb
CHANGED
|
@@ -73,7 +73,7 @@ class Dir
|
|
|
73
73
|
# If a block is given,
|
|
74
74
|
# it is yielded with the path of the directory.
|
|
75
75
|
# The directory and its contents are removed
|
|
76
|
-
# using FileUtils.remove_entry before Dir.mktmpdir returns.
|
|
76
|
+
# using FileUtils.remove_entry with force before Dir.mktmpdir returns.
|
|
77
77
|
# The value of the block is returned.
|
|
78
78
|
#
|
|
79
79
|
# Dir.mktmpdir {|dir|
|
|
@@ -111,7 +111,7 @@ class Dir
|
|
|
111
111
|
raise ArgumentError, "parent directory is world writable but not sticky: #{base}"
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
|
-
FileUtils.remove_entry path
|
|
114
|
+
FileUtils.remove_entry path, true
|
|
115
115
|
end
|
|
116
116
|
else
|
|
117
117
|
path
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tmpdir
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yukihiro Matsumoto
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: fileutils
|
|
@@ -46,7 +45,6 @@ licenses:
|
|
|
46
45
|
metadata:
|
|
47
46
|
homepage_uri: https://github.com/ruby/tmpdir
|
|
48
47
|
source_code_uri: https://github.com/ruby/tmpdir
|
|
49
|
-
post_install_message:
|
|
50
48
|
rdoc_options: []
|
|
51
49
|
require_paths:
|
|
52
50
|
- lib
|
|
@@ -61,8 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
61
59
|
- !ruby/object:Gem::Version
|
|
62
60
|
version: '0'
|
|
63
61
|
requirements: []
|
|
64
|
-
rubygems_version: 3.
|
|
65
|
-
signing_key:
|
|
62
|
+
rubygems_version: 3.6.9
|
|
66
63
|
specification_version: 4
|
|
67
64
|
summary: Extends the Dir class to manage the OS temporary file path.
|
|
68
65
|
test_files: []
|