Replace deprecated Gem::Builder.new(spec).build.

Use Gem::Package.build(spec).
Remove deprecation warnings.

Ruby: Replace File.exists? by File.exist?
Minitest: Replace MiniTest::Unit::TestCase by Minitest::Test
Merge pull request #25 from gramos/fix-unit-tests

Fix unit tests and deprecation warnings.