Skip to content

Commit d49a11b

Browse files
committed
Merge branch 'v0.4.1'
2 parents c573d69 + f823377 commit d49a11b

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
os: ['ubuntu', 'macos']
10-
ruby: [ '2.6', '2.7', '3.0' ]
10+
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0' ]
1111
steps:
1212
- uses: actions/checkout@v2
1313
- uses: ruby/setup-ruby@v1

lib/youplot/dsv.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def parse(input, delimiter, headers, transpose)
1414

1515
# Remove blank lines
1616
arr.delete_if do |i|
17-
i == [] or i.all? nil
17+
i == [] or i.all?(&:nil?)
1818
end
1919

2020
# get header

lib/youplot/options.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module YouPlot
1313
:encoding,
1414
:reverse, # count
1515
:color_names, # color
16-
:debug,
17-
keyword_init: true
16+
:debug
1817
)
1918
end

lib/youplot/parser.rb

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,16 @@ def initialize
1515
@command = nil
1616

1717
@options = Options.new(
18-
delimiter: "\t",
19-
transpose: false,
20-
headers: nil,
21-
pass: false,
22-
output: $stderr,
23-
fmt: 'xyy',
24-
progressive: false,
25-
encoding: nil,
26-
reverse: false,
27-
color_names: false,
28-
debug: false
18+
"\t", # elimiter:
19+
false, # transpose:
20+
nil, # headers:
21+
false, # pass:
22+
$stderr, # output:
23+
'xyy', # fmt:
24+
false, # progressive:
25+
nil, # encoding:
26+
false, # color_names:
27+
false # debug:
2928
)
3029

3130
@params = Parameters.new

0 commit comments

Comments
 (0)