Files to include .gem package?

2012-12-03 Thread Intransition
I created a stackoverflow question for this: http://stackoverflow.com/questions/13550754/what-project-files-belong-in-a-gem-package I am especially curious as to people's opinions about whether a gem should be an almost complete image the project folder, or just include minimum files needed

Re: [ANN] rdoc 4.0.0.preview2

2012-12-03 Thread Intransition
On Saturday, December 1, 2012 8:08:03 PM UTC-5, Eric Hodel wrote: > > > Multiple gems at once. At the top level you can type to filter on > installed gems. > Awesome! > > Currently it uses the darkish generator. Due to lack of time I haven't > investigated alternate output templates. Allowi

Re: system is silently coming out in error with thread.join

2012-12-03 Thread Robert Klemme
On Mon, Dec 3, 2012 at 3:18 PM, Prog Rammer wrote: > There are two rb files: > > run_work.rb > -- > #some code here > children=[] > str="ruby work.rb" > children< system(str) > end > children.each do |c| > c.join > end > puts 'third' > #some code here > > > work.rb > -- > children=

Re: If statement

2012-12-03 Thread Robert Klemme
On Mon, Dec 3, 2012 at 12:39 PM, Joel Pearson wrote: > If you do trust your user enough to let them execute system commands (I > assume this is your goal with the backticks), I think the way to input a > variable is this: > > system("#{op}") Superfluous - this is sufficient: system op If you do

Re: If statement

2012-12-03 Thread Robert Klemme
On Mon, Dec 3, 2012 at 12:35 PM, Masoud Ahmadi wrote: > This row solved my problem, > if op == "Q\n" > I was not aware of this little new line thing Just a note on that one: I think this solution is inferior to doing op.chomp! if op == "Q" or if op.chomp == "Q" Reason: on other platforms you

Re: Attribute ordering in REXML

2012-12-03 Thread Robert Klemme
On Mon, Dec 3, 2012 at 9:14 AM, Uwe Kubosch wrote: > Hi all! > > We are using REXML to modify XML files in our project, and we experience that > the attributes of all tags are always reordered. For XML files that are > checked into source control, this generates unnecessary noise. > > Is there