From 073293cd25799103c9a8db7071877ad4c3fc964b Mon Sep 17 00:00:00 2001 From: taki Date: Mon, 9 Mar 2020 00:15:30 +0900 Subject: [PATCH 1/5] Update rubies --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6f21b41a..119fbff3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,12 @@ before_install: rvm: - 2.0.0 - 2.1.10 - - 2.2.9 - - 2.3.6 - - 2.4.3 - - 2.5.0 + - 2.2.10 + - 2.3.8 + - 2.4.9 + - 2.5.7 + - 2.6.5 + - 2.7.0 script: - bundle exec rake spec From cfdf3c97b1d9a2e6a965da2da11cfb2913f798c3 Mon Sep 17 00:00:00 2001 From: taki Date: Mon, 9 Mar 2020 00:27:50 +0900 Subject: [PATCH 2/5] Remove unsupported rubies --- .travis.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 119fbff3..d72721d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,6 @@ before_install: - gem update bundler rvm: - - 2.0.0 - - 2.1.10 - - 2.2.10 - - 2.3.8 - 2.4.9 - 2.5.7 - 2.6.5 From 1b0d37d8bbc7746cc918b213b0978aa616784060 Mon Sep 17 00:00:00 2001 From: taki Date: Mon, 9 Mar 2020 00:43:47 +0900 Subject: [PATCH 3/5] Implement namespace_name --- lib/pry-doc/pry_ext/method_info.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/pry-doc/pry_ext/method_info.rb b/lib/pry-doc/pry_ext/method_info.rb index 22f5d586..72817692 100644 --- a/lib/pry-doc/pry_ext/method_info.rb +++ b/lib/pry-doc/pry_ext/method_info.rb @@ -115,7 +115,7 @@ def find_gem_dir(meth) host_source_location, _ = WrappedModule.new(host).source_location break if host_source_location != nil return unless host.name - host = eval(host.namespace_name) + host = eval(namespace_name(host)) end while host # We want to exclude all source_locations that aren't gems (i.e @@ -186,6 +186,12 @@ def cache(meth) YARD.parse(file) end end + + private + + def namespace_name(host) + host.name.split("::")[0..-2].join("::") + end end end end From f6995cb97cec82a6cce12d2d035734362efc23b9 Mon Sep 17 00:00:00 2001 From: taki Date: Mon, 9 Mar 2020 00:52:14 +0900 Subject: [PATCH 4/5] Update rake for suppressing warnings --- pry-doc.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pry-doc.gemspec b/pry-doc.gemspec index 6ddac3ad..aea791a1 100644 --- a/pry-doc.gemspec +++ b/pry-doc.gemspec @@ -26,5 +26,5 @@ DESCR s.add_dependency 'pry', "~> 0.11" s.add_development_dependency 'latest_ruby', '~> 2.0' s.add_development_dependency 'rspec', '~> 3.5' - s.add_development_dependency 'rake', "~> 10.0" + s.add_development_dependency 'rake' end From 9849799ed768af91111a021355c906421bd47696 Mon Sep 17 00:00:00 2001 From: taki Date: Mon, 9 Mar 2020 01:29:41 +0900 Subject: [PATCH 5/5] Update rake before install --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index d72721d1..a95c3efd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ before_install: - gem update bundler + - gem update rake rvm: - 2.4.9