very_safe_rm 0.2.0 → 0.2.1

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: 32d56f2666f7b7dbe339b3f483052fdd5c782ae0
4
- data.tar.gz: f2670e3408bbc889567e34b38e3b3711e00cc812
3
+ metadata.gz: 8cb5cf1b0bbc86d526ba5b4c70e56504ef852e46
4
+ data.tar.gz: 1f176cb2678048db790651b2ce73d23035e5d3c1
5
5
  SHA512:
6
- metadata.gz: f398083dfac4a2d815f8522ed35bfab076e31eb8d797b5e8669ba2ac6fd6c5e9f95f30d474f9790cc1c1ed0671980b6f77bd8026b2915582cc520c33cc7701b6
7
- data.tar.gz: 280d8ab607f073eac4b8176535183a9b9657d8637f72ab208c143e1c1e293962d5b04e3f5acd88fb0785d47f4e92918eca8f06faa3a831cf4fd4253e30059ced
6
+ metadata.gz: 29eebcce88c2ae6618186da38039d94d9e044fed1c30e31ab9833f016c691748397f01c11d7c967f9185198ec06c353c245301bcbaa7382d19b0376ddd96c19e
7
+ data.tar.gz: 8fdef64895b912fe2e0e676285c77ef42ded6157fa662bc8ee70d1860724944ea6a4e218bed70da3864d8691929c2858bac1f4144ce79b1c3ab295a5236e4a94
data/exe/very_safe_rm CHANGED
@@ -4,9 +4,17 @@ require 'very_safe_rm'
4
4
 
5
5
  file, args = VerySafeRm.parse ARGV
6
6
 
7
+ if args.include? '--version'
8
+ print 'very_safe_rm '
9
+ puts VerySafeRm::VERSION
10
+ puts
11
+ system 'rm --version'
12
+ exit
13
+ end
14
+
7
15
  if file.empty?
8
16
  system 'rm'
9
- exit
17
+ exit 1
10
18
  end
11
19
 
12
20
  if args.include?('-r') || args.include?('-R') || args.include?('--recursive')
@@ -1,3 +1,3 @@
1
1
  module VerySafeRm
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: very_safe_rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 71e6fd52