serienrenamer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ $:.unshift(File.dirname(__FILE__)) unless
2
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
+
4
+
5
+ module Serienrenamer
6
+ VERSION = '0.0.1'
7
+
8
+ require 'serienrenamer/episode.rb'
9
+
10
+ class Pluginbase
11
+
12
+ class << self; attr_reader :registered_plugins end
13
+ @registered_plugins = []
14
+
15
+ # if you inherit from this class, the child
16
+ # gets added to the "registered plugins" array
17
+ def self.inherited(child)
18
+ Pluginbase.registered_plugins << child
19
+ end
20
+
21
+ def self.plugin_name; "PluginBase" end
22
+
23
+ def self.to_s
24
+ self.plugin_name
25
+ end
26
+ end
27
+
28
+ end
data/script/console ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ # File: script/console
3
+ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
+
5
+ libs = " -r irb/completion"
6
+ # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
+ # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
+ libs << " -r #{File.dirname(__FILE__) + '/../lib/serienrenamer.rb'}"
9
+ puts "Loading serienrenamer gem"
10
+ exec "#{irb} #{libs} --simple-prompt"
data/script/destroy ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/destroy'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Destroy.new.run(ARGV)
data/script/generate ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/generate'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Generate.new.run(ARGV)
@@ -0,0 +1,52 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "serienrenamer"
5
+ s.version = "0.0.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Philipp Boehm"]
9
+ s.date = "2012-03-03"
10
+ s.description = "Ruby Script that brings your series into an appropriate format\nlike \"S01E01 - Episodename.avi\""
11
+ s.email = ["philipp@i77i.de"]
12
+ s.executables = ["serienrenamer"]
13
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt"]
14
+ s.files = ["History.txt", "Manifest.txt", "README.rdoc", "Rakefile", "bin/serienrenamer", "lib/plugin.rb", "lib/plugin/serienjunkies_de.rb", "lib/plugin/serienjunkies_feed.rb", "lib/plugin/textfile.rb", "lib/plugin/wikipedia.rb", "lib/serienrenamer.rb", "lib/serienrenamer/episode.rb", "script/console", "script/destroy", "script/generate", "serienrenamer.gemspec", "test/serienjunkies_feed_sample.xml", "test/test_episode.rb", "test/test_helper.rb", "test/test_plugin_serienjunkies_de.rb", "test/test_plugin_serienjunkies_feed.rb", "test/test_plugin_textfile.rb", "test/test_plugin_wikipedia.rb", ".gemtest"]
15
+ s.homepage = "http://github.com/pboehm/serienrenamer"
16
+ s.rdoc_options = ["--main", "README.rdoc"]
17
+ s.require_paths = ["lib"]
18
+ s.rubyforge_project = "serienrenamer"
19
+ s.rubygems_version = "1.8.15"
20
+ s.summary = "Ruby Script that brings your series into an appropriate format like \"S01E01 - Episodename.avi\""
21
+ s.test_files = ["test/test_plugin_serienjunkies_de.rb", "test/test_plugin_wikipedia.rb", "test/test_plugin_serienjunkies_feed.rb", "test/test_plugin_textfile.rb", "test/test_helper.rb", "test/test_episode.rb"]
22
+
23
+ if s.respond_to? :specification_version then
24
+ s.specification_version = 3
25
+
26
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
+ s.add_runtime_dependency(%q<wlapi>, [">= 0.8.4"])
28
+ s.add_runtime_dependency(%q<mediawiki-gateway>, [">= 0.4.4"])
29
+ s.add_runtime_dependency(%q<mechanize>, [">= 2.3"])
30
+ s.add_runtime_dependency(%q<highline>, [">= 1.6.11"])
31
+ s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
32
+ s.add_development_dependency(%q<newgem>, [">= 1.5.3"])
33
+ s.add_development_dependency(%q<hoe>, ["~> 2.13"])
34
+ else
35
+ s.add_dependency(%q<wlapi>, [">= 0.8.4"])
36
+ s.add_dependency(%q<mediawiki-gateway>, [">= 0.4.4"])
37
+ s.add_dependency(%q<mechanize>, [">= 2.3"])
38
+ s.add_dependency(%q<highline>, [">= 1.6.11"])
39
+ s.add_dependency(%q<rdoc>, ["~> 3.10"])
40
+ s.add_dependency(%q<newgem>, [">= 1.5.3"])
41
+ s.add_dependency(%q<hoe>, ["~> 2.13"])
42
+ end
43
+ else
44
+ s.add_dependency(%q<wlapi>, [">= 0.8.4"])
45
+ s.add_dependency(%q<mediawiki-gateway>, [">= 0.4.4"])
46
+ s.add_dependency(%q<mechanize>, [">= 2.3"])
47
+ s.add_dependency(%q<highline>, [">= 1.6.11"])
48
+ s.add_dependency(%q<rdoc>, ["~> 3.10"])
49
+ s.add_dependency(%q<newgem>, [">= 1.5.3"])
50
+ s.add_dependency(%q<hoe>, ["~> 2.13"])
51
+ end
52
+ end