Rakefile in packetgen-plugin-smb-0.6.1 vs Rakefile in packetgen-plugin-smb-0.6.2
- old
+ new
@@ -1,13 +1,19 @@
+# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
-require 'yard'
task default: :spec
RSpec::Core::RakeTask.new
-YARD::Rake::YardocTask.new do |t|
- t.options = ['--no-private']
- t.files = ['lib/**/*.rb', '-', 'LICENSE']
+begin
+ require 'yard'
+
+ YARD::Rake::YardocTask.new do |t|
+ t.options = ['--no-private']
+ t.files = ['lib/**/*.rb', '-', 'LICENSE']
+ end
+rescue LoadError
+ # no yard, so no yard task
end