Sha256: bf870246eb6566564dc3058e093a88e529cf32eaf1419548841f5a32baf6f295

Contents?: true

Size: 829 Bytes

Versions: 2

Compression:

Stored size: 829 Bytes

Contents

# GEMSPEC=$(shell ls *.gemspec | head -1)
# VERSION=$(shell ruby -rubygems -e 'puts Gem::Specification.load("$(GEMSPEC)").version')
# PROJECT=$(shell ruby -rubygems -e 'puts Gem::Specification.load("$(GEMSPEC)").name')
# GEM=$(PROJECT)-$(VERSION).gem
#
.PHONY: install package publish test server $(GEM)

define install_bs
	gem list bundler -i || gem install bundler
endef

define gem_paths
	gem list bundler -i || gem install bundler
endef

install:
	$(call install_bs)
	bundle config --local path .bundle
	gem update roda-bin
	bundle

server:
	bundle
	cd test/dummy && touch dummy.db && rm dummy.db && bundle exec thin start -p 8080

test:
	bundle exec pry-test --async

package: $(GEM)

# Always build the gem
$(GEM):
	gem build $(PROJECT).gemspec

publish: $(GEM)
	gem push $(GEM)
	rm $(GEM)
	git tag -a $(VERSION)
	git push

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roda-component-0.1.1 Makefile
roda-component-0.1.0 Makefile