forked from abdimuna1/activeadmin-axlsx
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRakefile
More file actions
23 lines (20 loc) · 648 Bytes
/
Rakefile
File metadata and controls
23 lines (20 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env rake
require 'activeadmin'
require 'rspec/core/rake_task'
desc 'Creates a test rails app for the specs to run against'
task :setup do
require 'rails/version'
system('mkdir spec/rails') unless File.exist?('spec/rails')
system "bundle exec rails new spec/rails/rails-#{Rails::VERSION::STRING} -m spec/support/rails_template_with_data.rb"
end
RSpec::Core::RakeTask.new
task default: :spec
task test: :spec
desc 'build the gem'
task :build do
system 'gem build activeadmin-axlsx.gemspec'
end
desc 'build and release the gem'
task release: :build do
system "gem push activeadmin-axlsx-#{ActiveAdmin::Axlsx::VERSION}.gem"
end