kabosu 0.6.11.2-aarch64-linux → 0.6.11.4-aarch64-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kabosu/3.1/kabosu.so +0 -0
- data/lib/kabosu/3.2/kabosu.so +0 -0
- data/lib/kabosu/3.3/kabosu.so +0 -0
- data/lib/kabosu/3.4/kabosu.so +0 -0
- data/lib/kabosu/4.0/kabosu.so +0 -0
- data/lib/kabosu/dict_manager.rb +35 -33
- data/lib/kabosu/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f280c805cbd2980833e2209d61058c86491e825f3effa0b0d00fe12dc1c29b36
|
|
4
|
+
data.tar.gz: 6fb1f2755f2d49ff2c6e28ba529dfe2339a21479475167b3863f07705526e913
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5f0e29a22aedd8414662ac4d57469e6285454d7a45d7531d509231ea9062f7eeb77f07fb3ab36c768af81565d7c40f5f2fc60c4bf21b08ba76bfab288331b84
|
|
7
|
+
data.tar.gz: a23470c82e400dba78b37c799958cf7e945ce4331d5b76999fcf28e49b895cde282326c6c6de54a91e6db9f801218f4bca942edba459e81318e46cc9dd0b8c1e
|
data/lib/kabosu/3.1/kabosu.so
CHANGED
|
Binary file
|
data/lib/kabosu/3.2/kabosu.so
CHANGED
|
Binary file
|
data/lib/kabosu/3.3/kabosu.so
CHANGED
|
Binary file
|
data/lib/kabosu/3.4/kabosu.so
CHANGED
|
Binary file
|
data/lib/kabosu/4.0/kabosu.so
CHANGED
|
Binary file
|
data/lib/kabosu/dict_manager.rb
CHANGED
|
@@ -58,19 +58,17 @@ module Kabosu
|
|
|
58
58
|
raise DownloadError, "No downloadable assets for #{version}/#{edition}" if sources.empty?
|
|
59
59
|
|
|
60
60
|
sources.each do |source|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
warn " falling back: #{e.message}"
|
|
73
|
-
end
|
|
61
|
+
download(source.fetch(:url), source.fetch(:archive_path))
|
|
62
|
+
extract(source.fetch(:archive_path), dest_dir, edition: edition)
|
|
63
|
+
FileUtils.rm_f(source.fetch(:archive_path))
|
|
64
|
+
break
|
|
65
|
+
rescue DownloadError => e
|
|
66
|
+
FileUtils.rm_f(source.fetch(:archive_path))
|
|
67
|
+
# Try the next candidate (e.g. wheel if the zip 404s). If this was
|
|
68
|
+
# the last one, surface the original error.
|
|
69
|
+
raise if sources.last.equal?(source)
|
|
70
|
+
|
|
71
|
+
warn " falling back: #{e.message}"
|
|
74
72
|
end
|
|
75
73
|
|
|
76
74
|
raise DownloadError, "Expected #{dic_path} after extraction, but file not found" unless File.exist?(dic_path)
|
|
@@ -214,7 +212,8 @@ module Kabosu
|
|
|
214
212
|
def pick_release_sources(version, edition)
|
|
215
213
|
candidates = []
|
|
216
214
|
zip = release_asset_url(version, edition)
|
|
217
|
-
candidates << { url: zip, archive_path: File.join(@dir, "sudachi-dictionary-#{version}-#{edition}.zip"),
|
|
215
|
+
candidates << { url: zip, archive_path: File.join(@dir, "sudachi-dictionary-#{version}-#{edition}.zip"),
|
|
216
|
+
format: :zip }
|
|
218
217
|
|
|
219
218
|
begin
|
|
220
219
|
release = fetch_release(version)
|
|
@@ -317,25 +316,28 @@ module Kabosu
|
|
|
317
316
|
warn "Extracting..."
|
|
318
317
|
Zip::File.open(zip_path) do |archive|
|
|
319
318
|
archive.each do |entry|
|
|
320
|
-
#
|
|
321
|
-
#
|
|
322
|
-
#
|
|
323
|
-
#
|
|
324
|
-
#
|
|
325
|
-
#
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
#
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
entry.
|
|
319
|
+
# Both layouts are flattened into dest_dir, which is already
|
|
320
|
+
# `sudachi-dictionary-{version}`.
|
|
321
|
+
#
|
|
322
|
+
# Legacy zips nest their contents under a `sudachi-dictionary-{version}/`
|
|
323
|
+
# directory of their own, so joining the entry name to dest_dir landed
|
|
324
|
+
# the dictionary at `sudachi-dictionary-{version}/sudachi-dictionary-{version}/system_core.dic`
|
|
325
|
+
# and every install of a pre-v20260723 release failed with "expected
|
|
326
|
+
# ... after extraction, but file not found". It went unnoticed because a
|
|
327
|
+
# machine that already had a dictionary never re-installs one.
|
|
328
|
+
#
|
|
329
|
+
# Wheels nest differently again (`sudachidict_{edition}/resources/system.dic`)
|
|
330
|
+
# and name the file `system.dic`, so that one is renamed to carry the
|
|
331
|
+
# edition. Taking the basename handles both, and there is nothing in
|
|
332
|
+
# these archives whose structure is worth keeping: a `.dic`, a LEGAL and
|
|
333
|
+
# a licence.
|
|
334
|
+
target_name = File.basename(entry.name)
|
|
335
|
+
target_name = "system_#{edition}.dic" if edition && target_name == "system.dic"
|
|
336
|
+
|
|
337
|
+
next if entry.directory?
|
|
338
|
+
|
|
339
|
+
FileUtils.mkdir_p(dest_dir)
|
|
340
|
+
entry.extract(target_name, destination_directory: dest_dir) { true }
|
|
339
341
|
end
|
|
340
342
|
end
|
|
341
343
|
rescue Zip::Error => e
|
data/lib/kabosu/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kabosu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.11.
|
|
4
|
+
version: 0.6.11.4
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- davafons
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubyzip
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '3.4'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '3.4'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: benchmark
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|