-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (22 loc) · 767 Bytes
/
Rakefile
File metadata and controls
28 lines (22 loc) · 767 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
require 'bundler'
Bundler.setup
require 'rake'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
desc 'Default: run specs.'
task :default => [:clean, :spec]
desc 'Clean up files.'
task :clean do |t|
FileUtils.rm_rf "doc"
FileUtils.rm_rf "tmp"
FileUtils.rm_rf "pkg"
FileUtils.rm "test/test.log" rescue nil
Dir.glob("globalfolders_client-*.gem").each{|f| FileUtils.rm f }
end
gemspec = eval(File.read("globalfolders_client.gemspec"))
task :gem => "#{gemspec.full_name}.gem"
task :build => "#{gemspec.full_name}.gem"
file "#{gemspec.full_name}.gem" => gemspec.files + ["globalfolders_client.gemspec"] do
system "gem build globalfolders_client.gemspec"
system "gem install globalfolders_client-#{GlobalfoldersClient::VERSION}.gem"
end