renumber 0.0.7 → 0.0.8

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: 9654aa59b77f3dbdecddd4c6b3778f78a09d3da1
4
- data.tar.gz: 3f7bcf9d1babdf44771b51777e0d70ecbcaa197a
3
+ metadata.gz: 0484ee1edd9df0f5ca9747b016acd838a76d0cce
4
+ data.tar.gz: 0a97f062e3b4f1dec265c525ac9cb4ab4a8d98f2
5
5
  SHA512:
6
- metadata.gz: f7095d390584635847311ffb7db425b09e80485393291de11bb8abb8c73f28c91e7441cb45442c43c7eaec0b4d326d54ffc008d3ecd728f928be2230ae46dbc2
7
- data.tar.gz: fcd33e53b2c24f5fad06c354b91d7f8c9f57c47d47d3bfd9f150f9958e34670148cd2530be6c9dff77e8b86f4b61e7a8ca53fed148517ca1b00565e6ce1cc45c
6
+ metadata.gz: 349d2da78fee9e2910691ad2192edd9768d4dfd6d122f813f07a3f65d7195fbcdb93be9af1cbb6c7cef2572206e7cc8ddbda48c4b1e7e5334bf3d25a15d2cb95
7
+ data.tar.gz: 83ed3f7af2f0d9ed2d0a849479a3b9ae94fc543228527d3a726bcbf080d4afde2beee9e607f8e9df13e724d10a35c4df59e7f3f40dfde85c963b2d9e103f7706
data/bin/renumber CHANGED
@@ -1,11 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'renumber'
3
+ puts 'Usage: renumber directory_name [prefix] [suffix]' and exit unless ARGV[0]
4
4
 
5
+ require 'renumber'
5
6
  include Renumber
6
7
 
7
- puts 'Usage: renumber directory_name [prefix] [suffix]' and return unless ARGV[0]
8
-
9
8
  begin
10
9
  change_files ARGV[0], ARGV[1], ARGV[2]
11
10
  rescue ArgumentError => e
@@ -1,3 +1,3 @@
1
1
  module Renumber
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
data/lib/renumber.rb CHANGED
@@ -2,7 +2,7 @@ require 'renumber/version'
2
2
 
3
3
  module Renumber
4
4
  def sorted_files(path)
5
- raise ArgumentError, 'path must be a directory' unless File.directory?(path)
5
+ raise ArgumentError, 'Path must be a directory' unless File.directory?(path)
6
6
 
7
7
  Dir.chdir(path)
8
8
 
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Aschenbach