[#397988] Help with sqlite3 please — Kaye Ng <lists@...>

I'm on Windows 7 Ultimate, 64-bit

18 messages 2012/08/03
[#397989] Re: Help with sqlite3 please — Chris Hulan <chris.hulan@...> 2012/08/03

sqlite is not ruby, so you should look for a sqlite group ;)

[#397990] Re: Help with sqlite3 please — Kaye Ng <lists@...> 2012/08/03

> However it looks like you have 'SQL' at the beginning of your CREATE

[#398031] Gem install or usage problem in shared environment — Tom Moulton <lists@...>

I am moving to a Westhost shared CPanel account and I am trying to set

17 messages 2012/08/04
[#398077] Re: Gem install or usage problem in shared environment — Tom Moulton <lists@...> 2012/08/06

I got a solution from WestHost and it may help others:

[#398086] Re: Gem install or usage problem in shared environment — Ryan Davis <ryand-ruby@...> 2012/08/07

[#398088] Re: Gem install or usage problem in shared environment — Tom Moulton <lists@...> 2012/08/07

Ryan Davis wrote in post #1071503:

[#398063] Join with ActiveRecord using non-standard schema — Tedi Roca <lists@...>

Hi,

13 messages 2012/08/06

[#398135] Help with database-related code pls — Kaye Ng <lists@...>

Hi guys! This is just a part of the code of a program that can load a

12 messages 2012/08/08

[#398190] How do you order your class methods? — masta Blasta <lists@...>

Just getting some layout ideas from other fellow devs.

11 messages 2012/08/10

[#398245] namespace instance methods? — John Doe <lists@...>

I have a large class with many instance methods that I want to

14 messages 2012/08/13

[#398287] Idea: def ... end returns the symbolized version of the newly-defined method, instead of nil — Peter <lumbergh@...>

This would allow useful syntax constructs such as this:

9 messages 2012/08/13

[#398362] case vs if-else — ajay paswan <lists@...>

Which one is faster?

20 messages 2012/08/16

[#398385] A Ruby class is never closed — Rubyist Rohit <lists@...>

Is it true that a Ruby class definition is never closed? Even after

18 messages 2012/08/16

[#398504] How to create an EXecutable file (Linux) — Fosiul Alam <lists@...>

Hi

13 messages 2012/08/22

[#398506] Save a file by clicking on a link — ajay paswan <lists@...>

I clicked a link to download a file using ruby, now I see the open-save

41 messages 2012/08/22

[#398641] force child threads run paralelly? — ajay paswan <lists@...>

I have created two child thread using main thread- child1 and child2.

19 messages 2012/08/28
[#398644] Re: force child threads run paralelly? — ajay paswan <lists@...> 2012/08/28

Ruby version:

[#398648] Re: force child threads run paralelly? — Tony Arcieri <tony.arcieri@...> 2012/08/28

On Tue, Aug 28, 2012 at 7:19 AM, ajay paswan <lists@ruby-forum.com> wrote:

[#398684] Can I do this with Ruby and sqlite alone? — Kaye Ng <lists@...>

Hi guys.

16 messages 2012/08/29

Re: Using Rake across multiple files

From: "@..." <bemathis@...>
Date: 2012-08-09 19:24:43 UTC
List: ruby-talk #398173
I would suggest taking a look at Jim Weirich 'Power Rake' presentation
http://www.confreaks.com/videos/988-goruco2012-power-rake
Pay close attention to the portions regarding pathmap. You could use this 
to dynamically include all the files you need into your rake file.

Then, I would think about using a little metaprogramming to setup the 
Rakefile with all the tasks you need. 

something like this:
https://gist.github.com/3307314

Given, there will have to be some additional code work for instance and 
class level methods.

On Thursday, August 9, 2012 2:20:00 PM UTC-4, TJ Biddle wrote:
>
> Hi Everyone, 
>
> Bear with me here - I try to be descriptive right off the bat to spare 
> future questions :) 
>
> I'm working on a tool that uses rake to call ruby methods. 
>
> A brief description of my setup: 
>
> File A: A shell file that calls rake (eg: From command line I can call 
> `myprogram my_method 12345` and it would call rake mymethod[12345]. 
>
> File B: A Rake file that requires File C. It has the Rake tasks defined 
> and then calls something like ClassB.new.my_method(args). It also has 
> ClassB in it, which inherits from Class A which is in the required File 
> C. 
>
> File C: A Ruby file with all of my underlying logic. This includes Class 
> A. 
>
> I have this setup this way currently because we have various programs 
> using this - We install the original package which includes File A and 
> File C so that we can run the program from command line and interact 
> with the project we are working on at hand. We have to include File B in 
> the project, as it has project specific variables, and we also want the 
> option to override any methods in File C. 
>
> The issue I have with this setup is that to add a new command - it's 
> slightly tedious, we need to add it to File A so that it can call the 
> rake task (Understandable and that's fine), we need to add it to File C 
> so that they logic is there (Also understandable - where else are we 
> going to put it?), But I also have to explicitly declare the Rake task 
> in File B - for every project - which is a pain in the ass if there's 
> ever a change. I tried moving the Rake tasks in File B to File C - but 
> then you have to keep pointing at ClassB, which inherits from ClassA in 
> order to make sure we can override methods if need be. 
>
> Just wondering if anyone has any advice on how to do this more cleanly, 
> or if there are more efficient and proper ways to do so with Ruby and 
> Rake. 
>
> Thanks! 
> TJ 
>
> -- 
> Posted via http://www.ruby-forum.com/. 
>
>

In This Thread

Prev Next