Re: [Ironruby-core] Code Review: StringGsubVersion

2008-07-10 Thread Dave Remy
Ok, cool. Sounds good. Are you thinking of a method in MutableString like IncrementVersion()? Or something? -Original Message- From: Tomas Matousek Sent: Thursday, July 10, 2008 6:46 PM To: Dave Remy; IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: RE: Code

[Ironruby-core] Code Review: StringGsubVersion

2008-07-10 Thread Dave Remy
tfpt review "/shelveset:StringGsubVersion;REDMOND\dremy" Comment : This change fixes all of the gsub, each, and each_line specs. Added aditional tests to gsub spec. The excluded gsub tests are only failing on unimplemented string methods (lstrip!, rstrip!) Implemented simple mutablestring

[Ironruby-core] Code Review: StringGsubEach

2008-07-07 Thread Dave Remy
tfpt review "/shelveset:StringGsubEach;REDMOND\dremy" Comment : Changes to for string.gsub and string.each (and each_line) to run clean. The most significant change is to track version in MutableString. This version is bumped on any mutation and functions that iterate (each, each_line, gsub)

[Ironruby-core] Code Review: StringGsubWithStringPatternAndBlock

2008-07-03 Thread Dave Remy
tfpt review "/shelveset:StringGsubWithStringPatternAndBlock;REDMOND\dremy" Comment : This change fixes the rest of the gsub coverage minus one (String#gsub with pattern and block raises a RuntimeError if the string is modified while substituting). We had a similar issue implementing squeeze s

[Ironruby-core] Code Review: StringGsubWithPattern

2008-07-01 Thread Dave Remy
tfpt review "/shelveset:StringGsubWithPattern;REDMOND\dremy" Comment : Changes for string.gsub with pattern ruby specs to pass. The following tests now pass: String#gsub with pattern, replacement replaces \& and \0 with the complete match String#gsub with pattern, replacement replaces \`

[Ironruby-core] Code Review: StringElementReferenceAndSlice

2008-06-30 Thread Dave Remy
tfpt review "/shelveset:StringElementReferenceAndSlice;REDMOND\dremy" Comment : Changes for [] (alias: slice) to run clean. One small fix to not flow taint. Also, fix a small bug that was using a deprecated implicit conversion between string and MutableString. StringElementReferenceAndSl

[Ironruby-core] Code Review: StringCenterDeleteEach

2008-06-30 Thread Dave Remy
tfpt review "/shelveset:StringCenterDeleteEach;REDMOND\dremy" Comment : Changes for string.center (adjustements for code review comments), string.delete, and string.each/each_line to pass specs. Also, forgot to update excludes for squeeze/squeeze! implementation in last checkin. StringCe

Re: [Ironruby-core] MutableString.each

2008-06-30 Thread Dave Remy
"a" s.each { s[0] = "b"} => "baa\naaa" This looks like MRI is relying on copy on write semantics to determine whether a string was modified? Jim, says this is not the behavior for 1.9. This seems like a good candidate for IR diverging on ... rem From: [

Re: [Ironruby-core] MutableString.each

2008-06-30 Thread Dave Remy
uld record or otherwise influence the type of exception that we expect to throw. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Remy Sent: Sunday, June 29, 2008 3:58 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] MutableString.each I am working on one of the specs f

[Ironruby-core] MutableString.each

2008-06-29 Thread Dave Remy
I am working on one of the specs for string.each which is failing. This is the spec that is failing. it "raises a RuntimeError if the string is modified while substituting" do str = "hello\nworld" should_raise(RuntimeError) { str.send(cmd) { str[0] = 'x' } } end The idea is that th

[Ironruby-core] Code Review: MutableStringCenter

2008-06-28 Thread Dave Remy
tfpt review "/shelveset:MutableStringCenter;REDMOND\dremy" Comment : Made changes for MutableString.center to pass specs. Included flowing taint correctly, subclassing, changing signature to use object and then doing manual conversion. MutableStringCenter.diff Description: MutableStringCe

Re: [Ironruby-core] Code Review: MutableStringSqueeze

2008-06-26 Thread Dave Remy
uot;) => "puters put balls" be "putters putt balls".squeeze("m-z") => "puters put balls" Robert. On Wed, Jun 25, 2008 at 6:55 PM, Dave Remy <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: tfpt review "/shelveset:MutableS

[Ironruby-core] Code Review: MutableStringSqueeze

2008-06-25 Thread Dave Remy
tfpt review "/shelveset:MutableStringSqueeze;REDMOND\dremy" Comment : Implement String.squeeze and String.squeeze! Passes RubySpec tests. Passes Unit tests. MutableStringSqueeze.diff Description: MutableStringSqueeze.diff ___ Ironruby-core maili

[Ironruby-core] Code Review: FileStatFix

2008-06-23 Thread Dave Remy
tfpt review "/shelveset:FileStatFix;REDMOND\dremy" Comment : Fixes bug [#20412] File::Stat FileStatFix.diff Description: FileStatFix.diff ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core