refactor out upload code for spec
spec for invalid rockspec upload