Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tmpfile extension #3

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented May 3, 2022

Having a proper extension, even for temporary files is much cleaner.

Depends on voxpupuli/beaker#1735

@ekohl ekohl force-pushed the use-tmpfile-extension branch from a8f7869 to eecc0fb Compare October 16, 2023 14:07
@ekohl ekohl marked this pull request as ready for review October 16, 2023 14:07
@ekohl ekohl added the enhancement New feature or request label Oct 16, 2023
@ekohl ekohl force-pushed the use-tmpfile-extension branch from eecc0fb to 7b8a06a Compare January 8, 2024 23:05
@ekohl ekohl force-pushed the use-tmpfile-extension branch from 1769cf9 to 6604e02 Compare May 6, 2024 20:35
@ekohl
Copy link
Member Author

ekohl commented May 6, 2024

I think it fails because it's mocked here:

allow(host).to receive(:tmpfile).and_return('temp')

However, the method signature isn't correct so the mock fails. At runtime it'd probably work. Opened voxpupuli/beaker#1863 to fix it.

@@ -16,6 +16,6 @@ Gem::Specification.new do |s|
s.require_paths = ['lib']

# Run time dependencies
s.add_runtime_dependency 'beaker', '>= 4', '< 6'
s.add_runtime_dependency 'beaker', '~> 5.2'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
s.add_runtime_dependency 'beaker', '~> 5.2'
s.add_runtime_dependency 'beaker', '~> 5.8', '>= 5.8.1'

Having a proper extension, even for temporary files is much cleaner.
@ekohl ekohl force-pushed the use-tmpfile-extension branch from 6604e02 to bd005ac Compare May 6, 2024 21:26
@smortex smortex merged commit 2f186cf into voxpupuli:master May 6, 2024
7 checks passed
@ekohl ekohl deleted the use-tmpfile-extension branch May 6, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants