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

@prettier/plugin-ruby

Package Overview
Dependencies
Maintainers
9
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 Compare versions

Comparing version 0.3.5 to 0.3.6

8

CHANGELOG.md

@@ -9,2 +9,7 @@ # Changelog

## [0.3.6] - 2019-02-10
### Changed
- Support the `not` operator properly. (Thanks to @AlanFoster for the report.)
- Handle comments properly inside `if`, `unless`, and `when` nodes. (Thanks to @AlanFoster for the report.)
## [0.3.5] - 2019-02-09

@@ -92,3 +97,4 @@ ### Changed

[Unreleased]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.5...HEAD
[Unreleased]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.6...HEAD
[0.3.6]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.5...v0.3.6
[0.3.5]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.4...v0.3.5

@@ -95,0 +101,0 @@ [0.3.4]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.3...v0.3.4

2

package.json
{
"name": "@prettier/plugin-ruby",
"version": "0.3.5",
"version": "0.3.6",
"description": "prettier plugin for the Ruby programming language",

@@ -5,0 +5,0 @@ "main": "src/ruby.js",

@@ -86,3 +86,3 @@ <div align="center">

After that you can add `prettier` and `@prettier/plugin-ruby` to your `package.json` `dependencies` by running `npm install prettier @prettier/plugin-ruby` if you are using `npm` or `yarn add prettier @prettier/plugin-ruby` if you are using `yarn`.
After that you can add `prettier` and `@prettier/plugin-ruby` to your `package.json` `devDependencies` by running `npm install prettier @prettier/plugin-ruby --saveDev` if you are using `npm` or `yarn add prettier @prettier/plugin-ruby --dev` if you are using `yarn`.

@@ -100,3 +100,3 @@ Finally, you can install your dependencies using either `npm install` for `npm` or `yarn install` for `yarn`.

```
./node_modules/.bin/prettier --write --plugin=@prettier/plugin-ruby **/*.rb
./node_modules/.bin/prettier --write --plugin=@prettier/plugin-ruby '**/*.{rb,rake}'
```

@@ -103,0 +103,0 @@

@@ -542,6 +542,10 @@ const { align, breakParent, concat, dedent, dedentToRoot, group, hardline, ifBreak, indent, join, line, lineSuffix, literalline, markAsRoot, softline, trim } = require("prettier").doc.builders;

top_const_ref: prefix("::"),
unary: (path, opts, print) => concat([
path.getValue().body[0][0],
path.call(print, "body", 1)
]),
unary: (path, opts, print) => {
const operator = path.getValue().body[0];
return concat([
operator === "not" ? "not " : operator[0],
path.call(print, "body", 1)
]);
},
undef: (path, opts, print) => concat([

@@ -548,0 +552,0 @@ "undef ",

Sorry, the diff of this file is not supported yet

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