actual number of bytes received, the FreeBSD version returns the receiving
buffer size instead. Applications inspecting the returned length for error
checking will fail. My patch is based on this excerpt from FreeBSDs
/usr/src/sys/dev/usb/usb.h.
PR: ports/128549
Submitted by: ladan (maintainer)
non-blocking I/O programming. It tries to bring back the
simplicity of the declarative programming style, that is
only otherwise available when one employs threads,
coroutines, or co-processes.
PR: ports/128652
Submitted by: Vany Serezhkin <ivan@serezhkin.com>
fattr.rb supercedes attributes.rb as that library,
even though it added only one method to the global
namespace, collided too frequently with user code
in particular rails' code.
WWW: http://codeforpeople.com/lib/ruby/fattr/
PR: ports/128662
Submitted by: Wen Heping <wenheping at gmail.com>
arrayfields works by adding only a few methods to arrays,
namely #fields= and fields, but the #fields= method is
hooked to extend an array on a per object basis.In
otherwords __only__ those arrays whose fields are set
will have auto-magical keyword access bestowed on
them - all other arrays remain unaffected.arrays with
keyword access require much less memory when compared
to hashes/objects and yet still provide fast lookup and
preserve data order.
WWW: http://codeforpeople.com/lib/ruby/arrayfields/
PR: ports/128663
Submitted by: Wen Heping <wenheping at gmail.com>
- unification of option, argument, keyword, and environment
parameter parsing
- auto generation of usage and help messages
- support for mode/sub-commands
- io redirection support
- logging hooks using ruby's built-in logging mechanism
- intelligent error handling and exit codes
- use as dsl or library for building Main objects
- parsing user defined ARGV and ENV
- zero requirements for understanding the obtuse apis of any
command line option parsers
- leather pants
In short main.rb aims to drastically lower the barrier to writing
uniform command line applications.
WWW: http://codeforpeople.com/lib/ruby/main/
PR: ports/128664
Submitted by: Wen Heping <wenheping at gmail.com>
an object oriented manner. Grit gives you object model access to your git
repository. Once you have created a repository object, you can traverse it
to find parent commit(s), trees, blobs, etc.
WWW: http://grit.rubyforge.org/
PR: ports/128592
Submitted by: Daniel Roethlisberger <daniel at roe.ch>
an object oriented manner. Grit gives you object model access to your git
repository. Once you have created a repository object, you can traverse it
to find parent commit(s), trees, blobs, etc.
This is the GitHub version of the grit gem called mojombo-grit.
WWW: http://grit.rubyforge.org/
PR: ports/128736
Submitted by: Daniel Roethlisberger <daniel at roe.ch>
manipulate Git repositories. Currently it is a wrapper around
the git binary, but there are plans to switch to C bindings at
some point in the future.
WWW: http://jointheconversation.org/rubygit/
PR: ports/128734
Submitted by: Daniel Roethlisberger <daniel at roe.ch>
- Use HAS_CONFIGURE instead of GNU_CONFIGURE since provided script does
not look like autotools generated
- Drop custom do-configure target, provide correct CONFIGURE_SCRIPT and
CONFIGURE_ARGS values instead
- Do not say LOCALBASE when PREFIX is meant
- Canonicalize Makefile header, wrap excessively long lines
- Reformat port description