similar to: Camping 2.0 - What''s left?

Displaying 20 results from an estimated 11000 matches similar to: "Camping 2.0 - What''s left?"

2008 May 21
32
Rack, Camping 2.0++
=== 1. Camping on Rack === I''ve just finished rewriting Camping to use Rack in the "core". I got rid of (a little less) than 1kB in camping.rb and removed lots of un-necessary files (lib/server/*.rb, fastcgi.rb & mongrel.rb). bin/camping does now only provide WEBrick, Mongrel and console-support and should only be used in development. It uses Rack::ShowExceptions to catch
2008 Jun 03
8
@@state_secret
I was having some issue getting the class variables in Camping::Session to work with some old apps, so I''ve changed @@state_secret to a method. module Blog include Camping::Session def state_secret; "kxxxx" end end Also, merged some of zimbatm''s patches. And trying to revive the Junebug wiki <http://github.com/why/junebug> since it''s still
2008 May 19
6
Sample Code, quick simple openid auth
You''ll need to install the ''openid'' gem for this, and require it in your camping app: class Login < R ''/login'' def get this_url = ''http:'' + URL(''/login'').to_s unless input.finish.to_s == ''1'' # start doing the auth here begin
2008 Jun 06
2
Messy Cookies
It looks like everyone has tried to fix the cookies lately, and no-one managed to get it 100% correctly. The current implementation doesn''t set the path correctly, and you can''t use @cookies in a #service-overload. Qwzybug''s patch fixed only the sessions. Jenna''s patch won''t allow to set complex cookies (@cookies.key = {:path => "/path",
2008 May 23
8
An issue for consideration
We''ve just come across an issue for consideration. I am avoiding some words which would allow people to find this message in an internet search who have questionable intentions, but wish to communicate a strong sense of caution. Consider someone who adds extra methods to their controller which they use in their main get/post methods to do things or to get secret data. Consider
2008 Jun 06
7
Attention Judofyr: Broken cookies in 2.0
Hey Judofyr! Fix this! When someone sets a cookie using @cookies.something = ''data'' it should be set with the path going to the camping app''s root, not with no path, otherwise only that controller with the same parameters will ever see the cookie again! Please change this code: > @cookies.each do |k, v| > @response.set_cookie(k, v) if o[k] != v > end
2008 Jul 19
2
Resolved: Apache + CGI/FastCGI + mod_rewrite
This is the last time I try to fix something in the middle of the night! Feel free to call me a Stupid Snake, ''cause this has been messy. Anyway, I think I''ve finally solved this. Here it is: http://pastie.org/237138 :-) -- Magnus Holm
2011 Oct 13
2
how to catch 404s?
How can I hide/catch the "Camping problem! /xxx not found" pages? It would be great to define my own handler instead, or simply redirect to the root of my app. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20111013/ba7145ee/attachment.html>
2008 Jul 10
1
AR Sessions
Hi all, I have a little camping micro-blog that''s working well with the cookie session store, but falls over when I try to use the AR session store. The changes I made were: require ''camping/session'' becomes require ''camping/ar/session'' module Blog; include Camping::Session; end becomes module Blog; include Camping::ARSession; end and I did the
2008 May 17
4
Setting cookies in service overloader thingo
I''m implementing a simpler version of the Cookie Session Store in Rails 2.0. If you know what that is, skip the next paragraph. A cookie session store stores the session data inside cookies, on the client, and signs them using a secret string, hashed together. The user can decode the cookie easily if they know much about computers and see what''s inside, but they
2009 Mar 29
5
Rack::Lint::LintError with latest camping and rack
I''m trying to use Camping from Magnus'' repo (1.9.300) but running the blog.rb example (or anything for that matter) gives me Rack::Lint::LintError at / Content-Length header was 0, but should be 548 Ruby C:/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb: in assert, line 16 Web GET localhost/ There are no errors on the camping output so I suspect something has
2008 May 22
2
Camping-list Digest, Vol 23, Issue 8
Removed 25% of the framework? Gosh, I wish _why wasn''t so darn verbose... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20080522/7612c03e/attachment.html>
2012 May 02
17
ChillDB License
A few of you sounded interested in using it. I haven''t explicitly put a software license on it, so I guess it''s not technically FOSS yet. What licenses are good? BSD? Public Domain? ? Jenna -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20120502/96b87580/attachment.html>
2008 May 18
1
Problem with cookies in CGI mode
So it took me ages to figure out how to get cookies set in my app, and here was the problem. I''m using camping''s built in CGI support, and with that you can have something like domain.com/blah/app.rb and that will go to your / route, which is okay, except that the path the cookies are set with is domain.com/blah/app.rb/ So if you try to use that url, none of your
2009 Jan 24
1
Do we still need to be alert when on SQLite3?
Anyone knows if we still need to follow the instructions at http://web.archive.org/web/20080113055731/code.whytheluckystiff.net/camping/wiki/BeAlertWhenOnSqlite3, or if the stable release is good enough? //Magnus Holm -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20090124/c31af77a/attachment.html>
2007 Oct 05
8
Cookie session handling?
Hi, I and a few folks on #camping thought it would be nice to have either cookie based or file based session handling. This would eliminate the need for creating a sessions table in the database (or a sequence), which feels too heavy for a lightweight framework like Camping anyway. Plus, we can more easily avoid nasty adapter errors. :) The general consensus was to create a separate
2007 Nov 18
14
css image url''s and :img problem
Hi, i have this controller class to serve static files. It works well for the stylesheet file under a /static directory, locating it, but the images referenced in the stylesheet do not appear. They are in the same /static folder, next to the stylesheet.css file. link :rel => ''stylesheet'', :href => R(Static, ''stylesheet.css''), :type =>
2008 May 28
3
Plug-in support for Camping Apps
# camping_plugin.rb # plug-in support for Camping Apps # require ''lib/camping_plugin'' # override R helper method to your liking :-) module Camping module PluginHelpers def R_with_module(c,*g) p,h=/\(.+?\)/,g.grep(Hash) g-=h raise "bad route" unless u = c.urls.find{|x| break x if x.scan(p).size == g.size &&
2011 Dec 06
3
Riak on Camping
Good day, does anyone here have a clue on how to make use of the NoSQL database "Riak" with Camping? I am building my website and Riak seems like pretty much the ultimate database! This would probably ruin every little feature in ActiveRecord, I don''t think I''d be able to do any has_many''s or belongs_to but I''d LOVE to be proven wrong. As far as
2007 Oct 09
4
Camping and sessions proposal.
Hi Campers, from the discussions gathered around, the current Camping sessions don''t seem to be satisfying. ActiveRecord doesn''t seem to handle hashid as an identifier, plus it doesn''t seem to be fully consistent across the various RDBMS. On the other hand, the scope of the project does not permit to implement all kind of client persistence. Secure sessions with