add rspec and tests, split gems by platform