@prettier/plugin-ruby
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -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 |
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173726
1089