diff --git a/Dockerfile b/Dockerfile index 265336bc..091db055 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,8 +52,8 @@ RUN find public/assets -type f -name "*.gz" | sed -re "s/\.gz$//" | xargs -r bro # assets ya están pre-compilados. RUN sed -re "/(uglifier|bootstrap|coffee-rails)/d" -i Gemfile RUN bundle clean -COPY ./mobility.patch . -RUN patch -N -i mobility.patch +RUN sed -re "s/def visit\(object\)/def visit(object, collection = nil)/" \ + -i `bundle show mobility`/lib/mobility/arel/visitor.rb # Contenedor final FROM sutty/monit:latest diff --git a/mobility.patch b/mobility.patch index ffdd69a2..9e7248f2 100644 --- a/mobility.patch +++ b/mobility.patch @@ -1,5 +1,5 @@ ---- /srv/http/vendor/ruby/gems/2.5.0/gems/mobility-0.8.7/lib/mobility/arel/visitor.rb.orig 2019-08-29 14:20:24.180122614 -0300 -+++ /srv/http/vendor/ruby/gems/2.5.0/gems/mobility-0.8.7/lib/mobility/arel/visitor.rb 2019-08-29 14:18:38.146723362 -0300 +--- lib/mobility/arel/visitor.rb.orig 2019-08-29 14:20:24.180122614 -0300 ++++ lib/mobility/arel/visitor.rb 2019-08-29 14:18:38.146723362 -0300 @@ -14,7 +14,7 @@ private