-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
27 lines (23 loc) · 690 Bytes
/
Copy pathRakefile
File metadata and controls
27 lines (23 loc) · 690 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
require 'rake_n_bake'
require 'rubygems/package'
task :default => [:"bake:rspec", :"bake:ok_rainbow"]
namespace :activefolder do
desc 'Build and push a gem for each spec in the current directory'
task :deploy do
Dir['*.gemspec'].each do |path|
spec = Gem::Specification.load path
Gem::Package.build(spec)
end
Dir['*.gem'].each do |path|
system('gem', 'push', path)
File.delete path
end
end
desc 'Yank the latest versions of each gem in the current directory'
task :rollback do
Dir['*.gemspec'].each do |path|
spec = Gem::Specification.load path
system( 'gem yank', spec.name, "-v#{spec.version.to_s}")
end
end
end