Re: Camping 2.1 and whywentcamping.com

2010-06-30 Thread Magnus Holm
Awesome domain name! And as long as you include the image, it probably makes sense for new people too. You know, the password to the camping github account was actually littlewheels :-) // Magnus Holm On Wed, Jun 30, 2010 at 15:03, Sean Busbey s...@manvsbeard.com wrote: kylekyle and I have

Re: Camping 2.1 and whywentcamping.com

2010-06-30 Thread Magnus Holm
On Wed, Jun 30, 2010 at 14:57, Philippe Monnet r...@monnet-usa.com wrote: Thanks Magnus! I love the idea of working on the web site for 2.1. I am still not crazy about the web site name though - as it is not easy for people to remember if they don't know the connection with _why. I personally

API documentation good enough?

2010-07-08 Thread Magnus Holm
://www.sinatrarb.com/intro.html // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Wiki vs homepage

2010-07-08 Thread Magnus Holm
doesn't need to be more than a single page. What'd ya think? // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: using reststop with tilt

2010-07-09 Thread Magnus Holm
, o.merge(L = false)) { s } if o[L] != false lookup(L) s else // Magnus Holm On Fri, Jul 9, 2010 at 19:12, David Susco dsu...@gmail.com wrote: I do have the latest reststop gem, but the problem occurs when I'm *not* using reststop. The regular camping render method does

Re: using Tilt requires full controller reference

2010-07-21 Thread Magnus Holm
Here's an updated patch which include comments and doesn't leak on 1.9: http://gist.github.com/485111 // Magnus Holm On Wed, Jul 21, 2010 at 21:29, Magnus Holm judo...@gmail.com wrote: This is a well-known bug in Tilt: http://groups.google.com/group/tiltrb/browse_thread/thread

Re: using Tilt requires full controller reference

2010-07-21 Thread Magnus Holm
instance_eval, so this gives a significant speed improvement. The problem by defining the method under Tilt::CompileSite is that constant lookup is now relative to Tilt::CompileSite instead of your request. This is what the patch fixes. // Magnus Holm On Wed, Jul 21, 2010 at 22:53, David Susco dsu

Re: using Tilt requires full controller reference

2010-07-23 Thread Magnus Holm
Wait, forget about that Tilt patch. Try this instead: module App include X end // Magnus Holm On Fri, Jul 23, 2010 at 18:01, David Susco dsu...@gmail.com wrote: Hey Magnus, I patched the files and it's still the same thing. Here's the backtrace, let me know if you want browser dump

Re: using Tilt requires full controller reference

2010-07-23 Thread Magnus Holm
http://gems.judofyr.net/` // Magnus Holm On Fri, Jul 23, 2010 at 21:48, David Susco dsu...@gmail.com wrote: lol, at first I thought you were messing with me. X is the apps Controllers module, correct? Will I always have to do this when using Tilt? Or only until this patch makes it into a gem

Re: Camping on StackOverflow

2010-07-25 Thread Magnus Holm
I've asked some of them (even though they are several months olds) and have also subscribed to the camping-tag. I'll try to automatically forward them to the camping-list :-) // Magnus Holm On Sun, Jul 25, 2010 at 12:53, Dave Everitt dever...@innotts.co.uk wrote: Camping has a new user

Multiple inserts in ActiveRecord

2010-07-31 Thread Magnus Holm
].compact.map(:full_messages).flatten render :errors else redirect Login end But I'm wondering if there's a better way to solve this? // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: Reloading in a standard config.ru rack app (Camping 2.0)

2010-08-01 Thread Magnus Holm
! // Magnus Holm 2010/8/1 Omar Gómez omar.go...@gmail.com: Dear Camping ninjas, I've been using Camping via bin/camping and reloading works as expected OK. What I have not been able to do is to correctly setup a Camping app with reloading support in a standard config.ru rack app. Thanks

Re: two security questions

