Browse Source

gem: add bundler-audit for vulnerability scan

cn 2 weeks ago
parent
commit
1f35f60c55
2 changed files with 4 additions and 1 deletions
  1. 3
    1
      Rakefile
  2. 1
    0
      dyndnsd.gemspec

+ 3
- 1
Rakefile View File

@@ -1,8 +1,10 @@
1 1
 require 'bundler/gem_tasks'
2 2
 require 'rspec/core/rake_task'
3 3
 require 'rubocop/rake_task'
4
+require 'bundler/audit/task'
4 5
 
5 6
 RSpec::Core::RakeTask.new(:spec)
6 7
 RuboCop::RakeTask.new
8
+Bundler::Audit::Task.new
7 9
 
8
-task default: [:rubocop, :spec]
10
+task default: [:rubocop, :spec, 'bundle:audit']

+ 1
- 0
dyndnsd.gemspec View File

@@ -32,4 +32,5 @@ Gem::Specification.new do |s|
32 32
   s.add_development_dependency 'rspec'
33 33
   s.add_development_dependency 'rack-test'
34 34
   s.add_development_dependency 'rubocop', '~> 0.60.0'
35
+  s.add_development_dependency 'bundler-audit'
35 36
 end