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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cb5cf1b0bbc86d526ba5b4c70e56504ef852e46
4
- data.tar.gz: 1f176cb2678048db790651b2ce73d23035e5d3c1
3
+ metadata.gz: b1e00eb78dae1552e2a12c44ec9f954d308e891a
4
+ data.tar.gz: b3bd6468bd6c83c228f973349f7b2c3852876657
5
5
  SHA512:
6
- metadata.gz: 29eebcce88c2ae6618186da38039d94d9e044fed1c30e31ab9833f016c691748397f01c11d7c967f9185198ec06c353c245301bcbaa7382d19b0376ddd96c19e
7
- data.tar.gz: 8fdef64895b912fe2e0e676285c77ef42ded6157fa662bc8ee70d1860724944ea6a4e218bed70da3864d8691929c2858bac1f4144ce79b1c3ab295a5236e4a94
6
+ metadata.gz: 0f8779cffc4171caa3059e970f3b4f3cb308a8fcf1f71900041a287989c11b56b5c2dbc5b65e428509e8fb382736ae9179654945236339d0880c77efdbbaa88e
7
+ data.tar.gz: 6ccc4c81b6cd279e0e6e9e5dc20b3268f7d77a5206b902c7a3ee239b570cdaf1bc5497e9a9091cd4cef5636e4f2698f7ce551c2a55a5091c1e6c75647f724aaa
@@ -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 true unless char == '!'
20
+ return false unless char == '!'
21
21
  STDERR.print "Did you really want to delete `#{file}? [y/N] "
22
- return false unless STDIN.gets =~ /^y(es)?$/i
22
+ return true unless STDIN.gets =~ /^y(es)?$/i
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module VerySafeRm
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-09-30 00:00:00.000000000 Z
11
+ date: 2017-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler