AbsoluteRenamer 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  coverage
4
4
  rdoc
5
5
  pkg
6
+ *.gem
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{AbsoluteRenamer}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Simon COURTOIS"]
12
- s.date = %q{2009-10-04}
12
+ s.date = %q{2009-10-05}
13
13
  s.default_executable = %q{absrenamer}
14
14
  s.description = %q{AbsoluteRenamer is a very powerful tool that helps files and directories renaming using the Krename syntax. Unlike many batch renaming tools, AbsoluteRenamer is able to rename folders. AbsoluteRenamer is modular and can be extended to adapt itself to any kind of file or to add new options and features.}
15
15
  s.email = %q{happynoff@free.fr}
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -22,11 +22,15 @@ module AbsoluteRenamer
22
22
  'Format string used as model') do |format|
23
23
  options[:format] = format
24
24
  @format_given = true
25
+
26
+ raise "Format cannot contain the / character." if format.match(/\//)
25
27
  end
26
28
 
27
29
  parser.on('-x', '--ext-format FORMAT',
28
30
  'Format string used as model for the extension') do |format|
29
31
  options[:ext_format] = format
32
+
33
+ raise "Format cannot contain the / character." if format.match(/\//)
30
34
  end
31
35
 
32
36
  parser.on('-R', '--recursive',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: AbsoluteRenamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon COURTOIS
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-04 00:00:00 +02:00
12
+ date: 2009-10-05 00:00:00 +02:00
13
13
  default_executable: absrenamer
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency