serienrenamer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/serienrenamer +16 -5
- data/lib/serienrenamer/episode.rb +0 -3
- data/lib/serienrenamer/version.rb +1 -1
- data/serienrenamer.gemspec +1 -2
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a23985678b32d9cbc4feb53f86a145c30bb5bc7
|
4
|
+
data.tar.gz: 785c3e7571b1fb36e9cea63ca116d4342bcd95fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b968148ee962d662e6b1d43a8165237299e769caf8181bd9ca22fabecf477ab2b9357e74d714584954091056ac2c966b04e2012bdfa2b05735d2726205f3de6
|
7
|
+
data.tar.gz: 3a52765cb39f2f345715a6711c0599ffbb35f41c50b6544140b9b24973de1770a3792c3ca8b67cdfc427c2c427d970b99b120ab5828e2c6fbbd9c1617520c047
|
data/bin/serienrenamer
CHANGED
@@ -26,6 +26,7 @@ STANDARD_CONFIG = {
|
|
26
26
|
:byte_count_for_md5 => 2048,
|
27
27
|
:illegal_words => %w{ ML },
|
28
28
|
:disabled_plugins => %w{ NOT_REALLY_A_PLUGIN },
|
29
|
+
:force_rename => false,
|
29
30
|
}
|
30
31
|
|
31
32
|
config = STANDARD_CONFIG.merge_with_serialized(CONFIG_FILE)
|
@@ -65,6 +66,11 @@ opts.on( "-a", "--[no-]all",
|
|
65
66
|
options[:process_all_files] = opt
|
66
67
|
end
|
67
68
|
|
69
|
+
opts.on( "-f", "--force",
|
70
|
+
"Force rename") do |opt|
|
71
|
+
options[:force_rename] = opt
|
72
|
+
end
|
73
|
+
|
68
74
|
opts.on( "--showconfig", "Prints the current configuration.") do |opt|
|
69
75
|
puts "loaded configuration options:"
|
70
76
|
puts config.to_yaml
|
@@ -173,14 +179,19 @@ begin
|
|
173
179
|
|
174
180
|
puts ">>> #{epi.to_s}"
|
175
181
|
|
176
|
-
|
177
|
-
char = get_character
|
182
|
+
if not options[:force_rename]
|
178
183
|
|
179
|
-
|
180
|
-
|
181
|
-
|
184
|
+
print "Filename okay ([jy]/n): "
|
185
|
+
char = get_character
|
186
|
+
|
187
|
+
unless char.chr.match(/[jy\r\n]/i)
|
188
|
+
puts "\nwill be skipped ...\n\n"
|
189
|
+
next
|
190
|
+
end
|
191
|
+
|
182
192
|
end
|
183
193
|
|
194
|
+
|
184
195
|
info_storage.store(epi) if config[:store_episode_info]
|
185
196
|
|
186
197
|
puts "\n\n"
|
data/serienrenamer.gemspec
CHANGED
@@ -16,8 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.version = Serienrenamer::VERSION
|
17
17
|
|
18
18
|
gem.required_ruby_version = '>= 1.9.0'
|
19
|
-
gem.add_runtime_dependency(%q<wlapi>, [">= 0.8.
|
20
|
-
gem.add_runtime_dependency(%q<savon>, ["~> 0.8.4"])
|
19
|
+
gem.add_runtime_dependency(%q<wlapi>, [">= 0.8.5"])
|
21
20
|
gem.add_runtime_dependency(%q<mediawiki-gateway>, [">= 0.4.4"])
|
22
21
|
gem.add_runtime_dependency(%q<mechanize>, [">= 2.3"])
|
23
22
|
gem.add_runtime_dependency(%q<highline>, [">= 1.6.11"])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serienrenamer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philipp Böhm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: wlapi
|
@@ -16,28 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.8.
|
19
|
+
version: 0.8.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.8.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: savon
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.8.4
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.8.4
|
26
|
+
version: 0.8.5
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: mediawiki-gateway
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|