diff --git a/Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md b/Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md index 659d67e..22bf9e1 100644 --- a/Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md +++ b/Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md @@ -1,16 +1,14 @@ -
As explained here
-- https://bugs.launchpad.net/ubuntu/+source/ruby-thor/+bug/1885424 +
If when you run bundler you get and error saying "TypeError: superclass mismatch for class Command", this is due to the problem explained in this link https://bugs.launchpad.net/ubuntu/+source/ruby-thor/+bug/1885424
+This happens for the Ubuntu and Debian distributions.The problem is in their fork of bundler not in the original upstream version at https://github.com/rubygems/rubygems
+The files involved are:
+/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_molinillo.rb
+/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_thor.rb
the following change on the files has broken their magic...
+the following changes on the files had broken their magic...
-----------------------------------------------------------------------------
-/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_molinillo.rb
-
-
-
--- a/lib/bundler/vendored_molinillo.rb
+++ b/lib/bundler/vendored_molinillo.rb
@@ -1,4 +1,4 @@
@@ -25,13 +23,6 @@-----------------------------------------------------------------------------
-/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_thor.rb
-
-
-
-
-
--- a/lib/bundler/vendored_thor.rb
+++ b/lib/bundler/vendored_thor.rb
@@ -2,7 +2,7 @@
@@ -47,12 +38,11 @@-require_relative "vendor/thor/lib/thor"
+require "thor"
-----------------------------------------------------------------------------
-you can revert the changes or the files from the master branch of github https://github.com/rubygems/rubygems -
- also you need to copy from the master branch the directories
-vendor/thor and vendor/molinillo
-
- into the directory /usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendor
+
------------
\ No newline at end of file +you can revert the changes or copy the files from the upstream master branch https://github.com/rubygems/rubygems +
+Once the modifications done, the files will refer to the relative /vendor/molinillo and /vendor/thor directories that were removed in the fork of Ubuntu/Debian so you need to copy both directories from the upstream into
+/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendor
+You can run now bundler with its magic restored :)
\ No newline at end of file