[#10157] Re: Including classes — Pit Capitain <pit@...>
Ola Bini schrieb:
[#10167] SVN revision corresponding to 1.8.5_p12? — Charles Oliver Nutter <charles.nutter@...>
Simple question: what SVN revision corresponds to the 1.8.5_p12 release?
[#10185] Ruby 1.9: Why the change to the return values of #instance_variables? — "Austin Ziegler" <halostatue@...>
I have been preparing a release of Transaction::Simple 1.4 and want to
[#10193] String.ord — David Flanagan <david@...>
Hi,
Hi,
Yukihiro Matsumoto wrote:
David Flanagan wrote:
Daniel Berger wrote:
On 2/6/07, David Flanagan <david@davidflanagan.com> wrote:
Nikolai Weibull wrote:
On 2/6/07, David Flanagan <david@davidflanagan.com> wrote:
Nikolai Weibull wrote:
Quoting david@davidflanagan.com, on Wed, Feb 07, 2007 at 09:10:52AM +0900:
On 2/7/07, Sam Roberts <sroberts@uniserve.com> wrote:
Nikolai Weibull wrote:
Hi,
On 2/6/07, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
Hi --
On 2/6/07, dblack@wobblini.net <dblack@wobblini.net> wrote:
[#10230] Test::Unit::AutoRunner#parse_args bug, attributable to optparse documentation. — Mauricio Fernandez <mfp@...>
[#10254] uninitialized variable in function rb_syswait() — <noreply@...>
Bugs item #8538, was opened at 2007-02-09 17:25
On Sat, Feb 10, 2007 at 02:25:43AM +0900, noreply@rubyforge.org wrote:
[#10255] String:upto loops forever if argument is modified inside block — <noreply@...>
Bugs item #8539, was opened at 2007-02-09 17:27
[#10257] coredump when invoking Kernel:syscall — <noreply@...>
Bugs item #8541, was opened at 2007-02-09 17:31
On Sat, Feb 10, 2007 at 02:31:48AM +0900, noreply@rubyforge.org wrote:
[#10259] Segmentation fault: Ruby 1.8.5 Under VC++ express 2005 — "z wen" <zhimin.wen@...>
Hi
Hell,
Hello,
On 2/10/07, Masaki Suketa <masaki.suketa@nifty.ne.jp> wrote:
[#10276] fastthread now default in ruby_1_8 — "Akinori MUSHA" <knu@...>
Hi,
[#10284] Can't seem to run tests? — "Farrel Lifson" <farrel.lifson@...>
Hi there,
[#10288] Socket library should support abstract unix sockets — <noreply@...>
Bugs item #8597, was opened at 2007-02-13 16:10
On Wed, Feb 14, 2007 at 12:10:37AM +0900, noreply@rubyforge.org wrote:
Hi,
On Wed, Feb 14, 2007 at 08:38:50AM +0900, Yukihiro Matsumoto wrote:
On Wed, Feb 14, 2007 at 12:10:37AM +0900, noreply@rubyforge.org wrote:
[#10290] URI::Generic#userinfo — "Jonas Pfenniger" <zimbatm@...>
Hello,
Those are not errors. Username and password are not allowed in HTTP
[#10321] File.basename fails on Windows root paths — <noreply@...>
Bugs item #8676, was opened at 2007-02-15 10:09
Hi,
On 5/12/07, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
On 5/12/07, Austin Ziegler <halostatue@gmail.com> wrote:
Nikolai Weibull wrote:
[#10323] Trouble with xmlrpc — James Edward Gray II <james@...>
Some of the Ruby code used by TextMate makes use of xmlrpc/
> -----Original Message-----
On Feb 15, 2007, at 1:29 PM, Berger, Daniel wrote:
On Feb 15, 2007, at 1:33 PM, James Edward Gray II wrote:
On Feb 16, 2007, at 7:49 AM, James Edward Gray II wrote:
At Tue, 20 Feb 2007 22:33:08 +0900,
On Feb 20, 2007, at 7:50 AM, Akinori MUSHA wrote:
While I am complaining about xmlrpc, we have another issue. It's
James Edward Gray II wrote:
On Feb 16, 2007, at 12:08 PM, Alex Young wrote:
James Edward Gray II wrote:
On Feb 16, 2007, at 4:27 PM, Alex Young wrote:
On Feb 16, 2007, at 5:08 PM, James Edward Gray II wrote:
James Edward Gray II wrote:
[#10334] make Test::Unit output more Emacs friendly format — Kouhei Sutou <kou@...>
Hi,
[#10341] matz/knu: Requesting committer privileges to add Win32 NTLM authentication to net/http — "Justin Bailey" <jgbailey@...>
Matz, Mr. Musha, and All,
[#10357] Ruby 1.8.6 preview1 has been released — "Akinori MUSHA" <knu@...>
Hi,
[#10372] Stateful I/O interface — "Tony Arcieri" <tony@...>
Has anyone ever suggested adding a stateful I/O multiplexing interface which
[#10387] vendor_ruby support — Marcus Rueckert <mrueckert@...>
Hi,
[#10397] Ruby 1.8.5 not installing a working digest.rb on MacOSX — "Ryan Waldron" <ryan.waldron@...>
While trying to install a Rails app on my Mac (10.4 Tiger), I ran into
[#10413] Support for multiple-files breakpoint-management with Emacs — Martin Nordholts <enselic@...>
Hello!
Sorry for misformatting. This time it should be OK (enclosed in
It appears as if the debugger doesn't support 'b file.rb:25', but it
[#10414] Ruby 1.8.6 preview2 has been released — "Akinori MUSHA" <knu@...>
Hi,
On 2/24/07, Akinori MUSHA <knu@idaemons.org> wrote:
[#10420] Test::Unit shows result even if interrupted — Kouhei Sutou <kou@...>
Hi,
Kouhei Sutou <kou@cozmixng.org> writes:
[#10437] MIME decoding confused by non-MIME characters — Brian Candler <B.Candler@...>
Could someone who has bleeding-edge Ruby installed please test the
[#10442] Latest Update to RHG — Charles Thornton <ceo@...>
I am releasing the lastest version of the Ruby Hacker's Guide.
Hi,
[#10445] PATCH: Emacs support for 'ruby-debug' (rdebug) : rdebug.el — Martin Nordholts <enselic@...>
Hello,
This is a patch against trunk that also changes ./misc/README. The patch
[#10446] Potential RCR?: Array#join with block — "Farrel Lifson" <farrel.lifson@...>
Does anyone think Array#join with a block is a potential RCR?
Re: [ ruby-Patches-8309 ] add usage of uri.userinfo to open-uri.rb
Quoting shyouhei@ruby-lang.org, on Sat, Feb 03, 2007 at 06:35:53PM +0900:
> James Edward Gray II wrote:
> > I've actually wished for it a couple of times and I wish it was
> > supported. I always start with using open-uri, because I love that
> > interface, but sometimes something like this issue forces me to switch
> > to Net::HTTP. It makes me sad.
>
> Excuse me if you've already noticed; it's just FYI. Open-uri's open
> method has a variety of options to be passed as the *rest parameter.
> You can specify all the HTTP header, which proxy to use, and
> authentication info. If you want a authentication you can write:
>
> open uri, :http_basic_authentication => [user, passwd] do |io|
> ...
> end
Whats really great about open-uri, is that it allows a description of a
resource to be passed around as a string, possibly passing through code
that doesn't even know that the string isn't a file name, before finally
being passed as an argument to open-uri. Sometimes you can even convince
a library that doesn't know about http to open and read an http
resource.
I guess it could have another syntax, maybe
'{pass=secret;http://guy@example.com}'
allowing the URI to be "safe", but people are familiar with URIs.
I'm probably just being annoying, but I'll take another try at
explaining why I think the RFC is being misapplied in this context.
The RFC deprecates userinfo because the IETF is interested in protocols,
information exchanged between machines. URIs are not good ways to convey
authentication information over protocols, particularly over a network,
and most definitely a very, very bad idea in html.
IETF decisions are not always helpful when bits of IETF protocols, such
as URIs, are used outside of protocol context. Another example that
comes to mind is character set information being eliminated from
vCalendar when it was IETFized as iCalendar. They rightly point out that
character set information is already present in the MIME when calendars
are transported using HTTP or email, so is unnecessary to also have in
the calendar. But people store calendars on disk, without the MIME
wrapping. What you store on disk isn't the IETFs problem to solve, so
they removed a piece of vCalendar that was useful in that context.
In a similar spirit, they deprecated the parts of a URI that should not
be sent over a network, leaving application writers to argue with
library developers about why its useful in contexts the IETF isn't
concerned with, such as configuration files and command line arguments
to utilities.
Passwords must be stored in plaintext for a number of purposes, such as
unattended servers. It would be safer if an SSL enabled apache didn't
have the password for its RSA key stored in a configuration file, and
the administrator had to type it in by hand, and apache only stored it
temporarily in protected memory, but it would not be so practical. Its
nice to have your http server start without human intervention!
Similarly, a utility that I run as a cron job that uses http basic
authentication to scrape info from our bugtracker and mail it to myself
must know my password to access the resource. I can't pass the URI
directly to open-uri, apparently I have to do a little dance:
uri = 'http://user:pass@example.com'
p = URI.parse 'http://user:pass@example.com'
open(uri, :http_basic_authentication => [p.user, p.password]).read
The problem with this is that if the open is being done down in a
library, I can't change it, in which case I have to alias Kernel.open to
something else, and wrap it.
I guess this allows us to say "its not ruby's fault, it is Sam's" when
my bugscraper gets slashdotted as an example of "ruby is insecure", but
how likely is that kind of FUD, really? I haven't seen any security
advisories against Mutt for using URIs with userinfo:
mutt -f pop://hi:bye@pop.example.com
How about this becomes part of open-uri if we do a specific require:
require 'open-uri/things-we-warned-you-not-to-use'
Sam