Add a common Makefile (#1044)

This commit is contained in:
pakrym-stripe 2022-04-12 15:54:55 -07:00 committed by GitHub
parent a06b1477e7
commit 3d623c9493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
Makefile Normal file
View File

@ -0,0 +1,7 @@
.PHONY: update-version codegen-format
update-version:
@echo "$(VERSION)" > VERSION
@perl -pi -e 's|VERSION = "[.\d]+"|VERSION = "$(VERSION)"|' lib/stripe/version.rb
codegen-format:
bundle exec rubocop -o /dev/null --auto-correct