Subject: [bug#74341] [PATCH] gnu: add ruby-solargraph-rails

From: Aaron Covrig <[email-masked]>
Date: Mon, 25 Nov 2024 21:08:56 -0500

* gnu/packages/ruby.scm (ruby-solargraph-rails): New variable.
---

Thank you Quanrong for your submission, I have cleaned up a few issues
in the patchfile. For reviewers, I have only verified that the build
succeeds and not conducted any testing beyond that.

 gnu/packages/ruby.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index f08d52dbc8..d7a8a043ba 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -15952,6 +15952,28 @@ (define-public ruby-solargraph
     (home-page "https://solargraph.org/")
     (license license:expat)))
 
+(define-public ruby-solargraph-rails
+  (package
+    (name "ruby-solargraph-rails")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "solargraph-rails" version))
+       (sha256
+        (base32 "1xp39zxz43r7psp6j8xhdcpr7pmi8giw2jn34ykyhg9fixxw5by4"))))
+    (build-system ruby-build-system)
+    (propagated-inputs (list ruby-activesupport ruby-solargraph))
+    (arguments (list #:tests? #f))
+    (synopsis
+     "Solargraph plugin to add reflection on Rails ActiveModel dynamic
+attributes")
+    (description
+     "Solargraph plugin to add reflection on @code{ActiveModel} dynamic
+attributes that will be created at runtime.")
+    (home-page "https://github.com/iftheshoefritz/solargraph-rails")
+    (license license:expat)))
+
 (define-public ruby-wayback-machine-downloader
   (package
     (name "ruby-wayback-machine-downloader")

base-commit: 9b1fb12978482ffb6d37c456343f05609b28b3e8
-- 
2.46.0