[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Pretty 0.3.1 released

WujcioL

8/19/2008 11:04:00 AM

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.
--
Posted via http://www.ruby-....

4 Answers

Avdi Grimm

8/19/2008 5:23:00 PM

0

On Tue, Aug 19, 2008 at 7:03 AM, Mateusz Tybura <wujciol@gmail.com> 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:...
Developer Blog: http:.../devblog/
Twitter: http://twitte...
Journal: http://avdi.livej...

WujcioL

8/19/2008 5:39:00 PM

0

Avdi Grimm wrote:
> On Tue, Aug 19, 2008 at 7:03 AM, Mateusz Tybura <wujciol@gmail.com>
> 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:...
> Developer Blog: http:.../devblog/
> Twitter: http://twitte...
> Journal: http://avdi.livej...

You can download it from http://rubyforge.org/projec...
or just install: gem install pretty
--
Posted via http://www.ruby-....

Avdi Grimm

8/19/2008 5:58:00 PM

0

On Tue, Aug 19, 2008 at 1:38 PM, Mateusz Tybura <wujciol@gmail.com> wrote:
> You can download it from http://rubyforge.org/projec...
> or just install: gem install pretty

Thanks :-) Might want to include that info in future announcements...


--
Avdi

Home: http:...
Developer Blog: http:.../devblog/
Twitter: http://twitte...
Journal: http://avdi.livej...

Robert Dober

8/20/2008 2:20:00 AM

0

On Tue, Aug 19, 2008 at 1:03 PM, Mateusz Tybura <wujciol@gmail.com> wrote:
> 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 ;
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.blo...

There's no one thing that's true. It's all true.
--
Ernest Hemingway