pirate-autosub 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
 - data/asset/failure.png +0 -0
 - data/autosub.gemspec +3 -3
 - data/lib/episode.rb +1 -1
 - data/lib/inspector.rb +1 -1
 - data/lib/sites/seriessub.rb +2 -3
 - metadata +4 -3
 
    
        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. 
     | 
| 
      
 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"
         
     | 
    
        data/asset/failure.png
    ADDED
    
    | 
         Binary file 
     | 
    
        data/autosub.gemspec
    CHANGED
    
    | 
         @@ -2,17 +2,17 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            Gem::Specification.new do |s|
         
     | 
| 
       4 
4 
     | 
    
         
             
              s.name = %q{autosub}
         
     | 
| 
       5 
     | 
    
         
            -
              s.version = "0.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- 
     | 
| 
      
 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", " 
     | 
| 
      
 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"]
         
     | 
    
        data/lib/episode.rb
    CHANGED
    
    
    
        data/lib/inspector.rb
    CHANGED
    
    | 
         @@ -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 
     | 
| 
      
 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)
         
     | 
    
        data/lib/sites/seriessub.rb
    CHANGED
    
    | 
         @@ -69,14 +69,13 @@ private 
     | 
|
| 
       69 
69 
     | 
    
         
             
              end
         
     | 
| 
       70 
70 
     | 
    
         | 
| 
       71 
71 
     | 
    
         
             
              def tv_show(episode)
         
     | 
| 
       72 
     | 
    
         
            -
                 
     | 
| 
       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 
     | 
    
         
            -
                   
     | 
| 
      
 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. 
     | 
| 
      
 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- 
     | 
| 
      
 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: 
         
     |