Add more constraints to gemspec.
Fix bug in which info to fetch.