From kasatani at gmail.com Thu Mar 2 05:41:43 2006 From: kasatani at gmail.com (Shinya Kasatani) Date: Thu, 2 Mar 2006 19:41:43 +0900 Subject: [Rake-devel] [PATCH] Make Ruby path configurable Message-ID: Hi, I've made a small patch that allows you to specify Ruby path which is used when executing tests. I needed it to use rcov (code coverage tool) with Rake in my Rails appilcation. With this patch, you can run rcov with your test using the following command line: rake test_units RUBY=rcov Note that this doesn't work when warning is set to true, because rcov doesn't recognize "-w" option. I found this article describing how to use rcov with Rake, but rather than adding Rake tasks, I thought it would be smarter if Rake had an option to specify Ruby path. http://asplake.blogspot.com/2006/01/test-coverage-with-rcov-and-rake-962.html I tried to write unit test for this patch, but I gave up... Thanks, Shinya -------------- next part -------------- A non-text attachment was scrubbed... Name: env_ruby.patch Type: application/octet-stream Size: 610 bytes Desc: not available Url : http://rubyforge.org/pipermail/rake-devel/attachments/20060302/59d9236c/env_ruby.obj From vic at rubyforge.org Tue Mar 7 20:00:04 2006 From: vic at rubyforge.org (Victor Hugo Borja) Date: Tue, 07 Mar 2006 19:00:04 -0600 Subject: [Rake-devel] [PATCH] rake --directory option Message-ID: This simple patch adds the --directory option that allows to change the execution directory for rake. thanks. -- vic -------------- next part -------------- A non-text attachment was scrubbed... Name: directory_option.patch Type: text/x-diff Size: 1711 bytes Desc: not available Url : http://rubyforge.org/pipermail/rake-devel/attachments/20060307/f650fd88/attachment.bin From luke at madstop.com Mon Mar 13 17:05:05 2006 From: luke at madstop.com (Luke Kanies) Date: Mon, 13 Mar 2006 16:05:05 -0600 (CST) Subject: [Rake-devel] Package tasks Message-ID: Hi all, I'm using Rake to build packages for a few different projects of mine[1], and I'm finding that the package task as not really set up to go well with how packages really work. In particuar, it makes no mention of binary directory, library directories, man page directories, or any of the standard file locations. Would there be any interest in a reworked package task that used the rbconfig variables and required that users specify binaries, libraries, etc, storing them accordingly? I plan to use EPM[2] to do most of my package building, so I should be able to contribute that, also. Lastly, is anyone using rake to manage multiple projects? I've listed four projects below, but I'm adding projects all of the time, and I'm wondering if people have any helpful hints in this process. Obviously, part of it is creating common tasks and putting them into a common library, but do people create a separate "build" repository, or what? Thanks, Luke 1 -- http://reductivelabs.com/projects/puppet http://reductivelabs.com/projects/facter http://reductivelabs.com/projects/enhos http://reductivelabs.com/projects/naginator 2 -- http://www.easysw.com/epm/ -- A Chemical Limerick: A mosquito cried out in pain: "A chemist has poisoned my brain!" The cause of his sorrow was para-dichlorodiphenyltrichloroethane -- Adam Bernard --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com From stuart.hungerford at anu.edu.au Wed Mar 15 18:27:08 2006 From: stuart.hungerford at anu.edu.au (Stuart Hungerford) Date: Thu, 16 Mar 2006 10:27:08 +1100 Subject: [Rake-devel] Rake best practices for managing multi-directory project... Message-ID: <4418A2CC.4020204@anu.edu.au> Hi, Apologies for sending a Rake usage message to this list but I figure it's the best way to reach experienced Rake users too. I'm currently working on a project with a number of "modules" in different directories. I'm using Rake to manage the running of the module services in the correct order. I have a directory structure something like this: /project +-- Rakefile +-- module A +-- module A files +-- tasks.rake +-- module B +-- module B files + tasks.rake +-- module C etc So each module directory has its own tasks.rake file and all the SQL, shell, Ruby etc scripts needed to implement the service it provides. Each tasks.rake uses Rake namespaces fully to avoid any task name ambiguity across the project. The "top level" Rakefile in /project uses Rake imports to bring each module tasks.rake file into it and make them available from the command line. Are there any Rake best practices or idioms or patterns that I could be applying in this situation? For example, in my current setup the top level Rakefile needs to setup module paths as global variables so the tasks.rake files look in their own directory for script files and not the top level directory--which seems a bit clunky. Any advice from people using Rake for similar projects would be much appreciated. TIA, Stu -- Stuart Hungerford ANUSF Data Intensive Projects From tilman at code-monkey.de Sat Mar 18 09:28:53 2006 From: tilman at code-monkey.de (Tilman Sauerbeck) Date: Sat, 18 Mar 2006 15:28:53 +0100 Subject: [Rake-devel] Package tasks In-Reply-To: References: Message-ID: <20060318142851.GA28028@code-monkey.de> Luke Kanies [2006-03-13 16:05]: > I'm using Rake to build packages for a few different projects of mine[1], > and I'm finding that the package task as not really set up to go well with > how packages really work. > > In particuar, it makes no mention of binary directory, library directories, > man page directories, or any of the standard file locations. Would there be > any interest in a reworked package task that used the rbconfig variables and > required that users specify binaries, libraries, etc, storing them > accordingly? I think you don't understand what Rake's PackageTask is supposed to do. It's supposed to build a tarball/zip archive that contains stuff in your source tree. So it doesn't need to know where the system stores libraries or man pages... Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/rake-devel/attachments/20060318/0d15fe16/attachment.bin From assaph at gmail.com Thu Mar 30 18:34:39 2006 From: assaph at gmail.com (Assaph Mehr) Date: Fri, 31 Mar 2006 10:34:39 +1100 Subject: [Rake-devel] [PATCH] safe_ln Message-ID: <3ff47be90603301534r2c45c347i93c3e98983ef1e7d@mail.gmail.com> Hi, Am using ruby 1.8.4 on WinXP through the OneClick installer (RC 1 build). I came across an issue with Rake's PackageTask using safe_ln. It appear that ln now throws a NotImplemented error on Windows, rather than an Errno. This fixes it: --- rake.rb 2006-03-31 10:21:13.439299300 +1100 +++ rake.rb.patched 2006-03-31 10:19:15.482491100 +1100 @@ -603,7 +603,7 @@ else begin ln(*args) - rescue Errno::EOPNOTSUPP, Errno::EXDEV + rescue Errno::EOPNOTSUPP, Errno::EXDEV, NotImplementedError LN_SUPPORTED[0] = false cp(*args) end I haven't done a full scale investigation, I just saw the error and the fix seems obvious and trivial. If you need me to carry out more tests just let me know. Cheers, Assaph