Displaying 11 results from an estimated 11 matches for "bluebie".
2008 Jun 06
7
Attention Judofyr: Broken cookies in 2.0
...on that rack''s api''s are a lot less fun to code to than camping''s.
If someone wants to tell me how git works, I''ll be happy to patch
these problems myself, provided it isn''t a stressful or excessively
difficult thing to do... My username on there is Bluebie. I have no
idea how to use it.
?
Blueberry the fictional pony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/camping-list/attachments/20080606/ea54149a/attachment-0001.html>
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
...Jenna''s patch won''t allow to set complex cookies (@cookies.key = {:path =>
"/path", :value => "value", :expires => Time.now + 900}) and won''t work
properly when you use #method_missing (which allows you to do
Blog.get(:Controller)).
So I took Bluebie''s code and rewrote it a bit. I moved some logic (which
currently is in #service) from #call to Base#to_a. So even if you''re not using
Rack, you need to call #to_a in order to clean things up.
The code is available in the proper_cookie-branch:
http://github.com/judofyr/camping/com...
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 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 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
2010 Aug 19
0
Camping 2.1 - ERB, Haml, 1.9, bug fixes, new website!
...and it''ll
render that instead of using Markaby. You can still use Markaby of course!
If you want to change any options for either ERB or Haml, you can use #set:
module App
set :haml, { :escape_html => true }
set :erb, { :trim => "%" }
end
~> New homepage
Bluebie has designed an excellent new homepage for Camping:
http://camping.rubyforge.org/
It should have links to pretty much everything you need to know about
Camping. As soon as possible we''ll also try to integrate it with the GitHub
wiki and make everything more easily editable, so you can...
2008 May 24
19
Camping 2.0 - What''s left?
I''ve just sent a pull-request to _why with my changes[1] and here is some
things that I think needs to be done before a (possible) release:
* The cookie session is named Camping::Session and is placed in
camping/session.rb. Maybe this should be called Camping::CookieSession or???
* The ActiveRecord session is named Camping::ARSession and is placed in
camping/ar/session.rb. Maybe it
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
2008 May 19
0
Error in the source code docs
on like 257 of camping-unabridged.rb:
> # "http" + URL("/view/12") #=> "http://test.ing/blog/view/12"
is wrong, the string should be "http:", or the result will be "http//
test.ing/blob/view/12"
?
Jenna ?Who Isn''t a? Fox
2008 Jun 06
0
Quickie: URL Shortener''s, some code.
The wiki won''t let me make new pages anymore, so I put it on my own
site.
http://creativepony.com/journal/scripts/url-shorteners/
I hope it helps someone!
?
Jenna