Set GEM_PATH when using built-in gemcache

This allows rubygems to work with gems loaded from lib/gemcache.
change doc to doc/ in .gitignore

I think this is more inline with what's intended
Fix OptInt's valid?() function

[FixRM #7539] - The valid?() function will first normalize() the
user-supplied input before validation.  The problem is that the
normalize() function will ALWAYS convert data to integer, therefore
whatever you validate, you will always get true.  For example:
when I do "yomama".to_i, that returns 0, and of course will pass
integer validation.
Merge remote-tracking branch 'wchen-r7/optint_valid' into rapid7
[FixRM: #7535] Missing normalize() in OptPort

[FixRM: #7535] - Sometimes OptPort can return as a String instead
of Fixnum because OptPort is missing the normalize() function.
Squashed commit of the following:

commit 1beebe758c32a277e0a77f7d1011a56fda707732
Author: kernelsmith <kernelsmith@kernelsmith>
Date:   Fri Jan 11 17:55:27 2013 -0600

    fixes missing word in descript. of rails exploit

    simple omission fix in description

[Closes #1295]
Merge pull request #1296 from wchen-r7/normalize_optport

[FixRM: #7535] Missing normalize() in OptPort
Merge pull request #1278 from kernelsmith/gitignore

change doc to doc/ in .gitignore
Merge pull request #1293 from wchen-r7/optint_valid

Fix OptInt's valid?() function
Merge branch 'master' of github.com:rapid7/metasploit-framework into rapid7
Unbreak OptInt hex syntax

* Fix spec for no-longer-pending tests
* Fix regex in OptInt#valid? to allow hex syntax again

[See #1293][See #1296]
Merge remote-tracking branch 'bturner-r7/set_gem_path'
cve and references available
module also updated with refs
Merge branch 'java_0day_refs' of github.com:jvazquez-r7/metasploit-framework into jvazquez-r7-java_0day_refs

Conflicts:
	modules/exploits/multi/browser/java_jre17_jmxbean.rb
Adds one more ref
Move impersonate_ssl

To 'gather', because it grabs stuff, not scans.
w3_total_cache
fix
spaces