Sha256: c43e5756101f3fa015b19a4285e20ae63d0c59ad1c313db8c1811cb56ae03e66

Contents?: true

Size: 1.14 KB

Versions: 9

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true
require 'yard'
require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
  t.options = '-v'
  t.libs << 'test'
  t.libs << 'lib'
  t.test_files = FileList['test/**/*_test.rb']
end

desc 'make documents by yard'
task :yard do
  # api_output_dir = 'doc'
  YARD::Rake::YardocTask.new do |t|
    # t.options << '-o#{api_output_dir}' # output dir = doc_api
    # t.files=['**/*.md']
    t.options += ['--title', 'my_help']
    # t.options=['--exclude','lib.rb','--files','**/*.org']
    # see [[https://github.com/lsegal/yard/issues/66]] for the other options
  end
end

require 'rubocop/rake_task'

RuboCop::RakeTask.new

#task default: %i[test rubocop]
task :default do
  system "rake -T"
end

require "colorize"
require 'command_line/global'

desc 'git auto'
task :git_auto do
  print "Input comments: "
  comment = STDIN.gets.chomp 
  comment = comment == "" ? "auto pull and push" : comment.gsub("\'", "\\'")
  ["git add -A",
   "git commit -m '#{comment}'",
   "git pull origin main",
   "git push origin main"].each do |comm|
    puts comm.cyan
    res = command_line comm
    puts res.stdout.green
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
my_help-1.2.10 Rakefile
my_help-1.2.9 Rakefile
my_help-1.2.8 Rakefile
my_help-1.2.7 Rakefile
my_help-1.2.6 Rakefile
my_help-1.2.5 Rakefile
my_help-1.2.4p1 Rakefile
my_help-1.2.4 Rakefile
my_help-1.2.3 Rakefile