2010-08-10 Thread Magnus Holm
David, As far as I remember, this should work: module App set :haml, { :escape_html = true } end You set options (as specified in http://github.com/rtomayko/tilt/blob/master/TEMPLATES.md) by: set :EXTENSION, { :a= true, :b = false } // Magnus Holm On Mon, Aug 9, 2010 at 19:08

Re: two security questions

2010-08-10 Thread Magnus Holm
Great; sorry for the delay, but I've been here in the last days :-) http://upload.wikimedia.org/wikipedia/commons/b/bd/Preikestolen_Norge.jpg // Magnus Holm On Tue, Aug 10, 2010 at 22:50, David Susco dsu...@gmail.com wrote: Thanks, that did the trick. Got to comb through my templates now

Re: two security questions

2010-08-12 Thread Magnus Holm
Rack::Csrf.csrf_token(@env) end end end Notice that you'll have to reverse the `use`-lines. Maybe we should file that as a bug? Since it works the other way both in Rackup files and Sinatra? // Magnus Holm On Wed, Aug 11, 2010 at 21:33, David Susco dsu...@gmail.com wrote

[ANN] Camping 2.1 - ERB, Haml, 1.9, bug fixes, new website!

2010-08-19 Thread Magnus Holm
{} || || ~~~ = _whycake ~ Camping 2.1 ~ ~~~ I'm pleased to announce another release of Camping, the microframework. This time we've focused on improving the 1.9 support, adding (builtin) support for more template engines,

Re: FireFox fix for the camping.js file on the http://camping.rubyforge.org/api.html page

2010-08-22 Thread Magnus Holm
http://github.com/camping/camping/blob/master/extras/rdoc/generator/template/flipbook/js/camping.js Feel free to push directly to camping/camping :-) // Magnus Holm On Sun, Aug 22, 2010 at 17:24, Philippe Monnet r...@monnet-usa.com wrote: The API page does not work in terms of display

[camping-list-admin] Angel Robert Marquez

2010-08-24 Thread Magnus Holm
31st and I'll remove the ban so you can re-subscribe. // Magnus Holm (scoutmaster of Camping) ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: making create environmentally aware

2010-08-24 Thread Magnus Holm
Why don't add this? def App.create(env = :development) end And in production, you can call App.create(:production) yourself. // Magnus Holm On Tue, Aug 24, 2010 at 15:36, David Susco dsu...@gmail.com wrote: Not talking about having it recycle (I assume all Camping apps have a small

Re: making create environmentally aware

2010-08-24 Thread Magnus Holm
What about this: def App.create(env = (ENV['CAMPING_ENV'] || :development)) end Then you can simply set ENV['CAMPING_ENV'] = test before loading any tests. // Magnus Holm On Tue, Aug 24, 2010 at 16:21, David Susco dsu...@gmail.com wrote: Ya, that's what I'm doing. Just wondering

Re: Oh, whywentcamping.com!

2010-08-24 Thread Magnus Holm
), and somehow tag them as Ruby for whywentcamping.com We should probably update the RDoc template at camping.rubyforge.org, but I'm also open for re-thinking the reference section all-together. Is it really useful in its current form? // Magnus Holm On Tue, Aug 24, 2010 at 15:31, Jenna Fox

Re: Forcing a Response Status-Code of 40x

2010-10-03 Thread Magnus Holm
@status = 404 // Magnus Holm On Sun, Oct 3, 2010 at 18:09, Raimon Fernandez co...@montx.com wrote: Hi again, I'm trying to force a different Response Status-Code when some situations occur. Once again, in Rails I just use the :status = 404 and that's all ... Here, I suppose I must use

Re: Forcing a Response Status-Code of 40x

2010-10-03 Thread Magnus Holm
There's some info about the request/response here: http://camping.rubyforge.org/api.html#class-Camping-Controllers // Magnus Holm On Sun, Oct 3, 2010 at 22:47, Raimon Fernandez co...@montx.com wrote: Thanks John Magnus, Where I can find more info about those little magic :-) Also

Re: First Contact and a few doubts

2010-11-07 Thread Magnus Holm
' // Magnus Holm On Sun, Nov 7, 2010 at 14:16, Marcos Ricardo marc_...@hotmail.com wrote: Hi Folks, This is my first contact, and I have a few doubts. 1 - I was looking for a specific subject (see below), but couldn't find a way to search the list by topic. Does this list have a search function

Re: Rubyconf

2010-11-12 Thread Magnus Holm
I'm unfortunately not at RubyConf :-( Maybe next year? // Magnus Holm On Thu, Nov 11, 2010 at 17:12, Dave Everitt dever...@innotts.co.uk wrote: Anyone going to http://rubyconf.org/ wearing a 'Camping' t-shirt? ___ Camping-list mailing list

Re: Strange error with no stack trace

