Plugin gemspec

Original PR is here https://github.com/rails/rails/pull/10119

I will add more changes if anything is required.

cc/ @laurocaetano