[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/15: gnu: ruby-pg: Update to 1.3.5.
From: |
guix-commits |
Subject: |
06/15: gnu: ruby-pg: Update to 1.3.5. |
Date: |
Tue, 14 Jun 2022 17:36:19 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit b98a61a8f87c6b0cdca8816157b58c7d58be90ee
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jun 14 17:56:10 2022 +0200
gnu: ruby-pg: Update to 1.3.5.
* gnu/packages/ruby.scm (ruby-pg): Update to 1.3.5.
[home-page]: Change to current.
[source]: Switch to GIT-FETCH.
[arguments]: Add #:phases.
---
gnu/packages/ruby.scm | 45 ++++++++++++++++++++++++++++++++++++++-------
1 file changed, 38 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 54dcae9089..800ab194fe 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6,7 +6,7 @@
;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2017 Nikita <nikita@n0.is>
-;;; Copyright © 2017, 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2017, 2019-2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner
<efraim@flashner.co.il>
;;; Copyright © 2017, 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
@@ -6500,17 +6500,49 @@ alternative to Marshal for Object serialization.")
(define-public ruby-pg
(package
(name "ruby-pg")
- (version "1.2.3")
+ (version "1.3.5")
+ (home-page "https://github.com/ged/ruby-pg")
(source
(origin
- (method url-fetch)
- (uri (rubygems-uri "pg" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "13mfrysrdrh8cka1d96zm0lnfs59i5x2g6ps49r2kz5p3q81xrzj"))))
+ "0c2k2cibd5wwdhva68j5hhfpybm3wmvn2ym4ppn5mqmddwkjkvnk"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "spec"))
+ (list
+ #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ (lambda _
+ ;; These tests fail because DNS is unavailable, giving an
+ ;; unexpected fallback executable in the connection string.
+ (substitute* "spec/pg/connection_spec.rb"
+ (("it (\"accepts an URI and adds( proper)? hostaddr\")" test)
+ (string-append "xit " test))
+ (("it \"can create a connection option string from an option\
+ string and a hash\"" test)
+ (string-append "xit " test)))))
+ (add-before 'build 'compile
+ (lambda _
+ (invoke "rake" "compile")))
+ ;; Some tests rely on postgresql_lib_path.rb, but it is not
+ ;; available until the gem is installed. Run tests after
+ ;; installing to work around it.
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (let ((new-gem (string-append #$output
+ "/lib/ruby/vendor_ruby")))
+ (setenv "GEM_PATH"
+ (string-append (getenv "GEM_PATH") ":" new-gem))
+ (when tests?
+ (invoke "rspec"))))))))
(native-inputs
(list ruby-rake-compiler ruby-hoe ruby-rspec))
(inputs
@@ -6518,7 +6550,6 @@ alternative to Marshal for Object serialization.")
(synopsis "Ruby interface to PostgreSQL")
(description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
with PostgreSQL 9.0 and later.")
- (home-page "https://bitbucket.org/ged/ruby-pg")
(license license:ruby)))
(define-public ruby-byebug
- branch master updated (8e97491277 -> 13c46cc29d), guix-commits, 2022/06/14
- 02/15: gnu: PostgreSQL@14: Update to 14.3 [fixes CVE-2022-1552]., guix-commits, 2022/06/14
- 04/15: gnu: PostgreSQL@10: Update to 10.21 [fixes CVE-2022-1552]., guix-commits, 2022/06/14
- 05/15: gnu: PostgreSQL@13: Update replacement to 13.7 [fixes CVE-2022-1552]., guix-commits, 2022/06/14
- 06/15: gnu: ruby-pg: Update to 1.3.5.,
guix-commits <=
- 07/15: gnu: TimescaleDB: Update to 2.7.0., guix-commits, 2022/06/14
- 08/15: gnu: python-josepy: Update to 1.13.0., guix-commits, 2022/06/14
- 09/15: gnu: python-acme, certbot: Update to 1.28.0., guix-commits, 2022/06/14
- 15/15: gnu: PostgreSQL: Promote version 14 to the default., guix-commits, 2022/06/14
- 13/15: gnu: python-tortoise-orm: Update to 0.19.1., guix-commits, 2022/06/14
- 11/15: gnu: gplates: Update to 2.3.01-beta.3., guix-commits, 2022/06/14
- 03/15: gnu: PostgreSQL@11: Update to 11.16 [fixes CVE-2022-1552]., guix-commits, 2022/06/14
- 10/15: gnu: perl-dbd-pg: Update to 3.15.1., guix-commits, 2022/06/14
- 14/15: gnu: python-asyncpg: Update to 0.25.0., guix-commits, 2022/06/14
- 01/15: gnu: PostgreSQL: Permit loading plugins from symlink unions again., guix-commits, 2022/06/14