mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Rubocop auto correct
This commit is contained in:
parent
d49a11bb7a
commit
30b3b6e7d3
@ -21,7 +21,7 @@ module YouPlot
|
||||
# compare values
|
||||
r = b[1] <=> a[1]
|
||||
# If the values are the same, compare by name
|
||||
r = a[0] <=> b[0] if r == 0
|
||||
r = a[0] <=> b[0] if r.zero?
|
||||
r
|
||||
end
|
||||
|
||||
|
@ -163,8 +163,8 @@ module YouPlot
|
||||
end
|
||||
|
||||
def sub_parser_add_canvas
|
||||
canvas_types = UnicodePlot::Canvas::CANVAS_CLASS_MAP.keys.join(", ")
|
||||
sub_parser.on_head('--canvas STR', String, "type of canvas", "(#{canvas_types})") do |v|
|
||||
canvas_types = UnicodePlot::Canvas::CANVAS_CLASS_MAP.keys.join(', ')
|
||||
sub_parser.on_head('--canvas STR', String, 'type of canvas', "(#{canvas_types})") do |v|
|
||||
params.canvas = v.to_sym
|
||||
end
|
||||
end
|
||||
|
@ -109,7 +109,7 @@ class YouPlotIRISTest < Test::Unit::TestCase
|
||||
assert_equal fixture('iris-boxplot.txt'), @stderr_file.read
|
||||
end
|
||||
|
||||
# Yeah, lineplot/lineplots don't make sense too.
|
||||
# Yeah, lineplot/lineplots don't make sense too.
|
||||
# Just checking the behavior.
|
||||
|
||||
test :c do
|
||||
|
Loading…
Reference in New Issue
Block a user