diff --git a/lib/youplot/dsv.rb b/lib/youplot/dsv.rb index d59de1f..55841ca 100644 --- a/lib/youplot/dsv.rb +++ b/lib/youplot/dsv.rb @@ -67,12 +67,10 @@ module YouPlot else Array.new(arr[0].size, []) end + elsif transpose + arr else - if transpose - arr - else - transpose2(arr) - end + transpose2(arr) end end end diff --git a/youplot.gemspec b/youplot.gemspec index 97f04e9..5ad789a 100644 --- a/youplot.gemspec +++ b/youplot.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |spec| spec.files = Dir['*.{md,txt}', '{lib,exe}/**/*'] spec.bindir = 'exe' - spec.executables = ['uplot', 'youplot'] + spec.executables = %w[uplot youplot] spec.require_paths = ['lib'] spec.add_runtime_dependency 'unicode_plot'