lib/fontist/downloader.rb in fontist-0.3.0 vs lib/fontist/downloader.rb in fontist-0.4.0

- old
+ new

@@ -5,10 +5,10 @@ class Downloader def initialize(file, file_size: nil, sha: nil, progress: nil) @sha = sha @file = file @progress = progress - @file_size = file_size || default_file_size + @file_size = (file_size || default_file_size).to_i end def download file = download_file verify_file_checksum(file) || raise_invalid_file