forked from fxposter/simple_model_translations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
31 lines (25 loc) · 868 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
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'simple_model_translations/version'
require 'rubygems'
require 'rake'
require 'rspec/core/rake_task'
require 'rake/rdoctask'
RSpec::Core::RakeTask.new(:spec) do |spec|
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "simple_model_translations #{SimpleModelTranslations::VERSION}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc 'Build gem'
task :build do
system 'gem build simple_model_translations.gemspec'
system 'mkdir pkg' unless File.exists?('pkg')
system "mv simple_model_translations-#{SimpleModelTranslations::VERSION}.gem pkg"
end
desc 'Build and push gem to rubygems.org'
task :release => :build do
system "gem push pkg/simple_model_translations-#{SimpleModelTranslations::VERSION}.gem"
end
task :default => :spec