From 84442b1697d958198cf108053e8bfdce428cf0f2 Mon Sep 17 00:00:00 2001 From: "Maxim [maxirmx] Samsonov" Date: Sun, 22 Dec 2024 01:18:31 +0300 Subject: [PATCH] chore: do not build openssl man pages; fix rubocop config --- .rubocop.yml | 1 + lib/ffi-libarchive-binary/base_recipe.rb | 2 +- lib/ffi-libarchive-binary/openssl_recipe.rb | 2 +- spec/binary_spec.rb | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index f67e69b..b83c6bc 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,6 +4,7 @@ inherit_from: AllCops: TargetRubyVersion: 2.7 SuggestExtensions: false + NewCops: enable Exclude: - 'ffi-libarchive-binary.gemspec' - 'tmp/**/*' diff --git a/lib/ffi-libarchive-binary/base_recipe.rb b/lib/ffi-libarchive-binary/base_recipe.rb index c5a33a7..055ef29 100644 --- a/lib/ffi-libarchive-binary/base_recipe.rb +++ b/lib/ffi-libarchive-binary/base_recipe.rb @@ -25,7 +25,7 @@ module LibarchiveBinary }.freeze class BaseRecipe < MiniPortile - def initialize(name, version) + def initialize(name, version, **kwargs) super @printed = {} end diff --git a/lib/ffi-libarchive-binary/openssl_recipe.rb b/lib/ffi-libarchive-binary/openssl_recipe.rb index 3d58d3f..c002754 100644 --- a/lib/ffi-libarchive-binary/openssl_recipe.rb +++ b/lib/ffi-libarchive-binary/openssl_recipe.rb @@ -17,7 +17,7 @@ class OpensslRecipe < BaseRecipe ROOT = Pathname.new(File.expand_path("../..", __dir__)) def initialize - super("openssl", "3.3.2") + super("openssl", "3.3.2", make_command: "make install_sw") @files << { url: "https://github.com/openssl/openssl/releases/download/openssl-3.3.2/openssl-3.3.2.tar.gz", diff --git a/spec/binary_spec.rb b/spec/binary_spec.rb index bc8f4ce..2c83b3e 100644 --- a/spec/binary_spec.rb +++ b/spec/binary_spec.rb @@ -23,8 +23,8 @@ def unarchive(archive, target) Dir.chdir(target) do - flags = ::Archive::EXTRACT_PERM - reader = ::Archive::Reader.open_filename(archive) + flags = Archive::EXTRACT_PERM + reader = Archive::Reader.open_filename(archive) reader.each_entry do |entry| reader.extract(entry, flags.to_i)