2011-01-20 Thread Magnus Holm
} end raise end end Maybe that gives you any clues! // Magnus Holm On Thu, Jan 20, 2011 at 06:14, adam moore nerdf...@gmail.com wrote: Hello there! Been loving getting stuck in creating bits bobs with this wonderful little framework. Had a go at making a listing of a bunch

Re: Strange error with no stack trace

2011-01-21 Thread Magnus Holm
but not on Heroku. Also, try to evaluate this on Heroku's console: filename[/\.(\w+)$/,1] (where filename is the filename of the index template). -- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping

Strange error with no stack trace

2011-01-21 Thread Magnus Holm
but not on Heroku. Also, try to evaluate this on Heroku's console: filename[/\.(\w+)$/,1] where filename is the filename of the index template. -- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping

Strange error with no stack trace

2011-01-21 Thread Magnus Holm
___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: update breaks hello clock?

2011-05-18 Thread Magnus Holm
A better solution is to actually upgrade to 1.8.7 (which is actively maintained) // Magnus Holm On Wed, May 18, 2011 at 18:15, Dave Everitt dever...@innotts.co.uk wrote: Thanks Magnus  - downgraded Rack to 1.2.0 after trying Git version. For the benefit of anyone else reading this: Tried

Re: anyone run into this activerecord error before?

2011-05-24 Thread Magnus Holm
It seems that you need to establish a connection *before* you write your models. Doesn't seem to be a way around it :/ // Magnus Holm On Tue, May 24, 2011 at 19:53, David Susco dsu...@gmail.com wrote: Not really Camping specific, but I've always had better luck asking on this list than any

Re: Advice on strategy for maintaining state in Camping

2011-08-25 Thread Magnus Holm
On Thu, Aug 25, 2011 at 15:25, Anders Schneiderman aschneider...@gmail.com wrote: Hi, I need a little advice about maintaining state in Camping. Uh oh. Maintaining complex state is *always* a hassle, regardless of language and framework… The general way of maintaing state is using session

Feature: Simple controllers?

2011-08-25 Thread Magnus Holm
I just pushed a new feature to Camping: Simple controllers. module App::Controllers get '/(.*)' do |name| Hello #{name} end end What do you think? Useful? Or should I revert it? It currently costs us 87 bytes. // Magnus Holm

Feature: Inline templates?

2011-08-25 Thread Magnus Holm
Another feature! Inline templates: module App::Controllers get '/' do @title = My Perfect App render :index end end __END__ @@ index.erb Welcome to %= @title % What'd you think? Keep or throw away? It costs us 184 bytes at the moment. // Magnus Holm

Re: Feature: Simple controllers?

2011-08-25 Thread Magnus Holm
On Thu, Aug 25, 2011 at 21:28, David Susco dsu...@gmail.com wrote: Would you have to write the RE for every declaration? ie...  module App::Controllers   get '/(.*)' do |name|     Hello #{name}   end   put '/(.*)' do |name|     Hello #{name}   end  end That wouldn't work. Camping

Re: Feature: Inline templates?

2011-08-26 Thread Magnus Holm
On Aug 26, 2011 6:42 PM, Bartosz Dziewoński matma@gmail.com wrote: If this only supports Erb, then we should throw it away as fast as possible ;) I see no reason why would anyone want to use something *that* dinosauric in a new project. If it also supports (or can support), say, Haml,

Re: What is the Best Way to Install Camping in 2011?

2011-08-30 Thread Magnus Holm
We definitely need to put out a new release. Try this in the meantime: gem install camping --source http://gems.judofyr.net/ (I've just updated the DNS record, so it might take an hour or two to propagate correctly) // Magnus Holm On Tue, Aug 30, 2011 at 07:09, John Beppu john.be

Re: Using CouchDB in Camping - looking for advice

2011-08-30 Thread Magnus Holm
On Mon, Aug 29, 2011 at 05:39, Daniel Bryan danbr...@gmail.com wrote: Woah, that sounds pretty cool. Are you using RubyParser or Ripper? Neither. I'm using sourcify ( http://rubydoc.info/gems/sourcify/0.5.0/frames ) to convert blocks into an S Expression, and then my own library to parse

Re: What is the Best Way to Install Camping in 2011?

