[#385051] How to order Structs based on two fields — Iñaki Baz Castillo <ibc@...>

Hi, I've a struct like this:

20 messages 2011/07/01
[#385052] Re: How to order Structs based on two fields — Iñaki Baz Castillo <ibc@...> 2011/07/01

2011/7/1 I=C3=B1aki Baz Castillo <ibc@aliax.net>:

[#385057] Re: How to order Structs based on two fields — Robert Klemme <shortcutter@...> 2011/07/01

On Fri, Jul 1, 2011 at 12:55 PM, I=F1aki Baz Castillo <ibc@aliax.net> wrote=

[#385069] Offering Help — Joe Peric <peric.joe@...>

I'm new to Ruby and I am willing to learn. Anyone need help on a

18 messages 2011/07/01
[#385072] Re: Offering Help — Jeremy Heiler <jeremyheiler@...> 2011/07/01

On Fri, Jul 1, 2011 at 11:43 AM, Joe Peric <peric.joe@gmail.com> wrote:

[#385073] Re: Offering Help — Joe Peric <peric.joe@...> 2011/07/01

Never heard of it, but I'll get right on it. Thanks.

[#385082] Re: Offering Help — Joe Peric <peric.joe@...> 2011/07/02

Just finished this. I had to find some more info on exceptions to get

[#385083] Re: Offering Help — Jeremy Heiler <jeremyheiler@...> 2011/07/02

On Sat, Jul 2, 2011 at 1:39 PM, Joe Peric <peric.joe@gmail.com> wrote:

[#385102] symbol vs string for hash keys — Intransition <transfire@...>

What are the important factors to consider when deciding whether to

12 messages 2011/07/03

[#385160] Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard — Timothy Barnes <barnes7td@...>

I posted the below question to the Shoes mailing list and got back the

10 messages 2011/07/09

[#385194] RubyInstaller Extras — Jon <jon.forums@...>

Since 2009, we've been pleased to include Huw Collingbourne's The Book of Ruby with RubyInstaller. Well now, Huw has a newly updated version, and he's published it with No Starch Press.

11 messages 2011/07/12

[#385207] Creating a range of directories — Simon Harrison <simon@...>

I'm wanting to create a range of directories with a prefix, like the

13 messages 2011/07/13

[#385276] Is there a more efficient way to remove data from a string? — Eddie Catflap <catflaporama@...>

Hi

9 messages 2011/07/15

[#385297] Help needed for a new release of text-hyphen — Austin Ziegler <halostatue@...>

I've had folks asking me for a release of text-hyphen that works with

12 messages 2011/07/15

[#385326] Comparing hashes based on their keys — Stefano Mioli <stefano.mioli@...>

Hi list,

13 messages 2011/07/15

[#385342] moving a 1.8.6 install? — Roggie Boone <rogboone@...>

Is it possible to move the gems from a Ruby 1.8.6 install on an (old)

10 messages 2011/07/15

[#385410] Better name for #zip_with — Intransition <transfire@...>

Any ideas for a better name for:

13 messages 2011/07/18

[#385452] Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...>

I want to write a Ruby driver that handles the feed from A CCTV camera.

23 messages 2011/07/18
[#385459] Re: Ruby + USB + CCTV Camera Driver? — William Rutiser <wruyahoo05@...> 2011/07/18

On 2011-07-18 1:00 PM, Bob Carpenter. wrote:

[#385461] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/18

William Rutiser wrote in post #1011466:

[#385462] Re: Ruby + USB + CCTV Camera Driver? — Hassan Schroeder <hassan.schroeder@...> 2011/07/18

On Mon, Jul 18, 2011 at 11:51 AM, Bob Carpenter. <rgc3679@yahoo.com> wrote:

[#385464] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/18

Hassan Schroeder wrote in post #1011472:

[#385471] Re: Ruby + USB + CCTV Camera Driver? — Hassan Schroeder <hassan.schroeder@...> 2011/07/18

On Mon, Jul 18, 2011 at 12:58 PM, Bob Carpenter. <rgc3679@yahoo.com> wrote:

[#385474] Re: Ruby + USB + CCTV Camera Driver? — Phillip Gawlowski <cmdjackryan@...> 2011/07/18

On Tue, Jul 19, 2011 at 12:18 AM, Hassan Schroeder

[#385477] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/19

Phillip Gawlowski wrote in post #1011503:

[#385509] A beginner question. — "Cajus A." <cajus_@...>

Hi i'm trying to write and example program where you speak to a

12 messages 2011/07/19

[#385542] Splitting strings — Ryan Mckenzie <ryan@...>

Hi all,

18 messages 2011/07/19

[#385565] error building ruby p290 — Dev Guy <devguy.ca@...>

I get the following build error on my Linux box while trying to build

12 messages 2011/07/20

[#385629] Are Job Ads OK? — Lee Hughes <lee@...>

Is it OK to post Ruby job ads on this forum?

12 messages 2011/07/21

[#385847] String manuplation example — kotin 76 <kotin76@...>

Hi,

15 messages 2011/07/27

[#385860] Counting lines of code in a ruby code file ignoring method code lines in the process — Harry Truax <htruax@...>

Hello,

8 messages 2011/07/27

[#385936] Help in Pointer — Tridib Bandopadhyay <tridib04@...>

Hello

18 messages 2011/07/29

[#386012] Ruby a "4th generation language"? Credible sources? — Albert Schlef <albertschlef@...>

I've noticed that Wikipedia says that "C#, Java" are 3'rd generation

13 messages 2011/07/31

[#386050] system stack error in ObjectSpace.each_object — luke gruber <luke.gru@...>

Hey guys, I'm just starting to mess around with metaprogramming in Ruby,

14 messages 2011/07/31
[#386052] Re: system stack error in ObjectSpace.each_object — Josh Cheek <josh.cheek@...> 2011/07/31

On Sun, Jul 31, 2011 at 4:29 PM, luke gruber <luke.gru@gmail.com> wrote:

[#386055] Re: system stack error in ObjectSpace.each_object — luke gruber <luke.gru@...> 2011/08/01

> Typically, SystemStackError is due to recursing for too long, perhaps I

[#386058] Re: system stack error in ObjectSpace.each_object — Robert Klemme <shortcutter@...> 2011/08/01

On Mon, Aug 1, 2011 at 3:56 AM, luke gruber <luke.gru@gmail.com> wrote:

[ANN] quickl 0.3.0 Released

From: Bernard Lambeau <blambeau@...>
Date: 2011-07-29 09:42:06 UTC
List: ruby-talk #385949
quickl version 0.3.0 has been released!

Helper to create commandline ruby programs

* <http://github.com/blambeau/quickl>

Quickl helps you creating commandline ruby programs. From simple commands
with
options to complex delegators with subcommands, global and local options.

This release mostly cleans internals and makes a step toward the public
API.
Upgrading should require your attention, see below. Quickl follows semantic
versioning (http://semver.org/) and has not reached 1.0.0. Best effort is
made
not to break your code when upgrading the tiny version. You should require
quickl as follows:

    gem "quickl", "~> 0.3.0"

Changes:

# 0.3.0 / 2011-07-29

* Upgrading from 0.2.x

This release is mostly compatible with the 0.2.x branch, but may require a
few
changes to your code to avoid deprecation warnings and prepare for 0.4.0
that
will break if you don't. From the most to the less likely:

  * If you originally copied the Help command from examples, please do it
again
    on the new version. The execute method of Help should be:

      sup = Quickl.super_command(self)
      sub = (args.size != 1) ? sup : Quickl.sub_command!(sup, args.first)
      puts Quickl.help(sub)

  * If you use `usage`, `help`, `overview` or any similar methods in the
context
    of a command (instance or class, except in rdoc-based documentation),
please
    use the equivalent module methods provided by Quickl.

  * If you use methods provided by the Robustness module, notably
valid_read_file!
    and has_subcommand!, please use module methods provided by Quickl
instead.

  * If you override Command#_run, please now override Command#run instead.

  * If you rescue SystemExit when executing Command#run, please now rescue
    Quickl::Error (or any subclass) instead. No change is required if you
rescue
    when executing Command.run, or if you don't rescue on errors at all.

* Bug fixes

  * A single dash option (e.g. -v) is now correctly recognized by a
Delegator
    command ("No such command -v" was previously raised)

* Enhancements

  * Added
Quickl.[command_name,super_command,sub_command,help,overview,usage,
    documentation] as convenient query methods on commands and their
hierarchy.
    These helpers work both on command instances and on command classes and
will
    be part of the public API when stabilized (the same methods on the
Command
    class should be considered private from now on; if you use them, please
    upgrade).

  * Added Quickl.parse_commandline_args that converts a commandline string
to
    an ARGV array. This is mainly provided for testing purposes.

  * Added Quickl.split_commandline_args to split ARGV on the "--" option
    separator

  * Command#parse_options now accepts a second option that allows specifying
    the behavior in presence of '--' option separators. Default behavior is
    backward compatible and conforms to getopt(1). :keep and :split can be
used
    to keep separators in result, or split the latter on separators. Thanks
to
    Brian Candler for pointing to getopt(1) for specification.

* Deprecations

The following methods are deprecated and will be removed in 0.4.0 (run with
ruby -w to see where refactoring is needed). Examples have been adapted and
can
be copy-pasted safely.

  * Command#method_missing auto-delegation from command instances to
command
    classes is deprecated. Please use explicit calls to command methods on
the
    class itself, or tools provided by the Quickl module itself.

  * The robustness methods available in command instances, notably
valid_read_file!
    and has_command! are deprecated and replaced by convenient helpers
available
    as module methods of Quickl itself. The Robustness module will disappear
in
    0.4.0.

* Possibly hurting changes to the internals

  * An unused and undocumented `args` attribute (attr_reader) has been
removed
    from Single commands instances.

  * No default behavior is implemented in Command#run anymore (call was
    previously delegated to _run and surrounded in a begin/rescue/end
block).
    The method is now directly implemented in Single and Delegator
subclasses.
    This may break your code if it redefines _run.

  * Error catching is done in Command.run instead of Command#run. The way
to
    specify how to react to errors did not change.

In This Thread

Prev Next