Skip to content

Commit

Permalink
fixes ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
nofxx committed Oct 4, 2010
1 parent e16a9ef commit f14b512
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Expand Up @@ -17,3 +17,5 @@ begin
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

task :default => :build
9 changes: 5 additions & 4 deletions bin/subtitle_it 100644 → 100755
Expand Up @@ -33,18 +33,19 @@ BANNER
opts.separator " Options are:"

opts.on("-l", "--language [LANGUAGE]", String,
"Language to search subtitles for, try it empty to see the supported ones.") do |OPTIONS[:lang]|
if OPTIONS[:lang].nil?
"Language to search subtitles for, try it empty to see the supported ones.") do |ol|
if ol.nil?
puts Subdown.subtitle_languages
exit
end
OPTIONS[:lang] = ol
end

opts.on("-c", "--convert=FORMAT", String,
"Format to convert to") { |OPTIONS[:format]| }
"Format to convert to") { |of| OPTIONS[:format] = of }

opts.on("-d", "--delay=DELAY", Float,
"Delay to add/remove") { |OPTIONS[:delay]| }
"Delay to add/remove") { |od| OPTIONS[:delay] = od }

opts.on("-f", "--force", "Force overwrite") { OPTIONS[:force] = true }

Expand Down
6 changes: 0 additions & 6 deletions spec/spec.opts

This file was deleted.

0 comments on commit f14b512

Please sign in to comment.