Re: Re-implementing Autoload

2013-01-08 Thread Intransition
I was able to implement a hack: # if module has no name, try to parse out a namespace from #insepct. # (yes, this is a hack!) unless parent if name.nil? if /#/ =~ self.inspect parent = Object.const_get($1) rescue nil end end end That seems to

Re-implementing Autoload

2013-01-08 Thread Intransition
Finally accepting the fact that autoload will never be fixed (i.e. there it no way to override require to effect autoload's behavior) I decided to try re-implementing autoload in Ruby itself. So here's what I arrived at: https://github.com/rubyworks/autoload/blob/master/lib/autoload.rb I t

[SEC][ANN] Rack 1.4.2, a modular Ruby webserver interface

2013-01-08 Thread jftucker
Hello, Today we are proud to announce the release of Rack 1.4.2. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and

[SEC][ANN] Rack 1.2.6, a modular Ruby webserver interface

2013-01-08 Thread jftucker
Hello, Today we are proud to announce the release of Rack 1.2.6. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and

[SEC][ANN] Rack 1.3.8, a modular Ruby webserver interface

2013-01-08 Thread jftucker
Hello, Today we are proud to announce the release of Rack 1.3.8. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and

[SEC][ANN] Rack 1.4.3, a modular Ruby webserver interface

2013-01-08 Thread jftucker
Hello, Today we are proud to announce the release of Rack 1.4.3. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and

[SEC][ANN] Rack 1.3.7, a modular Ruby webserver interface

2013-01-08 Thread jftucker
Hello, Today we are proud to announce the release of Rack 1.3.7. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and

[SEC][ANN] Rack 1.1.4, a modular Ruby webserver interface

2013-01-08 Thread jftucker
Hello, Today we are proud to announce the release of Rack 1.1.4. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and

Re: ruby 1.9.3p362 ranges as conditions bug?

2013-01-08 Thread Heesob Park
Hi, 2013/1/8 tamouse mailing lists : > On Mon, Jan 7, 2013 at 12:01 AM, Matma Rex wrote: >> On Mon, 07 Jan 2013 05:26:43 +0100, tamouse mailing lists >> wrote: >> >>> On Sun, Jan 6, 2013 at 9:09 PM, windwiny wrote: vs = (1..9).to_a => [1, 2, 3, 4, 5, 6, 7, 8, 9] v1 = vs

Re: How to identify whether a line of code will return?

2013-01-08 Thread Robert Klemme
On Tue, Jan 8, 2013 at 4:46 AM, Josh Cheek wrote: > Hi, I want to be able to identify whether a line of code will return, > because I want to modify it to capture it's return value. If it returns, > this results in a syntax error: Why do you need to modify the line? Can't you catch it at the cal