git: c23808a15234 - main - www/gitlab-ce: disable database migration check for Google::Apis::VERSION 0.50.0

From: Matthias Fechner <mfechner_at_FreeBSD.org>
Date: Wed, 09 Mar 2022 10:09:04 UTC
The branch main has been updated by mfechner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c23808a15234917edbdcaa8b366eabb0759b0eed

commit c23808a15234917edbdcaa8b366eabb0759b0eed
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2022-03-09 09:42:10 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2022-03-09 10:07:56 +0000

    www/gitlab-ce: disable database migration check for Google::Apis::VERSION 0.50.0
    
    Current package version is using rubygem-google-api-client-0.53.0.
    Executing the database migration will show:
    ```
    rake aborted!
    NameError: uninitialized constant Google::Apis::VERSION
    Did you mean?  VersionCheck
    /usr/local/www/gitlab-ce/config/initializers/google_api_client_patch.rb:5:in `<top (required)>'
    /usr/local/www/gitlab-ce/config/environment.rb:7:in `<top (required)>'
    Tasks: TOP => db:migrate => db:load_config => environment
    (See full trace by running task with --trace)
    ```
    
    I tested it successfully with version 0.53.0.
---
 .../patch-config_initializers_google__api__client__patch.rb   | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/www/gitlab-ce/files/patch-config_initializers_google__api__client__patch.rb b/www/gitlab-ce/files/patch-config_initializers_google__api__client__patch.rb
new file mode 100644
index 000000000000..a175857e3c92
--- /dev/null
+++ b/www/gitlab-ce/files/patch-config_initializers_google__api__client__patch.rb
@@ -0,0 +1,11 @@
+--- config/initializers/google_api_client_patch.rb.orig	2022-03-09 09:41:27 UTC
++++ config/initializers/google_api_client_patch.rb
+@@ -2,7 +2,7 @@
+ 
+ require 'google/apis/core/http_command'
+ 
+-raise 'This patch is only tested with google-api-client-ruby v0.50.0' unless Google::Apis::VERSION == "0.50.0"
++#raise 'This patch is only tested with google-api-client-ruby v0.50.0' unless Google::Apis::VERSION == "0.50.0"
+ 
+ # The google-api-ruby-client does not have a way to increase or disable
+ # the maximum allowed time for a request to be retried. By default, it