-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (26 loc) · 680 Bytes
/
Rakefile
File metadata and controls
33 lines (26 loc) · 680 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
require "bundler"
Bundler.setup
Bundler.require(:default)
require 'rake'
require 'rspec/core/rake_task'
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'classproxy/version'
RSpec::Core::RakeTask.new("spec") do |spec|
spec.pattern = "spec/**/*_spec.rb"
end
desc "Run watchr"
task :watchr do
sh %{bundle exec watchr .watchr}
end
task gem: :build
task :build do
system "gem build classproxy.gemspec"
end
task release: :build do
version = ClassProxy::VERSION
system "git tag -a v#{version} -m 'Tagging #{version}'"
system "git push --tags"
system "gem push classproxy-#{version}.gem"
system "rm classproxy-#{version}.gem"
end
task default: :spec