summaryrefslogtreecommitdiff
path: root/lib/bundler/resolver/incompatibility.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2022-12-09 14:45:51 +0900
committerHiroshi SHIBATA <[email protected]>2022-12-09 16:36:22 +0900
commita4e14b9d9d58391fb7d7a10be8d883690860373b (patch)
tree08f9c871583bd0a0d98b9cac3389ad52631400be /lib/bundler/resolver/incompatibility.rb
parentd928ebacb23639cbf3f28201304f0451e5bd45a7 (diff)
Merge RubyGems/Bundler master
Pick from https://github.com/rubygems/rubygems/commit/823c776d951f3c35094611473ec77f94e8bf6610
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6890
Diffstat (limited to 'lib/bundler/resolver/incompatibility.rb')
-rw-r--r--lib/bundler/resolver/incompatibility.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/bundler/resolver/incompatibility.rb b/lib/bundler/resolver/incompatibility.rb
new file mode 100644
index 0000000000..c61151fbeb
--- /dev/null
+++ b/lib/bundler/resolver/incompatibility.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+module Bundler
+ class Resolver
+ class Incompatibility < PubGrub::Incompatibility
+ attr_reader :extended_explanation
+
+ def initialize(terms, cause:, custom_explanation: nil, extended_explanation: nil)
+ @extended_explanation = extended_explanation
+
+ super(terms, :cause => cause, :custom_explanation => custom_explanation)
+ end
+ end
+ end
+end