From john at oxyliquit.de Wed Mar 7 09:23:15 2007 From: john at oxyliquit.de (Jonathan Buch) Date: Wed, 07 Mar 2007 16:23:15 +0200 Subject: [Ramaze-general] [PATCH] More specs for params Message-ID: methods like meth(p1, p2 = nil, p3 = nil) fail Jo -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -------------- next part -------------- A non-text attachment was scrubbed... Name: param_specs.bndl.tar.bz2 Type: application/bzip2 Size: 4578 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20070307/36dd2a98/attachment.bin From lasso at lassoweb.se Tue Mar 20 16:06:14 2007 From: lasso at lassoweb.se (Lars Olsson) Date: Tue, 20 Mar 2007 21:06:14 +0100 Subject: [Ramaze-general] Serving static images doesn't work Message-ID: <46003EB6.2090102@lassoweb.se> Hi! When trying to serve any image from the static directory the image gets corrupted (I'm on Windows XP SP2 at the moment). The attached image is 896 bytes, but when rendering through Ramaze most bytes get stuck somewhere (byte count is just 5 for the attached image): C:\Documents and Settings\lasso>wget -S --spider http://localhost:60024/bilder/ramazing.png --21:02:45-- http://localhost:60024/bilder/ramazing.png => `ramazing.png' Sl?r upp localhost... 127.0.0.1 Connecting to localhost|127.0.0.1|:60024... ansluten. HTTP-beg?ran skickad, v?ntar p? svar... HTTP/1.1 200 OK Connection: close Date: Tue, 20 Mar 2007 20:02:45 GMT Content-Type: image/png Set-Cookie: _ramaze_session_id=c329bc50bccfb134441c0c459af3e29a44c374dbd8763036ca263ffa7464c8aa; path=/ Content-Length: 5 L?ngd: 5 [image/png] 200 OK Any ideas? (I'm using Ramaze 0.0.8). Sincerely /lasso -- ________________________________________ Lars Olsson lasso at lassoweb.se http://www.lassoweb.se/ -------------- next part -------------- A non-text attachment was scrubbed... Name: ramazing.png Type: image/png Size: 896 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20070320/ca585264/attachment.png From m.fellinger at gmail.com Thu Mar 22 17:22:48 2007 From: m.fellinger at gmail.com (Michael Fellinger) Date: Fri, 23 Mar 2007 06:22:48 +0900 Subject: [Ramaze-general] Serving static images doesn't work In-Reply-To: <46003EB6.2090102@lassoweb.se> References: <46003EB6.2090102@lassoweb.se> Message-ID: <9c00d3e00703221422v1b57d856t8e368d6cfbadd2f@mail.gmail.com> Alright, i think we may have found the problem - there was a 'rb' mode missing for File.open, i just fixed it in the repo - would be nice if you could report whether that fixes the problem. The patch is: http://manveru.mine.nu/darcsweb/dw?r=ramaze;a=commit;h=20070322211618-40155-4d08cf03103ceb9f71e00c902c4c4972cb671d51.gz a.k.a. http://lnk.nu/manveru.mine.nu/e0a ^manveru On 3/21/07, Lars Olsson wrote: > Hi! > > When trying to serve any image from the static directory the image gets > corrupted (I'm on Windows XP SP2 at the moment). The attached image is > 896 bytes, but when rendering through Ramaze most bytes get stuck > somewhere (byte count is just 5 for the attached image): > > C:\Documents and Settings\lasso>wget -S --spider > http://localhost:60024/bilder/ramazing.png > --21:02:45-- http://localhost:60024/bilder/ramazing.png > => `ramazing.png' > Sl?r upp localhost... 127.0.0.1 > Connecting to localhost|127.0.0.1|:60024... ansluten. > HTTP-beg?ran skickad, v?ntar p? svar... > HTTP/1.1 200 OK > Connection: close > Date: Tue, 20 Mar 2007 20:02:45 GMT > Content-Type: image/png > Set-Cookie: > _ramaze_session_id=c329bc50bccfb134441c0c459af3e29a44c374dbd8763036ca263ffa7464c8aa; > path=/ > Content-Length: 5 > L?ngd: 5 [image/png] > 200 OK > > Any ideas? (I'm using Ramaze 0.0.8). > > > Sincerely > > /lasso > > -- > ________________________________________ > Lars Olsson > lasso at lassoweb.se > http://www.lassoweb.se/ > > _______________________________________________ > Ramaze-general mailing list > Ramaze-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/ramaze-general > > > From lasso at lassoweb.se Sat Mar 24 05:58:29 2007 From: lasso at lassoweb.se (Lars Olsson) Date: Sat, 24 Mar 2007 10:58:29 +0100 Subject: [Ramaze-general] small fix Message-ID: <4604F645.8010007@lassoweb.se> Hi, there seems to be a small error in /snippets/kernel/aquire.rb. (shows up as a warning when running with -w). The attached patch resolves the issue. Kindly /lasso -- ________________________________________ Lars Olsson lasso at lassoweb.se http://www.lassoweb.se/ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: aquire_fix Url: http://rubyforge.org/pipermail/ramaze-general/attachments/20070324/a0b09bca/attachment.pl From m.fellinger at gmail.com Sat Mar 24 09:09:29 2007 From: m.fellinger at gmail.com (Michael Fellinger) Date: Sat, 24 Mar 2007 22:09:29 +0900 Subject: [Ramaze-general] small fix In-Reply-To: <4604F645.8010007@lassoweb.se> References: <4604F645.8010007@lassoweb.se> Message-ID: <9c00d3e00703240609l644f279co79c05de8b9e93911@mail.gmail.com> On 3/24/07, Lars Olsson wrote: > Hi, > > there seems to be a small error in /snippets/kernel/aquire.rb. (shows up > as a warning when running with -w). The attached patch resolves the issue. Thank you, i'll apply it immediatly. ^manveru > > Kindly > > /lasso > > -- > ________________________________________ > Lars Olsson > lasso at lassoweb.se > http://www.lassoweb.se/ > > > New patches: > > [aquire_fix > lasso at lassoweb.se**20070324095256] { > hunk ./lib/ramaze/snippets/kernel/aquire.rb 16 > - Dir[File.join(path, file, '*.rb')].each do |file| > - require file unless file == File.expand_path(__FILE__) > + Dir[File.join(path, file, '*.rb')].each do |file2| > + require file2 unless file2 == File.expand_path(__FILE__) > } > > Context: > > [improve handling of missing actions, now raising NoActionError > m.fellinger at gmail.com**20070323200645] > [fix serving static files on windows (hopefully) > m.fellinger at gmail.com**20070322211618] > [remove the useless _openid_consumer_service from the session afterwards > m.fellinger at gmail.com**20070322040926] > [add examples/identity > m.fellinger at gmail.com**20070322040912] > [fixing IdentityHelper so that it works > m.fellinger at gmail.com**20070322040012] > [move helper/openid to helper/identity > m.fellinger at gmail.com**20070322035945] > [add ::create_with(hash) to store/yaml > m.fellinger at gmail.com**20070321031122] > [show the real error from Template::Ezamar > m.fellinger at gmail.com**20070321031102] > [make the error parsing a lot more robust and fault-tolerant > m.fellinger at gmail.com**20070321031021] > [adapt Controller#error for the new caller_lines/caller_info > m.fellinger at gmail.com**20070320135106] > [extracting caller_lines and put it into snippets/kernel/caller_lines - also small fixes in caller_info > m.fellinger at gmail.com**20070320135026] > [small changes in Method#name > m.fellinger at gmail.com**20070320135010] > [move snippets/kernel/caller_lines to snippets/ramaze/caller_lines > m.fellinger at gmail.com**20070320134848] > [fixing problematic error response in dispatcher > m.fellinger at gmail.com**20070320134757] > [remove Kernel#silently > m.fellinger at gmail.com**20070320131208] > [require pp before patching pretty_inspect > m.fellinger at gmail.com**20070320131034] > [move Method#name from snippets/kernel/method to snippets/method/name > m.fellinger at gmail.com**20070320131001] > [remove Thread#dead? > m.fellinger at gmail.com**20070320130930] > [remove snippets/kernel/rescue_require > m.fellinger at gmail.com**20070320130916] > [move snippets/kernel/self_method => snippets/kernel/method > m.fellinger at gmail.com**20070320130839] > [fix Rakefile so that it produces good gems again > m.fellinger at gmail.com**20070320130813] > [move snippets/kernel/autoreload => snippets/ramaze/autoreload > m.fellinger at gmail.com**20070320130716] > [don't R() the passed params to redirect and update docs > m.fellinger at gmail.com**20070320094640] > [update tc_helper_redirect > m.fellinger at gmail.com**20070320082947] > [better information about errors in templates > m.fellinger at gmail.com**20070320080858] > [better handling of redirections, you can now catch(:redirect){ another_action } to prevent redirection from that path of execution > m.fellinger at gmail.com**20070320080757] > [typo > m.fellinger at gmail.com**20070320080724] > [support custom status-code in redirect and do R() automatically on the params > m.fellinger at gmail.com**20070320065312] > [update Rakefile > m.fellinger at gmail.com**20070320064319] > [add (c) to OpenidHelper > m.fellinger at gmail.com**20070320062335] > [update README > m.fellinger at gmail.com**20070320062305] > [update examples/todolist > m.fellinger at gmail.com**20070319072101] > [update tutorial > m.fellinger at gmail.com**20070319072042] > [small improvment to template/ezamar makes methodless actions work again. > m.fellinger at gmail.com**20070319065841] > [remove helper/template_map > m.fellinger at gmail.com**20070319064514] > [update feature-list > m.fellinger at gmail.com**20070319064459] > [add a Rs method to LinkHelper to make the usual R(self, :foo) stuff into Rs(:foo) and update the tc_helper_stack > m.fellinger at gmail.com**20070319030324] > [add first implementation of OpenidHelper (yet untested) > m.fellinger at gmail.com**20070318231457] > [fix tc_helper_redirect > m.fellinger at gmail.com**20070318225838] > [0.0.8 as version > m.fellinger at gmail.com**20070317130925] > [alias referrer referer > m.fellinger at gmail.com**20070317130916] > [document CacheHelper > m.fellinger at gmail.com**20070316104740] > [document FlashHelper > m.fellinger at gmail.com**20070316103920] > [cleanup and docs for Ramaze::Request (add values_at for quick params-retrieval) > m.fellinger at gmail.com**20070316102434] > [some cleanup and documentation for Trinity::Session, it also got a trait[:finalize] as a pipeline of what to do on finalize (finalize_flash only atm) > m.fellinger at gmail.com**20070316101618] > [don't escape the @title of an error twice > m.fellinger at gmail.com**20070315102134] > [less agressive redirect in R/link > m.fellinger at gmail.com**20070316071745] > [proper inspect in the error-page and adding inspect/pretty_inspect to Global > m.fellinger at gmail.com**20070315055733] > [TAG 0.0.8 > m.fellinger at gmail.com**20070314140946] > Patch bundle hash: > b311b64b55eb0e9054d28ea2d7abefd94f0b1cdc > > _______________________________________________ > Ramaze-general mailing list > Ramaze-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/ramaze-general > > From m.fellinger at gmail.com Sat Mar 24 23:15:36 2007 From: m.fellinger at gmail.com (Michael Fellinger) Date: Sun, 25 Mar 2007 12:15:36 +0900 Subject: [Rg 6] Re: [Ramaze-general] small fix In-Reply-To: <46055DF2.7070908@lassoweb.se> References: <4604F645.8010007@lassoweb.se> <9c00d3e00703240609l644f279co79c05de8b9e93911@mail.gmail.com> <460532EB.4050103@lassoweb.se> <9c00d3e00703240900t366092fx48ac816f832e011c@mail.gmail.com> <46055DF2.7070908@lassoweb.se> Message-ID: <9c00d3e00703242015u4d9f3b1ra333e4281f5abf7c@mail.gmail.com> On 3/25/07, Lars Olsson wrote: > Hi, > > that is strange. At least Thunderbird sees it as an attachment and the > headers tell me it's a multipart mime message. I used 'darcs send -o > filename' to create the patch. Is there an easier way? I use daily > Windows build of darcs, some things don't seem to work as well as in the > Linux version. For instance I was unable to use create a patch comment > ('vi' was missing :) ) > > Anyway, I you want me to resend the patch I'll happily do so. > I'm not quite sure, i unpulled/modified/recorded the change - maybe you need to unpull the latest patch to get the newer one. Anyway, maybe you can zip the bundle next time, also thanks for the information that you are sending the patches from windows, will check the line-endings. Also, please make sure you use 'reply to all' when replying to the mailinglist, i decided not to tamper with the reply-to header. ^ manveru > > Sincerely > > /lasso > > > > Michael Fellinger skrev: > > Sorry, i'll unpull... wanted to write earlier but i had trouble > > 'getting' your patch (neither the web-interface nor gmail seem to see > > it as an attachment). > > Sorry for the trouble. > > > > ^ manveru > > From lasso at lassoweb.se Fri Mar 23 05:11:37 2007 From: lasso at lassoweb.se (Lars Olsson) Date: Fri, 23 Mar 2007 10:11:37 +0100 Subject: [Rg 7] Re: [Ramaze-general] Serving static images doesn't work In-Reply-To: <9c00d3e00703221422v1b57d856t8e368d6cfbadd2f@mail.gmail.com> References: <46003EB6.2090102@lassoweb.se> <9c00d3e00703221422v1b57d856t8e368d6cfbadd2f@mail.gmail.com> Message-ID: <460399C9.8030307@lassoweb.se> Hi, thanks for the patch. How do I tell ruby to use the repo version instead of the rubygem in my own scripts? Btw, I've attached the log from 'rake test' (repo version) on my Windows machine. Doesn't look to bad :) Sincerely /lasso Michael Fellinger skrev: > Alright, i think we may have found the problem - there was a 'rb' mode > missing for File.open, i just fixed it in the repo - would be nice if > you could report whether that fixes the problem. > > The patch is: > http://manveru.mine.nu/darcsweb/dw?r=ramaze;a=commit;h=20070322211618-40155-4d08cf03103ceb9f71e00c902c4c4972cb671d51.gz > > a.k.a. http://lnk.nu/manveru.mine.nu/e0a > > ^manveru -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: rake_test.txt Url: http://rubyforge.org/pipermail/ramaze-general/attachments/20070323/c069c3b7/attachment-0001.txt From m.fellinger at gmail.com Thu Mar 29 10:50:53 2007 From: m.fellinger at gmail.com (Michael Fellinger) Date: Thu, 29 Mar 2007 23:50:53 +0900 Subject: [Rg 8] Re: [Ramaze-general] Serving static images doesn't work In-Reply-To: <460399C9.8030307@lassoweb.se> References: <46003EB6.2090102@lassoweb.se> <9c00d3e00703221422v1b57d856t8e368d6cfbadd2f@mail.gmail.com> <460399C9.8030307@lassoweb.se> Message-ID: <9c00d3e00703290750h4a9e2c91gc0c02a91011f953c@mail.gmail.com> On 3/23/07, Lars Olsson wrote: > Hi, > > thanks for the patch. How do I tell ruby to use the repo version instead > of the rubygem in my own scripts? just require lib/ramaze.rb it will add ramaze in $LOAD_PATH i personally do it a bit different, so i only have to require 'ramaze', but i doubt it would work that way in windows, following: a file in your site_ruby called 'ramaze.rb' with the content "require 'ramaze/ramaze'" and a directory (in my case a ln -s) to the actual repositories 'lib' directory in general, just make sure it gets required before the rubygems one. > > Btw, I've attached the log from 'rake test' (repo version) on my Windows > machine. Doesn't look to bad :) Thank you, seems that systemu is buggy on windows rather than ramaze ;) Apologies that it took so long to respond, your mail got caught up on rubyforge and i didn't get a notification... I still have to get used to running a mailinglist - all that configuration... :) ^ manveru > > > Sincerely > > /lasso