2013-01-09

Entries

Put my Seven Languages in Seven Weeks homework up on GitHub: https://github.com/spilth/seven-languages

#

I've been using RSpec in a Rails app I built at work but my test suite is start to take upwards of 30 seconds to complete.

#

The background for the problem is here: http://devlog.spilth.org/2013/01/02/devlog/#m11

#

I'm at the point where I've forked method_profiler and am attempting to add private method profiling myself.

#

So far I am unable to get it to work. The profile version of my prviate method doesn't seem to be getting created.

#

Trying to do some debugging with rspec and irb now.

#

Okay, after some testing some basic assumptions in irb I discovered I was using private_methods when I should be using private_instance_methods: http://www.ruby-doc.org/core-1.9.3/Module.html#method-i-private_instance_methods

#

Got private instance method profiling working! Making a pull request now...

#

The other thing I need to remember to do when forking projects is to add the original repo as an upstream remote and fetch changes from it to keep in sync

#

git remote add upstream https://github.com/change/method_profiler.git

#

git fetch upstream

#

Here's the pull request: https://github.com/change/method_profiler/pull/7

#

Comments

comments powered by Disqus