Rubocop auto correct

This commit is contained in:
kojix2 2020-09-19 00:08:09 +09:00
parent 4d62acea75
commit a33b0e7628
16 changed files with 33 additions and 3 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
source 'https://rubygems.org'
# Specify your gem's dependencies in uplot.gemspec

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rake/testtask'

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'uplot'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'unicode_plot'
require 'uplot/version'
require 'uplot/preprocessing'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative 'preprocessing'
require_relative 'command/parser'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Uplot
class Command
Params = Struct.new(

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'optparse'
require_relative 'params'
@ -211,7 +213,7 @@ module Uplot
@command = argv.shift&.to_sym
unless sub_parsers.has_key?(command)
unless sub_parsers.key?(command)
if command.nil?
warn main_parser.help
else
@ -228,7 +230,6 @@ module Uplot
exit 1
end
end
end
end
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'unicode_plot'
module Uplot

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'csv'
module Uplot

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Uplot
VERSION = '0.2.3'.freeze
VERSION = '0.2.3'
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'simplecov'
SimpleCov.start

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative '../test_helper.rb'
class UplotCommandTest < Test::Unit::TestCase

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative '../test_helper.rb'
class UplotPlotTest < Test::Unit::TestCase

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative '../test_helper.rb'
class UplotPreprocessingTest < Test::Unit::TestCase

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class UplotTest < Test::Unit::TestCase

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative 'lib/uplot/version'
Gem::Specification.new do |spec|