Bluebie, Jenna
2008-Jul-21 00:46 UTC
Backwards compatibility broken with URL()... for the better?
In 1.5, to get a full url to ones camping app, you had to do: this_url = ''http:'' + URL(''/some_action'').to_s Useful, for instance, in my openid consumer sample code, to give the openid doodad a return address But in camping 1.9 off jud''s gems, URL now returns actual url''s with http: and everything at their fronts, which is rather snazzy... but breaking. Iunno, I kinda like this new fancy URL method that returns real URL''s O_o Jud''s gem''s session.rb still is including the IP address in the session hashing. I don''t think we should recommend anyone use those gems till it''s updated, I can only imagine how painfully frustrating it must be for user''s in ISP''s using AOL style load balanced transparent proxies who no matter what they do, can''t get cookie session support to work in camping, with no errors or explanations.
Magnus Holm
2008-Jul-21 11:01 UTC
Backwards compatibility broken with URL()... for the better?
I have no problem with breaking backwards compatibility. After all, Camping 2.0 is a major upgrade. About session.rb, even though it was I who wrote the code, _why merged it (despite your warnings) and he''s the to remove it :-) On Mon, Jul 21, 2008 at 2:46 AM, Bluebie, Jenna <blueberry at creativepony.com> wrote:> In 1.5, to get a full url to ones camping app, you had to do: > > this_url = ''http:'' + URL(''/some_action'').to_s > > Useful, for instance, in my openid consumer sample code, to give the openid > doodad a return address > > But in camping 1.9 off jud''s gems, URL now returns actual url''s with http: > and everything at their fronts, which is rather snazzy... but breaking. > Iunno, I kinda like this new fancy URL method that returns real URL''s O_o > > Jud''s gem''s session.rb still is including the IP address in the session > hashing. I don''t think we should recommend anyone use those gems till it''s > updated, I can only imagine how painfully frustrating it must be for user''s > in ISP''s using AOL style load balanced transparent proxies who no matter > what they do, can''t get cookie session support to work in camping, with no > errors or explanations. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-- Magnus Holm
Bluebie, Jenna
2008-Jul-22 02:33 UTC
Backwards compatibility broken with URL()... for the better?
I thought your gems were based on your tree, not _why''s? My mistake?
Magnus Holm
2008-Jul-22 10:04 UTC
Backwards compatibility broken with URL()... for the better?
Yes and no. The gems are based on my tree, but I''ll always try to keep my tree equal to _why''s. If there''s some commits I''m not sure if he will merge, I put them in a branch (so I don''t mess up the master). On Tue, Jul 22, 2008 at 4:33 AM, Bluebie, Jenna <blueberry at creativepony.com> wrote:> I thought your gems were based on your tree, not _why''s? My mistake? > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-- Magnus Holm