[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/36: gnu: ruby-pdf-inspector: Enable tests.
From: |
guix-commits |
Subject: |
02/36: gnu: ruby-pdf-inspector: Enable tests. |
Date: |
Fri, 17 Jul 2020 23:24:37 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit ed2f26f879d5a3646ce0e08a88a2451eeef31979
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jul 12 14:51:38 2020 -0400
gnu: ruby-pdf-inspector: Enable tests.
* gnu/packages/ruby.scm (ruby-pdf-inspector)[origin]: Use the git-fetch
method.
[phases]: Add the 'drop-signing-key-requirement phase and replace the 'check
phase to enable tests.
[license]: Set to %prawn-project-licenses.
---
gnu/packages/ruby.scm | 55 +++++++++++++++++++++++++++++++++++----------------
1 file changed, 38 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 43e2714..1b506b7 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -9590,25 +9590,46 @@ access to the contents of a PDF file with a high degree
of flexibility.")
(license license:gpl3+)))
(define-public ruby-pdf-inspector
- (package
- (name "ruby-pdf-inspector")
- (version "1.3.0")
- (source (origin
- (method url-fetch)
- (uri (rubygems-uri "pdf-inspector" version))
- (sha256
- (base32
- "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
- (build-system ruby-build-system)
- (propagated-inputs
- `(("ruby-pdf-reader" ,ruby-pdf-reader)))
- (arguments `(#:tests? #f)); No rakefile
- (home-page "https://github.com/prawnpdf/pdf-inspector")
- (synopsis "Analysis classes for inspecting PDF output")
- (description "This library provides a number of PDF::Reader based tools for
+ (let ((revision "1")
+ (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
+ (package
+ (name "ruby-pdf-inspector")
+ (version (git-version "1.3.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/prawnpdf/pdf-inspector.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:test-target "spec"
+ #:phases (modify-phases %standard-phases
+ (add-before 'build 'drop-signing-key-requirement
+ (lambda _
+ (substitute* "pdf-inspector.gemspec"
+ (("spec.signing_key =.*")
+ "spec.signing_key = nil"))
+ #t))
+ (replace 'check
+ (lambda _
+ (substitute* "pdf-inspector.gemspec"
+ ((".*rubocop.*") "")
+ ((".*yard.*") ""))
+ (invoke "rspec"))))))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)))
+ (propagated-inputs
+ `(("ruby-pdf-reader" ,ruby-pdf-reader)))
+ (home-page "https://github.com/prawnpdf/pdf-inspector")
+ (synopsis "Analysis classes for inspecting PDF output")
+ (description "This library provides a number of PDF::Reader based tools
for
use in testing PDF output. Presently, the primary purpose of this tool is to
support the tests found in Prawn, a pure Ruby PDF generation library.")
- (license license:gpl3+)))
+ (license %prawn-project-licenses))))
(define-public ruby-pdf-core
(package
- branch master updated (a2e6553 -> 479c032), guix-commits, 2020/07/17
- 01/36: gnu: ruby-prawn: Add a %prawn-project-licenses variable., guix-commits, 2020/07/17
- 04/36: gnu: ruby-pdf-reader: Actually run tests., guix-commits, 2020/07/17
- 02/36: gnu: ruby-pdf-inspector: Enable tests.,
guix-commits <=
- 03/36: gnu: ruby-pdf-reader: Update to 2.4.0., guix-commits, 2020/07/17
- 05/36: gnu: ruby-ttfunk: Update to 1.6.2.1., guix-commits, 2020/07/17
- 06/36: gnu: ruby-prawn: Update to commit d980247be8a00e7c59cd4e5785e3aa98f9856db1., guix-commits, 2020/07/17
- 07/36: gnu: ruby-prawn-manual-builder: Use %prawn-project-licenses., guix-commits, 2020/07/17
- 08/36: gnu: Add ruby-prawn-icon., guix-commits, 2020/07/17
- 09/36: gnu: Add ruby-css-parser., guix-commits, 2020/07/17
- 11/36: gnu: Add ruby-prawn-templates., guix-commits, 2020/07/17
- 14/36: gnu: Add ruby-sorcerer., guix-commits, 2020/07/17
- 15/36: gnu: Add ruby-given-core., guix-commits, 2020/07/17
- 16/36: gnu: Add ruby-rspec-given., guix-commits, 2020/07/17