Pretty 0.3.1 released

Changes:

  • Code is now using rules files to parse files specified by user
  • Rules fixed

Usage: pretty [-language] filename(-s)

Project now need people who will write rules files for another
languages. This is rule file for Ruby:

line.size > 80 !!! Too long line
line =~ /^;/ !!! Don’t use ;
line =~ /[$]\w+/ !!! Using global variables is not good idea except that
you are using special variables like $_

If you write rule file for some language please post it to this forum. I
will add ot to project immediately.

On Tue, Aug 19, 2008 at 7:03 AM, Mateusz T. [email protected]
wrote:

Changes:

  • Code is now using rules files to parse files specified by user
  • Rules fixed

Usage: pretty [-language] filename(-s)

Is there somewhere I can download this?


Avdi

Home: http://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com

Avdi G. wrote:

On Tue, Aug 19, 2008 at 7:03 AM, Mateusz T. [email protected]
wrote:

Changes:

  • Code is now using rules files to parse files specified by user
  • Rules fixed

Usage: pretty [-language] filename(-s)

Is there somewhere I can download this?


Avdi

Home: http://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com

You can download it from http://rubyforge.org/projects/pretty/
or just install: gem install pretty

On Tue, Aug 19, 2008 at 1:38 PM, Mateusz T. [email protected]
wrote:

You can download it from http://rubyforge.org/projects/pretty/
or just install: gem install pretty

Thanks :slight_smile: Might want to include that info in future announcements…


Avdi

Home: http://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com

On Tue, Aug 19, 2008 at 1:03 PM, Mateusz T. [email protected]
wrote:

line =~ /^;/ !!! Don’t use ;
really = %{code
; comment
}
line =~ /[$]\w+/ !!! Using global variables is not good idea except that
you are using special variables like $_

are_you_sure = “Make some $money”

Robert

http://ruby-smalltalk.blogspot.com/

There’s no one thing that’s true. It’s all true.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs