Sha256: 209f9048229d0514a88ee750318b4431736969ff95fa5e2121fdea01925ddb20

Contents?: true

Size: 1021 Bytes

Versions: 1

Compression:

Stored size: 1021 Bytes

Contents

SHELL := /usr/bin/env bash
RUBY_SOURCE_FILES = $(shell find . -name "*.rb")
GEMSPEC = $(shell find . -name "*.gemspec")

default: .tested
.PHONY: default

.deps: Gemfile.lock
	touch $@

Gemfile.lock: Gemfile $(GEMSPEC)
	bundle install
	touch $@

.tested: .deps $(RUBY_SOURCE_FILES)
	bundle exec rspec --color
	touch $@

update-dependencies:
	./scripts/update-gemspec
.PHONY: update-dependencies

update-version:
ifdef NEW_VERSION
	sed -i "s/\(s\.version *= *'\)[0-9]*\.[0-9]*\.[0-9]*\('\)/\1$(NEW_VERSION)\2/" $(GEMSPEC)
else
	@echo -e "\033[0;31mNEW_VERSION is not defined. Can't update version :-(\033[0m"
	exit 1
endif
.PHONY: update-version

publish: .deps
ifneq (,$(GEMSPEC))
	gem build $(GEMSPEC)
	gem push $$(find . -name "*$(NEW_VERSION).gem")
else
	@echo "Not publishing because there is no gemspec"
endif
.PHONY: publish

post-release:
	@echo "No post-release needed for ruby"
.PHONY: post-release

clean: clean-ruby
.PHONY: clean

clean-ruby:
	rm -f .deps .linked .tested Gemfile.lock *.gem
.PHONY: clean-ruby

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cucumber-expressions-8.0.1 default.mk