From 868cb80a001593e9ea526eb053c9941754d0e99b Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Thu, 9 Nov 2023 08:42:14 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Add=20Solargraph=20as=20dependen?= =?UTF-8?q?cy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I have used the following to get jump to definition and render documentation for the symbol at cursor. 1. Add solargraph as a development dependency 2. Run `bundle` 3. Run `bundle exec yard gems` (or target specific gems) 4. Add "relevant" gems to the `.solargraph.yml` The above should *not* be in the docker container. You would run this in the environment where your editor is running. There is probably a way to make that work with Docker, but I’m not here for that today. --- .solargraph.yml | 19 +++++++++++++++++++ iiif_print.gemspec | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 .solargraph.yml diff --git a/.solargraph.yml b/.solargraph.yml new file mode 100644 index 00000000..f816044e --- /dev/null +++ b/.solargraph.yml @@ -0,0 +1,19 @@ +include: +- "**/*.rb" +exclude: +- spec/**/* +- test/**/* +- vendor/**/* +- ".bundle/**/*" +require: +- derivative-rodeo +- hyrax +- iiif-presentation +- iiif_manifest +- blacklight_iiif_search +- blacklight +domains: [] +reporters: +- rubocop +- require_not_found +max_files: 5000 diff --git a/iiif_print.gemspec b/iiif_print.gemspec index b9183f60..9f841092 100644 --- a/iiif_print.gemspec +++ b/iiif_print.gemspec @@ -41,4 +41,6 @@ SUMMARY spec.add_development_dependency 'rspec-activemodel-mocks' spec.add_development_dependency 'shoulda-matchers', '~> 3.1' spec.add_development_dependency 'solr_wrapper', '>= 1.1', '< 3.0' + spec.add_development_dependency 'solargraph' + spec.add_development_dependency 'yard' end