AbsoluteRenamer 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ module AbsoluteRenamer
25
25
  @name = File.basename(@real_path)
26
26
  unless @dir
27
27
  @ext = File.extname(@name, conf[:options][:dots])
28
- @name.gsub!(Regexp.new('.' << @ext << '$'), '') unless @ext.empty?
28
+ @name.gsub!(Regexp.new('.' << Regexp.escape(@ext) << '$'), '') unless @ext.empty?
29
29
  @level = 0
30
30
  else
31
31
  @level = @real_path.split('/').size
@@ -1,3 +1,3 @@
1
1
  module AbsoluteRenamer
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,64 +1,51 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: AbsoluteRenamer
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 1
9
- - 1
10
- version: 1.1.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Simon COURTOIS
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2010-12-22 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: bundler
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70103899658860 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 23
30
- segments:
31
- - 1
32
- - 0
33
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 1.0.0
35
22
  type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: thoughtbot-shoulda
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70103899658860
25
+ - !ruby/object:Gem::Dependency
26
+ name: thoughtbot-shoulda
27
+ requirement: &70103899653540 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
49
33
  type: :development
50
- version_requirements: *id002
51
- description: 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.
52
- email:
34
+ prerelease: false
35
+ version_requirements: *70103899653540
36
+ description: AbsoluteRenamer is a very powerful tool that helps files and directories
37
+ renaming using the Krename syntax. Unlike many batch renaming tools, AbsoluteRenamer
38
+ is able to rename folders. AbsoluteRenamer is modular and can be extended to adapt
39
+ itself to any kind of file or to add new options and features.
40
+ email:
53
41
  - happynoff@free.fr
54
- executables:
42
+ executables:
55
43
  - absrenamer
56
44
  extensions: []
57
-
58
- extra_rdoc_files:
45
+ extra_rdoc_files:
59
46
  - LICENSE
60
47
  - README.rdoc
61
- files:
48
+ files:
62
49
  - .document
63
50
  - .gitignore
64
51
  - AbsoluteRenamer.gemspec
@@ -100,43 +87,33 @@ files:
100
87
  - test/parser_test.rb
101
88
  - test/string_test.rb
102
89
  - test/test_helper.rb
103
- has_rdoc: true
104
90
  homepage: http://github.com/simonc/AbsoluteRenamer
105
91
  licenses: []
106
-
107
92
  post_install_message:
108
- rdoc_options:
93
+ rdoc_options:
109
94
  - --charset=UTF-8
110
- require_paths:
95
+ require_paths:
111
96
  - lib
112
- required_ruby_version: !ruby/object:Gem::Requirement
97
+ required_ruby_version: !ruby/object:Gem::Requirement
113
98
  none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 3
118
- segments:
119
- - 0
120
- version: "0"
121
- required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
104
  none: false
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- hash: 23
127
- segments:
128
- - 1
129
- - 3
130
- - 6
105
+ requirements:
106
+ - - ! '>='
107
+ - !ruby/object:Gem::Version
131
108
  version: 1.3.6
132
109
  requirements: []
133
-
134
110
  rubyforge_project: absrenamer
135
- rubygems_version: 1.3.7
111
+ rubygems_version: 1.8.15
136
112
  signing_key:
137
113
  specification_version: 3
138
- summary: AbsoluteRenamer is a very powerful tool that helps files and directories renaming using the Krename syntax.
139
- test_files:
114
+ summary: AbsoluteRenamer is a very powerful tool that helps files and directories
115
+ renaming using the Krename syntax.
116
+ test_files:
140
117
  - test/absolute_renamer_test.rb
141
118
  - test/config_test.rb
142
119
  - test/file_info_test.rb