Fixes gemspec

Fixes gemspec
Fixes deprecation warnings