| 1 | From a6f5b37cd22daa6069d8fbef8cba9dc60a6731f6 Mon Sep 17 00:00:00 2001
|
| 2 | From: Philip McGrath <[email protected]>
|
| 3 | Date: Sun, 24 Jul 2022 23:54:19 -0400
|
| 4 | Subject: [PATCH] `AnyStyle::Data.setup()`: adjust for immutable install
|
| 5 |
|
| 6 | Don't override the default paths for `Dictionary::Marshal`,
|
| 7 | `Dictionary::GDBM`, and `Dictionary:LDBM` to point to this gem: we can't
|
| 8 | populate such files without the 'anystyle' gem (which depends on this
|
| 9 | one), and we won't be able to write to the directory where this gem is
|
| 10 | installed later, so the files will never exist at those locations.
|
| 11 | ---
|
| 12 | lib/anystyle/data/setup.rb | 12 ------------
|
| 13 | 1 file changed, 12 deletions(-)
|
| 14 |
|
| 15 | diff --git a/lib/anystyle/data/setup.rb b/lib/anystyle/data/setup.rb
|
| 16 | index 17efdf8..08246fa 100644
|
| 17 | |
| 18 | |
| 19 | @@ -4,18 +4,6 @@ module AnyStyle
|
| 20 |
|
| 21 | def self.setup
|
| 22 | Dictionary.defaults[:source] = File.join(ROOT, 'dict.txt.gz')
|
| 23 | -
|
| 24 | - if defined? Dictionary::Marshal
|
| 25 | - Dictionary::Marshal.defaults[:path] = File.join(ROOT, 'dict.marshal')
|
| 26 | - end
|
| 27 | -
|
| 28 | - if defined? Dictionary::GDBM
|
| 29 | - Dictionary::GDBM.defaults[:path] = File.join(ROOT, 'dict.db')
|
| 30 | - end
|
| 31 | -
|
| 32 | - if defined? Dictionary::LDBM
|
| 33 | - Dictionary::LDBM.defaults[:path] = ROOT
|
| 34 | - end
|
| 35 | end
|
| 36 | end
|
| 37 | end
|
| 38 | --
|
| 39 | 2.32.0
|
| 40 |
|