Sha256: e623ad0c66a9502d7990607b9fb0ec1e1b26c52eeeb907c80512ab329668dc82

Contents?: true

Size: 692 Bytes

Versions: 3

Compression:

Stored size: 692 Bytes

Contents

.PHONY: lint lint_autocorrect test build create_tag

APP_NAME=aqila-cache
RELEASE_VERSION=`cat lib/aqila/cache/version.rb | grep VERSION | cut -c16-20`
TMP_ANNOTATION_FILE = /tmp/${APP_NAME}_tag

lint:
	bundle exec rubocop lib/ spec/ db/

lint_autocorrect:
	bundle exec rubocop --auto-correct lib/ spec/ db/

test:
	bundle exec rspec

create_tag:
	@git tag -d ${RELEASE_VERSION} || true
	@echo "${RELEASE_VERSION} Release Notes\n\n- <TODO>" > ${TMP_ANNOTATION_FILE}
	@git tag ${RELEASE_VERSION} -e --file=$(TMP_ANNOTATION_FILE)	

build:
	@gem build aqila-cache.gemspec

release: build create_tag
	@echo "Publishing ${APP_NAME}-${RELEASE_VERSION}"
	@gem push ${APP_NAME}-${RELEASE_VERSION}.gem

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aqila-cache-0.3.0 Makefile
aqila-cache-0.2.0 Makefile
aqila-cache-0.1.0 Makefile