From outtenr at gmail.com Thu Jan 3 08:57:05 2008 From: outtenr at gmail.com (Richard Outten) Date: Thu, 3 Jan 2008 08:57:05 -0500 Subject: [Rg 117] [PATCH] fix for R method Message-ID: <905212740801030557h3cbb0206ua7066632ec799e93@mail.gmail.com> Hey, Attached is a patch that fixes a problem I was having when using the R method when a controller has a "new" method on it. I added some tests, but I wasn't sure if this was the best way to add them (I have just started using ramaze and I am also new to darcs). Thanks, Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: fix_for_controllers_with_new_method.gz Type: application/x-gzip Size: 4976 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080103/09ae1c9e/attachment-0001.gz From m.fellinger at gmail.com Thu Jan 3 14:28:19 2008 From: m.fellinger at gmail.com (Michael Fellinger) Date: Fri, 4 Jan 2008 04:28:19 +0900 Subject: [Rg 118] Re: [PATCH] fix for R method In-Reply-To: <905212740801030557h3cbb0206ua7066632ec799e93@mail.gmail.com> References: <905212740801030557h3cbb0206ua7066632ec799e93@mail.gmail.com> Message-ID: <9c00d3e00801031128t37720032o5143fabdcf1924f6@mail.gmail.com> On Jan 3, 2008 10:57 PM, Richard Outten wrote: > Hey, > > Attached is a patch that fixes a problem I was having when using the R > method when a controller has a "new" method on it. I added some > tests, but I wasn't sure if this was the best way to add them (I have > just started using ramaze and I am also new to darcs). Thank you very much, patch applied. ^ manveru From m.fellinger at gmail.com Wed Jan 9 14:00:39 2008 From: m.fellinger at gmail.com (Michael Fellinger) Date: Thu, 10 Jan 2008 04:00:39 +0900 Subject: [Rg 119] [ANN] Ramaze 0.3.0 Message-ID: <9c00d3e00801091100t64fc65b5p1fe1b9c831a316e5@mail.gmail.com> This time we are proud to announce Version 0.3.0 of Ramaze, the light and modular open source web framework. This release features a lot of work directly from our community and we are really greatful for everybody who helped in testing, patching and contributing new exciting features. Our extensive set of specs and docs now covers almost every detail of implementation and usage. Ramaze is under development by a growing community and in production use at companies. Home page: http://ramaze.net Screencasts: http://ramaze.net/screencasts View source: http://source.ramaze.net Darcsweb: http://darcs.ramaze.net IRC: #ramaze on irc.freenode.net Simple example: require 'ramaze' class MainController def index 'Hello, World!' end end Ramaze.start Special (alphabetic) thanks go to: Aman 'tmm1' Gupta - lots of patches and friendly support Antonio Cangiano - Article: http://tiny.cc/tRLfm Carlo Zottmann - First patch! Jonathan 'Kashia' Buch - patches for gettext and Og support Pistos - PR through awesome screencasts Selected summary of the 118 patches from 0.2.1 to 0.3.0: - Specs switched from RSpec to bacon; Ramaze now runs on Ruby 1.9. - /lib/proto (pregenerated base source code) updated to a new structure. - Oddities in gem version of bin/ramaze fixed (hopefully? :) ) - Layouts fixed so the method on the right controller is called. - contrib/facebook and simple facebook app example added. - Lambda router support added to contrib/route. - examples/rapaste added. - gettext contrib added; localize ramaze via gettext. - Adapter for Thin Ruby webserver added. - Index files can now be put into public directories and subdirectories. - examples/blog switched from Og to Sequel. - view/ is now the subdirectory for templates; if not found, Ramaze falls back to template/. - Default error pages updated: colour gradient removed; textmate link added; Javascript optimized; CSS tweaked. - Templates are no longer searched for in public/. A complete Changelog is available at http://darcs.ramaze.net/ramaze/doc/CHANGELOG Known issues: - none yet, waiting for your reports :) Ramaze Features: - Builds on top of the Rack library, which provides easy use of adapters like Mongrel, WEBrick, LiteSpeed, Thin, CGI or FCGI. - Supports a wide range of templating-engines like: Amrita2, Erubis, Haml, Liquid, Markaby, Remarkably and its own engine called Ezamar and (still unofficial) Nagoro. - Highly modular structure: you can just use the parts you like. This also means that it's very simple to add your own customizations. - A variety of helpers is already available, giving you things like advanced caching, OpenID-authentication or aspect-oriented programming for your controllers. - It is possible to use the ORM you like, be it Sequel, DataMapper, ActiveRecord, Og, Kansas or something more simplistic like DBI, or a wrapper around YAML::Store. - Good documentation: although we don't have 100% documentation right now (dcov says around 75%), just about every part of Ramaze is covered with basic and advanced docs. There are a variety of examples, screencasts and a tutorial available. - Friendly community: there are people from all over the world using Ramaze, so you can get almost instant help and info. For more information please come to http://ramaze.net or ask directly on IRC irc://irc.freenode.net/#ramaze Thank you, Michael 'manveru' Fellinger and the Ramaze community From rff.rff at gmail.com Wed Jan 9 14:43:17 2008 From: rff.rff at gmail.com (gabriele renzi) Date: Wed, 9 Jan 2008 20:43:17 +0100 Subject: [Rg 120] Re: [ANN] Ramaze 0.3.0 In-Reply-To: <9c00d3e00801091100t64fc65b5p1fe1b9c831a316e5@mail.gmail.com> References: <9c00d3e00801091100t64fc65b5p1fe1b9c831a316e5@mail.gmail.com> Message-ID: <828083e70801091143k37e7b3f6lf29f7f059ef98fd5@mail.gmail.com> On Jan 9, 2008 8:00 PM, Michael Fellinger wrote: > This time we are proud to announce Version 0.3.0 of Ramaze, the light and > modular open source web framework. Thanks people, and congrats to old and new coders. As someone who's been outside of the development for a while, it's also very nice to discover that now bacon is the test library instead of rspec[1]. [1] I still think that the spec dsl is too verbose, but well, my opinion :) -- goto 10: http://www.goto10.it blog it: http://riffraff.blogsome.com blog en: http://www.riffraff.info From jesuswasramazing.10.pistos at geoshell.com Thu Jan 10 18:51:04 2008 From: jesuswasramazing.10.pistos at geoshell.com (jesuswasramazing.10.pistos at geoshell.com) Date: Thu, 10 Jan 2008 18:51:04 -0500 Subject: [Rg 121] [PATCH] contrib/email.rb - EmailHelper Message-ID: <6c9d9ef0801101551j42241edaw2554ae3cf023df4e@mail.gmail.com> Here is a helper which will send basic e-mails using net/smtp (standard with Ruby). Full usage options are in the source comments, but basic usage is: require 'ramaze/contrib/email' EmailHelper.trait[ :smtp_server ] = 'smtp.your-isp.com' EmailHelper.trait[ :smtp_helo_domain ] = "originating-server.com" EmailHelper.trait[ :smtp_username ] = 'username' EmailHelper.trait[ :smtp_password ] = 'password' EmailHelper.trait[ :sender_address ] = 'no-reply at your-domain.com' To send an e-mail: EmailHelper.send( "foo at foobarmail.com", "Your fooness", "Hey, you are very fooey!" ) Pistos -- http://blog.purepistos.net -------------- next part -------------- A non-text attachment was scrubbed... Name: email-helper.patch.gz Type: application/x-gzip Size: 1584 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080110/5f665474/attachment.gz From keita.yamaguchi at gmail.com Thu Jan 10 22:21:42 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Fri, 11 Jan 2008 12:21:42 +0900 Subject: [Rg 122] gettext patch for removing empty msgid Message-ID: <7fae95590801101921v33cdf11eq51d31a74ebc84f82@mail.gmail.com> Hi, This is a gettext patch for removing repeated empty msgid from pot file. When there are mo files already, Ramaze::Tool::Gettext collects the dictionary key "" and pass it to GetText::RGetText.generate. As a result, generated pot file is like this: #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2008-01-11 00:58+0900\n" "PO-Revision-Date: 2008-01-11 00:58+0900\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "" msgstr "" This patch removes the extra key "". Regards, Keita Yamaguchi -------------- next part -------------- A non-text attachment was scrubbed... Name: remove-empty-msgid.patch Type: text/x-patch Size: 1280 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080111/a59728bc/attachment.bin From jesuswasramazing.10.pistos at geoshell.com Fri Jan 11 14:45:32 2008 From: jesuswasramazing.10.pistos at geoshell.com (jesuswasramazing.10.pistos at geoshell.com) Date: Fri, 11 Jan 2008 14:45:32 -0500 Subject: [Rg 123] [PATCH] File upload example Message-ID: <6c9d9ef0801111145k720c5cfdsf9128a4925305571@mail.gmail.com> Example code for handling file uploads. Pistos -- http://blog.purepistos.net -------------- next part -------------- A non-text attachment was scrubbed... Name: upload-example.patch.gz Type: application/x-gzip Size: 1595 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080111/0743528c/attachment.gz From keita.yamaguchi at gmail.com Sat Jan 12 18:44:06 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Sun, 13 Jan 2008 08:44:06 +0900 Subject: [Rg 124] patch for supporting Last-Modified and If-Modified-Since headers Message-ID: <7fae95590801121544m488e73av7f295fc3deb0d531@mail.gmail.com> Hi, This is a Ramaze::Dispatcher::File patch for supporting Last-Modified and If-Modified-Since headers. Regards, Keita Yamaguchi -------------- next part -------------- A non-text attachment was scrubbed... Name: support-last-modified.patch Type: text/x-patch Size: 3024 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080113/b9555dfb/attachment-0001.bin From keita.yamaguchi at gmail.com Sun Jan 13 04:24:32 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Sun, 13 Jan 2008 18:24:32 +0900 Subject: [Rg 125] patch for Content-Language based localization Message-ID: <7fae95590801130124h1ba70d81jc5032e6eb2386169@mail.gmail.com> Hi, This is a patch for response header "Content-Language" based localization. Ramaze localization is session based only, but sometimes non-session based localization is required. For example, there is a case that locale is determined by path: /index ... localized "index" by session based /en/index ... localized "index" for language "en" /ja/index ... localized "index" for language "ja" This patch provides an easy solution like this code: class MainController < Ramaze::Controller trait :lang => nil def index response["Content-Language"] = class_trait[:lang] if class_trait[:lang] end end class EnController < MainController map '/en' trait :lang => "en" end class JaController < MainController map '/en' trait :lang => "ja" end Regards, Keita Yamaguchi -------------- next part -------------- A non-text attachment was scrubbed... Name: content-language-based-localization.patch Type: text/x-patch Size: 2769 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080113/76620d52/attachment.bin From rff.rff at gmail.com Sun Jan 13 18:15:03 2008 From: rff.rff at gmail.com (gabriele renzi) Date: Mon, 14 Jan 2008 00:15:03 +0100 Subject: [Rg 126] Re: patch for supporting Last-Modified and If-Modified-Since headers In-Reply-To: <7fae95590801121544m488e73av7f295fc3deb0d531@mail.gmail.com> References: <7fae95590801121544m488e73av7f295fc3deb0d531@mail.gmail.com> Message-ID: <828083e70801131515p7403b487mf3ee06539647a480@mail.gmail.com> On Sun, 13 Jan 2008 08:44:06 +0900, Keita Yamaguchi wrote: > Hi, > > This is a Ramaze::Dispatcher::File patch for supporting Last-Modified > and If-Modified-Since headers. > > Regards, I extended the patch to add ETag support (If-None-Match: "tag"), and 4 tests for this two things. I had to change spec/helper/mock_http so that the special params :if_modified_since=>date and :if_none_match=>"etag" are treated correctly (as :referer,:cookie etc). I'm not sure the thing behaves correctly though, so please check it. As for ETag: I'm building the hash as MD5(filename+mtime) instead of reading the whole file to hash it, it may have sense to add file size or inode number. -------------- next part -------------- A non-text attachment was scrubbed... Name: cache.patch.gz Type: application/x-gzip Size: 1879 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080114/8adf8836/attachment.gz From keita.yamaguchi at gmail.com Mon Jan 14 07:39:07 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Mon, 14 Jan 2008 21:39:07 +0900 Subject: [Rg 127] [PATCH] gettext parser module Message-ID: <7fae95590801140439o4cf1ef1eic8d35121d4f8c8b6@mail.gmail.com> Hi, This patch adds a gettext parser module for creating pot file. The pod file generated by this module includes file name and line number information. And I think this is useful for rake users. Usage: put a task like this into Rakefile: task :generate_pot do require 'ramaze/contrib/gettext/parser.rb' Ramaze::Tool::Gettext.module_eval do pot = (trait[:file] % trait[:default_language]) + '.pot' GetText::RGetText.run(Dir.glob("template/*.{xhtml,mab}"), pot) end end % rake generate_pot Regards, Keita Yamaguchi -------------- next part -------------- A non-text attachment was scrubbed... Name: gettext-parser.patch.gz Type: application/x-gzip Size: 1601 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080114/77284cbd/attachment.gz From m.fellinger at gmail.com Mon Jan 14 11:07:18 2008 From: m.fellinger at gmail.com (Michael Fellinger) Date: Tue, 15 Jan 2008 01:07:18 +0900 Subject: [Rg 128] Re: [PATCH] gettext parser module In-Reply-To: <7fae95590801140439o4cf1ef1eic8d35121d4f8c8b6@mail.gmail.com> References: <7fae95590801140439o4cf1ef1eic8d35121d4f8c8b6@mail.gmail.com> Message-ID: <9c00d3e00801140807n6eb52259w193e95d35c6de296@mail.gmail.com> On Jan 14, 2008 9:39 PM, Keita Yamaguchi wrote: > Hi, > > This patch adds a gettext parser module for creating pot file. > The pod file generated by this module includes file name and line > number information. > And I think this is useful for rake users. > > Usage: > > put a task like this into Rakefile: > > task :generate_pot do > require 'ramaze/contrib/gettext/parser.rb' > Ramaze::Tool::Gettext.module_eval do > pot = (trait[:file] % trait[:default_language]) + '.pot' > GetText::RGetText.run(Dir.glob("template/*.{xhtml,mab}"), pot) > end > end > > % rake generate_pot Thank you, applied this as well. ^ manveru From m.fellinger at gmail.com Mon Jan 14 11:11:47 2008 From: m.fellinger at gmail.com (Michael Fellinger) Date: Tue, 15 Jan 2008 01:11:47 +0900 Subject: [Rg 129] Re: patch for Content-Language based localization In-Reply-To: <7fae95590801130124h1ba70d81jc5032e6eb2386169@mail.gmail.com> References: <7fae95590801130124h1ba70d81jc5032e6eb2386169@mail.gmail.com> Message-ID: <9c00d3e00801140811w5ed8132ag2747c53d5c20d1af@mail.gmail.com> On Jan 13, 2008 6:24 PM, Keita Yamaguchi wrote: > Hi, > > This is a patch for response header "Content-Language" based localization. > Ramaze localization is session based only, but sometimes non-session > based localization is required. > For example, there is a case that locale is determined by path: > > /index ... localized "index" by session based > /en/index ... localized "index" for language "en" > /ja/index ... localized "index" for language "ja" > > This patch provides an easy solution like this code: > > class MainController < Ramaze::Controller > trait :lang => nil > def index > response["Content-Language"] = class_trait[:lang] if class_trait[:lang] > end > end > > class EnController < MainController > map '/en' > trait :lang => "en" > end > > class JaController < MainController > map '/en' > trait :lang => "ja" > end Thanks a lot, applied this. ^ manveru From keita.yamaguchi at gmail.com Sun Jan 20 03:30:32 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Sun, 20 Jan 2008 17:30:32 +0900 Subject: [Rg 130] [PATCH] update the Amrita2 (2.0.0) template engine Message-ID: <7fae95590801200030n489650a1g9a44d304ded61a3b@mail.gmail.com> Hi, This is a patch for updating Amrita2 template engine of Ramaze. Amrita2 version 2.0.0 was released at 2008/01/16, it changed API and added some features from version 1.9.x. Example: class MyController < Ramaze::Controller def index # @data is used as model data for rendering. # Almost all objects(Hash, Array, String, etc.) can be model data. @data = {:one => 1, :two => 2} # AmXML with erb "<<:one>> + <<:two>> = <%= $_[:one] + $_[:two] %>" # => "1 + 2 = 3" end def am_src @data = {:title = "hello"} # Amrita1 style using the attribute "am:src" "

