"Ernest W. Durbin III" <[email protected]> wrote:
> On Fri, Nov 1, 2013 at 12:50 PM, Eric Wong <[email protected]> wrote:
> > "Ernest W. Durbin III" <[email protected]> wrote:
> >> This renables the ability for Ruby 1.8 environments to perform reexecs
> >
> > Is this for Ruby 1.8.6? I've only tested on 1.8.7,
> > I haven't had a 1.8.6 installation in a while.
> >
>
> I'll admit that the reason I need it is for a Ruby 1.8.6 environment...
OK (wow!). I've been pondering dropping 1.8 entirely, but I think I'll
keep it for now since CentOS 6.x still uses it
Anyways, was that the only 1.8.6-incompatible thing we did?
> However, Ruby 1.8.7 does not have support for that Hash constructor
> either it simply fails silently and in a bug prone manner.
>
> ```
> [ernestd@ewd3do ~]$ ruby --version
> ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-linux]
> [ernestd@ewd3do ~]$ irb
> irb(main):001:0> thing = Hash[ [ 'foo', 'bar' ], ['fizz', 'buzz'] ]
> => {["foo", "bar"]=>["fizz", "buzz"]}
Actually, on 1.8.7, unicorn does the following (note the extra outer array)
irb(main):001:0> thing = Hash[ [ [ 'foo', 'bar' ], ['fizz', 'buzz'] ] ]
=> {"fizz"=>"buzz", "foo"=>"bar"}
so it was fine
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying