File: Rakefile

package info (click to toggle)
ruby-jekyll-last-modified-at 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: ruby: 335; makefile: 4; sh: 3
file content (24 lines) | stat: -rwxr-xr-x 513 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require "bundler"
Bundler::GemHelper.install_tasks

require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

desc "Test the project"
task :test do
  Rake::Task["spec"].invoke
end

require "rubocop/rake_task"

RuboCop::RakeTask.new(:rubocop)

require "bundler/gem_tasks"
require "rubygems/package_task"
GEMSPEC = Bundler.load_gemspec("jekyll-last-modified-at.gemspec")
gem_path = Gem::PackageTask.new(GEMSPEC).define
desc "Package the ruby gem"
task "package" => [gem_path]