2011-09-07 Thread Magnus Holm
On Wed, Sep 7, 2011 at 16:00, Ed Heil edh...@fastmail.fm wrote: And that turned out to be fixable with a global search and replace of 00:00:00.0Z to in my gemspecs.  Rock. :) Great! Feel free to bother us more if you encounter more problems :)

Re: failing test

2011-09-24 Thread Magnus Holm
Pretty sure this is related to incompatability with the latest Rack (which suddenly slightly broke the Session-API). It's fixed in latest master. Maybe we should just do a release soon. // Magnus Holm On Sat, Sep 24, 2011 at 22:22, Paul van Tilburg p...@luon.net wrote: Hi! I am

Re: Feature: Simple controllers?

2011-10-02 Thread Magnus Holm
2011/9/24 Bartosz Dziewoński matma@gmail.com: So, are we reverting it? It's still in the latest GitHub commit. I've reverted it. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Maintenance release of 2.1

2011-10-02 Thread Magnus Holm
REV to number of commits since previous release, simply to avoid some high revision numbers. Thoughts? Okay with a little maintenance release? Okay with some undocumented experimental features? Okay with REV? Okay with decreasing REV a bit= // Magnus Holm

Re: Feature: Inline templates?

2011-10-02 Thread Magnus Holm
2011/9/24 Bartosz Dziewoński matma@gmail.com: A comment after some time: I'd appreciate it more if I could just have one external file with all the templates, and one with the Camping code, and I could link in the templates to parse using this mechanism. This works, although it's kinda

Re: Maintenance release of 2.1

2011-10-03 Thread Magnus Holm
On Sun, Oct 2, 2011 at 14:26, Jenna Fox a...@creativepony.com wrote: I wouldn't bother with reducing the revision number. If anything having weirdly high ones makes the project seem more alive and active. Is the minor number even functionally useful here? Maybe we should ditch that and just

Re: Simplest easiest rss feeds?

2011-10-05 Thread Magnus Holm
On Wed, Oct 5, 2011 at 02:20, Jenna Fox a...@creativepony.com wrote: I'm looking to make rss feeds of some of my controller data - what's the simplest way to render some? Is there some way I can feed a json-like arrays of hashes type of structure in to some gem and get out an xml feed? Would it

Re: Helpers and R() routes

2011-10-05 Thread Magnus Holm
I've added a failing test: https://github.com/camping/camping/commit/7aa0e1fa934806f964ad120c1b4bb21783c7e008 Will look into it later :-) // Magnus Holm On Wed, Oct 5, 2011 at 03:34, Jenna Fox a...@creativepony.com wrote: It'd be cool if in the next version of camping, you could use R

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 09:02, Nokan Emiro uzleep...@gmail.com wrote: Hi, As you already know I'm working on turning my Camping app into production.  Unfortunatelly I find lots of problems on my way. The next one is here: My Camping app does something dirty on the 'redirect CtrllerName'

Re: run my Camping app as a Rack app

2011-10-11 Thread Magnus Holm
On Sun, Oct 9, 2011 at 15:43, Nokan Emiro uzleep...@gmail.com wrote: Hi, Could you please show me the preferred/nicest way to run my Camping application as a Rack all?  I like doing my work in Rack because it's easy to run my app in a standalone webserver, or mount it to a path in my

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 18:00, Nokan Emiro uzleep...@gmail.com wrote: Sensiteve parts are masked with ***. http://pastie.org/2676396 u. Thanks. This is a bug in Camping which has been fixed in 5423c7a0. You can install the latest development version of Camping by running: gem

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 20:46, Nokan Emiro uzleep...@gmail.com wrote: Thanks!   I had to hack a bit in camping-2.1.469.gemspec, but now it works. :) u Damn, I hate these issues with YAML and gemspecs :/ I uploaded a new version that hopefully will install nicely on 1.8 too. Could you try to

Re: run my Camping app as a Rack app

