mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Rubocop auto correct
This commit is contained in:
parent
4d62acea75
commit
a33b0e7628
2
Gemfile
2
Gemfile
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
source 'https://rubygems.org'
|
||||
|
||||
# Specify your gem's dependencies in uplot.gemspec
|
||||
|
2
Rakefile
2
Rakefile
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'bundler/gem_tasks'
|
||||
require 'rake/testtask'
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'uplot'
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'unicode_plot'
|
||||
require 'uplot/version'
|
||||
require 'uplot/preprocessing'
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative 'preprocessing'
|
||||
require_relative 'command/parser'
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Uplot
|
||||
class Command
|
||||
Params = Struct.new(
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'unicode_plot'
|
||||
|
||||
module Uplot
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'csv'
|
||||
|
||||
module Uplot
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Uplot
|
||||
VERSION = '0.2.3'.freeze
|
||||
VERSION = '0.2.3'
|
||||
end
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'simplecov'
|
||||
SimpleCov.start
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../test_helper.rb'
|
||||
|
||||
class UplotCommandTest < Test::Unit::TestCase
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../test_helper.rb'
|
||||
|
||||
class UplotPlotTest < Test::Unit::TestCase
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../test_helper.rb'
|
||||
|
||||
class UplotPreprocessingTest < Test::Unit::TestCase
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class UplotTest < Test::Unit::TestCase
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative 'lib/uplot/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
|
Loading…
Reference in New Issue
Block a user