Giter Club home page Giter Club logo

Comments (11)

Glavin001 avatar Glavin001 commented on August 24, 2024

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.

seanbuscay avatar seanbuscay commented on August 24, 2024

Just an FYI. ruby-beautify is no longer maintained:

erniebrodeur/ruby-beautify#3

from atom-beautify.

Glavin001 avatar Glavin001 commented on August 24, 2024

Thanks for the notice @seanbuscay!

Any recommendations for alternatives by Ruby developers?

from atom-beautify.

seanbuscay avatar seanbuscay commented on August 24, 2024

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.

erniebrodeur avatar erniebrodeur commented on August 24, 2024

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.

Glavin001 avatar Glavin001 commented on August 24, 2024

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.

huanzhang avatar huanzhang commented on August 24, 2024

@Glavin001 Could you tell me how to set spaces as the default indent character for ruby-beautify?

from atom-beautify.

mh61503891 avatar mh61503891 commented on August 24, 2024

@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.

huanzhang avatar huanzhang commented on August 24, 2024

@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.

ahmetabdi avatar ahmetabdi commented on August 24, 2024

rbeautify is completely messed up, if you try beautify a ruby file with it everything just gets removed inside the file! 👎

from atom-beautify.

ahmetabdi avatar ahmetabdi commented on August 24, 2024

Could update to using rubocop with the -a/--auto-correct flag? at least it's something

from atom-beautify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.