summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ruby-xyz.scm33
1 files changed, 27 insertions, 6 deletions
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index 23dab11735e..6009e780278 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -1304,7 +1304,7 @@ configurable levels.")
1304(define-public ruby-asciidoctor-pdf 1304(define-public ruby-asciidoctor-pdf
1305 (package 1305 (package
1306 (name "ruby-asciidoctor-pdf") 1306 (name "ruby-asciidoctor-pdf")
1307 (version "2.3.19") 1307 (version "2.3.24")
1308 (source 1308 (source
1309 (origin 1309 (origin
1310 (method git-fetch) ;no test suite in the distributed gem 1310 (method git-fetch) ;no test suite in the distributed gem
@@ -1314,16 +1314,19 @@ configurable levels.")
1314 (file-name (git-file-name name version)) 1314 (file-name (git-file-name name version))
1315 (sha256 1315 (sha256
1316 (base32 1316 (base32
1317 "1l8my8jj4aww2yad80n6f7hs76lq5gicld8dy014pw90pk3x43mp")) 1317 "0njpbgfdwzw7rbjj5vg5xjmykm55x588fk437nvaqg6bq7pv66mw"))
1318 (patches 1318 (patches
1319 (search-patches 1319 (search-patches
1320 "ruby-asciidoctor-pdf-support-prawn-svg-0_36.patch")))) 1320 "ruby-asciidoctor-pdf-support-prawn-svg-0_36.patch"))))
1321 (build-system ruby-build-system) 1321 (build-system ruby-build-system)
1322 (arguments 1322 (arguments
1323 (list 1323 (list
1324 #:test-target "spec"
1325 #:phases 1324 #:phases
1326 #~(modify-phases %standard-phases 1325 #~(modify-phases %standard-phases
1326 (add-after 'extract-gemspec 'relax-dependencies
1327 (lambda _
1328 (substitute* "asciidoctor-pdf.gemspec"
1329 (("~>") ">="))))
1327 ;; The tests rely on the Gem being installed, so move the check 1330 ;; The tests rely on the Gem being installed, so move the check
1328 ;; phase after the install phase. 1331 ;; phase after the install phase.
1329 (delete 'check) 1332 (delete 'check)
@@ -1333,10 +1336,28 @@ configurable levels.")
1333 (getenv "GEM_PATH") ":" 1336 (getenv "GEM_PATH") ":"
1334 #$output "/lib/ruby/vendor_ruby")) 1337 #$output "/lib/ruby/vendor_ruby"))
1335 (when tests? 1338 (when tests?
1336 (invoke "rspec" "-t" "~visual" "-t" "~cli" 1339 (let ((skippedtests
1337 "-t" "~network"))))))) 1340 (list ;; Disable tests requiring write access
1341 "should render linear gradient in SVG"
1342 ;; Disable visual+cli tests requiring network access
1343 "should allow remote image in SVG to be read if allow"
1344 "should warn if remote image is missing and allow"
1345 "should replace video with poster image if allow"
1346 "should read remote image over"
1347 "should embed remote image")))
1348 (setenv "SPEC_OPTS"
1349 (string-append
1350 "--warnings" " "
1351 ;; Disable tests failing in the guix environment:
1352 "--example-matches "
1353 "'(^(?!.*(" (string-join skippedtests "|") ")).*)'")))
1354 ;; The Fontconfig error: No writable cache directories errors
1355 ;; are caused by our read-only test environment and are
1356 ;; non-failing
1357 (invoke "rspec" "-t" "~network")))))))
1338 (native-inputs 1358 (native-inputs
1339 (list ruby-chunky-png 1359 (list poppler
1360 ruby-chunky-png
1340 ruby-coderay 1361 ruby-coderay
1341 ruby-pdf-inspector 1362 ruby-pdf-inspector
1342 ruby-rouge 1363 ruby-rouge