-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (22 loc) · 640 Bytes
/
Copy pathRakefile
File metadata and controls
30 lines (22 loc) · 640 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
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
GEM_NAME = "arel_assist"
GEM_VERSION = ArelAssist::VERSION
require "standard/rake"
require "bump/tasks"
task default: %i[spec standard]
task :build do
system "gem build #{GEM_NAME}.gemspec"
end
task install: :build do
system "gem install #{GEM_NAME}-#{GEM_VERSION}.gem"
end
task publish: :build do
system "gem push #{GEM_NAME}-#{GEM_VERSION}.gem"
system "gem push --key github --host https://rubygems.pkg.github.com/coderberry #{GEM_NAME}-#{GEM_VERSION}.gem"
end
task :clean do
system "rm *.gem"
end