From eeb503860232f85213557c499ceb8a75fbb8e15d Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Tue, 28 Jul 2020 23:14:47 +0900 Subject: [PATCH] Update gemspec --- .gitignore | 1 + Gemfile | 6 +++--- Rakefile | 12 ++++++------ bin/console | 6 +++--- exe/uplot | 2 +- lib/uplot.rb | 2 +- lib/uplot/version.rb | 2 +- test/test_helper.rb | 6 +++--- test/uplot_test.rb | 2 +- uplot.gemspec | 35 ++++++++++++++++------------------- 10 files changed, 36 insertions(+), 38 deletions(-) mode change 100644 => 100755 exe/uplot diff --git a/.gitignore b/.gitignore index 9106b2a..5a596cb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /pkg/ /spec/reports/ /tmp/ +*.lock diff --git a/Gemfile b/Gemfile index 249d41f..2a8ed36 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ -source "https://rubygems.org" +source 'https://rubygems.org' # Specify your gem's dependencies in uplot.gemspec gemspec -gem "rake", "~> 12.0" -gem "minitest", "~> 5.0" +gem 'minitest', '~> 5.0' +gem 'rake', '~> 12.0' diff --git a/Rakefile b/Rakefile index d433a1e..4b2b782 100644 --- a/Rakefile +++ b/Rakefile @@ -1,10 +1,10 @@ -require "bundler/gem_tasks" -require "rake/testtask" +require 'bundler/gem_tasks' +require 'rake/testtask' Rake::TestTask.new(:test) do |t| - t.libs << "test" - t.libs << "lib" - t.test_files = FileList["test/**/*_test.rb"] + t.libs << 'test' + t.libs << 'lib' + t.test_files = FileList['test/**/*_test.rb'] end -task :default => :test +task default: :test diff --git a/bin/console b/bin/console index 4fa53cb..3caf3f2 100755 --- a/bin/console +++ b/bin/console @@ -1,7 +1,7 @@ #!/usr/bin/env ruby -require "bundler/setup" -require "uplot" +require 'bundler/setup' +require 'uplot' # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. @@ -10,5 +10,5 @@ require "uplot" # require "pry" # Pry.start -require "irb" +require 'irb' IRB.start(__FILE__) diff --git a/exe/uplot b/exe/uplot old mode 100644 new mode 100755 index 9d6dc3b..d66019d --- a/exe/uplot +++ b/exe/uplot @@ -1,3 +1,3 @@ #!/usr/bin/env ruby -require "uplot" +require 'uplot' diff --git a/lib/uplot.rb b/lib/uplot.rb index 29e9be0..ecc71ee 100644 --- a/lib/uplot.rb +++ b/lib/uplot.rb @@ -1,4 +1,4 @@ -require "uplot/version" +require 'uplot/version' module Uplot class Error < StandardError; end diff --git a/lib/uplot/version.rb b/lib/uplot/version.rb index 1468b2b..b8f9e1f 100644 --- a/lib/uplot/version.rb +++ b/lib/uplot/version.rb @@ -1,3 +1,3 @@ module Uplot - VERSION = "0.1.0" + VERSION = '0.1.0'.freeze end diff --git a/test/test_helper.rb b/test/test_helper.rb index 1f8d619..e2b959d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,4 +1,4 @@ -$LOAD_PATH.unshift File.expand_path("../lib", __dir__) -require "uplot" +$LOAD_PATH.unshift File.expand_path('../lib', __dir__) +require 'uplot' -require "minitest/autorun" +require 'minitest/autorun' diff --git a/test/uplot_test.rb b/test/uplot_test.rb index 90a8688..3790752 100644 --- a/test/uplot_test.rb +++ b/test/uplot_test.rb @@ -1,4 +1,4 @@ -require "test_helper" +require 'test_helper' class UplotTest < Minitest::Test def test_that_it_has_a_version_number diff --git a/uplot.gemspec b/uplot.gemspec index f060820..09a6bde 100644 --- a/uplot.gemspec +++ b/uplot.gemspec @@ -1,29 +1,26 @@ require_relative 'lib/uplot/version' Gem::Specification.new do |spec| - spec.name = "uplot" + spec.name = 'uplot' spec.version = Uplot::VERSION - spec.authors = ["kojix2"] - spec.email = ["2xijok@gmail.com"] + spec.authors = ['kojix2'] + spec.email = ['2xijok@gmail.com'] - spec.summary = %q{TODO: Write a short summary, because RubyGems requires one.} - spec.description = %q{TODO: Write a longer description or delete this line.} - spec.homepage = "TODO: Put your gem's website or public repo URL here." - spec.license = "MIT" - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") + spec.summary = 'Create Ascii charts on your terminal' + spec.description = 'Create Ascii charts on your terminal with pipeline' + spec.homepage = 'https://github.com/kojix2/uplot' + spec.license = 'MIT' + spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0') - spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'" - - spec.metadata["homepage_uri"] = spec.homepage - spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here." - spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here." - - # Specify which files should be added to the gem when it is released. - # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do + spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end - spec.bindir = "exe" + spec.bindir = 'exe' spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ["lib"] + spec.require_paths = ['lib'] + + spec.add_runtime_dependency 'unicode_plot' + spec.add_development_dependency 'bundler' + spec.add_development_dependency 'rake' + spec.add_development_dependency 'test-unit' end