Rakefile in tracksperanto-2.8.1 vs Rakefile in tracksperanto-2.8.2

- old
+ new

@@ -1,41 +1,43 @@ require './lib/tracksperanto' -begin - gem "hoe", "2.7.0" if RUBY_VERSION < "1.9" # Travis-CI doesn't want to love Hoe 2.8+ - require 'hoe' +require 'jeweler' +Jeweler::Tasks.new do |gem| + gem.version = Tracksperanto::VERSION + gem.name = "tracksperanto" + gem.summary = "A universal 2D tracks converter" + gem.description = "Converts 2D track exports between different apps like Flame, MatchMover, PFTrack..." + gem.email = "me@julik.nl" + gem.homepage = "http://guerilla-di.org/tracksperanto" + gem.authors = ["Julik Tarkhanov"] + gem.extra_rdoc_files << "DEVELOPER_DOCS.rdoc" + gem.license = 'MIT' + gem.executables = ["tracksperanto"] + + # Do not package up test fixtures + gem.files.exclude "test/import/samples" + gem.files.exclude ".*" + gem.files.exclude "test/import/samples/*/*.*" - Hoe::RUBY_FLAGS.gsub!(/^\-w/, '') # No thanks undefined ivar warnings - Hoe.plugin :bundler - Hoe.spec('tracksperanto') do | p | - p.readme_file = 'README.rdoc' - p.extra_rdoc_files = FileList['*.rdoc'] + FileList['*.txt'] - p.version = Tracksperanto::VERSION - - p.extra_deps = { - "obuf" => "~> 1.0", - "progressive_io" => "~> 1.0", - "flame_channel_parser" => "~> 3.0", - "progressbar" => "~> 0.9", - "update_hints" => "~> 1.0" - } - - p.extra_dev_deps = {"flexmock" => "~> 0.8", "cli_test" => "~>1.0"} - - p.developer('Julik Tarkhanov', 'me@julik.nl') - p.clean_globs = File.read(File.dirname(__FILE__) + "/.gitignore").split(/\s/).to_a - end -rescue LoadError + # Deps + gem.add_dependency "obuf", "~> 1.0.1" + gem.add_dependency "progressive_io", "~> 1.0" + gem.add_dependency "flame_channel_parser", "~> 3.0" + gem.add_dependency "progressbar", "~> 0.9" + gem.add_dependency "update_hints", "~> 1.0" - $stderr.puts "Meta-operations on this package require Hoe" - - require 'rake/testtask' - desc "Run all tests" - Rake::TestTask.new("test") do |t| - t.libs << "test" - t.pattern = 'test/**/test_*.rb' - t.verbose = true - end - - task :default => [ :test ] + gem.add_development_dependency "jeweler" + gem.add_development_dependency "rake" + gem.add_development_dependency "flexmock", "~>0.8" + gem.add_development_dependency "cli_test", "~>1.0" end +Jeweler::GemcutterTasks.new +require 'rake/testtask' +desc "Run all tests" +Rake::TestTask.new("test") do |t| + t.libs << "test" + t.pattern = 'test/**/test_*.rb' + t.verbose = true +end + +task :default => [ :test ] \ No newline at end of file