[ANN] - ptools 1.1.1

D

Daniel Berger

Hi all,

This is just a quick announcement to let y'all know that I've released =
ptools=20
1.1.1 today.

What is it?
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Power tools for the File class. Additional methods include which, =
whereis,=20
head, tail, middle, wc, null, nl_convert, touch and binary?.

What's new?
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This release adds the File.null and File.binary? methods. The former =
returns=20
the null device on your system The latter returns whether or not the =
file in=20
question is a binary file (using a simple best-guess algorithm).

Where is it?
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
You can get it via gems, the RAA or RubyForge.

gem install ptools
http://raa.ruby-lang.org/project/ptools/
http://rubyforge.org/projects/shards/

Enjoy!

- Dan

PS - I forgot to put the dependency in the gem, but Windows users will =
need=20
win32-file-stat. If you're using the latest one-click installer, you've =

already got it.


This communication is the property of Qwest and may contain confidential =
or
privileged information. Unauthorized use of this communication is =
strictly=20
prohibited and may be unlawful. If you have received this communication =

in error, please immediately notify the sender by reply e-mail and =
destroy=20
all copies of the communication and any attachments.
 
P

Peña, Botp

fr daniel:
# Power tools for the File class. Additional methods include=20
# which, whereis,=20
# head, tail, middle, wc, null, nl_convert, touch and binary?.

very cool and helpful. now win users aren't left so far behind..

maybe, i can create a more efficient grep -r now, one that does not =
include binary files. Will #binary? work on unix too?

thanks for ptools -botp
 
D

Daniel Berger

Peña said:
fr daniel:
# Power tools for the File class. Additional methods include
# which, whereis,
# head, tail, middle, wc, null, nl_convert, touch and binary?.

very cool and helpful. now win users aren't left so far behind..

maybe, i can create a more efficient grep -r now, one that does not include binary files. Will #binary? work on unix too?

thanks for ptools -botp
All of the ptools methods are cross-platform so yes, File.binary? will
work fine on Unix.

Glad you're enjoying it. :)

Regards,

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

[ANN] pathname2 1.5.1 0
[ANN] rs 0.1.2 0
[ANN] Sipper 2.0.0 Released 1
[ANN] rs 0.1 3
[ANN] httpclient/2.1.6 0
Named backreferences with Oniguruma 4
Confused by Bignum#remainder 8
Driving Oracle sqlplus with open3 11

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top