Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prettier/plugin-ruby

Package Overview
Dependencies
Maintainers
13
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prettier/plugin-ruby - npm Package Versions

1
68

0.9.1

Diff

Changelog

Source

[0.9.1] - 2019-03-24

Changed

  • kddnewton - Better support string quotes by favoring what the user chose if the string contains escape patterns.
  • kddnewton - Better support heredocs within method calls.
kddeisz
published 0.9.0 •

Changelog

Source

[0.9.0] - 2019-03-18

Added

  • kddnewton - Support the hasPragma function.
  • kddnewton - Support the new number_arg node type in Ruby 2.7.

Changed

  • kddnewton - Limit the number of nodes that are allowed to turn into ternary expressions.
kddeisz
published 0.8.0 •

Changelog

Source

[0.8.0] - 2019-03-08

Added

  • kddnewton - Add eslint and fix up existing violations.
  • AlanFoster - Add the infra for the prettier ruby gem.
  • kddnewton - Add a rake task for easier process integration for the ruby gem.
  • kddnewton - Handle direct interpolation of strings with %w array literals (i.e., ["#{foo}"] should not be transformed into a %w array).

Changed

  • kddnewton - Fix string escaping for hex digit bit patterns when there's only one character after the "x".
  • AlanFoster - Don't allow line breaks between brace block params.
  • johnschoeman - Switch over the array.rb test case to minitest.
  • AlanFoster - Test improvements to allow running in parallel.
  • johnschoeman - Switch over assign.rb test case to minitest.
  • AlanFoster - Add a contributing guide.
  • AlanFoster - Handle longer command nodes.
  • kddnewton - Changed the ruby executable within the prettier gem to rbprettier for easier autocomplete.

Removed

  • kddnewton - All instances of the spread (...) operator so that we can support older versions of node.
kddeisz
published 0.7.0 •

Changelog

Source

[0.7.0] - 2019-02-24

Changed

  • kddnewton - Support checking for escaping within strings to force double quotes (e.g., "\n").
  • RossKinsella, kddnewton - Handle cases with empty class and module declarations that need to break.
  • AlanFoster - Align the bin/print and bin/sexp APto support bin/print taking a filepath.
  • AndrewRayCode, kddnewton - Support lambdas that don't break and are inline.
  • AlanFoster - Switch over the numbers.rb test to minitest.
  • AlanFoster - Switch over the kwargs.rb test to minitest.
  • AlanFoster - Bail out early if the Ruby input is invalid.
  • kddnewton - Support __END__ content.
  • AlanFoster - Fix up issue with whitespace being added within regexp that are multiline.
  • AlanFoster - Better support for destructuring within multi assignment.
  • kddnewton - Switch next test over to minitest.
  • kddnewton - Handle multiple arguments to next with a space between.
  • AndrewRayCode, kddnewton - Handle multi-line conditional predicate (should align with keyword).
  • aaronjensen, kddnewton - Properly support adding trailing commas with and without blocks.
  • AlanFoster, kddnewton - Fix regression of handling comments within arrays on array literals.
  • AlanFoster - Support multiple arguments to undef.
kddeisz
published 0.6.3 •

Changelog

Source

[0.6.3] - 2019-02-18

Changed

  • kddnewton - Switch over binary fixture to minitest.
  • kddnewton - Reconfigure parser into multiple layer modules so that it's easier to understand and manage.
  • kddnewton - Handle comments from within begin, rescue, ensure, while, and until nodes.
  • kddnewton - Properly indent heredocs without taking into account current indentation level.
kddeisz
published 0.6.2 •

Changelog

Source

[0.6.2] - 2019-02-17

Changed

  • AlanFoster - Handle regexp suffixes.
  • kddnewton - Add support for testing the test fixtures with minitest.
  • kddnewton - Switch over alias and regexp tests to minitest.
  • aaronjensen, kddnewton - Break up method args to split into multiple lines.
  • christoomey, kddnewton - Handle blocks args when trailing commas are on.
kddeisz
published 0.6.1 •

Changelog

Source

[0.6.1] - 2019-02-15

Changed

  • meleyal, kddnewton - Fix Ruby 2.5 inline comments on args_add_block nodes.
  • meleyal, kddnewton - Support passing super() explicitly with no arguments.
kddeisz
published 0.6.0 •

Changelog

Source

[0.6.0] - 2019-02-14

Added

  • kddnewton - Handle non UTF-8 comments.
  • kddnewton - Handle non UTF-8 identifiers.
  • kddnewton - Handle non UTF-8 strings.
  • kddnewton - Handle empty parens.
  • kddnewton - Handle rescue with splats preceeding the exception names.

Changed

  • kddnewton - Use JSON::fast_generate to get the s-expressions back from the parser.
  • NoahTheDuke, kddnewton - Handle broken lambdas from within command and command_call nodes.
kddeisz
published 0.5.1 •

Changelog

Source

[0.5.1] - 2019-02-13

Changed

  • yuki24, kddnewton - Force do blocks that we know have to be do blocks to break.
  • kmcq, kddnewton - Handle command and command_call nodes do blocks by forcing them to break.
  • ashfurrow, kddnewton - Attach comments to full hash association nodes, not just the value.
kddeisz
published 0.5.0 •

Changelog

Source

[0.5.0] - 2019-02-13

Added

  • kddnewton - Automatically convert arrays of all string literals to %w arrays.
  • kddnewton - Automatically convert arrays of all symbol literals to %i arrays.

Changed

  • kddnewton - Move the args_add and args_new handling into the parser.
  • uri, kddnewton - Change command_call nodes to properly indent when broken and to not add a trailing comma.
  • kddnewton - Rename the trailingComma option to addTrailingCommas to not conflict with the JS option.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc