Use or infer from .ruby-version

This commit is contained in:
Hakan Ensari 2021-05-12 13:12:21 +01:00
parent 6feaa0c372
commit 93d1ec7d22
4 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,4 @@
.* .*
!.ruby-version
Dockerfile Dockerfile
LICENSE
Procfile
spec spec
*.md
*.yml

View File

@ -8,4 +8,3 @@ require:
AllCops: AllCops:
NewCops: enable NewCops: enable
TargetRubyVersion: 2.7

View File

@ -4,6 +4,7 @@ RUN mkdir /app
WORKDIR /app WORKDIR /app
ADD Gemfile /app/Gemfile ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock ADD Gemfile.lock /app/Gemfile.lock
ADD .ruby-version /app/.ruby-version
RUN gem install bundler RUN gem install bundler
RUN bundle config set without "development test" RUN bundle config set without "development test"
RUN bundle install --jobs=8 RUN bundle install --jobs=8

View File

@ -2,7 +2,7 @@
source 'https://rubygems.org' source 'https://rubygems.org'
ruby '3.0.1' ruby File.read('.ruby-version').chomp
gem 'money' gem 'money'
gem 'oj' gem 'oj'