From pat.eyler at gmail.com Mon Sep 12 10:41:59 2005 From: pat.eyler at gmail.com (pat eyler) Date: Mon Sep 12 10:34:50 2005 Subject: [RPS] rrb? Message-ID: <6fd0654b050912074128b92efc@mail.gmail.com> I'm anxious to get rolling on rrb. I've been playing with it a bit with the Amazing Refacotring challenge, and Bill Wake's Test First Challenge. I'm hoping to play with it a bit at the BYU Ruby Brigade meeting this week -- maybe to do a refactoring on the Amazing challenge. What I'd like to ask here, is what projects we should be focusing on. I've heard that some people are having problems with setup.rb, I know that we need a lot of documentation work (I've started on some doc work already). I think it would be interesting to try and add some refactorings as well. I'm certain that the more we use rrb, the more opportunities we'll find to improve rrb. I've pointed out two opportunities above, but please feel free to point out others, If you've already spent some time with rrb, please let the list know how you've used it and what your experience was like. -- thanks, -pate ------------------------- We are often unable to tell people what they need to know, because they want to know something else, and would therefore only misunderstand what we said - the Raven (George MacDonald, Lilith) From seanacarley at gmail.com Mon Sep 12 19:36:14 2005 From: seanacarley at gmail.com (Sean Carley) Date: Mon Sep 12 19:29:05 2005 Subject: [RPS] rrb? In-Reply-To: <6fd0654b050912074128b92efc@mail.gmail.com> References: <6fd0654b050912074128b92efc@mail.gmail.com> Message-ID: <9e272eff050912163669667ddf@mail.gmail.com> More than anything else, we need installation documentation. If someone has a problem getting things installed, they can't really help with the rest of the project. In fact, I could use some assistance getting things working. Sean On 9/12/05, pat eyler wrote: > I'm anxious to get rolling on rrb. I've been playing with it a bit with the > Amazing Refacotring challenge, and Bill Wake's Test First Challenge. I'm > hoping to play with it a bit at the BYU Ruby Brigade meeting this week -- > maybe to do a refactoring on the Amazing challenge. > > What I'd like to ask here, is what projects we should be focusing on. I've > heard that some people are having problems with setup.rb, I know that we need > a lot of documentation work (I've started on some doc work already). I think > it would be interesting to try and add some refactorings as well. > > I'm certain that the more we use rrb, the more opportunities we'll find to > improve rrb. I've pointed out two opportunities above, but please feel free > to point out others, If you've already spent some time with rrb, please let > the list know how you've used it and what your experience was like. > > > -- > thanks, > -pate > ------------------------- > We are often unable to tell people what they need to know, because > they want to know something else, and would therefore only > misunderstand what we said > - the Raven (George MacDonald, Lilith) > > _______________________________________________ > Therps-discuss mailing list > Therps-discuss@rubyforge.org > http://rubyforge.org/mailman/listinfo/therps-discuss > From seanacarley at gmail.com Mon Sep 12 21:09:34 2005 From: seanacarley at gmail.com (Sean Carley) Date: Mon Sep 12 21:02:24 2005 Subject: [RPS] rrb? In-Reply-To: <6fd0654b050912074128b92efc@mail.gmail.com> References: <6fd0654b050912074128b92efc@mail.gmail.com> Message-ID: <9e272eff0509121809739028a@mail.gmail.com> Pat, Did setup.rb work for you? Sean On 9/12/05, pat eyler wrote: > I'm anxious to get rolling on rrb. I've been playing with it a bit with the > Amazing Refacotring challenge, and Bill Wake's Test First Challenge. I'm > hoping to play with it a bit at the BYU Ruby Brigade meeting this week -- > maybe to do a refactoring on the Amazing challenge. > > What I'd like to ask here, is what projects we should be focusing on. I've > heard that some people are having problems with setup.rb, I know that we need > a lot of documentation work (I've started on some doc work already). I think > it would be interesting to try and add some refactorings as well. > > I'm certain that the more we use rrb, the more opportunities we'll find to > improve rrb. I've pointed out two opportunities above, but please feel free > to point out others, If you've already spent some time with rrb, please let > the list know how you've used it and what your experience was like. > > > -- > thanks, > -pate > ------------------------- > We are often unable to tell people what they need to know, because > they want to know something else, and would therefore only > misunderstand what we said > - the Raven (George MacDonald, Lilith) > > _______________________________________________ > Therps-discuss mailing list > Therps-discuss@rubyforge.org > http://rubyforge.org/mailman/listinfo/therps-discuss > From pat.eyler at gmail.com Tue Sep 13 00:12:31 2005 From: pat.eyler at gmail.com (pat eyler) Date: Tue Sep 13 00:05:25 2005 Subject: [RPS] rrb? In-Reply-To: <9e272eff0509121809739028a@mail.gmail.com> References: <6fd0654b050912074128b92efc@mail.gmail.com> <9e272eff0509121809739028a@mail.gmail.com> Message-ID: <6fd0654b05091221125d118e52@mail.gmail.com> On 9/12/05, Sean Carley wrote: > Pat, > > Did setup.rb work for you? It did for the 0.0.3 version. I'm going to try the snapshot this week. By the way, I had an idea for an awesome extension to rrb. I'd like to get some experience with the code base before I pitch it though. > > Sean > > > On 9/12/05, pat eyler wrote: > > I'm anxious to get rolling on rrb. I've been playing with it a bit with the > > Amazing Refacotring challenge, and Bill Wake's Test First Challenge. I'm > > hoping to play with it a bit at the BYU Ruby Brigade meeting this week -- > > maybe to do a refactoring on the Amazing challenge. > > > > What I'd like to ask here, is what projects we should be focusing on. I've > > heard that some people are having problems with setup.rb, I know that we need > > a lot of documentation work (I've started on some doc work already). I think > > it would be interesting to try and add some refactorings as well. > > > > I'm certain that the more we use rrb, the more opportunities we'll find to > > improve rrb. I've pointed out two opportunities above, but please feel free > > to point out others, If you've already spent some time with rrb, please let > > the list know how you've used it and what your experience was like. > > > > > > -- > > thanks, > > -pate > > ------------------------- > > We are often unable to tell people what they need to know, because > > they want to know something else, and would therefore only > > misunderstand what we said > > - the Raven (George MacDonald, Lilith) > > > > _______________________________________________ > > Therps-discuss mailing list > > Therps-discuss@rubyforge.org > > http://rubyforge.org/mailman/listinfo/therps-discuss > > > > _______________________________________________ > Therps-discuss mailing list > Therps-discuss@rubyforge.org > http://rubyforge.org/mailman/listinfo/therps-discuss > -- thanks, -pate ------------------------- We are often unable to tell people what they need to know, because they want to know something else, and would therefore only misunderstand what we said - the Raven (George MacDonald, Lilith) From seanacarley at gmail.com Thu Sep 15 14:13:42 2005 From: seanacarley at gmail.com (Sean Carley) Date: Thu, 15 Sep 2005 13:13:42 -0500 Subject: [RPS] [ANN] rrb & theRPS Message-ID: <9e272eff05091511137f9b6364@mail.gmail.com> Do you wish you could work on a project capable of improving ruby for everyone? Are you lost, looking for a great project to cut your teeth on? Do you like working with others in both a learning and teaching capacity? If you do, the Ruby Programming Shop has a project for you. rrb, the ruby refactoring browser, puts correct ruby refactorings at your fingertips, simplifying the work of improving your design without breaking your code. The Ruby Programming Shop will be working on rrb until the end of the year. If you would like to lend a helping hand, send us a note at therps-discuss at rubyforge.org or look us up on IRC at FreeNode #therps.. We look forward to hearing from you. Newbies and masters alike are welcome. If you know anyone you think should hear about this, please send it along. Thank you. Sean Carley From pat.eyler at gmail.com Fri Sep 23 10:48:27 2005 From: pat.eyler at gmail.com (pat eyler) Date: Fri, 23 Sep 2005 08:48:27 -0600 Subject: [RPS] rrb bug posted to rrb site Message-ID: <6fd0654b0509230748e8b954f@mail.gmail.com> I was playing with rrb this morning (doing the Amazing refactoring challenge), and found a bug. It appears to be incabable of extracting code to a class method. Here's a short example: If I've got this code in my current emacs buffer: --------- class MyClass def MyClass.my_long_method # pretend that this method is too long @foo = "foo" @bar = "bar" #this is what I want to extract into MyClass.swap_vars @foo, @bar = @bar, @foo end end -------- I should be able to select the last line of MyClass.my_long_method and do M-x rrb-extract-method - and choose MyClass.swap_vars as the new method name and get: class MyClass def MyClass.swap_vars @foo, @bar = @bar, @foo end def MyClass.my_long_method # pretend that this method is too long @foo = "foo" @bar = "bar" end end instead I get an error message that MyClass.swap_vars is not a legal method name. I'm guessing that it's doing some naive pattern matching to say that a method can't begin with an uppercase letter, but I didn't have time to dig into it too much. I'm not going to be able to look at this again until tonight or Monday, if anyone wants to look into it, let me know and I'll let you run with it. -- thanks, -pate ------------------------- From pat.eyler at gmail.com Sat Sep 24 01:47:48 2005 From: pat.eyler at gmail.com (pat eyler) Date: Fri, 23 Sep 2005 23:47:48 -0600 Subject: [RPS] a quick fix for class methods Message-ID: <6fd0654b0509232247335c91a1@mail.gmail.com> here's the diff needed to fix lib/rrb/scriptfiles.rb ----- 149c149,151 < /^[a-z_][a-zA-Z0-9_]*[!?]?$/ =~ id && !keyword?( id ) --- > /^[a-z_][a-zA-Z0-9_]*[!?]?$/ =~ id || > /^[A-Z][a-zA-Z0-9_]*\.[a-z_][a-zA-Z0-9_]*[!?]?$/ =~ id && > !keyword?( id ) ----- and here are the tests I wrote to make sure it all works (this isn't complete yet, it should check for reserved words and more illegal characters). ----- require 'test/unit' unless defined? $ZENTEST and $ZENTEST require 'scriptfile' module TestRRB class TestScriptFile < Test::Unit::TestCase def test_valid_method assert_not_nil( RRB.valid_method?('my_method') ) assert_not_nil( RRB.valid_method?('my_method?') ) assert_not_nil( RRB.valid_method?('my_method!') ) assert_not_nil( RRB.valid_method?('my_this2that_method') ) assert_not_nil( RRB.valid_method?('myCamelCaseMethod') ) assert_not_nil( RRB.valid_method?('MyClass.my_method') ) assert_nil( RRB.valid_method?('My_method') ) assert_nil( RRB.valid_method?('1_method') ) assert_nil( RRB.valid_method?('MyClass.in_a_chain.my_method') ) end end end ----- I'm putting them up on the rrb rubyforge tracker, but I'd love to get other people's opinons. -- thanks, -pate ------------------------- From seanacarley at gmail.com Mon Sep 26 09:11:25 2005 From: seanacarley at gmail.com (Sean Carley) Date: Mon, 26 Sep 2005 08:11:25 -0500 Subject: [RPS] Fwd: rrb & theRPS In-Reply-To: <20050926092202.GA32281%ohai@kmc.gr.jp> References: <9e272eff050828041264453e9d@mail.gmail.com> <20050828130223.GA30762%ohai@kmc.gr.jp> <9e272eff050915070753549edf@mail.gmail.com> <20050926092202.GA32281%ohai@kmc.gr.jp> Message-ID: <9e272eff050926061131deb348@mail.gmail.com> ---------- Forwarded message ---------- From: OHBAYASHI Ippei Date: Sep 26, 2005 4:22 AM Subject: Re: rrb & theRPS To: Sean Carley Hello, On Thu, Sep 15, 2005 at 09:07:31AM -0500, Sean Carley wrote: > Ippei, > > Is there a mailing list for rrb? I will be sending out an > announcement about the Ruby Programming Shop working on rrb and I > would like to include the rrb mailing list if there is one. > > Sean > I have created new English mailing list in RubyForge. http://rubyforge.org/mail/?group_id=663 Please use this. -- Ohbayashi Ippei ohai at kmc.gr.jp http://www.kmc.gr.jp/~ohai/