Skip to content

Commit c573d69

Browse files
committed
Revert "Set the Gem Ruby version to 2.6 or higher"
I changed my mind, it better work on 2.4! This reverts commit 2649959.
1 parent 2649959 commit c573d69

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/youplot/backends/processing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def count_values(arr, tally: true, reverse: false)
2121
# compare values
2222
r = b[1] <=> a[1]
2323
# If the values are the same, compare by name
24-
r = a[0] <=> b[0] if r.zero?
24+
r = a[0] <=> b[0] if r == 0
2525
r
2626
end
2727

lib/youplot/parser.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def sub_parser_add_xscale
164164
end
165165

166166
def sub_parser_add_canvas
167-
canvas_types = UnicodePlot::Canvas::CANVAS_CLASS_MAP.keys.join(', ')
168-
sub_parser.on_head('--canvas STR', String, 'type of canvas', "(#{canvas_types})") do |v|
167+
canvas_types = UnicodePlot::Canvas::CANVAS_CLASS_MAP.keys.join(", ")
168+
sub_parser.on_head('--canvas STR', String, "type of canvas", "(#{canvas_types})") do |v|
169169
params.canvas = v.to_sym
170170
end
171171
end

test/youplot/iris_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def fixture(fname)
109109
assert_equal fixture('iris-boxplot.txt'), @stderr_file.read
110110
end
111111

112-
# Yeah, lineplot/lineplots don't make sense too.
112+
# Yeah, lineplot/lineplots don't make sense too.
113113
# Just checking the behavior.
114114

115115
test :c do

youplot.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212
spec.description = 'A command line tool for Unicode Plotting'
1313
spec.homepage = 'https://github.com/kojix2/youplot'
1414
spec.license = 'MIT'
15-
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
15+
spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
1616

1717
spec.files = Dir['*.{md,txt}', '{lib,exe}/**/*']
1818
spec.bindir = 'exe'

0 commit comments

Comments
 (0)