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' source 'https://rubygems.org'
# Specify your gem's dependencies in uplot.gemspec # Specify your gem's dependencies in uplot.gemspec

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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