From 991724027e20dfdf34370414830995c2dddb838b Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 16 Sep 2015 11:04:40 +0200 Subject: [PATCH 08/11] gnu: Add ruby-yard. * gnu/packages/ruby.scm (ruby-yard): New variable. --- gnu/packages/ruby.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 9c8417a..f6ab4c7 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -670,6 +670,37 @@ API.") (home-page "https://rubygems.org/gems/rb-fsevent") (license license:expat))) +(define-public ruby-yard + (package + (name "ruby-yard") + (version "0.8.7.6") + (source (origin + (method url-fetch) + (uri (rubygems-uri "yard" version)) + (sha256 + (base32 + "1dj6ibc0qqvmb5a5r5kk0vhr04mnrz9b26gnfrs5p8jgp620i89x")))) + (build-system ruby-build-system) + (arguments + `(;; The tests are a mess. Many fail because "mock" and "stub" are + ;; undefined. This is probably because of a missing "require" + ;; statement. But there are also many other tests that fail for other + ;; reasons. Does YARD need to be tested with a different version of + ;; rspec? + #:tests? #f + #:test-target "specs")) + (native-inputs + `(("ruby-rspec" ,ruby-rspec) + ("ruby-rspec-mocks" ,ruby-rspec-mocks))) + (synopsis "Documentation generation tool for Ruby") + (description "YARD is a documentation generation tool for the Ruby +programming language. It enables the user to generate consistent, usable +documentation that can be exported to a number of formats very easily, and +also supports extending for custom Ruby constructs such as custom class level +definitions.") + (home-page "http://yardoc.org/") + (license license:expat))) + (define-public ruby-useragent (package (name "ruby-useragent") -- 2.1.0