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

ruby 3.3 support #97

Merged
merged 2 commits into from
May 9, 2024
Merged

ruby 3.3 support #97

merged 2 commits into from
May 9, 2024

Conversation

Vasfed
Copy link
Contributor

@Vasfed Vasfed commented May 9, 2024

  • Test on ruby 3.3
  • Tempfile#size patch was broken on ruby 3.3, also fix rubocop

@Vasfed Vasfed changed the title ruby33 ruby 3.3 support May 9, 2024
dstio = case path_or_file
when String then File.new(path_or_file, "wb+")
when IO, Tempfile then path_or_file
end
buffer = ""
buffer = +""
Copy link
Contributor

Choose a reason for hiding this comment

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

Проблема была в плюсике?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

нет, в патче под винду ниже, оно всегда возвращало 0 на 3.3

Copy link
Contributor

Choose a reason for hiding this comment

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

Я что-то даже не обратила внимание) Круть!

@Vasfed Vasfed merged commit c4b3983 into master May 9, 2024
4 checks passed
@Vasfed Vasfed deleted the ruby33 branch May 9, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants