[#8136] Confused exception handling in Continuation Context — "Robert Dober" <robert.dober@...>

Hi all

13 messages 2006/07/06

[#8248] One-Click Installer: MinGW? or VC2005? — "Curt Hibbs" <ml.chibbs@...>

I just posted this to ruby-talk. But I would also like to discuss this

33 messages 2006/07/18
[#8264] Re: One-Click Installer: MinGW? or VC2005? — Charlie Savage <cfis@...> 2006/07/19

From my experience using both tool chains on Windows (for the ruby-prof

[#8266] Re: One-Click Installer: MinGW? or VC2005? — "Curt Hibbs" <ml.chibbs@...> 2006/07/19

Tim, I'm going to top reply since your post was so long. I'm interested in

[#8267] Re: One-Click Installer: MinGW? or VC2005? — Charlie Savage <cfis@...> 2006/07/19

> Tim, I'm going to top reply since your post was so long. I'm interested in

[#8271] my sandboxing extension!! — why the lucky stiff <ruby-core@...>

I have (what feels like) very exciting news. I finally sat down to code up my

17 messages 2006/07/19

[#8430] Re: doc patch: weakref. — "Berger, Daniel" <Daniel.Berger@...>

> -----Original Message-----

19 messages 2006/07/28
[#8434] Re: doc patch: weakref. — Yukihiro Matsumoto <matz@...> 2006/07/29

Hi,

[#8436] Re: doc patch: weakref. — Daniel Berger <djberg96@...> 2006/07/29

Yukihiro Matsumoto wrote:

[#8437] Re: doc patch: weakref. — Mauricio Fernandez <mfp@...> 2006/07/29

On Sat, Jul 29, 2006 at 07:37:24PM +0900, Daniel Berger wrote:

[#8441] Inconsistency in scoping during module_eval? — "Charles O Nutter" <headius@...>

I have the following code:

18 messages 2006/07/30
[#8442] Re: Inconsistency in scoping during module_eval? — nobu@... 2006/07/30

Hi,

[#8443] Re: Inconsistency in scoping during module_eval? — "Charles O Nutter" <headius@...> 2006/07/30

Why does this:

[#8445] Re: Inconsistency in scoping during module_eval? — Yukihiro Matsumoto <matz@...> 2006/07/30

Hi,

[#8454] Re: Inconsistency in scoping during module_eval? — "Charles O Nutter" <headius@...> 2006/07/31

So to clarify...

Re: Another look at RSS...

From: Hugh Sasse <hgs@...>
Date: 2006-07-19 15:29:12 UTC
List: ruby-core #8284
On Thu, 20 Jul 2006, Kouhei Sutou wrote:

> Hi,
> 
> In <Pine.GSO.4.64.0607181759140.20906@brains.eng.cse.dmu.ac.uk>
>   "Another look at RSS..." on Wed, 19 Jul 2006 02:04:43 +0900,
>   Hugh Sasse <hgs@dmu.ac.uk> wrote:
> 
> > I've had another look at lib/rss and the patch below is mostly doc
> > changes, but I have also changed the method to_class_name.
> 
> Thanks, Hugh. I applied your patch expect some changes. See
> the below.
> 
> >                                                             My testing
> > with underscored names shows that it behaves the same, so hopefully 
> > I have not broken anything.  I think the code is clearer.  
> 
> You can check whether your changes breaks something or not
> by "/installed/ruby test/runner test/rss".

OK...
> 
> > --- ./lib/rss/utils.rb.orig	2006-06-18 14:42:43.000000000 +0100
> > +++ ./lib/rss/utils.rb	2006-07-18 17:32:24.047018000 +0100
> 
> >      def to_class_name(name)
> > -      name.split(/_/).collect do |part|
> > -        "#{part[0, 1].upcase}#{part[1..-1]}"
> > -      end.join("")
> > +      name.split(/_/).collect{|part| part.capitalize}.join("")
> >      end
> 
> This changes was rejected because this changes breaks
> current API. For example, 'skipDays' should be converted to
> 'SkipDays' not 'Skipdays'.

Oh, sorry. Missed that case.
> 
> > --- ./lib/rss/parser.rb.orig	2006-07-13 12:35:17.000000000 +0100
> > +++ ./lib/rss/parser.rb	2006-07-18 17:50:33.094732000 +0100
> 
> >      def normalize_rss(rss)
> >        return rss if maybe_xml?(rss)
> >  
> >        uri = to_uri(rss)
> >        
> >        if uri.respond_to?(:read)
> > -        uri.read
> > +        uri.read        # FIXME? - do we care if the URI is tainted?
> 
> I can't judge whether this comment is needed or not. So, I
> rejected.

Well, it was by way of communication with you :-) -- the other paths
through there check for tainting. Files are external to the program
so taint gets checked.  My point was: URIs are external too.  I was
just thinking that maybe they could come from an untrustworthy source.
> 
> >        elsif !rss.tainted? and File.readable?(rss)
> >          File.open(rss) {|f| f.read}
> >        else
> 
> Thanks,
> --
> kou
> 
        Thank you
        Hugh
> 


In This Thread

Prev Next