1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 18:40:57 +02:00

gnu: ruby-anystyle: Update to 1.4.2.

* gnu/packages/ruby.scm (ruby-anystyle): Update to 1.4.2.
[native-inputs]: Add ruby-gdbm.
* gnu/packages/patches/ruby-anystyle-fix-dictionary-populate.patch:
Update patch.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-01-31 09:19:34 +01:00 committed by Andreas Enge
parent e68b589e96
commit d129a6fdae
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
2 changed files with 87 additions and 90 deletions

View file

@ -52,7 +52,7 @@ index 761ca36..b9529d0 100644
end
def open
- if File.exists?(options[:path])
- if File.exist?(options[:path])
- @db = ::Marshal.load(File.open(options[:path]))
- else
- @db = {}

View file

@ -17809,21 +17809,17 @@ the power of the built-in @code{OptionParser}.")
(license license:bsd-2)))
(define-public ruby-anystyle
(let ((commit "50f1dd547d28ab4b830e45d70e840cb1898a37b0")
(revision "1"))
;; Releases point to specific commits, but recent releases haven't been
;; tagged in Git. Meanwhile, the rubygems archive lacks tests.
(package
(name "ruby-anystyle")
(version (git-version "1.3.14" revision commit))
(version "1.4.2")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/inukshuk/anystyle")
(commit commit)))
(commit (string-append "v" version))))
(sha256
(base32
"0f4qcrywl1kl6qysn24lj3yp85ln4i7za7b7ld2fglyzwcggxwb0"))
"0xhy7wj8v7iahikck6vxbdpncaz5w2gb11b32kmvg5ckgi2kz23p"))
(snippet
;; There is an optional dependency on
;; <https://github.com/feedbackmine/language_detector>, which
@ -17854,6 +17850,7 @@ the power of the built-in @code{OptionParser}.")
(list ruby-byebug
ruby-citeproc
ruby-edtf
ruby-gdbm
ruby-rspec
ruby-unicode-scripts))
(arguments
@ -17881,7 +17878,7 @@ the power of the built-in @code{OptionParser}.")
;; XDG_DATA_DIRS.
(with-output-to-file "initialize-dictionaries.rb"
(lambda ()
(display "
(display "\
require 'anystyle/dictionary' # must come before 'anystyle/data'
require 'anystyle/data'
[:marshal, :gdbm].each do |adapter|
@ -17910,7 +17907,7 @@ data that is relevant to your parsing needs.
This package provides the Ruby module @code{AnyStyle}. AnyStyle can also be
used via the @command{anystyle} command-line utility or a web application,
though the later has not yet been packaged for Guix.")
(license license:bsd-2))))
(license license:bsd-2)))
(define-public anystyle
(package