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

Fix Ruby formatter #452

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Fix Ruby formatter #452

merged 3 commits into from
Dec 12, 2024

Conversation

andrii-balitskyi
Copy link
Contributor

@andrii-balitskyi andrii-balitskyi commented Dec 10, 2024

Closes #401

@andrii-balitskyi andrii-balitskyi requested a review from a team as a code owner December 10, 2024 12:56
@seambot seambot requested a review from a team as a code owner December 10, 2024 12:57
@@ -69,7 +69,18 @@ seam.acs.access_groups.get(acs_access_group_id: "44444444-4444-4444-4444-4444444
#### Response

```ruby
{"acs_access_group_id" => "44444444-4444-4444-4444-444444444444", "name" => "Lobby Access", "display_name" => "Lobby Access", "access_group_type_display_name" => "PTI access level", "access_group_type" => "pti_access_level", "external_type" => "pti_access_level", "external_type_display_name" => "PTI access level", "acs_system_id" => "11111111-1111-1111-1111-111111111111", "workspace_id" => "00000000-0000-0000-0000-000000000000", "created_at" => "2023-11-30T06:27:15.437Z"}
{
"acs_access_group_id" => "44444444-4444-4444-4444-444444444444",
Copy link
Contributor

Choose a reason for hiding this comment

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

@andrii-balitskyi When I use a GitHub codespace to run Ruby, I don't think I see "=>" in the responses. I also don't think I see commas separating the prop-value pairs in the responses. Does that matter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's ok. @razor-x and I agreed on using the hash arrow syntax for Ruby responses, similar to JSON.

@razor-x
Copy link
Contributor

razor-x commented Dec 11, 2024

@andrii-balitskyi Are we no longer using standard? If so, we need to remove or update the references:

@andrii-balitskyi
Copy link
Contributor Author

andrii-balitskyi commented Dec 12, 2024

@razor-x yes, if using prettier works for you. I tried using stanardrb to format the code samples as needed, but I ran into some setup issues that were taking too long to resolve. Instead, I found a Ruby plugin (which requires ruby and syntax_tree dependencies as well) for prettier that's much more straightforward to implement. I'll update the README and devcontainer accordingly.

@andrii-balitskyi andrii-balitskyi merged commit 5b9047e into main Dec 12, 2024
13 checks passed
@andrii-balitskyi andrii-balitskyi deleted the format-ruby branch December 12, 2024 13:49
@andrii-balitskyi
Copy link
Contributor Author

@razor-x Why does devcontainer need to install ruby formatter? I don't see it installing prettier, for example.
How formatters are used in the devcontainer?

@razor-x
Copy link
Contributor

razor-x commented Dec 12, 2024

@razor-x Why does devcontainer need to install ruby formatter? I don't see it installing prettier, for example.
How formatters are used in the devcontainer?

The devcontainer installs prettier as part of npm i because it's a dependency in package.json.

The devcontainer should have a full development env so it needs each formatter installed.

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.

Formatted Ruby line length too long
4 participants