-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
22 lines (18 loc) · 854 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
desc 'Release redis_wrapper, and redis_wrapper_rails to Gemcutter'
task :release do
FileUtils.cp('README.md', 'redis_wrapper/')
require File.expand_path('../redis_wrapper/lib/redis_wrapper/version', __FILE__)
version_tag = "v#{RedisWrapper::VERSION}"
system "git tag -am 'Release version #{RedisWrapper::VERSION}' '#{version_tag}'"
system "git push origin #{version_tag}:#{version_tag}"
FileUtils.cd 'redis_wrapper' do
system "gem build redis_wrapper.gemspec"
system "gem push redis_wrapper-#{RedisWrapper::VERSION}.gem"
FileUtils.rm "redis_wrapper-#{RedisWrapper::VERSION}.gem"
end
FileUtils.cd 'redis_wrapper_rails' do
system "gem build redis_wrapper_rails.gemspec"
system "gem push redis_wrapper_rails-#{RedisWrapper::VERSION}.gem"
FileUtils.rm("redis_wrapper_rails-#{RedisWrapper::VERSION}.gem")
end
end