From 25bc32e89a13ceaae33e4fd8ef23899ee1f481bd Mon Sep 17 00:00:00 2001 From: david942j Date: Sat, 20 Jun 2020 15:19:17 +0800 Subject: [PATCH] Use strict keyword arguments representation for Ruby 2.8 --- .travis.yml | 2 +- lib/one_gadget/fetchers/base.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 63390e65..66996d0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,10 +9,10 @@ addons: - binutils-multiarch - grep rvm: - - 2.3 - 2.4 - 2.5 - 2.6 + - 2.7 - ruby-head branches: only: diff --git a/lib/one_gadget/fetchers/base.rb b/lib/one_gadget/fetchers/base.rb index 1780ed39..3b757965 100644 --- a/lib/one_gadget/fetchers/base.rb +++ b/lib/one_gadget/fetchers/base.rb @@ -29,7 +29,7 @@ def find next if options.nil? # impossible be a gadget offset = offset_of(lines[i]) - gadgets << OneGadget::Gadget::Gadget.new(offset, options) + gadgets << OneGadget::Gadget::Gadget.new(offset, **options) end gadgets end.flatten