mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
Revert "Set the Gem Ruby version to 2.6 or higher"
I changed my mind, it better work on 2.4!
This reverts commit 2649959745
.
This commit is contained in:
parent
2649959745
commit
c573d690bc
@ -21,7 +21,7 @@ module YouPlot
|
|||||||
# compare values
|
# compare values
|
||||||
r = b[1] <=> a[1]
|
r = b[1] <=> a[1]
|
||||||
# If the values are the same, compare by name
|
# If the values are the same, compare by name
|
||||||
r = a[0] <=> b[0] if r.zero?
|
r = a[0] <=> b[0] if r == 0
|
||||||
r
|
r
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -164,8 +164,8 @@ module YouPlot
|
|||||||
end
|
end
|
||||||
|
|
||||||
def sub_parser_add_canvas
|
def sub_parser_add_canvas
|
||||||
canvas_types = UnicodePlot::Canvas::CANVAS_CLASS_MAP.keys.join(', ')
|
canvas_types = UnicodePlot::Canvas::CANVAS_CLASS_MAP.keys.join(", ")
|
||||||
sub_parser.on_head('--canvas STR', String, 'type of canvas', "(#{canvas_types})") do |v|
|
sub_parser.on_head('--canvas STR', String, "type of canvas", "(#{canvas_types})") do |v|
|
||||||
params.canvas = v.to_sym
|
params.canvas = v.to_sym
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -109,7 +109,7 @@ class YouPlotIRISTest < Test::Unit::TestCase
|
|||||||
assert_equal fixture('iris-boxplot.txt'), @stderr_file.read
|
assert_equal fixture('iris-boxplot.txt'), @stderr_file.read
|
||||||
end
|
end
|
||||||
|
|
||||||
# Yeah, lineplot/lineplots don't make sense too.
|
# Yeah, lineplot/lineplots don't make sense too.
|
||||||
# Just checking the behavior.
|
# Just checking the behavior.
|
||||||
|
|
||||||
test :c do
|
test :c do
|
||||||
|
@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|||||||
spec.description = 'A command line tool for Unicode Plotting'
|
spec.description = 'A command line tool for Unicode Plotting'
|
||||||
spec.homepage = 'https://github.com/kojix2/youplot'
|
spec.homepage = 'https://github.com/kojix2/youplot'
|
||||||
spec.license = 'MIT'
|
spec.license = 'MIT'
|
||||||
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
|
||||||
|
|
||||||
spec.files = Dir['*.{md,txt}', '{lib,exe}/**/*']
|
spec.files = Dir['*.{md,txt}', '{lib,exe}/**/*']
|
||||||
spec.bindir = 'exe'
|
spec.bindir = 'exe'
|
||||||
|
Loading…
Reference in New Issue
Block a user