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

Support mocking binary files, upgrade dependencies #7

Merged
merged 9 commits into from
Dec 6, 2024

Conversation

marcobiscaro2112
Copy link
Contributor

@marcobiscaro2112 marcobiscaro2112 commented Dec 6, 2024

Review per commit is recommended.

  • Correctly handle binary files in create-blob! and get-blob operations
  • Fix reflective accesses in clj-github-mock.impl.jgit
  • Remove base64-clj dependency
  • Remove unused dev dependencies and plugins
  • Bump dependencies
    • org.eclipse.jgit/org.eclipse.jgit from 5.11.0 to 6.10.0
    • metosin/reitit-ring from 0.5.13 to 0.7.2
    • datascript from 1.1.0 to 1.7.3

The declared schema was wrong. This was detected during malli upgrade.
Use java.util.Base64 instead.
Don't try to convert the stored byte array into a String. Just base64-encode the byte array directly.

This enables support to mock binary files correctly.
Type hint bindings in clj-github-mock.impl.jgit to avoid reflective access when interoping with JGit classes.
@marcobiscaro2112 marcobiscaro2112 marked this pull request as ready for review December 6, 2024 17:40
@marcobiscaro2112 marcobiscaro2112 merged commit dd264a7 into main Dec 6, 2024
3 checks passed
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