[前][次][番号順一覧][スレッド一覧]

ruby-changes:57202

From: Nobuyoshi <ko1@a...>
Date: Wed, 21 Aug 2019 13:31:48 +0900 (JST)
Subject: [ruby-changes:57202] Nobuyoshi Nakada: 4419b5dbc2 (master): The investigation is going on...

https://git.ruby-lang.org/ruby.git/commit/?id=4419b5dbc2

From 4419b5dbc2e3fe4ec3ac27e3d8b8a2b357f27426 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 21 Aug 2019 13:30:43 +0900
Subject: The investigation is going on...


diff --git a/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb b/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb
index acf7777..b49acd4 100644
--- a/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb
+++ b/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb
@@ -605,6 +605,16 @@ module Bundler::Molinillo https://github.com/ruby/ruby/blob/trunk/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb#L605
         requirements[name_for_locking_dependency_source] = [locked_requirement] if locked_requirement
         vertex.incoming_edges.each do |edge|
           (requirements[edge.origin.payload.latest_version] ||= []).unshift(edge.requirement)
+        rescue NoMethodError => e
+          if e.receiver.is_a?(String) and e.name == :name
+            PP.pp({vertex: vertex,
+                   incoming_edges: vertex.incoming_edges,
+                   edge: edge,
+                   origin: edge.origin,
+                   payload: edge.origin.payload}, STDERR)
+            STDERR.puts e.message, e.backtrace
+          end
+          raise
         end
 
         activated_by_name = {}
diff --git a/spec/bundler/support/indexes.rb b/spec/bundler/support/indexes.rb
index 63c598b..b76f493 100644
--- a/spec/bundler/support/indexes.rb
+++ b/spec/bundler/support/indexes.rb
@@ -27,12 +27,6 @@ module Spec https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/indexes.rb#L27
       end
       source_requirements ||= {}
       Bundler::Resolver.resolve(deps, @index, source_requirements, *args)
-    rescue NoMethodError => e
-      if e.receiver.is_a?(String) and e.name == :name
-        PP.pp([deps, @index, source_requirements, *args], STDERR)
-        STDERR.puts e.message, e.backtrace
-      end
-      raise
     end
 
     def should_resolve_as(specs)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]