* [PATCH] gnu: Add ruby-safe-yaml
@ 2016-11-21 17:47 Frederick Muriithi
2016-11-21 17:59 ` Marius Bakke
0 siblings, 1 reply; 2+ messages in thread
From: Frederick Muriithi @ 2016-11-21 17:47 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 228 bytes --]
gnu/packages/ruby.scm (ruby-safe-yaml): Add new variable
Tests deactivated due to missing rake task. Submitted a patch to
upstream maintainer, so hopefully future versions will run tests
successfully
--
Frederick M. Muriithi
[-- Attachment #2: 0001-gnu-Add-ruby-safe-yaml.patch --]
[-- Type: text/x-patch, Size: 1650 bytes --]
From 271945b9de385fe7ddcc74bf2555f40096c4099a Mon Sep 17 00:00:00 2001
From: Muriithi Frederick Muriuki <fredmanglis@gmail.com>
Date: Mon, 21 Nov 2016 19:24:19 +0300
Subject: [PATCH] gnu: Add ruby-safe-yaml
* gnu/packages/ruby.scm (ruby-safe-yaml): New variable.
---
gnu/packages/ruby.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d8c36be..e939190 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4247,3 +4247,31 @@ of the more insecure basic authentication scheme.")
them more powerful")
(home-page "https://github.com/intridea/hashie")
(license license:expat)))
+
+(define-public ruby-safe-yaml
+ (package
+ (name "ruby-safe-yaml")
+ (version "1.0.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "safe_yaml" version))
+ (sha256
+ (base32
+ "1hly915584hyi9q9vgd968x2nsi5yag9jyf5kq60lwzi5scr7094"))))
+ (build-system ruby-build-system)
+ (arguments
+ ;; Missing rake task 'test'
+ ;; Submitted patch to upstream maintainer
+ `(#:tests? #f))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)
+ ("ruby-hashie" ,ruby-hashie)))
+ (synopsis "Parse YAML safely")
+ (description "The SafeYAML gem provides an alternative
+implementation of YAML.load suitable for accepting user input
+in Ruby applications. Unlike Ruby's built-in implementation of
+YAML.load, SafeYAML's version will not expose apps to arbitrary
+code execution exploits")
+ (home-page "https://github.com/dtao/safe_yaml")
+ (license license:expat)))
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gnu: Add ruby-safe-yaml
2016-11-21 17:47 [PATCH] gnu: Add ruby-safe-yaml Frederick Muriithi
@ 2016-11-21 17:59 ` Marius Bakke
0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2016-11-21 17:59 UTC (permalink / raw)
To: Frederick Muriithi, guix-devel
[-- Attachment #1: Type: text/plain, Size: 2319 bytes --]
Frederick Muriithi <fredmanglis@gmail.com> writes:
> gnu/packages/ruby.scm (ruby-safe-yaml): Add new variable
>
> Tests deactivated due to missing rake task. Submitted a patch to
> upstream maintainer, so hopefully future versions will run tests
> successfully
Cool! If there are tests, and a patch exists for enabling them as a rake
task, I think we should include it, with a link to the upstream issue.
Could you send an updated patch that enables the tests? And thanks! :)
>
> --
> Frederick M. Muriithi
> From 271945b9de385fe7ddcc74bf2555f40096c4099a Mon Sep 17 00:00:00 2001
> From: Muriithi Frederick Muriuki <fredmanglis@gmail.com>
> Date: Mon, 21 Nov 2016 19:24:19 +0300
> Subject: [PATCH] gnu: Add ruby-safe-yaml
>
> * gnu/packages/ruby.scm (ruby-safe-yaml): New variable.
> ---
> gnu/packages/ruby.scm | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
> index d8c36be..e939190 100644
> --- a/gnu/packages/ruby.scm
> +++ b/gnu/packages/ruby.scm
> @@ -4247,3 +4247,31 @@ of the more insecure basic authentication scheme.")
> them more powerful")
> (home-page "https://github.com/intridea/hashie")
> (license license:expat)))
> +
> +(define-public ruby-safe-yaml
> + (package
> + (name "ruby-safe-yaml")
> + (version "1.0.4")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (rubygems-uri "safe_yaml" version))
> + (sha256
> + (base32
> + "1hly915584hyi9q9vgd968x2nsi5yag9jyf5kq60lwzi5scr7094"))))
> + (build-system ruby-build-system)
> + (arguments
> + ;; Missing rake task 'test'
> + ;; Submitted patch to upstream maintainer
> + `(#:tests? #f))
> + (native-inputs
> + `(("ruby-rspec" ,ruby-rspec)
> + ("ruby-hashie" ,ruby-hashie)))
> + (synopsis "Parse YAML safely")
> + (description "The SafeYAML gem provides an alternative
> +implementation of YAML.load suitable for accepting user input
> +in Ruby applications. Unlike Ruby's built-in implementation of
> +YAML.load, SafeYAML's version will not expose apps to arbitrary
> +code execution exploits")
> + (home-page "https://github.com/dtao/safe_yaml")
> + (license license:expat)))
> --
> 2.1.4
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-21 17:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-21 17:47 [PATCH] gnu: Add ruby-safe-yaml Frederick Muriithi
2016-11-21 17:59 ` Marius Bakke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).