Rakefile in ronin-0.3.0 vs Rakefile in ronin-1.0.0.pre1

- old
+ new

@@ -1,38 +1,70 @@ -# -*- ruby -*- - require 'rubygems' -require 'hoe' -require 'hoe/signing' -require './tasks/spec.rb' -require './tasks/yard.rb' -Hoe.spec('ronin') do - self.rubyforge_name = 'ronin' - self.developer('Postmodern','postmodern.mod3@gmail.com') - self.remote_rdoc_dir = 'docs/ronin' - self.extra_deps = [ - ['yard', '>=0.2.3.5'], - ['nokogiri', '>=1.3.3'], - ['extlib', '>=0.9.13'], - ['data_objects', '>=0.10.0'], - ['do_sqlite3', '>=0.10.0'], - ['dm-core', '>=0.10.0'], - ['dm-types', '>=0.10.0'], - ['dm-validations', '>=0.10.0'], - ['dm-predefined', '>=0.2.0'], - ['chars', '>=0.1.2'], - ['parameters', '>=0.1.8'], - ['contextify', '>=0.1.3'], - ['reverse-require', '>=0.3.1'], - ['repertoire', '>=0.2.3'], - ['thor', '>=0.11.5'] - ] +begin + require 'bundler' +rescue LoadError => e + STDERR.puts e.message + STDERR.puts "Run `gem install bundler` to install Bundler." + exit e.status_code +end - self.extra_dev_deps = [ - ['rspec', '>=1.1.12'] - ] - - self.spec_extras = {:has_rdoc => 'yard'} +begin + Bundler.setup(:development) +rescue Bundler::BundlerError => e + STDERR.puts e.message + STDERR.puts "Run `bundle install` to install missing gems" + exit e.status_code end -# vim: syntax=Ruby +require 'rake' + +require 'ore/tasks' +Ore::Tasks.new + +require 'rspec/core/rake_task' +RSpec::Core::RakeTask.new +task :default => :spec + +require 'dm-visualizer/rake/graphviz_task' +DataMapper::Visualizer::Rake::GraphVizTask.new( + :bundle => [:default], + :include => %w[lib], + :require => %w[ + ronin/arch + ronin/address + ronin/author + ronin/campaign + ronin/comment + ronin/country + ronin/credential + ronin/email_address + ronin/host_name_ip_address + ronin/host_name + ronin/ip_address_mac_address + ronin/ip_address + ronin/license + ronin/mac_address + ronin/open_port + ronin/organization + ronin/os_guess + ronin/os + ronin/cached_file + ronin/repository + ronin/port + ronin/service + ronin/service_credential + ronin/web_credential + ronin/software + ronin/target + ronin/tcp_port + ronin/udp_port + ronin/url_scheme + ronin/url_query_param + ronin/url + ronin/user_name + ronin/vendor + ] +) + +require 'yard' +YARD::Rake::YardocTask.new