Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 479 Bytes
VERSION=$(shell ruby -r./lib/openid/store/sequel/version -e "puts OpenID::Store::Sequel::VERSION")
# default the projcet name to the directory name
PROJECT?=$(notdir $(PWD))
GEM=$(PROJECT)-$(VERSION).gem
.PHONY: test
test:
bundle exec rake test
.PHONY: package
package: $(GEM)
# Always build the gem
.PHONY: $(GEM)
$(GEM):
gem build $(PROJECT).gemspec
.PHONY: install
install: $(GEM)
gem install $<
# Publish to gemgate
.PHONY: publish
publish: $(GEM)
gem push $(GEM)