Add gemspec, split to lib