Rakefile in edl-0.1.5 vs Rakefile in edl-0.1.6
- old
+ new
@@ -1,27 +1,15 @@
+# frozen_string_literal: true
+
require 'rubygems'
-require './lib/edl.rb'
-require 'jeweler'
+require 'bundler/gem_tasks'
+require 'rake/testtask'
-Jeweler::Tasks.new do |gem|
- gem.version = EDL::VERSION
- gem.name = "edl"
- gem.summary = "Parser for EDL (Edit Decision List) files"
- gem.email = "me@julik.nl"
- gem.homepage = "http://guerilla-di.org/edl"
- gem.authors = ["Julik Tarkhanov"]
-
- # Do not package invisibles
- gem.files.exclude ".*"
-end
+begin
+ require 'rspec/core/rake_task'
-Jeweler::RubygemsDotOrgTasks.new
+ RSpec::Core::RakeTask.new(:spec)
-require 'rake/testtask'
-desc "Run all tests"
-Rake::TestTask.new("test") do |t|
- t.libs << "test"
- t.pattern = 'test/**/test_*.rb'
- t.verbose = true
+ task default: :spec
+rescue LoadError
+ # no rspec available
end
-
-task :default => [ :test ]