diff options
author | Christopher Baines <mail@cbaines.net> | 2018-08-04 16:04:54 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-12-28 11:21:18 +0000 |
commit | 5c32a94f3122ce5579a983693fb36f28e22ba229 (patch) | |
tree | bb861b4561b0868f45213e55ba0edac79b975bfa /gnu/packages | |
parent | a40fabf68573d15ece5f3f8434773a7e9a36eba4 (diff) | |
download | guix-5c32a94f3122ce5579a983693fb36f28e22ba229.tar guix-5c32a94f3122ce5579a983693fb36f28e22ba229.tar.gz |
gnu: Improve ruby-prawn-table.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/ruby.scm | 61 |
1 files changed, 49 insertions, 12 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index f5f658248c..e8ee084a1c 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -6802,20 +6802,57 @@ functionality from Prawn.") (package (name "ruby-prawn-table") (version "0.2.2") - (source (origin - (method url-fetch) - (uri (rubygems-uri "prawn-table" version)) - (sha256 - (base32 - "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k")))) + (source + (origin + (method url-fetch) + (uri (rubygems-uri "prawn-table" version)) + (sha256 + (base32 + "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k")))) (build-system ruby-build-system) - (arguments `(#:tests? #f)); No rakefile (propagated-inputs - `(("ruby-prawn" ,ruby-prawn))) - (home-page "https://github.com/prawnpdf/prawn-table") - (synopsis "Tables support for Prawn") - (description "This gem provides tables support for Prawn.") - (license license:gpl3+))) + `(("ruby-prawn" ,ruby-prawn) + ("ruby-pdf-inspector" ,ruby-pdf-inspector))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-yard" ,ruby-yard) + ("ruby-mocha" ,ruby-mocha) + ("ruby-coderay" ,ruby-coderay) + ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder) + ("ruby-simplecov" ,ruby-simplecov) + ("ruby-rspec-2" ,ruby-rspec-2))) + (arguments + '(;; TODO: 1 test fails + ;; Failure/Error: pdf.page_count.should == 1 + ;; expected: 1 + ;; got: 2 (using ==) + ;; # ./spec/table_spec.rb:1308 + ;; + ;; 225 examples, 1 failure + #:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'check 'patch-gemspec + (lambda _ + (substitute* "prawn-table.gemspec" + ;; Loosen the requirement for pdf-inspector + (("~> 1\\.1\\.0") ">= 0") + ;; Loosen the requirement for pdf-reader + (("~> 1\\.2") ">= 0")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (invoke "rspec") + #t)))))) + (synopsis + " Prawn::Table provides tables for the Prawn PDF toolkit +") + (description + " Prawn::Table provides tables for the Prawn PDF toolkit +") + (home-page + "https://github.com/prawnpdf/prawn-table") + (license (list #f #f #f)))) (define-public ruby-kramdown (package |