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.4 to 0.3.5

7

CHANGELOG.md

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

## [0.3.5] - 2019-02-09
### Changed
- Handle lonely operators in Ruby `2.5`.
## [0.3.4] - 2019-02-09

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

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

@@ -91,0 +96,0 @@ [0.3.3]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.2...v0.3.3

2

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

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

@@ -11,6 +11,12 @@ const { breakParent, concat, hardline, lineSuffix } = require("prettier").doc.builders;

const makeCall = (path, opts, print) => (
["::", "."].includes(path.getValue().body[1]) ? "." : path.call(print, "body", 1)
);
const makeCall = (path, opts, print) => {
const operation = path.getValue().body[1];
if ([".", "&."].includes(operation)) {
return operation;
}
return operation === "::" ? "." : path.call(print, "body", 1);
};
const prefix = value => (path, opts, print) => concat([

@@ -17,0 +23,0 @@ value,

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