Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Integrate bundler-audit and update nokogiri in gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Alban Peignier committed Nov 5, 2018
1 parent ba05604 commit e8e1808
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
11 changes: 8 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@ PATH
remote: .
specs:
codifligne (0.0.2)
nokogiri (>= 1.8.2)
nokogiri (>= 1.8.5)

GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
awesome_print (1.8.0)
bundler-audit (0.6.0)
bundler (~> 1.2)
thor (~> 0.18)
crack (0.4.3)
safe_yaml (~> 1.0.0)
diff-lcs (1.3)
hashdiff (0.3.7)
mini_portile2 (2.3.0)
nokogiri (1.8.2)
nokogiri (1.8.5)
mini_portile2 (~> 2.3.0)
public_suffix (3.0.2)
rake (12.3.0)
Expand All @@ -33,6 +36,7 @@ GEM
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
safe_yaml (1.0.4)
thor (0.20.0)
webmock (1.22.6)
addressable (>= 2.3.6)
crack (>= 0.3.2)
Expand All @@ -44,10 +48,11 @@ PLATFORMS
DEPENDENCIES
awesome_print
bundler
bundler-audit
codifligne!
rake
rspec
webmock (~> 1.22.6)

BUNDLED WITH
1.16.1
1.16.4
11 changes: 10 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ begin
rescue LoadError
end

Bundler::GemHelper.install_tasks
Bundler::GemHelper.install_tasks

namespace :ci do
desc "Check security aspects"
task :check_security do
sh "bundle exec bundle-audit check --update"
end
end

task :ci => [:spec, "ci:check_security"]
3 changes: 2 additions & 1 deletion codifligne.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ Gem::Specification.new do |s|
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.markdown"]
s.required_ruby_version = '>= 2.0.0'

s.add_dependency "nokogiri", ">=1.8.2"
s.add_dependency "nokogiri", ">=1.8.5"

s.add_development_dependency "awesome_print"
s.add_development_dependency "bundler"
s.add_development_dependency "rake"
s.add_development_dependency "webmock"
s.add_development_dependency "rspec"
s.add_development_dependency "bundler-audit"
end

0 comments on commit e8e1808

Please sign in to comment.