" end end Regards, Keita Yamaguchi -------------- next part -------------- A non-text attachment was scrubbed... Name: update-amrita2.patch.gz Type: application/x-gzip Size: 3461 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080120/b1072984/attachment.gz From m.fellinger at gmail.com Sun Jan 20 03:39:41 2008 From: m.fellinger at gmail.com (Michael Fellinger) Date: Sun, 20 Jan 2008 17:39:41 +0900 Subject: [Rg 131] Re: [PATCH] update the Amrita2 (2.0.0) template engine In-Reply-To: <7fae95590801200030n489650a1g9a44d304ded61a3b@mail.gmail.com> References: <7fae95590801200030n489650a1g9a44d304ded61a3b@mail.gmail.com> Message-ID: <9c00d3e00801200039m7d3eeacg5dea3e1ced08ed3@mail.gmail.com> On Jan 20, 2008 5:30 PM, Keita Yamaguchi wrote: > Hi, > > This is a patch for updating Amrita2 template engine of Ramaze. Thank you very much, saves me the trouble of trying to wrap my head around amrita2 again ^^; Patch applied. ^ manveru > Amrita2 version 2.0.0 was released at 2008/01/16, it changed API and > added some features from version 1.9.x. > > Example: > > class MyController < Ramaze::Controller > def index > # @data is used as model data for rendering. > # Almost all objects(Hash, Array, String, etc.) can be model data. > @data = {:one => 1, :two => 2} > # AmXML with erb > "<<:one>> + <<:two>> = <%= $_[:one] + $_[:two] %>" > # => "1 + 2 = 3" > end > > def am_src > @data = {:title = "hello"} > # Amrita1 style using the attribute "am:src" > "

