Relax nokigiri constraint since 1.5.2 can't install on MRI 2.2
Address MRI 2.2 warnings (possible reference to past scope).

From https://github.com/ruby/ruby/commit/f5f6218a23fdbe45d1a80c202a131f02c3eef0ce.
It causes 280 warnings in our spec suite :(. The fix is to change the names of
variables and/or `let` definitions so they do not clash.

See https://bugs.ruby-lang.org/issues/10661 for more discussion.
Mathn is deprecated in Ruby 2.2, so skip those specs.
Ruby 1.8 and 1.9.2 still need nokogiri 1.5.2.
Test::Unit is not bundled in ruby 2.2.
Merge pull request #1818 from rspec/address-2.2-issues

Address 2.2 issues