-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
51 lines (41 loc) · 928 Bytes
/
Rakefile
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
40
41
42
43
44
45
46
47
48
49
50
51
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"
require "standard"
require "standard/rake"
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList["test/test_*.rb"]
t.verbose = true
t.warning = false
end
desc "Run tests"
task default: :test
desc "Build serrano docs"
task :docs do
system "yardoc"
end
desc "bundle install"
task :bundle do
system "bundle install"
end
desc "clean out builds"
task :clean do
system "ls | grep [0-9].gem | xargs rm"
end
desc "Build serrano"
task :build do
system "gem build serrano.gemspec"
end
desc "Install serrano"
task install: %i[bundle build] do
system "gem install serrano-#{Serrano::VERSION}.gem"
end
desc "Release to Rubygems"
task release: :build do
system "gem push serrano-#{Serrano::VERSION}.gem"
end
desc "open an irb session preloaded with this gem"
task :console do
sh "irb -r pp -r ./lib/serrano.rb"
end