Jruby-lint not catching gems

Hello,

I’ve been trying out the jruby-lint tool and it works great for stuff
like Kernel.fork and Thread.critical. But its not picking up my
non-JDBC gems.

For example, if run “rails new myapp” on MRI and there is “gem
‘sqlite3’” in my Gemfile. jrlint says everything is OK.

I see sqlite3 on the wiki page:

And I’ve looked at the checker:

But I can’t figure out what’s going on. Where does the checker get the
wiki address from? I see it in the message, but no where else.

Thanks,

-Joe

See

and line the read_from_wiki method on line 37 of the same file.

Just glancing, it looks like the css selector may no longer be right.

Ben

Nope, turns out it because i was using --1.9. Works fine with 1.8

Here’s the underlying error.It gets trapped and discarded. So it never
bubbles up

#<NoMethodError: undefined method read_nonblock' for #<OpenSSL::SSL::SSLSocket:0x7099e017>> ~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/net/protocol.rb:135:inrbuf_fill’
~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/net/protocol.rb:116:in readuntil' ~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/net/protocol.rb:126:inreadline’
~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/net/http.rb:2211:in read_status_line' ~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/net/http.rb:2200:inread_new’
~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/net/http.rb:1183:in transport_request' ~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/net/http.rb:1169:inrequest’
~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/net/http.rb:880:in get' ~/.rvm/gems/jruby-1.6.4/gems/jruby-lint-0.3.0/lib/jruby/lint/libraries.rb:51:inread_from_wiki’

Oh, yep. I’ve seen that error too in 1.9 mode. There’s a discussion
about the problem here:

http://jira.codehaus.org/browse/JRUBY-5529

/Nick

Thanks Ben! I think you are right. I’ll see if I can fix it and submit
a pull request.