2011-10-12 Thread Magnus Holm
On Tue, Oct 11, 2011 at 18:21, Nokan Emiro uzleep...@gmail.com wrote: Thanks for the explanation. I have had the create method in my application, it calls Models::create_scheme, because I have migrations too. (Everything encapsulated, that's what I like about Camping.) Actually the problem

Re: Camping into production

2011-10-12 Thread Magnus Holm
On Wed, Oct 12, 2011 at 21:07, Nokan Emiro uzleep...@gmail.com wrote: Thanks!   I had to hack a bit in camping-2.1.469.gemspec, but now it works. I'm sorry to say this but it still does not work.  :(    I was incautious. After the redirect it shows the right URL in the browser.  That's

Re: Camping into production

2011-10-13 Thread Magnus Holm
On Wed, Oct 12, 2011 at 22:20, Nokan Emiro uzleep...@gmail.com wrote: It seems to me that PATH_INFO is still not properly handled, but that it's always empty. You are right, PATH_INFO is always empty.  If I fill it with the $SCRIPT_NAME value, controllers can be accessed again.  But links

Re: Passenger, Rack and __END__ error

2011-10-13 Thread Magnus Holm
Try to split it up in two files: app.rb: The app config.ru: require 'app' run Nuts I don't think rackup-files can have __END__. // Magnus Holm On Thu, Oct 13, 2011 at 17:48, Dave Everitt dever...@innotts.co.uk wrote: I might be missing something stupid.. but Passenger doesn't like

Re: Camping into production

2011-10-13 Thread Magnus Holm
On Thu, Oct 13, 2011 at 21:16, Nokan Emiro uzleep...@gmail.com wrote: SCRIPT_NAME is the mount-path. PATH_INFO is the internal app-path. So if you want your application available at xxx.com/my_app/, then the request xxx.com/my_app/add will look like this:  SCRIPT_NAME=/my_app  

Re: Passenger, Rack and __END__ error

2011-10-13 Thread Magnus Holm
2011/10/13 Matthias Wächter matth...@waechter.wiz.at: On 13.10.2011 20:02, Magnus Holm wrote: I don't think rackup-files can have __END__. https://github.com/rack/rack/blob/master/test/builder/end.ru – Matthias It's broken: https://github.com/rack/rack/pull/253 (it only handles one line

Re: how to catch 404s?

2011-10-13 Thread Magnus Holm
the method. // Magnus Holm On Thu, Oct 13, 2011 at 21:25, Nokan Emiro uzleep...@gmail.com wrote: 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

Re: Passenger, Rack and __END__ error

2011-10-14 Thread Magnus Holm
right. This will probably never work, though: [http://pastie.org/2693243] – Matthias Woah, I never realized that __END__ was valid on its own line inside a heredoc/string… ___ Camping-list mailing list Camping-list@rubyforge.org

Re: which view am I inside?

2011-10-14 Thread Magnus Holm
On Thu, Oct 13, 2011 at 23:36, Nokan Emiro uzleep...@gmail.com wrote: My question was about the layout.  Suppose that Alfa and Beta are menu items in the layout, and I want to mark the current menu item with different appearance: module App::Views   def layout     case .  #--- Which

Re: Camping goes heroku. Hopefully.

2011-11-14 Thread Magnus Holm
On Mon, Nov 14, 2011 at 19:44, Steve Klabnik st...@steveklabnik.com wrote: Just remember that the free version of Heroku doesn't include database support. Whaaa? Since when? http://www.heroku.com/pricing#0-0 says you get 5MB for $0. Hm… Really? It seems I got the wrong impression after their

Camping.use Before, Rack::File.new('public')

2011-12-16 Thread Magnus Holm
for serving static stuff in development mode (Rack::File will serve files from the 'public' directory if it matches the URL; e.g. ./public/jquery.js will be available at localhost:3301/jquery.js) Maybe we should add it to camping.rb? // Magnus Holm

Re: Camping.use Before, Rack::File.new('public')

2011-12-17 Thread Magnus Holm
2011/12/16 Bartosz Dziewoński matma@gmail.com: I usually just use Rack::Static: module App  use Rack::Static, :urls = ['/static'] end This would serve ./static/jquery.js at localhost:3301/static/jquery.js, though - with the directory included in URL - but will also serve files from

Markaby license issue

2011-12-17 Thread Magnus Holm
that explicitly says the license) related to Markaby, please let us know! If not, I'm wondering what we should do. I don't think that _why would really care if people brought his libraries forward, but I kinda get an uneasy feeling about this. // Magnus Holm

Re: Markaby license issue

2011-12-18 Thread Magnus Holm
On Sun, Dec 18, 2011 at 02:47, Steve Klabnik st...@steveklabnik.com wrote: A wild project appears: http://krainboltgreene.github.com/dapper-dan/ Some problems: * It doesn't support CSS proxy (div.wrapper! { … ] == div(:id = 'wrapper') { … }) * It doesn't escape stuff * It doesn't specify its

Mab: The tiny Markaby-alternative

2011-12-18 Thread Magnus Holm
https://github.com/camping/camping/pull/50 Right now it's completely inline in camping/mab.rb, but it should be fairy easy to create another Rubygem where we could implement for advanced features (indentation, AJAX-stuff, whatever). // Magnus Holm

Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread Magnus Holm
2011/12/18 Bartosz Dziewoński matma@gmail.com: I don't have time to look thru now, but it doesn't seem to support boolean attributes (e.g. `input checked:true` should render input checked=checked /)? I was very much missing this feature in old Markaby, and finally even wrote a patch, as

Re: Markaby license issue

2011-12-19 Thread Magnus Holm
On Mon, Dec 19, 2011 at 19:10, Dave Everitt dever...@innotts.co.uk wrote: Magnus: this commit implements a tiny and fast Markaby-alternative (called Mab) ... it's completely inline in camping/mab.rb, but it should be fairy easy to create another Rubygem where we could implement for advanced

Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread Magnus Holm
On Mon, Dec 19, 2011 at 21:34, Isak Andersson icepa...@lavabit.com wrote: My suggestion would be to make it Markaby 2.0 (of course, once it's running and mostly backwards-compatible), keeping the old gem name, and to develop on a branch in markaby repo. Yeah, we should more or less do a

Plan for 2.2

2011-12-19 Thread Magnus Holm
- I've been rewriting the Reloader/Server code a bit to support rackup-files too. I want to merge that. - Resolve the Markaby-thingie. - Figure out how to deal with static files (see other thread). - Figure out how to handle extensions to Camping (see other thread). Anything else? // Magnus Holm

Camping Server: automatically serve static files from public/

2011-12-19 Thread Magnus Holm
multiple applications? camping app.rb app2.rb And should files be served from where it's located or where it's run? app.rb # = contains `require app2` app/public/foo.html app2.rb # = the actual app app2/public/foo.html Should /foo.html be served from app/public or app2/public? // Magnus

Re: Mab: The tiny Markaby-alternative

2011-12-20 Thread Magnus Holm
2011/12/19 Bartosz Dziewoński matma@gmail.com: 2011/12/19 Magnus Holm judo...@gmail.com: The real question here is: Should it be a part of camping/mab.rb or the Mab-gem? I'm definitely for adding many features (indentation, attribute-validation, flow-validation), but not in Camping

Re: Mab: The tiny Markaby-alternative

2011-12-20 Thread Magnus Holm
On Mon, Dec 19, 2011 at 23:24, Jenna Fox a...@creativepony.com wrote: I'd like markaby to be a hard dependancy - it's the default, if it isn't installed beginners get terribly confused, and installing one more gem really isn't going to cause problems for people - computers have so much free

Remove camping app.rb app2.rb support?

2011-12-20 Thread Magnus Holm
I think the ability to load multiple Camping apps at once makes things a lot more difficult (e.g. how to deal with static files). Does anyone actually use this feature? // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http

Re: Remove camping app.rb app2.rb support?

2011-12-20 Thread Magnus Holm
On Tue, Dec 20, 2011 at 15:14, Isak Andersson icepa...@lavabit.com wrote: Den 2011-12-20 14:09:02 skrev David Susco dsu...@gmail.com: I've never found myself working on multiple apps at once in a dev environment. Dave I haven't either, but I can definitely see myself using it sometime.

Re: Remove camping app.rb app2.rb support?

2011-12-20 Thread Magnus Holm
On Tue, Dec 20, 2011 at 16:36, David Susco dsu...@gmail.com wrote: Magnus, would that still support the dynamic reloading of the app file that the camping server does now? Dave Yes. It will watch both apps. ___ Camping-list mailing list

Re: Camping Server: automatically serve static files from public/

2011-12-20 Thread Magnus Holm
On Tue, Dec 20, 2011 at 11:19, Paul van Tilburg p...@luon.net wrote: On Tue, Dec 20, 2011 at 11:06:09AM +0100, Isak Andersson wrote: I think Alternative 2 makes the most sense. Then you can have multiple apps that don't share the public folder. Plus, you put almost everything in the app folder

Re: Is it possible to read session data from Camping::Session in a middleware?

2012-01-02 Thread Magnus Holm
On Mon, Jan 2, 2012 at 12:39, Daniel Bryan danbr...@gmail.com wrote: Ah, thanks. I thought that the order of calling 'use' would explicitly describe the order. This was my main problem - since Camping's doing a bit of a hack to neatly slot the middleware in without people needing a rackup

Mab is pretty much done

2012-01-15 Thread Magnus Holm
end body do div.wrapper! do yield end end end end end // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

New reloader

2012-01-15 Thread Magnus Holm
at /. (If you named the file app2.rb, App2 would be mounted). If you need the previous functionality, just create a config.ru: map '/app' do run App end map '/app2' do run App2 end This gives you more control and can be reused by other servers (Thin, Passenger) etc. // Magnus Holm

Camping 2.2 pre-release

2012-01-25 Thread Magnus Holm
gem install camping --source http://gems.judofyr.net/ *wonders how much Mab breaks* // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: +1 shorter domain name

2012-02-01 Thread Magnus Holm
On Wed, Feb 1, 2012 at 04:18, adam moore nerdf...@gmail.com wrote: I've recently been using Arch linux and 90% of the appeal comes from their awesome user-led wiki.. Something which we can gradually add to, build on camping of course, and which hand-holds beginners would be ideal I think The

Re: Camping Multimount

2012-02-18 Thread Magnus Holm
On Fri, Feb 17, 2012 at 22:13, Isak Andersson icepa...@lavabit.com wrote: Hi, sorry if I'm repeating is email or something, Cinnamon crashed as I was sending the mail and the result in the sent folder was completely empty, so I'm just gonna have to write it all over again, wee! Anyways, my

Re: http_referrer

2012-04-06 Thread Magnus Holm
Try @request. // Magnus Holm On Friday 6. April 2012 at 16:27, Nokan Emiro wrote: I'm sorry bothering you, it was there in env, env['HTTP_REFERER']. (But it still would be useful sometimes to access the Rack's Request object...) On Fri, Apr 6, 2012 at 3:01 PM, Nokan Emiro uzleep

Re: http_referrer

2012-04-06 Thread Magnus Holm
It should be in @env: @env['HTTP_REFERER'] (Note that it's misspelled in the spec) // Magnus Holm On Friday 6. April 2012 at 15:01, Nokan Emiro wrote: Hi, How can I access the Rack request object in a controller? I need to know the HTTP_REFERRER, but I can't find it in env. (I'm

Re: ~ AppController

2012-04-07 Thread Magnus Holm
You can override #service: module App def service(*args) p({:controller = self.class, :method = @method, :args = args}) p :before super ensure p :after end end // Magnus Holm On Sat, Apr 7, 2012 at 18:11, Nokan Emiro uzleep...@gmail.com wrote: Hi, What's the nice

Re: Camping's URL mapping system

2012-04-12 Thread Magnus Holm
On Thu, Apr 12, 2012 at 15:59, Jenna Fox a...@creativepony.com wrote: The problem is basically this: Sometimes you want to reference static files, and other components of your site. I have a Gallery app mounted at http://creativepony.com/gallery/ and it causes me all sorts of trouble. Often

Re: Camping's URL mapping system

2012-04-13 Thread Magnus Holm
do that - it just wont happen by default. Deployment is one of the biggest hassles we face - this may help. — Jenna On Friday, 13 April 2012 at 12:26 AM, Magnus Holm wrote: On Thu, Apr 12, 2012 at 15:59, Jenna Fox a...@creativepony.com wrote: The problem is basically this: Sometimes you

Re: http_referrer

2012-04-15 Thread Magnus Holm
On Sat, Apr 14, 2012 at 10:38, Dave Everitt dever...@innotts.co.uk wrote: Haha! How did you get Spock on board... :-) I must admit I'm a little confused about the sytnax for environmental variables, because as well as   @env[HTTP_REFERER] this also works:   ENV['SCRIPT_NAME'] For a test I

Re: http_referrer

2012-04-16 Thread Magnus Holm
On Mon, Apr 16, 2012 at 13:45, Nokan Emiro uzleep...@gmail.com wrote: Actually env[] works with mongrel also, not just fcgi or passenger. (No, it's not a typo: env, and not ENV. But I'm sure ENV works too.) Yes, env inside Camping is the same @env (it's just an attr_accessor). Same for @body,

Re: framework size, forking etc.

2012-04-16 Thread Magnus Holm
On Mon, Apr 16, 2012 at 22:14, Nokan Emiro uzleep...@gmail.com wrote: 2012/4/16 Bartosz Dziewoński matma@gmail.com W dniu 16 kwietnia 2012 20:50 użytkownik Nokan Emiro uzleep...@gmail.com napisał: Actually I think it's not logical that you can build HTML by default using Markaby, but

Re: framework size, forking etc.

2012-04-18 Thread Magnus Holm
On Wed, Apr 18, 2012 at 15:07, Daniel Bryan danbr...@gmail.com wrote: Thought I'd weigh in for what it's worth, Thanks, I find it very interesting. My naive first impression of Camping basically took no notice of the whole 3/4k thing. I appreciate that it's a cool programming feat, and I love

Re: framework size, forking etc.

2012-04-18 Thread Magnus Holm
On Wed, Apr 18, 2012 at 17:49, Jenna Fox a...@creativepony.com wrote: I think the trouble with streaming over the rack interface is that it's confusing. I'm fairly good at ruby, but I'm not entirely sure how it would even work. I guess I need to run my app in a threaded web server, running

Re: ChillDB License

2012-05-02 Thread Magnus Holm
On Wed, May 2, 2012 at 3:00 PM, Jenna Fox a...@creativepony.com wrote: This is very helpful! I don't really mind though. Maybe public domain is best. I'm not a big believer in copyright. Public domain is people can do whatever they want with it. BSD is people can do whatever they want with it,

Re: Feature: Inline templates?

2012-08-15 Thread Magnus Holm
/style.css * { margin: 0; padding: 0 } // Magnus Holm On Wed, Aug 15, 2012 at 4:44 PM, Jenna Fox a...@creativepony.com wrote: What makes this better than a here doc? — Jenna On Wednesday, 15 August 2012 at 6:18 PM, judo...@gmail.com wrote: It's been implemented here: https://github.com/camping

Re: Apache Passenger and Reloader

2013-01-03 Thread Magnus Holm
On Wed, Jan 2, 2013 at 7:02 PM, Koaps Freeman koapsfree...@gmail.com wrote: Hi Guys, I just started playing with camping and so far it's pretty awesomo. After much messing around I was finally able to get Apache Passenger, Camping and ActiveRecord to PostgreSQL working. One thing I was

Re: Mab::Mixin::Error at /

2013-03-21 Thread Magnus Holm
Yikes! I broke everything! I've pushed out camping 2.1.532, could you try that? gem install camping -v 2.1.532 // Magnus Holm On Thu, Mar 21, 2013 at 1:57 AM, curtis bissonnette cjbissonne...@gmail.com wrote: I'm doing something stupid I know... I just started using camping and it looks

Re: modify the way active record Pluralize/singularize

2013-03-22 Thread Magnus Holm
://api.rubyonrails.org/classes/ActiveSupport/Inflector/Inflections.html // Magnus Holm On Fri, Mar 22, 2013 at 2:16 PM, Francois Sery sery.franc...@gmail.com wrote: hello, i'm new to Camping and i dont speek english very well so , please, forgive my mistakes...here is my question: i want to modify

Re: Add Rake Middleware

2013-03-28 Thread Magnus Holm
Sure: Camping.goes :Noes module Noes use Rack::Foobar end On Thursday, March 28, 2013, curtis bissonnette wrote: Is there a simple way to add some Rake middleware to the camping server? Specifically I'm hoping to include sass and coffee-script support server side. -- // Magnus Holm

Re: charset for french words

2013-03-29 Thread Magnus Holm
You can re-define the #service-method which will be invoked on every request, and there set the correct charset: Camping.goes :Nuts module Nuts def service(*) @headers['Content-Type'] = 'text/html; charset=utf-8' super end end // Magnus Holm On Fri, Mar 29, 2013 at 2:58 PM

Re: mounting multiples app

2013-05-22 Thread Magnus Holm
You need to create a custom config.ru: config.ru: require_relative 'app1' require_relative 'app2' map '/app1' do run App1 end map '/app2' do run App2 end // Magnus Holm On Wed, May 22, 2013 at 2:05 PM, låzaro netad...@lex-sa.cu wrote: Hi, I trying to mount an App but with separetaed

<    1   2   3   >