From 91c8ca3c4ec1c9589babae8b04dbfb5698a957ea Mon Sep 17 00:00:00 2001 From: david942j Date: Thu, 13 Oct 2022 15:16:03 +0000 Subject: [PATCH] add MFA to rubygems --- elftools.gemspec | 1 + spec/elf_file_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/elftools.gemspec b/elftools.gemspec index 14c0b1a..1c8a826 100644 --- a/elftools.gemspec +++ b/elftools.gemspec @@ -29,4 +29,5 @@ Gem::Specification.new do |s| s.add_development_dependency 'rubocop', '~> 1' s.add_development_dependency 'simplecov', '~> 0.21' s.add_development_dependency 'yard', '~> 0.9' + s.metadata['rubygems_mfa_required'] = 'true' end diff --git a/spec/elf_file_spec.rb b/spec/elf_file_spec.rb index b895f9c..6f948fd 100644 --- a/spec/elf_file_spec.rb +++ b/spec/elf_file_spec.rb @@ -44,7 +44,7 @@ it 'data' do expect(@elf.section_by_name('.note.gnu.build-id').data) - .to eq "\x04\x00\x00\x00\x14\x00\x00\x00\x03\x00\x00\x00"\ + .to eq "\x04\x00\x00\x00\x14\x00\x00\x00\x03\x00\x00\x00" \ "GNU\x00s\xABb\xCB{\xC9\x95\x9C\xE0S\xC2\xB7\x112!Xp\x8C\xDC\a" end