aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadri Sunderarajan <badrihippo@disroot.org>2023-01-22 04:22:44 -0500
committerBadri Sunderarajan <badrihippo@disroot.org>2023-01-22 04:22:44 -0500
commita9a5e06246bb952ebd17f236cd956e80a4537147 (patch)
treed8bcd130fa4fa65e1a6059c8e8e5042629d142a6
parentc5d524c3c5026f0159bead63f1f3d273d89f228c (diff)
downloadmastodon_ynh-a9a5e06246bb952ebd17f236cd956e80a4537147.tar.gz
mastodon_ynh-a9a5e06246bb952ebd17f236cd956e80a4537147.tar.bz2
mastodon_ynh-a9a5e06246bb952ebd17f236cd956e80a4537147.zip
Patch Gemfile to fix blurhash and ox packages
These packages were having issues with newer versions of gem. They have been fixed, but the fixes are yet to be incorporated into a new release. So until then, we can use this patch to get the latest (fixed) versions of `blurhash` and `ox` directly from their git repos.
-rw-r--r--sources/patches/app-blurhash-bugfix.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/sources/patches/app-blurhash-bugfix.patch b/sources/patches/app-blurhash-bugfix.patch
new file mode 100644
index 0000000..e75702b
--- /dev/null
+++ b/sources/patches/app-blurhash-bugfix.patch
@@ -0,0 +1,60 @@
+diff --git a/Gemfile b/Gemfile
+index 7c36bc6b8..3f691d102 100644
+--- a/Gemfile
++++ b/Gemfile
+@@ -22,7 +22,8 @@
+ gem 'fog-core', '<= 2.1.0'
+ gem 'fog-openstack', '~> 0.3', require: false
+ gem 'kt-paperclip', '~> 7.1'
+-gem 'blurhash', '~> 0.1'
++gem 'blurhash', github: 'Gargron/blurhash', ref: '870a34e01ce7d09a7bd4d700435e1764ca823246'
++
+
+ gem 'active_model_serializers', '~> 0.10'
+ gem 'addressable', '~> 2.8'
+
+diff --git a/Gemfile.lock b/Gemfile.lock
+index 7c36bc6b8..3f691d102 100644
+--- a/Gemfile.lock
++++ b/Gemfile.lock
+@@ -7,6 +7,13 @@
+ hkdf (~> 0.2)
+ jwt (~> 2.0)
+
++GIT
++ remote: https://github.com/Gargron/blurhash.git
++ revision: 870a34e01ce7d09a7bd4d700435e1764ca823246
++ ref: 870a34e01ce7d09a7bd4d700435e1764ca823246
++ specs:
++ blurhash (0.1.6)
++
+ GEM
+ remote: https://rubygems.org/
+ specs:
+@@ -120,8 +127,6 @@
+ bindata (2.4.10)
+ binding_of_caller (1.0.0)
+ debug_inspector (>= 0.0.1)
+- blurhash (0.1.6)
+- ffi (~> 1.14)
+ bootsnap (1.13.0)
+ msgpack (~> 1.2)
+ brakeman (5.3.1)
+@@ -448,7 +453,7 @@
+ openssl-signature_algorithm (1.2.1)
+ openssl (> 2.0, < 3.1)
+ orm_adapter (0.5.0)
+- ox (2.14.11)
++ ox (2.14.13)
+ parallel (1.22.1)
+ parser (3.1.2.1)
+ ast (~> 2.4.1)
+@@ -738,7 +743,7 @@
+ aws-sdk-s3 (~> 1.114)
+ better_errors (~> 2.9)
+ binding_of_caller (~> 1.0)
+- blurhash (~> 0.1)
++ blurhash!
+ bootsnap (~> 1.13.0)
+ brakeman (~> 5.3)
+ browser