all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#44913] [PATCH] gnu: ruby-rubocop-ast: Update to 1.2.0.
@ 2020-11-27 22:22 Tomás Ortín Fernández via Guix-patches via
  2020-12-05  0:01 ` Leo Famulari
  2021-02-25 22:53 ` bug#44913: " Björn Höfling
  0 siblings, 2 replies; 3+ messages in thread
From: Tomás Ortín Fernández via Guix-patches via @ 2020-11-27 22:22 UTC (permalink / raw)
  To: 44913

* gnu/packages/ruby.scm (ruby-rubocop-ast): Update to 1.2.0.
---
gnu/packages/ruby.scm | 25 +++++--------------------
1 file changed, 5 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index ae2da01f63..fc69f4db05 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6823,32 +6823,17 @@ inspired by the Sinatra microframework style of specifying actions:
 (define-public ruby-rubocop-ast
   (package
     (name "ruby-rubocop-ast")
-    (version "0.3.0")
+    (version "1.2.0")
     (source
      (origin
-       (method git-fetch)               ;no test suite in distributed gem
-       (uri (git-reference
-             (url "https://github.com/rubocop-hq/rubocop-ast")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
+       (method url-fetch)
+       (uri (rubygems-uri "rubocop-ast" version))
        (sha256
         (base32
-         "1ycf6qcj8nbzk2js72priim4642lkn56w5kbny1nlryjkckxgm04"))))
+         "0q0kdi89ad7dd1xmzrdf5ikk32bllzr68hf4x8fd7azcv5jnch2l"))))
     (build-system ruby-build-system)
     (arguments
-     `(#:test-target "spec"
-       #:phases (modify-phases %standard-phases
-                  (add-after 'unpack 'disable-bundler
-                    (lambda _
-                      (substitute* "Rakefile"
-                        (("Bundler\\.setup.*") "nil\n"))
-                      #t))
-                  (replace 'replace-git-ls-files
-                    (lambda _
-                      (substitute* "rubocop-ast.gemspec"
-                        (("`git ls-files(.*)`" _ files)
-                         (format #f "`find ~a -type f| sort`" files)))
-                      #t)))))
+     '(#:tests? #f)) ; tests not included in gem
     (native-inputs
      `(("ruby-bump" ,ruby-bump)
        ("ruby-rspec" ,ruby-rspec)))




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#44913] [PATCH] gnu: ruby-rubocop-ast: Update to 1.2.0.
  2020-11-27 22:22 [bug#44913] [PATCH] gnu: ruby-rubocop-ast: Update to 1.2.0 Tomás Ortín Fernández via Guix-patches via
@ 2020-12-05  0:01 ` Leo Famulari
  2021-02-25 22:53 ` bug#44913: " Björn Höfling
  1 sibling, 0 replies; 3+ messages in thread
From: Leo Famulari @ 2020-12-05  0:01 UTC (permalink / raw)
  To: 44913

On Fri, Nov 27, 2020 at 11:22:44PM +0100, Tomás Ortín Fernández via Guix-patches via wrote:
> * gnu/packages/ruby.scm (ruby-rubocop-ast): Update to 1.2.0.

Thanks!

>      (source
>       (origin
> -       (method git-fetch)               ;no test suite in distributed gem
> -       (uri (git-reference
> -             (url "https://github.com/rubocop-hq/rubocop-ast")
> -             (commit (string-append "v" version))))
> -       (file-name (git-file-name name version))
> +       (method url-fetch)
> +       (uri (rubygems-uri "rubocop-ast" version))
>         (sha256
>          (base32
> -         "1ycf6qcj8nbzk2js72priim4642lkn56w5kbny1nlryjkckxgm04"))))
> +         "0q0kdi89ad7dd1xmzrdf5ikk32bllzr68hf4x8fd7azcv5jnch2l"))))
>      (build-system ruby-build-system)
>      (arguments
> -     `(#:test-target "spec"
> -       #:phases (modify-phases %standard-phases
> -                  (add-after 'unpack 'disable-bundler
> -                    (lambda _
> -                      (substitute* "Rakefile"
> -                        (("Bundler\\.setup.*") "nil\n"))
> -                      #t))
> -                  (replace 'replace-git-ls-files
> -                    (lambda _
> -                      (substitute* "rubocop-ast.gemspec"
> -                        (("`git ls-files(.*)`" _ files)
> -                         (format #f "`find ~a -type f| sort`" files)))
> -                      #t)))))
> +     '(#:tests? #f)) ; tests not included in gem

The commit message should describe the changes to the code.

For example, I might write it this way:

------
gnu: ruby-rubocop-ast: Update to 1.2.0.

* gnu/packages/ruby.scm (ruby-rubocop-ast): Update to 1.2.0.
[source]: Fetch source from rubygems.
[arguments]: Remove obsolete 'disable-bundler' phase. Skip the test suite.
------

This helps communicate your intentions to reviewers (and everyone else).

For example, why does the patch remove the 'disable-bundler' phase? If that
phase is no longer needed, it helps to describe it as obsolete in the commit
message.

The code comment about why the tests are skipped is really useful, for the same
reason. But we can't add comments about code that is removed :)

Does that make sense? Can you send a revised patch with a complete commit
message? It's fine to copy what I wrote if it is accurate.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#44913: [PATCH] gnu: ruby-rubocop-ast: Update to 1.2.0.
  2020-11-27 22:22 [bug#44913] [PATCH] gnu: ruby-rubocop-ast: Update to 1.2.0 Tomás Ortín Fernández via Guix-patches via
  2020-12-05  0:01 ` Leo Famulari
@ 2021-02-25 22:53 ` Björn Höfling
  1 sibling, 0 replies; 3+ messages in thread
From: Björn Höfling @ 2021-02-25 22:53 UTC (permalink / raw)
  To: Tomás Ortín Fernández via Guix-patches via
  Cc: Tomás Ortín Fernández, 44913-done, Leo Famulari

[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

On Fri, 27 Nov 2020 23:22:44 +0100
Tomás Ortín Fernández via Guix-patches via <guix-patches@gnu.org> wrote:

> * gnu/packages/ruby.scm (ruby-rubocop-ast): Update to 1.2.0.

This package was updated to 1.4.1 in commit

6e3a85192ca48a749858c8c7f128c5ec59c2ff89

Closing this patch.

Björn

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-25 22:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-27 22:22 [bug#44913] [PATCH] gnu: ruby-rubocop-ast: Update to 1.2.0 Tomás Ortín Fernández via Guix-patches via
2020-12-05  0:01 ` Leo Famulari
2021-02-25 22:53 ` bug#44913: " Björn Höfling

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.