diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:43:40 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-12-31 09:46:23 +0000 |
commit | 8c6f6c53155ac04d202c1b8f76bc00769d59b760 (patch) | |
tree | 3efb25a204c6e282f4d041b8a19d2ad5c2286176 | |
parent | 78ddd931f73023c5ec7058ba38d0838e13f8042e (diff) | |
download | gnu-guix-8c6f6c53155ac04d202c1b8f76bc00769d59b760.tar gnu-guix-8c6f6c53155ac04d202c1b8f76bc00769d59b760.tar.gz |
gnu: Add ruby-coveralls.
-rw-r--r-- | gnu/packages/ruby.scm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 95b63c4217..78ef9c6a0a 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -907,6 +907,59 @@ format.") "http://github.com/egonSchiele/contracts.ruby") (license #f))) +(define-public ruby-coveralls + (package + (name "ruby-coveralls") + (version "0.8.22") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "coveralls" version)) + (sha256 + (base32 + "022kc16np6w4mv17hq3m9hhw9l8hjl78ld3fzqqx6337vwvwvwcg")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f + #:test-target "spec" + #:phases + (modify-phases %standard-phases + (add-after 'extract-gemspec 'update-dependency + (lambda _ + ;; Relax dependency to avoid conflicting versions in nio4r + ;; for instance. + (substitute* "coveralls-ruby.gemspec" + (("<simplecov.*") "<simplecov>)\n") + (("<tins.*") "<tins>)\n")) + + #t)) + (add-before 'check 'fix-dependencies + (lambda _ + (substitute* "spec/spec_helper.rb" + ((".*pry.*") "\n")) + #t))))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-rspec" ,ruby-rspec) + ("ruby-truthy" ,ruby-truthy) + ("ruby-webmock" ,ruby-webmock) + ("ruby-vcr" ,ruby-vcr) + ("git" ,git))) ; git is required for testing + (propagated-inputs + `(("ruby-json" ,ruby-json) + ("ruby-rest-client" ,ruby-rest-client) + ("ruby-simplecov" ,ruby-simplecov) + ("ruby-term-ansicolor" ,ruby-term-ansicolor) + ("ruby-thor" ,ruby-thor) + ("ruby-simplecov" ,ruby-simplecov) + ("ruby-tins" ,ruby-tins))) + (synopsis + "A Ruby implementation of the Coveralls API.") + (description + "A Ruby implementation of the Coveralls API.") + (home-page "https://coveralls.io") + (license license:expat))) + (define-public ruby-crack (package (name "ruby-crack") |