Comments (11)
Instead, let's use https://github.com/erniebrodeur/ruby-beautify
It has over 5,000 downloads and was recommended by users at http://stackoverflow.com/a/17509560/2578205
from atom-beautify.
Just an FYI. ruby-beautify is no longer maintained:
from atom-beautify.
Thanks for the notice @seanbuscay!
Any recommendations for alternatives by Ruby developers?
from atom-beautify.
Not really, in terms of alternatives. It seems for now, it is still good to use. Just looks like if no one picks it up, it may become necessary to change. But, hey PHP_beatifier hasn't been updated for years and it is still used a lot.
Here's a list of results from the term: beautify off of RubyGems.org
http://rubygems.org/search?utf8=%E2%9C%93&query=beautify
Nothing looks any better.
from atom-beautify.
I didn't know if I should reopen this, or open a new one. I've recently rebuilt the core of ruby-beautify around a much better lexing engine. I've already added a few options and run it against all my code, it works as I would expect it too.
You can now pick tabs or spaces as well as the indent count via options. I'm open to suggestions on other methods/ideas, and any bugs found against use cases out there.
from atom-beautify.
Awesome! Great to see some development, @erniebrodeur. I am not a Ruby developer myself, however I can imagine that Ruby developers using Atom Beautify and Ruby Beautify will be very excited. Let me know if there's anything I should add to Atom Beautify to maximize usage of Ruby Beautify's new features. I don't think Atom Beautify currently supports any options right now: https://github.com/Glavin001/atom-beautify/blob/master/lib/langs/ruby-beautify.coffee
from atom-beautify.
@Glavin001 Could you tell me how to set spaces as the default indent character for ruby-beautify?
from atom-beautify.
@huanzhang This is just a makeshift way, but I have created the following ruby script named /path/to/my_rbeautify
and set "Ruby rbeautify path" of the atom-beautify's Settings to the path of this script.
ARGV = %w(--spaces --indent_count 2) + ARGV
load '/Users/masayuki/.gem/ruby/2.2.0/bin/rbeautify'
The real path of the rbeautify can be detected by '$ type -a rbeautify'
from atom-beautify.
@mh61503891 Seems your solution is more convenient for configuration, but I have just solved this by rebuild ruby-beautify(https://github.com/huanzhang/ruby-beautify/commit/4152fe6bbb37e11386b60daf52318004fa84eb6f).
To have spaces as default indention for ruby, I have submit a pull request to ruby-beautify(erniebrodeur/ruby-beautify#15)
from atom-beautify.
rbeautify is completely messed up, if you try beautify a ruby file with it everything just gets removed inside the file! 👎
from atom-beautify.
Could update to using rubocop with the -a/--auto-correct
flag? at least it's something
from atom-beautify.
Related Issues (20)
- Javascript space before paren HOT 1
- Failed to activate the atom-beautify package HOT 3
- beautify HOT 1
- download failed HOT 1
- Cannot beautify Velocity file HOT 1
- Installed but not listed on packages tab HOT 1
- dart language not support HOT 1
- Could not find 'uncrustify'. The program may not be installed. HOT 1
- 0 I've been trying to install atom-beautify on my Windows 10 x64 machine, but I keep getting this error : npm ERR! code Z_BUF_ERROR npm ERR! errno -5 npm ERR! zlib: unexpected end of file npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\*****\.atom\.apm\_logs\2019-01-18T06_40_37_988Z-debug.log Googling about it, I found this is an issue that has been raised but closed without much in the way of resolution : https://github.com/Glavin001/atom-beautify/issues/2240 I tried uninstalling and reinstalling Atom, and also deleting the .apm folder and giving it another go, and then trying to install previous versions of atom-beautify using the following, apm install [email protected] apm install [email protected] But nothing seems to work, and I get the same error with a Deprecation warning on the latter. Has anyone else encounteredd this issue, are there any known work-arounds for it? HOT 1
- Atom-beautiful
- atom-beautify
- cant go futher of this HOT 1
- network is unreachable
- it was not installing HOT 1
- PHP beautify problem HOT 1
- How can I solve this problem ? HOT 2
- facing error HOT 2
- Not working :( HOT 1
- i
- Object.<anonymous> is deprecated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-beautify.