Merge pull request #4662 from consul/ruby2.7
Upgrade Ruby to version 2.7.4
This commit is contained in:
@@ -3,7 +3,7 @@ stages:
|
||||
- lint
|
||||
|
||||
tests:
|
||||
image: "ruby:2.6.8"
|
||||
image: "ruby:2.7.4"
|
||||
stage: test
|
||||
services:
|
||||
- postgres:10.10
|
||||
@@ -34,7 +34,7 @@ tests:
|
||||
# PRONTO_GITLAB_API_PRIVATE_TOKEN to your repository CI/CD settings
|
||||
# giving it the value of the Personal Access Token
|
||||
linters:
|
||||
image: "ruby:2.6.8"
|
||||
image: "ruby:2.7.4"
|
||||
stage: lint
|
||||
cache:
|
||||
key: consul
|
||||
|
||||
@@ -1 +1 @@
|
||||
2.6.8
|
||||
2.7.4
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM ruby:2.6.8-buster
|
||||
FROM ruby:2.7.4-buster
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
@@ -34,9 +34,6 @@ COPY Gemfile.lock Gemfile.lock
|
||||
|
||||
COPY Gemfile_custom Gemfile_custom
|
||||
|
||||
# Prevent bundler warnings; ensure that the bundler version executed is >= that which created Gemfile.lock
|
||||
RUN gem install bundler
|
||||
|
||||
# Finish establishing our Ruby environment
|
||||
RUN bundle install --full-index
|
||||
|
||||
|
||||
@@ -795,4 +795,4 @@ DEPENDENCIES
|
||||
wkhtmltopdf-binary (~> 0.12.6)
|
||||
|
||||
BUNDLED WITH
|
||||
1.17.2
|
||||
2.1.4
|
||||
|
||||
@@ -38,7 +38,7 @@ You can access the main website of the project at [http://consulproject.org](htt
|
||||
|
||||
**NOTE**: For more detailed instructions check the [docs](https://docs.consulproject.org)
|
||||
|
||||
Prerequisites: install git, Ruby 2.6.8, CMake, pkg-config, shared-mime-info, Node.js and PostgreSQL (>=9.5).
|
||||
Prerequisites: install git, Ruby 2.7.4, CMake, pkg-config, shared-mime-info, Node.js and PostgreSQL (>=9.5).
|
||||
|
||||
```bash
|
||||
git clone https://github.com/consul/consul.git
|
||||
|
||||
@@ -36,7 +36,7 @@ Puedes acceder a la página principal del proyecto en [http://consulproject.org]
|
||||
|
||||
**NOTA**: para unas instrucciones más detalladas consulta la [documentación](https://docs.consulproject.org)
|
||||
|
||||
Prerequisitos: tener instalado git, Ruby 2.6.8, CMake, pkg-config, shared-mime-info, Node.js y PostgreSQL (9.5 o superior).
|
||||
Prerequisitos: tener instalado git, Ruby 2.7.4, CMake, pkg-config, shared-mime-info, Node.js y PostgreSQL (9.5 o superior).
|
||||
|
||||
```bash
|
||||
git clone https://github.com/consul/consul.git
|
||||
|
||||
13
config/initializers/paperclip.rb
Normal file
13
config/initializers/paperclip.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class Paperclip::UrlGenerator
|
||||
private
|
||||
|
||||
# Code copied from the paperclip gem, only replacing
|
||||
# `URI.escape` with `URI::DEFAULT_PARSER.escape`
|
||||
def escape_url(url)
|
||||
if url.respond_to?(:escape)
|
||||
url.escape
|
||||
else
|
||||
URI::DEFAULT_PARSER.escape(url).gsub(escape_regex) { |m| "%#{m.ord.to_s(16).upcase}" }
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user