Skip to content

Commit

Permalink
Clean up Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorrison committed May 31, 2016
1 parent 6b9712e commit 2925742
Showing 1 changed file with 7 additions and 29 deletions.
36 changes: 7 additions & 29 deletions Rakefile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,33 +1,11 @@
# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'rubygems'
require 'bundler/setup'
require 'awesome_nested_set/version'
#!/usr/bin/env rake

task :default => :spec
require 'bundler/gem_helper'
require 'rspec/core/rake_task'
require 'appraisal'

task :spec do
puts "\n" + (cmd = "bundle exec rspec spec")
# %w(3.0 3.1 3.2).each do |rails_version|
# puts "\n" + (cmd = "BUNDLE_GEMFILE='gemfiles/Gemfile.rails-#{rails_version}.rb' bundle exec rspec spec")
system cmd
# end
end
Bundler::GemHelper.install_tasks(name: 'awesome_nested_set')

task :build do
system "gem build awesome_nested_set.gemspec"
end
RSpec::Core::RakeTask.new(:spec)

task :release => :build do
system "gem push awesome_nested_set-#{AwesomeNestedSet::VERSION}.gem"
end

require 'rdoc/task'
desc 'Generate documentation for the awesome_nested_set plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'AwesomeNestedSet'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.md')
rdoc.rdoc_files.include('lib/**/*.rb')
end
task default: :spec

0 comments on commit 2925742

Please sign in to comment.