From dbe02ce50fb595b32c83770d2c15e80607cd5f5a Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 4 Jan 2021 01:32:10 +0100 Subject: gnu: Add ruby-yell. * gnu/packages/ruby.scm (ruby-yell): New variable. Signed-off-by: Christopher Baines --- gnu/packages/ruby.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index b811cbd2c4..04d4d2f334 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -11764,3 +11764,30 @@ defined in @file{.travis.yml} on your local machine, using @code{rvm}, you the speed and portability of libgit2 with the beauty of the Ruby language.") (license license:expat))) + +(define-public ruby-yell + (package + (name "ruby-yell") + (version "2.2.2") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "yell" version)) + (sha256 + (base32 + "1g16kcdhdfvczn7x81jiq6afg3bdxmb73skqjyjlkp5nqcy6y5hx")))) + (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "rake" "examples")))))) ; there is no test target. + (synopsis + "Extensible logging library for Ruby") + (description + "Yell is a comprehensive logging replacement for Ruby. It defines +multiple adapters, various log level combinations and message formatting +options.") + (home-page "https://github.com/rudionrails/yell") + (license license:expat))) -- cgit v1.2.3 From 0af8398b50c6ed394032618febeb481c3200d3c0 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 4 Jan 2021 01:32:11 +0100 Subject: gnu: Add ruby-patron. * gnu/packages/ruby.scm (ruby-patron): New variable. Signed-off-by: Christopher Baines --- gnu/packages/ruby.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 04d4d2f334..0e7f6d98f9 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2020 Nicolas Goaziou ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 Holgr Peters +;;; Copyright © 2020 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,6 +50,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages crypto) + #:use-module (gnu packages curl) #:use-module (gnu packages databases) #:use-module (gnu packages dbm) #:use-module (gnu packages rails) @@ -1163,6 +1165,31 @@ more.") (home-page "https://github.com/xwmx/pandoc-ruby") (license license:expat))) +(define-public ruby-patron + (package + (name "ruby-patron") + (version "0.13.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "patron" version)) + (sha256 + (base32 + "0523gddx88zql2mq6655k60gy2ac8vybpzkcf90lmd9nx7wl3fi9")))) + (build-system ruby-build-system) + (inputs + `(("curl" ,curl))) + (arguments + `(#:tests? #f)) ; no included tests + (synopsis "Ruby HTTP client library based on @code{libcurl}") + (description + "Patron is a Ruby HTTP client library based on @code{libcurl}. It does +not try to expose the full power (read complexity) of @code{libcurl} but +instead tries to provide a sane API while taking advantage of @code{libcurl} +under the hood.") + (home-page "https://github.com/toland/patron") + (license license:expat))) + (define-public ruby-slim (package (name "ruby-slim") -- cgit v1.2.3 From 45270b1862aaf2e4ae5f9fec00fb4a6dede04196 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 4 Jan 2021 01:32:12 +0100 Subject: gnu: Add ruby-ethon. * gnu/packages/ruby.scm (ruby-ethon): New variable. Signed-off-by: Christopher Baines --- gnu/packages/ruby.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 0e7f6d98f9..2a5d4f0f06 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2348,6 +2348,30 @@ support.") (home-page "http://www.kuwata-lab.com/erubis/") (license license:expat))) +(define-public ruby-ethon + (package + (name "ruby-ethon") + (version "0.12.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "ethon" version)) + (sha256 + (base32 + "0gggrgkcq839mamx7a8jbnp2h7x2ykfn34ixwskwb0lzx2ak17g9")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f)) ; no included tests + (inputs + `(("curl" ,curl))) + (propagated-inputs + `(("ruby-ffi" ,ruby-ffi))) + (synopsis "Very lightweight @code{libcurl} wrapper") + (description + "Ethon is a very basic @code{libcurl} wrapper using ffi.") + (home-page "https://github.com/typhoeus/ethon") + (license license:expat))) + (define-public ruby-execjs (package (name "ruby-execjs") -- cgit v1.2.3 From b47c85a50da5ae13b65fd715e51d1090f8250e04 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 4 Jan 2021 01:32:13 +0100 Subject: gnu: Add ruby-typhoeus. * gnu/packages/ruby.scm (ruby-typhoeus): New variable. Signed-off-by: Christopher Baines --- gnu/packages/ruby.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 2a5d4f0f06..f18c564059 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1484,6 +1484,30 @@ Grammar (PEG) parser generator Domain Specific Language (DSL).") (home-page "https://github.com/cjheath/treetop") (license license:expat))) +(define-public ruby-typhoeus + (package + (name "ruby-typhoeus") + (version "1.4.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "typhoeus" version)) + (sha256 + (base32 + "1m22yrkmbj81rzhlny81j427qdvz57yk5wbcf3km0nf3bl6qiygz")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f)) ; no included tests + (propagated-inputs + `(("ruby-ethon" ,ruby-ethon))) + (synopsis "@code{libcurl} wrapper in Ruby") + (description + "Like a modern code version of the mythical beast with 100 serpent heads, +Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling +logic.") + (home-page "https://github.com/typhoeus/typhoeus") + (license license:expat))) + (define-public ruby-rubocop-performance (package (name "ruby-rubocop-performance") -- cgit v1.2.3 From ff350f98c080d30d6df1f9bfa5833cbdb1b5a913 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 4 Jan 2021 01:32:14 +0100 Subject: gnu: Add ruby-awesome-print. * gnu/packages/ruby.scm (ruby-awesome-print): New variable. Signed-off-by: Christopher Baines --- gnu/packages/ruby.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index f18c564059..05cdc94c5d 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1102,6 +1102,43 @@ line of code.") ;; of the Expat license. (license license:bsd-3))) +(define-public ruby-awesome-print + (package + (name "ruby-awesome-print") + (version "1.8.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "awesome_print" version)) + (sha256 + (base32 + "14arh1ixfsd6j5md0agyzvksm5svfkvchb90fp32nn7y3avcmc2h")))) + (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; Remove failing test. + (for-each delete-file + '("spec/ext/nokogiri_spec.rb" + "spec/colors_spec.rb" + "spec/formats_spec.rb" + "spec/methods_spec.rb" + "spec/misc_spec.rb" + "spec/objects_spec.rb")) + (invoke "rspec" "-c" "spec")))))) + (native-inputs + `(("ruby-nokogiri" ,ruby-nokogiri) + ("ruby-rspec" ,ruby-rspec) + ("ruby-simplecov" ,ruby-simplecov))) + (synopsis "Pretty print Ruby objects to visualize their structure") + (description + "Ruby dubugging companion: pretty print Ruby objects to visualize their +structure. Supports custom object formatting via plugins.") + (home-page "https://github.com/awesome-print/awesome_print") + (license license:expat))) + (define-public ruby-pandoc-ruby (package (name "ruby-pandoc-ruby") -- cgit v1.2.3 From 9539d6bd072ed618ab737242c7f94640da0130c2 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 4 Jan 2021 01:32:15 +0100 Subject: gnu: Add ruby-html-proofer. * gnu/packages/ruby.scm (ruby-html-proofer): New variable. --- gnu/packages/ruby.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 05cdc94c5d..22faef5588 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -11381,6 +11381,48 @@ characteristics.") (home-page "https://github.com/sinatra/mustermann") (license license:expat))) +(define-public ruby-html-proofer + (package + (name "ruby-html-proofer") + (version "3.18.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gjtorikian/html-proofer") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1pxb0fajb3l3lm7sqj548qwl7vx6sx3jy7n4cns9d4lqx7s9r9xb")))) + (build-system ruby-build-system) + (arguments + `(;; FIXME: Tests depend on rubocop-standard. + #:tests? #f)) + (native-inputs + `(("ruby-awesome-print" ,ruby-awesome-print) + ("ruby-redcarpet" ,ruby-redcarpet) + ("ruby-rspec" ,ruby-rspec) + ("ruby-rubocop" ,ruby-rubocop) + ("ruby-rubocop-performance" ,ruby-rubocop-performance) + ("ruby-pry-byebug" ,ruby-pry-byebug))) + (propagated-inputs + `(("ruby-addressable" ,ruby-addressable) + ("ruby-mercenary" ,ruby-mercenary) + ("ruby-nokogumbo" ,ruby-nokogumbo) + ("ruby-parallel" ,ruby-parallel) + ("ruby-rainbow" ,ruby-rainbow) + ("ruby-typhoeus" ,ruby-typhoeus) + ("ruby-yell" ,ruby-yell))) + (synopsis "Test your rendered HTML files to make sure they're accurate") + (description + "HTMLProofer is a set of tests to validate your HTML output. These +tests check if your image references are legitimate, if they have alt tags, +if your internal links are working, and so on. It's intended to be an +all-in-one checker for your output.") + (home-page "https://github.com/gjtorikian/html-proofer") + (license license:expat))) + (define-public ruby-htmlentities (package (name "ruby-htmlentities") -- cgit v1.2.3 From c73585145f283c19e89d4c298b2715d780f7c007 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 8 Feb 2021 14:26:13 -0300 Subject: gnu: ruby-sassc: Update to 2.4.0. * gnu/packages/ruby.scm (ruby-sassc): Update to 2.4.0. --- gnu/packages/ruby.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 22faef5588..937a898abf 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 Holgr Peters ;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2021 EuAndreh ;;; ;;; This file is part of GNU Guix. ;;; @@ -10434,14 +10435,14 @@ features that don't exist yet like variables, nesting, mixins and inheritance.") (define-public ruby-sassc (package (name "ruby-sassc") - (version "2.2.1") + (version "2.4.0") (source (origin (method url-fetch) (uri (rubygems-uri "sassc" version)) (sha256 (base32 - "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz")))) + "0gpqv48xhl8mb8qqhcifcp0pixn206a7imc07g48armklfqa4q2c")))) (build-system ruby-build-system) (arguments '(#:modules ((guix build ruby-build-system) -- cgit v1.2.3 From d603db9079f059c24ab4233915c2fa0295bc2f83 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 8 Feb 2021 14:26:14 -0300 Subject: gnu: ruby-jekyll-sass-converter: Update to 2.1.0. * gnu/packages/ruby.scm (ruby-jekyll-sass-converter): Update to 2.1.0. --- gnu/packages/ruby.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 937a898abf..fb07e5f820 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -10521,13 +10521,13 @@ bindings to the libsass library. This enables rendering (define-public ruby-jekyll-sass-converter (package (name "ruby-jekyll-sass-converter") - (version "1.5.2") + (version "2.1.0") (source (origin (method url-fetch) (uri (rubygems-uri "jekyll-sass-converter" version)) (sha256 (base32 - "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk")))) + "04ncr44wrilz26ayqwlg7379yjnkb29mvx4j04i62b7czmdrc9dv")))) (build-system ruby-build-system) (propagated-inputs `(("ruby-sass" ,ruby-sass))) -- cgit v1.2.3 From 8367ab5d92742920ac48125f07c7635c68cb5e36 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 8 Feb 2021 14:26:15 -0300 Subject: gnu: ruby-mercenary: Update to 0.4.0. * gnu/packages/ruby.scm (ruby-mercenary): Update to 0.4.0. --- gnu/packages/ruby.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index fb07e5f820..ab56e944b4 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -11079,13 +11079,13 @@ YAML.load suitable for accepting user input in Ruby applications.") (define-public ruby-mercenary (package (name "ruby-mercenary") - (version "0.3.6") + (version "0.4.0") (source (origin (method url-fetch) (uri (rubygems-uri "mercenary" version)) (sha256 (base32 - "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a")))) + "0f2i827w4lmsizrxixsrv2ssa3gk1b7lmqh8brk8ijmdb551wnmj")))) (build-system ruby-build-system) (arguments `(#:test-target "spec")) (native-inputs -- cgit v1.2.3 From d4be9f846bedc0cf16cc08bc888f88863c7b1226 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 8 Feb 2021 14:26:16 -0300 Subject: gnu: Add ruby-terminal-table. * gnu/packages/ruby.scm (ruby-terminal-table): New variable. --- gnu/packages/ruby.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ab56e944b4..c1a1c3fc1f 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -11157,6 +11157,47 @@ methods for your source as @code{Forwardable::Extended}.") Pathname.") (license license:expat))) +(define-public ruby-terminal-table + (package + (name "ruby-terminal-table") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "terminal-table" version)) + (sha256 + (base32 + "18rbrh464ysqbdv53iwj0r8frshn65566kyj044cp3x9c2754jwh")))) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'check 'remove-gemfile-lock + (lambda _ + (delete-file "Gemfile.lock"))) + (add-before 'check 'remove-unnecessary-dependencies + (lambda _ + (substitute* "terminal-table.gemspec" + (("s.add_runtime_dependency.*") "\n") + (("s.add_development_dependency.*") "\n")) + (substitute* "Gemfile" + ((".*tins.*") "\n")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "rspec"))))))) + (build-system ruby-build-system) + (propagated-inputs + `(("ruby-unicode-display-width" ,ruby-unicode-display-width))) + (native-inputs + `(("ruby-rspec" ,ruby-rspec))) + (home-page "https://github.com/tj/terminal-table") + (synopsis "Simple, feature rich ASCII table generation library") + (description + "Terminal Table is a fast and simple, yet feature rich +table generator written in Ruby. It supports ASCII and +Unicode formatted tables.") + (license license:expat))) + (define-public jekyll (package (name "jekyll") -- cgit v1.2.3 From 53e2d8150eb7594b7b8406fb41febe7054397e51 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 8 Feb 2021 14:26:17 -0300 Subject: gnu: jekyll: Update to 4.2.0. * gnu/packages/ruby.scm (ruby-rouge-2): Remove variable. * gnu/packages/ruby.scm (jekyll): Update to 4.2.0. [propagated-inputs]: Use newer version or ruby-rouge, add ruby-sassc and ruby-terminal-table. --- gnu/packages/ruby.scm | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index c1a1c3fc1f..9d855aeca0 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -10982,17 +10982,6 @@ is compatible with stylesheets designed for pygments.") ;; pygments is licensed under bsd-2 license:bsd-2)))) -(define-public ruby-rouge-2 - (package - (inherit ruby-rouge) - (version "2.2.1") - (source (origin - (method url-fetch) - (uri (rubygems-uri "rouge" version)) - (sha256 - (base32 - "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs")))))) - (define-public ruby-hashie (package (name "ruby-hashie") @@ -11201,13 +11190,13 @@ Unicode formatted tables.") (define-public jekyll (package (name "jekyll") - (version "3.8.6") + (version "4.2.0") (source (origin (method url-fetch) (uri (rubygems-uri "jekyll" version)) (sha256 (base32 - "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz")))) + "0cqkh78jw8scrajyx5nla0vwm9fvp2qql3kdcvvplcq9mazy8snq")))) (build-system ruby-build-system) (arguments ;; No rakefile, but a test subdirectory. @@ -11231,8 +11220,10 @@ Unicode formatted tables.") ("ruby-liquid" ,ruby-liquid) ("ruby-mercenary" ,ruby-mercenary) ("ruby-pathutil" ,ruby-pathutil) - ("ruby-rouge" ,ruby-rouge-2) - ("ruby-safe-yaml" ,ruby-safe-yaml))) + ("ruby-rouge" ,ruby-rouge) + ("ruby-safe-yaml" ,ruby-safe-yaml) + ("ruby-sassc" ,ruby-sassc) + ("ruby-terminal-table" ,ruby-terminal-table))) (home-page "https://jekyllrb.com/") (synopsis "Static site generator") (description "Jekyll is a simple, blog aware, static site generator.") -- cgit v1.2.3