Add IDEA and Gemfile.lock to ignored
Fix gemspec
Fix tests
Fix for 4.0