renumber 0.0.8 → 0.0.9

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: 0484ee1edd9df0f5ca9747b016acd838a76d0cce
4
- data.tar.gz: 0a97f062e3b4f1dec265c525ac9cb4ab4a8d98f2
3
+ metadata.gz: 0ee2cc8b4b0f147292e35b9dfb8b8de9ab3d7a86
4
+ data.tar.gz: 591257939f5087292c8551d3ebd1365d8a8ce678
5
5
  SHA512:
6
- metadata.gz: 349d2da78fee9e2910691ad2192edd9768d4dfd6d122f813f07a3f65d7195fbcdb93be9af1cbb6c7cef2572206e7cc8ddbda48c4b1e7e5334bf3d25a15d2cb95
7
- data.tar.gz: 83ed3f7af2f0d9ed2d0a849479a3b9ae94fc543228527d3a726bcbf080d4afde2beee9e607f8e9df13e724d10a35c4df59e7f3f40dfde85c963b2d9e103f7706
6
+ metadata.gz: 3399e28fa76689175ac89a6700c23a3bcb9e85c24d874ba8e47b5ccc7db765f888a3f0bf95c0d6bb490d6b979c31c8b6284cf6630d3d29af5587c62c92fc4120
7
+ data.tar.gz: a0f903e44516b9e38be26821e8ffc182523d897f0971947a90e9d50c5773c6a62874566338bb30d28779390d31136961165ee36445881c0b5aa7f9b16ee5d1f4
@@ -1,12 +1,14 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- puts 'Usage: renumber directory_name [prefix] [suffix]' and exit unless ARGV[0]
4
-
5
3
  require 'renumber'
6
4
  include Renumber
7
5
 
8
- begin
9
- change_files ARGV[0], ARGV[1], ARGV[2]
10
- rescue ArgumentError => e
11
- puts e.message
12
- end
6
+ if ARGV[0].nil?
7
+ puts 'Usage: renumber directory_name [prefix] [suffix]'
8
+ else
9
+ begin
10
+ change_files ARGV[0], ARGV[1], ARGV[2]
11
+ rescue ArgumentError => e
12
+ puts e.message
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Renumber
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Aschenbach