forked from ninkibah/icu_utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (22 loc) · 695 Bytes
/
Copy pathRakefile
File metadata and controls
28 lines (22 loc) · 695 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 'rdoc/task'
require 'rspec/core/rake_task'
require File.expand_path(File.dirname(__FILE__) + '/lib/icu_utils/version')
task :default => :spec
version = ICU::Utils::VERSION
desc "Build a new gem for version #{version}"
task :build do
system "gem build icu_utils.gemspec"
system "mv icu_utils-#{version}.gem pkg"
end
desc "Release gem version #{version} to rubygems.org"
task :release => :build do
system "gem push pkg/icu_utils-#{version}.gem"
end
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ['--colour --format doc']
end
RDoc::Task.new do |rdoc|
rdoc.title = "ICU Utils #{version}"
rdoc.main = "README.md"
rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
end