" > end > > > end > > Regards, > Keita Yamaguchi From keita.yamaguchi at gmail.com Mon Jan 21 02:10:38 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Mon, 21 Jan 2008 16:10:38 +0900 Subject: [Rg 132] [PATCH] Textile(RedCloth) template engine Message-ID: <7fae95590801202310n5ed56358rd9655fbba001f109@mail.gmail.com> Hi, This is a patch for adding the Textile(RedCloth) template engine. Usage: class MyController < Ramaze::Controller engine :Textile def index "h1. hello" # => "

hello

" end def with_erb @one = 1 @two = 2 "h2. <%= @one %> + <%= @two %> = <%= @one + @two %>" # => "

1 + 2 = 3

" end end Regards, Keita Yamaguchi -------------- next part -------------- A non-text attachment was scrubbed... Name: textile.patch.gz Type: application/x-gzip Size: 3397 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080121/fdf7bd6c/attachment.gz From m.fellinger at gmail.com Mon Jan 21 02:24:10 2008 From: m.fellinger at gmail.com (Michael Fellinger) Date: Mon, 21 Jan 2008 16:24:10 +0900 Subject: [Rg 133] Re: [PATCH] Textile(RedCloth) template engine In-Reply-To: <7fae95590801202310n5ed56358rd9655fbba001f109@mail.gmail.com> References: <7fae95590801202310n5ed56358rd9655fbba001f109@mail.gmail.com> Message-ID: <9c00d3e00801202324m40424d47n5683b5060f81f52b@mail.gmail.com> On Jan 21, 2008 4:10 PM, Keita Yamaguchi wrote: > Hi, > > This is a patch for adding the Textile(RedCloth) template engine. Maybe the engine should be called RedCloth, since it doesn't only implement textile afaik. open for argumentation as usual :) ^ manveru From keita.yamaguchi at gmail.com Mon Jan 21 03:24:48 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Mon, 21 Jan 2008 17:24:48 +0900 Subject: [Rg 134] Re: [PATCH] Textile(RedCloth) template engine In-Reply-To: <9c00d3e00801202324m40424d47n5683b5060f81f52b@mail.gmail.com> References: <7fae95590801202310n5ed56358rd9655fbba001f109@mail.gmail.com> <9c00d3e00801202324m40424d47n5683b5060f81f52b@mail.gmail.com> Message-ID: <7fae95590801210024u27ee6e3fp56e3d474bb5233@mail.gmail.com> I agree :) I renamed to RedCloth. This is a new patch. Please unrecord the old one. Keita Yamaguchi On Jan 21, 2008 4:24 PM, Michael Fellinger wrote: > On Jan 21, 2008 4:10 PM, Keita Yamaguchi wrote: > > Hi, > > > > This is a patch for adding the Textile(RedCloth) template engine. > > Maybe the engine should be called RedCloth, since it doesn't only > implement textile afaik. > open for argumentation as usual :) > > ^ manveru > _______________________________________________ > Ramaze-general mailing list > Ramaze-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/ramaze-general > -------------- next part -------------- A non-text attachment was scrubbed... Name: redcloth.patch.gz Type: application/x-gzip Size: 3457 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080121/5acd3ad1/attachment.gz From jeremyevans0 at gmail.com Mon Jan 28 11:26:13 2008 From: jeremyevans0 at gmail.com (Jeremy Evans) Date: Mon, 28 Jan 2008 08:26:13 -0800 Subject: [Rg 135] [PATCH] Add SCGI Adapter Message-ID: <5c548e460801280826g542bafeem863e6b30b20dbd01@mail.gmail.com> My SCGI handler for rack was accepted recently, so here is a patch that enables you to use SCGI with Ramaze. This requires the latest scgi gem (0.9.0) and an updated rack. I've tested this with lighttpd, if anyone could test with Apache mod_scgi, that would be beneficial. Thanks, Jeremy -------------- next part -------------- A non-text attachment was scrubbed... Name: add_scgi_adapter.diff.gz Type: application/x-gzip Size: 2525 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080128/9d050a41/attachment.gz From keita.yamaguchi at gmail.com Mon Jan 28 12:51:49 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Tue, 29 Jan 2008 02:51:49 +0900 Subject: [Rg 136] [PATCH] update the Thin adapter for Thin 0.6.1 Message-ID: <7fae95590801280951r248bf5b9q7a3a72dfcbd682d4@mail.gmail.com> Hi, This patch updates the Thin adapter for Thin 0.6.1. Thin version 0.6.1 stops Ramaze's spec tests because it removed Thin::Server#listen! method and changed Thin::Server#start to start port listening. This patch is a solution of the test failure, but please be careful this is unconsidered for Thin version 0.5.4. Regards, Keita Yamaguchi From keita.yamaguchi at gmail.com Mon Jan 28 12:57:09 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Tue, 29 Jan 2008 02:57:09 +0900 Subject: [Rg 137] Re: [PATCH] update the Thin adapter for Thin 0.6.1 In-Reply-To: <7fae95590801280951r248bf5b9q7a3a72dfcbd682d4@mail.gmail.com> References: <7fae95590801280951r248bf5b9q7a3a72dfcbd682d4@mail.gmail.com> Message-ID: <7fae95590801280957s5d73b789q4b144d97be873209@mail.gmail.com> Sorry, the patch is attached at this mail. Keita Yamaguchi On Jan 29, 2008 2:51 AM, Keita Yamaguchi wrote: > Hi, > > This patch updates the Thin adapter for Thin 0.6.1. > > Thin version 0.6.1 stops Ramaze's spec tests because it removed > Thin::Server#listen! method and changed Thin::Server#start to start > port listening. This patch is a solution of the test failure, but > please be careful this is unconsidered for Thin version 0.5.4. > > Regards, > Keita Yamaguchi > -------------- next part -------------- A non-text attachment was scrubbed... Name: update-thin-adapter.patch.gz Type: application/x-gzip Size: 320 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080129/e4b83fe1/attachment.gz From keita.yamaguchi at gmail.com Mon Jan 28 13:46:56 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Tue, 29 Jan 2008 03:46:56 +0900 Subject: [Rg 138] [PATCH] modify the '>' position at AuthHelper Message-ID: <7fae95590801281046t710ca1b4wd2ca93bedbd2a595@mail.gmail.com> Hi, This patch modifies the '>' position at AuthHelper. Regards, Keita Yamaguchi From keita.yamaguchi at gmail.com Mon Jan 28 13:52:47 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Tue, 29 Jan 2008 03:52:47 +0900 Subject: [Rg 139] Re: [PATCH] modify the '>' position at AuthHelper In-Reply-To: <7fae95590801281046t710ca1b4wd2ca93bedbd2a595@mail.gmail.com> References: <7fae95590801281046t710ca1b4wd2ca93bedbd2a595@mail.gmail.com> Message-ID: <7fae95590801281052wa0f73c9od2383b003f2f0813@mail.gmail.com> Sorry, the patch is attached at this mail. Keita Yamaguchi On Jan 29, 2008 3:46 AM, Keita Yamaguchi wrote: > Hi, > > This patch modifies the '>' position at AuthHelper. > > Regards, > Keita Yamaguchi > -------------- next part -------------- A non-text attachment was scrubbed... Name: modify-AuthHelper.patch.gz Type: application/x-gzip Size: 321 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080129/752faaf7/attachment-0001.gz From john at oxyliquit.de Mon Jan 28 13:57:27 2008 From: john at oxyliquit.de (Jonathan Buch) Date: Mon, 28 Jan 2008 19:57:27 +0100 Subject: [Rg 140] Re: [PATCH] modify the '>' position at AuthHelper In-Reply-To: <7fae95590801281052wa0f73c9od2383b003f2f0813@mail.gmail.com> References: <7fae95590801281046t710ca1b4wd2ca93bedbd2a595@mail.gmail.com> <7fae95590801281052wa0f73c9od2383b003f2f0813@mail.gmail.com> Message-ID: Hi, >> This patch modifies the '>' position at AuthHelper. patch applied. Thanks! Jo -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From ryan at wonko.com Mon Jan 28 17:42:52 2008 From: ryan at wonko.com (Ryan Grove) Date: Mon, 28 Jan 2008 14:42:52 -0800 Subject: [Rg 141] [PATCH] fix A method to allow link title attribute Message-ID: <9d2396120801281442y5f4caa19u12de25a9e7416fea@mail.gmail.com> The attached patch fixes a hash key collision in Ramaze::LinkHelper's A method that makes it impossible to set the "title" attribute of a link. - Ryan -------------- next part -------------- A non-text attachment was scrubbed... Name: fix_A_allow_title_attr.patch.gz Type: application/x-gzip Size: 675 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080128/848e8112/attachment.gz From john at oxyliquit.de Tue Jan 29 09:50:20 2008 From: john at oxyliquit.de (Jonathan Buch) Date: Tue, 29 Jan 2008 15:50:20 +0100 Subject: [Rg 142] Re: [PATCH] fix A method to allow link title attribute In-Reply-To: <9d2396120801281442y5f4caa19u12de25a9e7416fea@mail.gmail.com> References: <9d2396120801281442y5f4caa19u12de25a9e7416fea@mail.gmail.com> Message-ID: Hi, > The attached patch fixes a hash key collision in Ramaze::LinkHelper's > A method that makes it impossible to set the "title" attribute of a > link. good catch, thank you very much! Applied: Mon Jan 28 23:24:11 CET 2008 Ryan Grove * fix_A_allow_title_attr Tue Jan 29 15:46:44 CET 2008 Jonathan Buch * LinkHelper: Reenable :title use for text (if no :text given), repair CGI.escape'ing url elements + spec Jo -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lasso at lassoweb.se Tue Jan 29 15:37:17 2008 From: lasso at lassoweb.se (Lars Olsson) Date: Tue, 29 Jan 2008 21:37:17 +0100 Subject: [Rg 143] Restarting Ramaze via net-ssh Message-ID: <479F8E7D.4050105@lassoweb.se> Hi list! The following isn't strictly a Ramaze question, more of a Unix question, but since it involves Ramaze maybe someone has experience with something similar? I'm having some problems with my Mongrel + Ramaze setup at the moment, which means I occasionally have to login via SSH to a shared host and restart the server. The steps I usually take are: 1. Find out if any old Ramaze process is running and what pid that process has: `ps xU username` 2. Kill Ramaze process: `kill some_pid` 3. Restart Ramaze: `cd ramaze_folder; ruby -rubygems main.rb &` Since I have the net-ssh gem installed on my local (Windows) machine I thought it would be a good idea to automate this process. I wrote a small script that sent the commands via net-ssh instead. Step 1 (finding the pid) works nicely, but step 2 and 3 are giving me trouble. When killing Ramaze (step 2) the script stalls with the message 'Shutdown Ramaze (it's safe to kill me now if i hang)' If I log in via SSH I can see that the process has been killed, but the kill command just doesn't return anything (and thus stalls the script). When starting the server again the script again stalls with the following messages (coming from Og) 'INFO: Og uses the Sqlite store.' 'INFO: Og uses the Sqlite store.' 'INFO: Og uses the Sqlite store.' Again, the server seems to start, it's just not returning any result (and thus stalls the script). I tried using both channels and the popen3 method (see http://net-ssh.rubyforge.org/chapter-4.html) but the result seems identical. Any hints on why this happens and what I can do about it? Kindly /lasso -- ________________________________________ Lars Olsson lasso at lassoweb.se http://www.lassoweb.se/ From rff.rff at gmail.com Tue Jan 29 16:43:12 2008 From: rff.rff at gmail.com (gabriele renzi) Date: Tue, 29 Jan 2008 22:43:12 +0100 Subject: [Rg 144] Re: Restarting Ramaze via net-ssh In-Reply-To: <479F8E7D.4050105@lassoweb.se> References: <479F8E7D.4050105@lassoweb.se> Message-ID: <828083e70801291343x375c3090pdb79620acb0b3728@mail.gmail.com> On Jan 29, 2008 9:37 PM, Lars Olsson wrote: > Hi list! > > The following isn't strictly a Ramaze question, more of a Unix question, > but since it involves Ramaze maybe someone has experience with something > similar? sorry if this is somewhat diifferent, but wouldn't it be easier to just use ssh host where command is something like "killlall mongrel" or "pkill mongrel" ? Just my 2 cents. -- goto 10: http://www.goto10.it blog it: http://riffraff.blogsome.com blog en: http://www.riffraff.info From keita.yamaguchi at gmail.com Tue Jan 29 23:55:05 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Wed, 30 Jan 2008 13:55:05 +0900 Subject: [Rg 145] [PATCH] Add the Tenjin templating engine Message-ID: <7fae95590801292055v56a53113t77c68f6845c5c387@mail.gmail.com> Hi, This patch adds the Tenjin templating engine to Ramaze. Tenjin is a very fast template engine, see http://www.kuwata-lab.com/tenjin/. Regards, Keita Yamaguchi -------------- next part -------------- A non-text attachment was scrubbed... Name: tenjin.patch.gz Type: application/x-gzip Size: 2181 bytes Desc: not available Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080130/d7c01810/attachment.gz From john at oxyliquit.de Wed Jan 30 11:09:50 2008 From: john at oxyliquit.de (Jonathan Buch) Date: Wed, 30 Jan 2008 17:09:50 +0100 Subject: [Rg 146] Re: [PATCH] Add the Tenjin templating engine In-Reply-To: <7fae95590801292055v56a53113t77c68f6845c5c387@mail.gmail.com> References: <7fae95590801292055v56a53113t77c68f6845c5c387@mail.gmail.com> Message-ID: Hi, > This patch adds the Tenjin templating engine to Ramaze. > > Tenjin is a very fast template engine, see > http://www.kuwata-lab.com/tenjin/. thank you very much, Amano applied the patch. Many many thanks also for also providing the specs. Tenjin really looks interesting, I'm considering to use it instead of Ezamar allready... Anw, thanks again for you active Ramaze development. :) Jo -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lasso at lassoweb.se Thu Jan 31 13:02:06 2008 From: lasso at lassoweb.se (Lars Olsson) Date: Thu, 31 Jan 2008 19:02:06 +0100 Subject: [Rg 147] Re: Restarting Ramaze via net-ssh In-Reply-To: <828083e70801291343x375c3090pdb79620acb0b3728@mail.gmail.com> References: <479F8E7D.4050105@lassoweb.se> <828083e70801291343x375c3090pdb79620acb0b3728@mail.gmail.com> Message-ID: <47A20D1E.5050706@lassoweb.se> Hi! yes, that sounds reasonable. But does it work from Windows? I use putty as my SSH client. Kindly /lasso gabriele renzi skrev: > On Jan 29, 2008 9:37 PM, Lars Olsson wrote: >> Hi list! >> >> The following isn't strictly a Ramaze question, more of a Unix question, >> but since it involves Ramaze maybe someone has experience with something >> similar? > > > sorry if this is somewhat diifferent, but wouldn't it be easier to just use > ssh host > where command is something like "killlall mongrel" or "pkill mongrel" ? > > Just my 2 cents. From lasso at lassoweb.se Thu Jan 31 13:55:24 2008 From: lasso at lassoweb.se (Lars Olsson) Date: Thu, 31 Jan 2008 19:55:24 +0100 Subject: [Rg 148] Daemonizing mongrel? Message-ID: <47A2199C.6030603@lassoweb.se> Hi list! Mongrel supports a daemonized mode. Is it possible to use this mode via the Ramaze mongrel adapter? Kindly /lasso -- ________________________________________ Lars Olsson lasso at lassoweb.se http://www.lassoweb.se/ From rff.rff at gmail.com Thu Jan 31 13:57:14 2008 From: rff.rff at gmail.com (gabriele renzi) Date: Thu, 31 Jan 2008 19:57:14 +0100 Subject: [Rg 149] Re: Restarting Ramaze via net-ssh In-Reply-To: <47A20D1E.5050706@lassoweb.se> References: <479F8E7D.4050105@lassoweb.se> <828083e70801291343x375c3090pdb79620acb0b3728@mail.gmail.com> <47A20D1E.5050706@lassoweb.se> Message-ID: <828083e70801311057v315085f9seab2f2c0d72fd74@mail.gmail.com> On Jan 31, 2008 7:02 PM, Lars Olsson wrote: > Hi! > > yes, that sounds reasonable. But does it work from Windows? I use putty > as my SSH client. Well at lest you can use killall instead of parsing the output of ps :) Surely you can fire up putty and enter the command interactively., but that is not what you want. I am quite sure it can be used in "batch" mode, but It's been a long time since I used putty, so I'm sorry I can't help more :/ -- goto 10: http://www.goto10.it blog it: http://riffraff.blogsome.com blog en: http://www.riffraff.info From john at oxyliquit.de Thu Jan 31 14:12:18 2008 From: john at oxyliquit.de (Jonathan Buch) Date: Thu, 31 Jan 2008 20:12:18 +0100 Subject: [Rg 150] Re: Daemonizing mongrel? In-Reply-To: <47A2199C.6030603@lassoweb.se> References: <47A2199C.6030603@lassoweb.se> Message-ID: Hi, > Mongrel supports a daemonized mode. Is it possible to use this mode via > the Ramaze mongrel adapter? how about just daemonizing it by hand? ./start.rb /dev/null 2>&1 & Any functionality missing by doing that? Jo -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From keita.yamaguchi at gmail.com Thu Jan 31 23:29:59 2008 From: keita.yamaguchi at gmail.com (Keita Yamaguchi) Date: Fri, 1 Feb 2008 13:29:59 +0900 Subject: [Rg 151] Re: Daemonizing mongrel? In-Reply-To: <47A2199C.6030603@lassoweb.se> References: <47A2199C.6030603@lassoweb.se> Message-ID: <7fae95590801312029w42628759r3ebaebf96f10745c@mail.gmail.com> Hello, > Mongrel supports a daemonized mode. Is it possible to use this mode via > the Ramaze mongrel adapter? I think the adapter doesn't support to setup Mongrel configurations. Mongrel's daemonized mode uses the gem "daemons". So you can do the same thing by like this code: --- require "daemons/daemonize" Daemonize.daemonize Ramaze.start --- I think Daemons.run is also good. --- require 'daemons' # exec start.rb Daemons.run('start.rb') --- More simply, you can use Process.daemon on Ruby 1.9.x. --- Process.daemon Ramaze.start --- Process.setsid is useful If Ruby 1.8.x. --- fork { Process.setsid Ramaze.start } --- These ways are general methods for daemonization with Ramaze adapters(webrick, thin, etc.). Keita Yamaguchi On Feb 1, 2008 3:55 AM, Lars Olsson wrote: > Hi list! > > Mongrel supports a daemonized mode. Is it possible to use this mode via > the Ramaze mongrel adapter? > > Kindly > > /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 >