[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/59: gnu: ruby-sqlite3: Update to 1.6.3.
From: |
guix-commits |
Subject: |
23/59: gnu: ruby-sqlite3: Update to 1.6.3. |
Date: |
Wed, 28 Jun 2023 05:55:14 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit bea5562c6545b76bd89775df6d86fc04fbbec597
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Tue Jun 27 10:08:35 2023 +0100
gnu: ruby-sqlite3: Update to 1.6.3.
* gnu/packages/ruby.scm (ruby-sqlite3): Update to 1.6.3.
[source]: Switch to the Git repository to aid running tests.
[arguments]: Update style and adjust.
[native-inputs]: Add ruby-ruby-memcheck, ruby-rake-compiler and
ruby-rake-compiler-dock.
---
gnu/packages/ruby.scm | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index de45e3a345..c2ffdd715a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -10582,25 +10582,39 @@ neither too verbose nor too minimal.")
(define-public ruby-sqlite3
(package
(name "ruby-sqlite3")
- (version "1.4.4")
+ (version "1.6.3")
(source
(origin
- (method url-fetch)
- (uri (rubygems-uri "sqlite3" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/sparklemotion/sqlite3-ruby")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "1z1wa639c278bsipczn6kv8b13fj85pi8gk7x462chqx6k0wm0ax"))))
+ "0ijj8z8fpk2lczydkxv71k250g5gd8ip8klsscxc9f16b01gh9qs"))))
(build-system ruby-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'add-gemtest-file
- ;; This file exists in the repository but is not distributed.
- (lambda _ (invoke "touch" ".gemtest"))))))
+ (list
+ #:gem-flags #~(list "--" "--enable-system-libraries")
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "GEM_PATH"
+ (string-append (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))
+ (invoke "rake" "test")))))))
(inputs
(list sqlite))
(native-inputs
- (list ruby-hoe ruby-rake-compiler ruby-mini-portile-2))
+ (list ruby-hoe
+ ruby-ruby-memcheck
+ ruby-rake-compiler
+ ruby-mini-portile-2
+ ruby-rake-compiler-dock))
(synopsis "Interface with SQLite3 databases")
(description
"This module allows Ruby programs to interface with the SQLite3 database
- 26/59: gnu: ruby-json-pure: Update to 2.6.3., (continued)
- 26/59: gnu: ruby-json-pure: Update to 2.6.3., guix-commits, 2023/06/28
- 25/59: gnu: ruby-tzinfo-data: Update to 1.2023.3., guix-commits, 2023/06/28
- 27/59: gnu: ruby-markaby: Fix tests., guix-commits, 2023/06/28
- 32/59: gnu: ruby-term-ansicolor: Fix build., guix-commits, 2023/06/28
- 35/59: gnu: ruby-http-cookie: Update to 1.0.5., guix-commits, 2023/06/28
- 42/59: gnu: ruby-tilt: Update to 2.0.11., guix-commits, 2023/06/28
- 33/59: gnu: ruby-listen: Update to 3.8.0., guix-commits, 2023/06/28
- 37/59: gnu: Add ruby-http-accept-1., guix-commits, 2023/06/28
- 49/59: gnu: %ruby-rails-version: Update to 7.0.5.1., guix-commits, 2023/06/28
- 18/59: gnu: ruby-mocha: Update to 2.0.4., guix-commits, 2023/06/28
- 23/59: gnu: ruby-sqlite3: Update to 1.6.3.,
guix-commits <=
- 24/59: gnu: ruby-rack: Update to 2.2.7., guix-commits, 2023/06/28
- 28/59: gnu: ruby-minitest: Update to 5.18.1., guix-commits, 2023/06/28
- 29/59: gnu: ruby-thor: Update to 1.2.2., guix-commits, 2023/06/28
- 31/59: gnu: ruby-minitest-bonus-assertions: Fix build., guix-commits, 2023/06/28
- 34/59: gnu: ruby-mime-types: Update to 3.4.1., guix-commits, 2023/06/28
- 36/59: gnu: Add ruby-http-accept., guix-commits, 2023/06/28
- 38/59: gnu: ruby-protobuf: Fix build., guix-commits, 2023/06/28
- 39/59: gnu: ruby-hoe: Fix build., guix-commits, 2023/06/28
- 43/59: gnu: ruby-rest-client: Update to 2.1.0., guix-commits, 2023/06/28
- 45/59: gnu: ruby-puma: Update to 6.3.0., guix-commits, 2023/06/28