We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1019bc3 commit 5d1c69eCopy full SHA for 5d1c69e
Makefile
@@ -2,12 +2,18 @@
2
export COMPOSE_IGNORE_ORPHANS ?= true
3
export RUBY_VERSION ?= 2.3.1
4
RUBY_VERSION_MAJOR = $(word 1,$(subst ., ,$(RUBY_VERSION)))
5
+RUBY_VERSION_MINOR = $(word 2,$(subst ., ,$(RUBY_VERSION)))
6
export BUNDLER_VERSION ?=
7
ifeq ($(BUNDLER_VERSION),)
8
ifeq ($(RUBY_VERSION_MAJOR),2)
9
+# Use old bundler for Ruby 2.3-2.6; Ruby 2.7 needs bundler 2.x to avoid resolver bugs
10
+ifeq ($(RUBY_VERSION_MINOR),7)
11
+export BUNDLER_VERSION = 2.4.22
12
+else
13
export BUNDLER_VERSION = 1.17.3
14
endif
15
16
+endif
17
PROJECT_NAME = $(shell ls *.gemspec | sed 's/\.gemspec//')
18
export COMPOSE_PROJECT_NAME ?= $(PROJECT_NAME)-$(subst .,_,$(RUBY_VERSION))
19
0 commit comments