Rakefile in mrjoy-bundler-audit-0.3.1 vs Rakefile in mrjoy-bundler-audit-0.3.2

- old
+ new

@@ -24,11 +24,25 @@ Gem::Tasks.new namespace :db do desc 'Updates data/ruby-advisory-db' task :update do + vendored_ctime = nil chdir 'data/ruby-advisory-db' do sh 'git', 'pull', 'origin', 'master' + vendored_ctime = `git log --pretty="%cd" -1`.chomp + end + File.open("lib/bundler/audit/vendored_time.rb", "w") do |fh| + fh.write(%Q{ +# WARNING: DO NOT EDIT THIS FILE BY HAND. IT IS AUTO-GENERATED! +module Bundler + module Audit + class Database + VENDORED_REPO_CTIME = Time.parse("#{vendored_ctime}") + end + end +end +}) end sh 'git', 'commit', 'data/ruby-advisory-db', '-m', 'Updated ruby-advisory-db' end