Rakefile in broken_link_finder-0.4.1 vs Rakefile in broken_link_finder-0.5.0
- old
+ new
@@ -5,6 +5,21 @@
t.libs << "test"
t.libs << "lib"
t.test_files = FileList['test/**/*_test.rb']
end
-task :default => :test
+desc "Print help information"
+task default: :help
+
+desc "Print help information"
+task :help do
+ system "bundle exec rake -D"
+end
+
+desc "Compile all project Ruby files with warnings."
+task :compile do
+ paths = Dir["**/*.rb", "**/*.gemspec", 'exe/broken_link_finder']
+ paths.each do |f|
+ puts "\nCompiling #{f}..."
+ puts `ruby -cw #{f}`
+ end
+end