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.6 to 0.3.7

8

CHANGELOG.md

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

## [0.3.7] - 2019-02-11
### Changed
- Split up statements even if they started on the same line with `;`s unless they are within an embedded expression.
- Properly handle escaped quotes within strings.
## [0.3.6] - 2019-02-10

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

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

@@ -100,0 +106,0 @@ [0.3.5]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.4...v0.3.5

2

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

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

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

30643069058
]; a, s = [], $*[0]
]
a, s = [], $*[0]
s.each_byte { |b| a << ('%036b' % d[b.chr.to_i]).scan(/\d{6}/) }

@@ -87,3 +88,3 @@ a.transpose.each do |a|

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`.
After that you can add `prettier` and `@prettier/plugin-ruby` to your `package.json` `devDependencies` by running `npm install --save-dev prettier @prettier/plugin-ruby` if you are using `npm` or `yarn add --dev prettier @prettier/plugin-ruby` if you are using `yarn`.

@@ -90,0 +91,0 @@ Finally, you can install your dependencies using either `npm install` for `npm` or `yarn install` for `yarn`.

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

parts.push(hardline, hardline, printed);
} else if (stmt.start === line) {
} else if (stmt.start !== line || path.getParentNode().type !== "string_embexpr") {
parts.push(hardline, printed);
} else {
parts.push("; ", printed);
} else {
parts.push(hardline, printed);
}

@@ -524,0 +524,0 @@

@@ -12,3 +12,3 @@ const { concat, group, hardline, indent, join, line, softline } = require("prettier").doc.builders;

// enclose `content` with `enclosingQuote`.
return content.replace(quotePattern, (match, escaped, quote) => {
content.replace(quotePattern, (match, escaped, quote) => {
if (escaped === otherQuote) {

@@ -26,2 +26,4 @@ return escaped;

});
return content;
};

@@ -28,0 +30,0 @@

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