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'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
# Specify your gem's dependencies in uplot.gemspec
|
# 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 'bundler/gem_tasks'
|
||||||
require 'rake/testtask'
|
require 'rake/testtask'
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'uplot'
|
require 'uplot'
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require_relative 'preprocessing'
|
require_relative 'preprocessing'
|
||||||
require_relative 'command/parser'
|
require_relative 'command/parser'
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Uplot
|
module Uplot
|
||||||
class Command
|
class Command
|
||||||
Params = Struct.new(
|
Params = Struct.new(
|
||||||
|
@ -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
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'unicode_plot'
|
require 'unicode_plot'
|
||||||
|
|
||||||
module Uplot
|
module Uplot
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'csv'
|
require 'csv'
|
||||||
|
|
||||||
module Uplot
|
module Uplot
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Uplot
|
module Uplot
|
||||||
VERSION = '0.2.3'.freeze
|
VERSION = '0.2.3'
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
SimpleCov.start
|
SimpleCov.start
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class UplotTest < Test::Unit::TestCase
|
class UplotTest < Test::Unit::TestCase
|
||||||
|
@ -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|
|
||||||
|
Loading…
Reference in New Issue
Block a user