Skip to content

Upgrade rubyzip to v2 and align Zip::File create API usage#23

Draft
guanw88 with Copilot wants to merge 2 commits into
masterfrom
copilot/update-rubyzip-to-v2
Draft

Upgrade rubyzip to v2 and align Zip::File create API usage#23
guanw88 with Copilot wants to merge 2 commits into
masterfrom
copilot/update-rubyzip-to-v2

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown

This updates the project from rubyzip v1 to v2 and removes v1-era Zip::File create semantics so zip creation remains compatible with the current API surface.

  • Dependency version bump

    • Updated gemspec runtime dependency from rubyzip ~> 1.3 to rubyzip ~> 2.0.
    • Updated lockfile resolution to the rubyzip v2 line.
  • Runtime API compatibility

    • Replaced deprecated Zip::File::CREATE mode usage with keyword-based creation in zip write paths.
    • Touched both model upload packaging and process deployment packaging codepaths.
# before
Zip::File.open(path, Zip::File::CREATE) { |zip| ... }

# after
Zip::File.open(path, create: true) { |zip| ... }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants