From morgajel at gmail.com Mon Nov 26 12:03:03 2007 From: morgajel at gmail.com (Jesse Morgan) Date: Mon, 26 Nov 2007 12:03:03 -0500 Subject: [Ruma-team] Still alive! Message-ID: <301383980711260903q51c59f68kbc7880956c2c0ce@mail.gmail.com> Hey guys, just wanted to give you an update on the book- I've hit 53,000 words, and hit my goal of 50k My Stats: http://www.nanowrimo.org/user/243541 anyways, now that it's mostly done, I'll be getting back into development over the next few weeks. The place where I work will be slowing down in December, so I'll probably get some extra time here and there to work on it as well. So what's everyone's status looking like for December? -Jesse From l.hoeppner at gmx.net Thu Nov 29 11:02:12 2007 From: l.hoeppner at gmx.net (Lars Hoeppner) Date: Thu, 29 Nov 2007 17:02:12 +0100 Subject: [Ruma-team] Still alive! In-Reply-To: <301383980711260903q51c59f68kbc7880956c2c0ce@mail.gmail.com> References: <301383980711260903q51c59f68kbc7880956c2c0ce@mail.gmail.com> Message-ID: <200711291702.12790.l.hoeppner@gmx.net> Congrats on winning NaNoWriMo, Jesse! I'm afraid I won't be able to contribute to Ruma on a very regular basis in the near future. My workload won't decrease since I'll soon start my master thesis and will also be working. I'll try to help out when I can afford it though. Tomorrow I'll hopefully be able to dedicate a few hours to the browser plugin and see whether I have suggestions for that. The next step should be to make the existing code compliant to our style guide. Anyone else in the team alive? ;) -Lars On Monday 26 November 2007 18:03:03 Jesse Morgan wrote: > Hey guys, just wanted to give you an update on the book- I've hit > 53,000 words, and hit my goal of 50k > My Stats: http://www.nanowrimo.org/user/243541 > > anyways, now that it's mostly done, I'll be getting back into > development over the next few weeks. The place where I work will be > slowing down in December, so I'll probably get some extra time here > and there to work on it as well. > > So what's everyone's status looking like for December? > > -Jesse > _______________________________________________ > Ruma-team mailing list > Ruma-team at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruma-team From jdlabadie at hotmail.com Thu Nov 29 11:11:28 2007 From: jdlabadie at hotmail.com (Jeremy Labadie) Date: Thu, 29 Nov 2007 11:11:28 -0500 Subject: [Ruma-team] Still alive! In-Reply-To: <200711291702.12790.l.hoeppner@gmx.net> References: <301383980711260903q51c59f68kbc7880956c2c0ce@mail.gmail.com> <200711291702.12790.l.hoeppner@gmx.net> Message-ID: I am still here, though I have not done anything yet ;-) I am a noob to the project, and to ruby in general, so I am afraid I will not be much help. However I do want to learn, and I will have some time over the next month to start "diving in". Jeremy > From: l.hoeppner at gmx.net> To: ruma-team at rubyforge.org> Date: Thu, 29 Nov 2007 17:02:12 +0100> Subject: Re: [Ruma-team] Still alive!> > Congrats on winning NaNoWriMo, Jesse! > > I'm afraid I won't be able to contribute to Ruma on a very regular basis in > the near future. My workload won't decrease since I'll soon start my master > thesis and will also be working. I'll try to help out when I can afford it > though. Tomorrow I'll hopefully be able to dedicate a few hours to the > browser plugin and see whether I have suggestions for that. > > The next step should be to make the existing code compliant to our style > guide.> > Anyone else in the team alive? ;) > > -Lars> > On Monday 26 November 2007 18:03:03 Jesse Morgan wrote:> > Hey guys, just wanted to give you an update on the book- I've hit> > 53,000 words, and hit my goal of 50k> > My Stats: http://www.nanowrimo.org/user/243541> >> > anyways, now that it's mostly done, I'll be getting back into> > development over the next few weeks. The place where I work will be> > slowing down in December, so I'll probably get some extra time here> > and there to work on it as well.> >> > So what's everyone's status looking like for December?> >> > -Jesse> > _______________________________________________> > Ruma-team mailing list> > Ruma-team at rubyforge.org> > http://rubyforge.org/mailman/listinfo/ruma-team> > > _______________________________________________> Ruma-team mailing list> Ruma-team at rubyforge.org> http://rubyforge.org/mailman/listinfo/ruma-team -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ruma-team/attachments/20071129/17d5df6e/attachment-0001.html From morgajel at gmail.com Thu Nov 29 16:58:36 2007 From: morgajel at gmail.com (Jesse Morgan) Date: Thu, 29 Nov 2007 16:58:36 -0500 Subject: [Ruma-team] take cover..age. Message-ID: <301383980711291358j425188d1t704995149679e441@mail.gmail.com> so I've been playing with rcov, a ruby gem that show you how well your unit tests cover your code. It's important to stress that just because it says 100% doesn't mean the code is 100% flawless, it just means you run a combination of tests that execute 100% of the code. Anyways, rcov is now a new requirement- simply apt-get install rcov and you're good to go. I've implemented it in the rakefile with rake coverage There also seems to be some sorta bug- so it's also checking the coverage of flexmock- feel free to ignore that part:) Note that this is best viewed with a monospace font :) Give it a try yourselves and give me feedback. jmorgan at zeeble ~/projects/ruma $ rake coverage (in /home/jmorgan/projects/ruma) rm -r coverage /usr/bin/ruby1.8 -Ilib -S rcov --text-report --text-report --threshold 80 --xrefs -o "coverage" "tests/TC_PluginManager.rb" "tests/TC_Server.rb" "tests/TC_Plugin.rb" "tests/TC_ServerManager.rb" "tests/uiclasses/TC_AboutDialog.rb" "tests/uiclasses/TC_ServerWidget.rb" "tests/uiclasses/TC_ServerDialog.rb" "plugins/Browser/tests/TC_Browser.rb" "plugins/UserManagement/tests/TC_UserManagement.rb" "plugins/GroupManagement/tests/TC_GroupManagement.rb" "plugins/Search/tests/TC_Search.rb" Loaded suite /usr/bin/rcov Started ................................................................................... Finished in 2.924762 seconds. 83 tests, 452 assertions, 0 failures, 0 errors +----------------------------------------------------+-------+-------+--------+ | File | Lines | LOC | COV | +----------------------------------------------------+-------+-------+--------+ |...flexmock-0.7.1/lib/flexmock/argument_matchers.rb | 57 | 34 | 41.2% | |...ms/flexmock-0.7.1/lib/flexmock/argument_types.rb | 42 | 15 | 53.3% | |...ems/1.8/gems/flexmock-0.7.1/lib/flexmock/core.rb | 211 | 95 | 65.3% | |...lexmock-0.7.1/lib/flexmock/core_class_methods.rb | 83 | 38 | 50.0% | |...-0.7.1/lib/flexmock/default_framework_adapter.rb | 31 | 17 | 64.7% | |...lexmock-0.7.1/lib/flexmock/deprecated_methods.rb | 62 | 30 | 66.7% | |.../gems/flexmock-0.7.1/lib/flexmock/expectation.rb | 438 | 215 | 52.1% | |...xmock-0.7.1/lib/flexmock/expectation_director.rb | 64 | 28 | 78.6% | |...ms/flexmock-0.7.1/lib/flexmock/mock_container.rb | 318 | 156 | 56.4% | |...1.8/gems/flexmock-0.7.1/lib/flexmock/ordering.rb | 51 | 24 | 29.2% | |...gems/flexmock-0.7.1/lib/flexmock/partial_mock.rb | 278 | 158 | 20.3% | |...1.8/gems/flexmock-0.7.1/lib/flexmock/recorder.rb | 71 | 26 | 30.8% | |....8/gems/flexmock-0.7.1/lib/flexmock/test_unit.rb | 32 | 14 | 57.1% | |...mock-0.7.1/lib/flexmock/test_unit_integration.rb | 53 | 19 | 78.9% | |...8/gems/flexmock-0.7.1/lib/flexmock/validators.rb | 77 | 35 | 34.3% | |lib/Plugin.rb | 129 | 68 | 73.5% | |lib/PluginManager.rb | 125 | 74 | 79.7% | |lib/Server.rb | 594 | 465 | 68.8% | |lib/uiclasses/ServerDialog.rb | 331 | 250 | 31.2% | |plugins/Browser/Browser.rb | 184 | 123 | 22.0% | |plugins/GroupManagement/GroupManagement.rb | 135 | 93 | 36.6% | |plugins/Search/Search.rb | 171 | 112 | 29.5% | |plugins/UserManagement/GidDialog.rb | 98 | 65 | 16.9% | |plugins/UserManagement/GidDialogDesign.rb | 146 | 86 | 25.6% | |plugins/UserManagement/GroupDialog.rb | 111 | 65 | 16.9% | |plugins/UserManagement/GroupDialogDesign.rb | 136 | 82 | 23.2% | |plugins/UserManagement/PasswordDialog.rb | 82 | 49 | 18.4% | |plugins/UserManagement/PasswordDialogDesign.rb | 139 | 81 | 25.9% | |plugins/UserManagement/User.rb | 89 | 57 | 40.4% | |plugins/UserManagement/UserDialog.rb | 109 | 61 | 18.0% | |plugins/UserManagement/UserDialogDesign.rb | 136 | 82 | 23.2% | |plugins/UserManagement/UserManagement.rb | 392 | 288 | 33.3% | +----------------------------------------------------+-------+-------+--------+ |Total | 8395 | 5293 | 65.3% | +----------------------------------------------------+-------+-------+--------+ 65.3% 55 file(s) 8395 Lines 5293 LOC Loaded suite /usr/bin/rake Started Finished in 0.007479 seconds. 0 tests, 0 assertions, 0 failures, 0 errors -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ruma-team/attachments/20071129/f4a72f15/attachment.html From l.hoeppner at gmx.net Fri Nov 30 14:21:29 2007 From: l.hoeppner at gmx.net (Lars Hoeppner) Date: Fri, 30 Nov 2007 20:21:29 +0100 Subject: [Ruma-team] browser Message-ID: <200711302021.29975.l.hoeppner@gmx.net> I made some (syntax) changes to the browser: - applied code conventions (as much as possible.. at currentServer etc. still have to be changed for Plugin.rb and all dependencies) - refactored display_attributes: Ideally the html stuff would be separate from the code, but since it has dynamic elements it's hard to do. I still think splitting the whole thing up improves readability (you can get an idea of what display_attributes does without looking through all the html at once). - commented raising the exception when no attributes are returned (since this always happens when clicking on the basedn) Jesse, if I remember correctly, you didn't like the html / design too much - what's the problem with it? I think it looks good. I'll have to look into editing attributes etc. another time. -Lars From morgajel at gmail.com Fri Nov 30 19:31:58 2007 From: morgajel at gmail.com (Jesse Morgan) Date: Fri, 30 Nov 2007 19:31:58 -0500 Subject: [Ruma-team] browser In-Reply-To: <200711302021.29975.l.hoeppner@gmx.net> References: <200711302021.29975.l.hoeppner@gmx.net> Message-ID: <301383980711301631q2ecc620va9648df6ee0534ab@mail.gmail.com> it just felt clunky- I dislike that we use 100 lines to generate html- especially coming from a perl and php background where perl's cgi/mason and php's smarty could whip this out in no time. Right now it's code mixed with html, html mixed with code, cats sleeping with dogs, UTTER CHAOS! *ahem* There are a couple of external gems we could use, but I'm hesitant to add YAD (yet another dependency). Your changes did help quite a bit though. if I get a chance maybe this weekend I'll sit down and try to figure something out. On Nov 30, 2007 2:21 PM, Lars Hoeppner wrote: > I made some (syntax) changes to the browser: > > - applied code conventions (as much as possible.. at currentServer etc. still > have to be changed for Plugin.rb and all dependencies) > - refactored display_attributes: > Ideally the html stuff would be separate from the code, but since it has > dynamic elements it's hard to do. I still think splitting the whole thing > up > improves readability (you can get an idea of what display_attributes does > without looking through all the html at once). > - commented raising the exception when no attributes are returned (since > this > always happens when clicking on the basedn) > > Jesse, if I remember correctly, you didn't like the html / design too much > - > what's the problem with it? I think it looks good. > > I'll have to look into editing attributes etc. another time. > > -Lars > > > > _______________________________________________ > Ruma-team mailing list > Ruma-team at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruma-team > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ruma-team/attachments/20071130/1bcd958e/attachment.html