-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
39 lines (30 loc) · 683 Bytes
/
Rakefile
File metadata and controls
39 lines (30 loc) · 683 Bytes
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
35
36
37
38
39
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
desc 'Run the example'
task :example do
ruby 'examples/example_usage.rb'
end
desc 'Run RuboCop'
task :rubocop do
sh 'rubocop'
end
desc 'Run all checks'
task check: %i[spec rubocop]
desc 'Release gem (patch version)'
task :release do
ruby 'scripts/release.rb patch'
end
desc 'Release gem (minor version)'
task 'release:minor' do
ruby 'scripts/release.rb minor'
end
desc 'Release gem (major version)'
task 'release:major' do
ruby 'scripts/release.rb major'
end
desc 'Dry run release'
task 'release:dry' do
ruby 'scripts/release.rb patch --dry-run'
end