Inspection SQLite3::Database.new

RubyMine 4.5.3 on Windows XP
This code works, no problems. But I get the inspection warnings shown below. Seems like a bug to me, if not what am I doing wrong?

Code
require 'C:\Ruby193\lib\ruby\gems\1.9.1\gems\sqlite3-1.3.6-x86-mingw32\lib\sqlite3'

def open_db()
  db = SQLite3::Database.new(MY_DB)
  db.close
end

open_db()
exit


Inspection Warning

Cannot find 'Database' less... (Ctrl+F1)


This      inspection warns about the references in Ruby code which can't be resolved      to any valid target.

This most likely indicates a typo or some other      error which may occur at runtime.

The IDE highlights all the symbols in      the code which cannot be found anywhere within your project and most      likely they should be treated as incorrect ones.


Cannot find 'SQLite3'
less... (Ctrl+F1)


This      inspection warns about the references in Ruby code which can't be resolved      to any valid target.

This most likely indicates a typo or some other      error which may occur at runtime.

The IDE highlights all the symbols in      the code which cannot be found anywhere within your project and most      likely they should be treated as incorrect one.

Please sign in to leave a comment.