Sha256: c747045ff6df134542343d66a2bc0ec0332f5fc5c21f4b670e47afb9640dda6d

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rake/testtask'

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

require 'rubocop/rake_task'

RuboCop::RakeTask.new do |task|
  # task.requires << 'rubocop-minitest'
end

desc 'named task because minitest not included in rubocop tests'
task :rubocopminitest do
  `rubocop --require rubocop-minitest`
end

require_relative 'lib/markdown_exec/version'

task default: %i[test rubocop rubocopminitest]

# task :default => :build

desc 'gem build'
task :build do
  system "gem build #{MarkdownExec::GEM_NAME}.gemspec"
end

desc 'gem install'
task install: :build do
  system "gem install #{MarkdownExec::GEM_NAME}-#{MarkdownExec::VERSION}.gem"
end

desc 'gem publish'
task publish: :build do
  system "gem push #{MarkdownExec::GEM_NAME}-#{MarkdownExec::VERSION}.gem"
end

desc 'gem uninstall'
task uninstall: :build do
  system "gem uninstall #{MarkdownExec::GEM_NAME}"
end

desc 'gem build clean'
task :clean do
  system 'rm *.gem'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
markdown_exec-1.0.0 Rakefile
markdown_exec-0.2.6 Rakefile
markdown_exec-0.2.5 Rakefile
markdown_exec-0.2.4 Rakefile
markdown_exec-0.2.3 Rakefile