maprename 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -1
- data/lib/maprename/app.rb +7 -0
- data/lib/maprename/version.rb +1 -1
- data/maprename.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5a351cfdc5908f5edf5e15c279f6161e28e30d5779656d1bd0578b1960e32b3
|
4
|
+
data.tar.gz: 66c2cd03592c6e92ff4d1ee80d2b9ed88a7b8e6d31112fc24318f8b6f8d87f64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ce67d4001af9ba86f3c5a83f56f9245330b280471a609ad9d7b7c7ae88bf115fb6bc6919d4d9b4fb59be8f0496515a714186d1819c48553ee371165577040ec
|
7
|
+
data.tar.gz: 2984eda56ce0f512fd92610f8244f91b9b060a4b3bf7dff3ef9f3b1635e8b1a7fa52ba1c82d12c8cf287cc5f145187142bab0824d7c7294932dedbb9b0f6f72b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
maprename (0.1.
|
4
|
+
maprename (0.1.4)
|
5
5
|
activesupport
|
6
6
|
|
7
7
|
GEM
|
@@ -13,11 +13,20 @@ GEM
|
|
13
13
|
minitest (~> 5.1)
|
14
14
|
tzinfo (~> 1.1)
|
15
15
|
zeitwerk (~> 2.1, >= 2.1.8)
|
16
|
+
byebug (11.1.2)
|
17
|
+
coderay (1.1.2)
|
16
18
|
concurrent-ruby (1.1.5)
|
17
19
|
diff-lcs (1.3)
|
18
20
|
i18n (1.6.0)
|
19
21
|
concurrent-ruby (~> 1.0)
|
22
|
+
method_source (1.0.0)
|
20
23
|
minitest (5.13.0)
|
24
|
+
pry (0.13.1)
|
25
|
+
coderay (~> 1.1)
|
26
|
+
method_source (~> 1.0)
|
27
|
+
pry-byebug (3.9.0)
|
28
|
+
byebug (~> 11.0)
|
29
|
+
pry (~> 0.13.0)
|
21
30
|
rake (12.3.3)
|
22
31
|
rspec (3.8.0)
|
23
32
|
rspec-core (~> 3.8.0)
|
@@ -42,6 +51,7 @@ PLATFORMS
|
|
42
51
|
|
43
52
|
DEPENDENCIES
|
44
53
|
maprename!
|
54
|
+
pry-byebug (~> 3.9.0)
|
45
55
|
rake (~> 12.0)
|
46
56
|
rspec (~> 3.0)
|
47
57
|
|
data/lib/maprename/app.rb
CHANGED
@@ -10,8 +10,15 @@ module Maprename
|
|
10
10
|
|
11
11
|
def run!(opts)
|
12
12
|
input_files.each do |file|
|
13
|
+
begin
|
13
14
|
file = File.join(@config[:input][:directory], file)
|
14
15
|
Maprename::Renamer.new(file, @config).rename!(opts[:dry])
|
16
|
+
rescue => e
|
17
|
+
STDERR.puts("Error occurs when processing file: #{file}, skipped")
|
18
|
+
if $debug
|
19
|
+
STDERR.puts "#{e.inspect}, #{e.backtrace}"
|
20
|
+
end
|
21
|
+
end
|
15
22
|
end
|
16
23
|
end
|
17
24
|
|
data/lib/maprename/version.rb
CHANGED
data/maprename.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maprename
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liu Xiang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry-byebug
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.9.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.9.0
|
27
41
|
description: Simple file rename utils
|
28
42
|
email:
|
29
43
|
- liuxiang@ktjr.com
|