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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5868c58d8665caa167ed5a824b66540729958146
4
- data.tar.gz: ab004cc07646c49f237ad98c71084a7184fca572
3
+ metadata.gz: 7a23985678b32d9cbc4feb53f86a145c30bb5bc7
4
+ data.tar.gz: 785c3e7571b1fb36e9cea63ca116d4342bcd95fb
5
5
  SHA512:
6
- metadata.gz: 09a725c2842db8f435b051c9deb9d187df90a98f4dce59ddc2cad4ec1ef3d6214120de4de2fb0a5da215be9955d8236717b52444b05015500c224bcaed7d00e4
7
- data.tar.gz: c6745367be6ce945fa2108a914aed5146b3cebbfbd92e21aa020aee4c554136015e866095236243a546ec5ec0d3403825b27ecbcf257ae86e0f183e5e2be5a7f
6
+ metadata.gz: 3b968148ee962d662e6b1d43a8165237299e769caf8181bd9ca22fabecf477ab2b9357e74d714584954091056ac2c966b04e2012bdfa2b05735d2726205f3de6
7
+ data.tar.gz: 3a52765cb39f2f345715a6711c0599ffbb35f41c50b6544140b9b24973de1770a3792c3ca8b67cdfc427c2c427d970b99b120ab5828e2c6fbbd9c1617520c047
@@ -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
- print "Filename okay ([jy]/n): "
177
- char = get_character
182
+ if not options[:force_rename]
178
183
 
179
- unless char.chr.match(/[jy\r\n]/i)
180
- puts "\nwill be skipped ...\n\n"
181
- next
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"
@@ -5,9 +5,6 @@ require 'wlapi'
5
5
  require 'digest/md5'
6
6
 
7
7
  # suppress debug messages from wlapi which uses Savon
8
- Savon.configure do |config|
9
- config.log = false
10
- end
11
8
  HTTPI.log = false
12
9
 
13
10
 
@@ -1,3 +1,3 @@
1
1
  module Serienrenamer
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -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.4"])
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.0
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-05-08 00:00:00.000000000 Z
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.4
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.4
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