Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: olly/AtomicTV
base: 8939b6c4cb
...
head fork: olly/AtomicTV
compare: 9767947a86
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
4 AtomicTV.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{AtomicTV}
- s.version = "1.0.0"
+ s.version = "1.0.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Olly Legg"]
- s.date = %q{2011-04-25}
+ s.date = %q{2011-06-01}
s.description = %q{A command line tool to tag MP4 TV shows with metadata pulled from TheTVDB.com. It uses AtomicParsley to process the file.}
s.email = %q{olly@51degrees.net}
s.executables = ["AtomicTV"]
View
2  VERSION
@@ -1 +1 @@
-1.0.0
+1.0.1
View
3  lib/AtomicTV.rb
@@ -1,6 +1,7 @@
+require 'fileutils'
require 'open-uri'
require 'pathname'
-require 'tempfile'
+require 'tmpdir'
require 'plist'
require 'tvdb_party'
View
6 lib/AtomicTV/episode_metadata.rb
@@ -80,9 +80,11 @@ def writers
attr_reader :posters
def with_loaded_posters
+ temporary_directory = Dir.mktmpdir
+
@posters = series.season_posters(episode.season_number, 'en').map do |poster|
url = ArtworkBaseURL + poster.path
- file = Tempfile.new('AtomicTV')
+ file = File.new(File.join(temporary_directory, File.basename(url)), 'w')
file.write(open(url).read)
file.close
file
@@ -91,7 +93,7 @@ def with_loaded_posters
yield
ensure
- @posters.each {|file| file.unlink}
+ FileUtils.rm_rf(temporary_directory)
@posters = nil
end

No commit comments for this range

Something went wrong with that request. Please try again.