File: Rakefile

package info (click to toggle)
ruby-fakefs 3.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: ruby: 7,606; makefile: 5
file content (34 lines) | stat: -rw-r--r-- 759 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
25
26
27
28
29
30
31
32
33
34
# frozen_string_literal: true

require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'bump/tasks'

Rake::TestTask.new do |t|
  t.test_files = FileList['test/**/*test.rb']
  t.verbose = true
  t.warning = true
end

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
  t.rspec_opts = '--warnings'
end

require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)

task default: [:test, :spec, :rubocop]

desc 'Update contributors'
task :update_contributors do
  git_rank_contributors = File.expand_path('etc/git-rank-contributors', __dir__)
  sh "#{git_rank_contributors} > CONTRIBUTORS && git add CONTRIBUTORS"
end

namespace :bump do
  Bump::Bump::BUMPS.each do |step|
    task step => :update_contributors
  end
end