forked from hashrocket/decent_exposure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
31 lines (24 loc) · 795 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
$:.unshift 'lib'
require 'decent_exposure/version'
desc 'Build gem from gemspec'
task :build do
system 'gem build decent_exposure.gemspec'
end
desc 'Install built gem'
task :install => :build do
system "gem install decent_exposure-#{DecentExposure::VERSION}.gem"
end
desc 'Automate tagging, pushing, and releasing gem'
task :release => :build do
puts "Tagging #{DecentExposure::VERSION}..."
system "git tag -a #{DecentExposure::VERSION} -m 'Tagging #{DecentExposure::VERSION}'"
puts "Pushing to Github..."
system "git push --tags"
puts "Pushing to rubygems.org..."
system "gem push decent_exposure-#{DecentExposure::VERSION}.gem"
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
end
task :default => :spec