Integrating lighthouse with svn

sconn's Avatar

sconn

23 Oct, 2008 11:37 PM

Hello,

I am trying to integrate lighthouse with subversion. I followed the instructions on your page, and also on http://blog.massivemissive.com/?p=5 as I found your documentation to be somewhat opaque. I get the error

Error: undefined method 'body=' for #<Net::HTTP::Post POST> trace:

when I attempt to run my script manually. Any idea how to solve this problem? Thank you.

  1. 1 Posted by jlee (at lsu) on 29 Oct, 2008 01:55 PM

    jlee (at lsu)'s Avatar

    I'm getting this error in my log: Error: undefined method '[]' for nil:NilClass trace:

  2. 2 Posted by jlee (at lsu) on 29 Oct, 2008 02:43 PM

    jlee (at lsu)'s Avatar

    Although I haven't found a solution to the problem I have, I did figure out that I do not have the requirement URI. Try running irb and loading each requirement to see if it returns true for all of them.

  3. 3 Posted by Rick on 19 Nov, 2008 07:24 PM

    Rick's Avatar

    sconn: Not sure, what version of ruby are you using? According to the docs, Net::HTTP::Post objects definitely have a body= method. Try this in irb (don't enter the lines starting with =>, they are the return values from the previous statement):

    require 'net/http'
    => true
    req = Net::HTTP::Post.new('foo/bar')
    => #<Net::HTTP::Post POST>
    req.body = 'foo'
    => "foo"
    req.class.name
    => "Net::HTTP::Post"
    

    jlee: Can you provide a more thorough stack trace? If you don't have URI, you need to install it. It's part of the ruby stdlib and should be on all ruby installations.

  4. 4 Posted by Nicole on 03 Dec, 2008 05:51 AM

    Nicole's Avatar

    Please reply to this ticket if you're still having an issue.

  5. 5 Posted by sconn on 03 Dec, 2008 05:42 PM

    sconn's Avatar

    Thanks for getting back to me. I had given up on getting the post-commit hook to work, but wouldn't mind figuring it out now. Rick, sure enough when I crank up irb, I get a similar error:

    [xxx@localhost ~]$ irb irb(main):001:0> require 'net/http' => true irb(main):002:0> req = Net::HTTP::Post.new('foo/bar') => #<Net::HTTP::Post POST> irb(main):003:0> req.body = 'foo' NoMethodError: undefined method body=' for #<Net::HTTP::Post POST>

    from (irb):3
    

    [xxx@localhost ~]$ ruby -v ruby 1.8.1 (2003-12-25) [i386-linux-gnu]

  6. 6 Posted by sconn on 03 Dec, 2008 05:45 PM

    sconn's Avatar

    sorry about the busted syntax parsing

  7. 7 Posted by Rick on 03 Dec, 2008 07:15 PM

    Rick's Avatar

    Try upgrading to ruby 1.8.6 if possible. I don't think I even ever used 1.8.1, so there may have been some API changes to net/http that I don't know about.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac