Removed duplication in gemspec if statements

I have noticed that those if statements were doing the same thing for each of if.
Therefore I removed the duplication and added git ls-files to get a list of files, rather than typing each file manually.

If that is the expected behaviour please let me know.

Thanks