very_safe_rm 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/very_safe_rm/rm_one.rb +2 -2
- data/lib/very_safe_rm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1e00eb78dae1552e2a12c44ec9f954d308e891a
|
4
|
+
data.tar.gz: b3bd6468bd6c83c228f973349f7b2c3852876657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f8779cffc4171caa3059e970f3b4f3cb308a8fcf1f71900041a287989c11b56b5c2dbc5b65e428509e8fb382736ae9179654945236339d0880c77efdbbaa88e
|
7
|
+
data.tar.gz: 6ccc4c81b6cd279e0e6e9e5dc20b3268f7d77a5206b902c7a3ee239b570cdaf1bc5497e9a9091cd4cef5636e4f2698f7ce551c2a55a5091c1e6c75647f724aaa
|
data/lib/very_safe_rm/rm_one.rb
CHANGED
@@ -17,9 +17,9 @@ module VerySafeRm
|
|
17
17
|
|
18
18
|
def self.check_bang(file)
|
19
19
|
file.reverse.each_char do |char|
|
20
|
-
return
|
20
|
+
return false unless char == '!'
|
21
21
|
STDERR.print "Did you really want to delete `#{file}? [y/N] "
|
22
|
-
return
|
22
|
+
return true unless STDIN.gets =~ /^y(es)?$/i
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/lib/very_safe_rm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: very_safe_rm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 71e6fd52
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|