Skip to content

Commit

Permalink
chore: do not build openssl man pages; fix rubocop config
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Dec 21, 2024
1 parent bc82edc commit 84442b1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ inherit_from:
AllCops:
TargetRubyVersion: 2.7
SuggestExtensions: false
NewCops: enable
Exclude:
- 'ffi-libarchive-binary.gemspec'
- 'tmp/**/*'
Expand Down
2 changes: 1 addition & 1 deletion lib/ffi-libarchive-binary/base_recipe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module LibarchiveBinary
}.freeze

class BaseRecipe < MiniPortile
def initialize(name, version)
def initialize(name, version, **kwargs)
super
@printed = {}
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ffi-libarchive-binary/openssl_recipe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions spec/binary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 84442b1

Please sign in to comment.