Yep, that's from cucumber. It's wrapped in a begin; rescue LoadError so that if its doesnt exist, it creates a placeholder cucumber task (line 33). Basically its a copy of the cucumber rake task for rails that has this same functionality.
On Oct 10, 2009, at 5:37 PM, Matt Aimonetti wrote: > what about > require 'cucumber/rake/task' > > Is that from cucumber or another task that doesn't require cuke? > > - Matt > > > On Sat, Oct 10, 2009 at 5:30 PM, Jacques Crocker > <[email protected]> wrote: > The generated cucumber.rake tasks no longer fail if cucumber is not > installed. It'll just provide a nice little message in the task > description informing that cucumber isn't currently installed > http://github.com/merbjedi/merb_cucumber/blob/master/lib/generators/cucumber/templates/lib/tasks/cucumber.rake > > I do think its pretty safe to include > > On Oct 10, 2009, at 5:26 PM, Matt Aimonetti wrote: > >> 2. should require people to have cucumber installer or bundled >> otherwise the tasks would fail to load, I really don't think it's a >> good idea. >> >> 1. is fine as long as cucumber doesn't become required to run the >> default stack. >> >> - Matt >> >> On Sat, Oct 10, 2009 at 5:03 PM, Jacques Crocker >> <[email protected]> wrote: >> Well, there's a couple options here if we decide to integrate merb- >> cucumber. >> >> 1) It could be embedded into merb-gen by default so all someone has >> to do is run "merb-gen cucumber" to get all the files they need. >> >> 2) merb-gen app could just generate the features/, cucumber.yml, >> and lib/tasks/cucumber.rake to have a working cucumber install by >> default. >> >> I think option 2 would still be pretty non-intrusive. Someone could >> easily ignore it as it would only run on "rake cucumber". Or they >> could clear it out easily by running "merb-gen cucumber -d". >> >> >> On Oct 10, 2009, at 4:58 PM, Matt Aimonetti wrote: >> >>> I don't think that it should be generated by default for any new >>> merb app. >>> >>> - Matt >>> >>> On Sat, Oct 10, 2009 at 1:54 PM, Jacques Crocker >>> <[email protected]> wrote: >>> >>> Cucumber 0.4 just came out and broke anyone using merb_cucumber. A >>> working version of this library was already 3 times removed (david- >>> >roman->pk). Seems much too complicated for something as cool and >>> popular as Cucumber which I'm guessing most merbists are going to be >>> pretty keen on getting working. >>> >>> I've got merb_cucumber working with the latest version and with Merb >>> 1.1. I'd like to propose moving it into the main merb project as >>> merb- >>> cucumber, and generating it by default on merb-gen app. >>> >>> Any opinions? >>> >>> >>> >>> >>> >> >> >> >> >> >> > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
