pirate-autosub 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('autosub', '0.2.2') do |p|
6
+ Echoe.new('autosub', '0.2.3') do |p|
7
7
  p.description = "Ruby tool to automatically download subtitles (srt) inside your TV Shows folder"
8
8
  p.url = "http://github.com/pirate/autosub"
9
9
  p.author = "Pirate"
Binary file
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{autosub}
5
- s.version = "0.2.2"
5
+ s.version = "0.2.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Pirate"]
9
- s.date = %q{2008-12-28}
9
+ s.date = %q{2008-12-29}
10
10
  s.default_executable = %q{autosub}
11
11
  s.description = %q{Ruby tool to automatically download subtitles (srt) inside your TV Shows folder}
12
12
  s.email = %q{pirate.2061@gmail.com}
13
13
  s.executables = ["autosub"]
14
14
  s.extra_rdoc_files = ["bin/autosub", "lib/episode.rb", "lib/inspector.rb", "lib/sites/seriessub.rb", "lib/sites/tvsubtitle.rb", "README.markdown"]
15
- s.files = ["asset/srt.png", "autosub.gemspec", "bin/autosub", "lib/episode.rb", "lib/inspector.rb", "lib/sites/seriessub.rb", "lib/sites/tvsubtitle.rb", "Manifest", "Rakefile", "README.markdown"]
15
+ s.files = ["asset/failure.png", "asset/srt.png", "autosub.gemspec", "bin/autosub", "lib/episode.rb", "lib/inspector.rb", "lib/sites/seriessub.rb", "lib/sites/tvsubtitle.rb", "Rakefile", "README.markdown", "Manifest"]
16
16
  s.has_rdoc = true
17
17
  s.homepage = %q{http://github.com/pirate/autosub}
18
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Autosub", "--main", "README.markdown"]
@@ -6,7 +6,7 @@ class Episode
6
6
  @path = path
7
7
  @ext = File.extname(@path)
8
8
  @name = File.basename(path, @ext)
9
- @tv_show = tv_show
9
+ @tv_show = tv_show.gsub(/\s\([0-9]{4}\)/,'').chomp(' ')
10
10
  @srt = []
11
11
 
12
12
  search_existing_srt
@@ -61,7 +61,7 @@ private
61
61
  end
62
62
 
63
63
  def clean_dir(dir)
64
- dir.select { |e| !["..", ".", ".DS_Store", ".com.apple.timemachine.supported", "Icon?"].include?(e) }
64
+ dir.select { |e| !["..", ".", ".DS_Store", ".com.apple.timemachine.supported", "Icon\r"].include?(e) }
65
65
  end
66
66
 
67
67
  def lang_name(lang)
@@ -69,14 +69,13 @@ private
69
69
  end
70
70
 
71
71
  def tv_show(episode)
72
- name = episode.tv_show.gsub(/\s\([0-9]{4}\)/,'')
73
- case name
72
+ case episode.tv_show
74
73
  when "Terminator The Sarah Connor Chronicles"
75
74
  "The Sarah Connor Chronicles"
76
75
  when "The IT Crowd"
77
76
  "IT Crowd"
78
77
  else
79
- name
78
+ episode.tv_show
80
79
  end.downcase.gsub(/\s/, '_')
81
80
  end
82
81
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pirate-autosub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pirate
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-28 00:00:00 -08:00
12
+ date: 2008-12-29 00:00:00 -08:00
13
13
  default_executable: autosub
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -71,6 +71,7 @@ extra_rdoc_files:
71
71
  - lib/sites/tvsubtitle.rb
72
72
  - README.markdown
73
73
  files:
74
+ - asset/failure.png
74
75
  - asset/srt.png
75
76
  - autosub.gemspec
76
77
  - bin/autosub
@@ -78,9 +79,9 @@ files:
78
79
  - lib/inspector.rb
79
80
  - lib/sites/seriessub.rb
80
81
  - lib/sites/tvsubtitle.rb
81
- - Manifest
82
82
  - Rakefile
83
83
  - README.markdown
84
+ - Manifest
84
85
  has_rdoc: true
85
86
  homepage: http://github.com/pirate/autosub
86
87
  post_install_message: