Skip to content

Conversation

@eagletmt
Copy link
Collaborator

No description provided.

Copy link
Owner

@yugui yugui left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution and sorry for my late reply.
I'm glad that you volunteer to be a collaborator.

Overall I welcome these changes. But I just want to add some comments on style consistency (function name), impl details and API design (constants).

ext/jsonnet/vm.c Outdated
Comment on lines 407 to 408
rb_define_method(cVM, "fmt_file", vm_fmt_file, 2);
rb_define_method(cVM, "fmt_snippet", vm_fmt_snippet, 2);
Copy link
Owner

Choose a reason for hiding this comment

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

Sorry. I overlooked this point at the first comment.

As long as you intend to call these methods from their wrappers, these methods should be private.
Should use rb_define_private_method as eval_file or eval_snippet does.

Copy link
Owner

@yugui yugui left a comment

Choose a reason for hiding this comment

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

LGTM except for the rb_define_private_method thing.

The public APIs are format_file and format respectively.
@yugui yugui merged commit dc5c935 into yugui:master Jul 3, 2020
@eagletmt eagletmt deleted the fmt branch July 3, 2020 13:00
@eagletmt
Copy link
Collaborator Author

eagletmt commented Jul 3, 2020

Oh, this PR is broken by updating jsonnet to v0.16.
https://travis-ci.org/github/yugui/ruby-jsonnet/builds/704648423
I'm making a patch to fix the crash.

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