relaton-cli 3.0.0.pre.alpha.16 → 3.0.0.pre.alpha.18
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/Gemfile +1 -1
- data/lib/relaton/cli/index_site_generator.rb +15 -3
- data/relaton-cli.gemspec +3 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 131d87eb34562e7195d2ede672fa2aa7222c85247d456020d0d9aeb134a96586
|
|
4
|
+
data.tar.gz: 2499ba78932b1c7163ddddaa39f98fa827e0c3d8ffb7b3174b7e666fce504dd6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec6ddaa46dc0144c1f39443c08ffd618fd16464ddae5f4acbbe7905b2e05d575647ce68864fa63dc337a396c85aabbff57a72442d78290bca8bd641608040d1c
|
|
7
|
+
data.tar.gz: 30f573a40238aa21e219957b34eb23d6e36847de314121b4e572437ffaf4f7aed691b51ee9077ce64081fe5fa66ceb66d95ea2dd0aceacbef41a19be7e1e87bf
|
data/Gemfile
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require "json"
|
|
2
2
|
require "yaml"
|
|
3
3
|
require "zlib"
|
|
4
|
+
require "digest"
|
|
4
5
|
require "pathname"
|
|
5
6
|
require "fileutils"
|
|
6
7
|
require "liquid"
|
|
@@ -579,11 +580,21 @@ module Relaton
|
|
|
579
580
|
|
|
580
581
|
monolith = File.join(output, machine.monolith_filename)
|
|
581
582
|
machine.write_monolith(monolith)
|
|
582
|
-
zip_file(monolith)
|
|
583
|
+
zip_path = zip_file(monolith)
|
|
584
|
+
|
|
585
|
+
# Content address of the published whole-index artifact: a consumer
|
|
586
|
+
# pins `sha256` from this manifest and can verify the zip it fetched.
|
|
587
|
+
# `bytes` is the same artifact's size (progress and cache accounting).
|
|
588
|
+
artifact = {
|
|
589
|
+
"sha256" => Digest::SHA256.file(zip_path).hexdigest,
|
|
590
|
+
"bytes" => File.size(zip_path),
|
|
591
|
+
}
|
|
583
592
|
|
|
584
593
|
write_file(
|
|
585
594
|
File.join(output, "index", "manifest.json"),
|
|
586
|
-
JSON.pretty_generate(
|
|
595
|
+
JSON.pretty_generate(
|
|
596
|
+
machine.manifest(generated: @generated).merge(artifact),
|
|
597
|
+
),
|
|
587
598
|
)
|
|
588
599
|
if machine.skipped_count.positive?
|
|
589
600
|
Util.warn "Machine index: skipped #{machine.skipped_count} of " \
|
|
@@ -595,13 +606,14 @@ module Relaton
|
|
|
595
606
|
|
|
596
607
|
# Zip sibling of a monolith — the form `Relaton::Index url:`
|
|
597
608
|
# fetches today. The zip stores the yaml at its bare basename,
|
|
598
|
-
# matching the layout data repos publish in git.
|
|
609
|
+
# matching the layout data repos publish in git. Returns the zip path.
|
|
599
610
|
def zip_file(yaml_path)
|
|
600
611
|
zip_path = yaml_path.sub(/\.yaml\z/, ".zip")
|
|
601
612
|
File.delete(zip_path) if File.exist?(zip_path)
|
|
602
613
|
Zip::File.open(zip_path, create: true) do |archive|
|
|
603
614
|
archive.add(File.basename(yaml_path), yaml_path)
|
|
604
615
|
end
|
|
616
|
+
zip_path
|
|
605
617
|
end
|
|
606
618
|
|
|
607
619
|
# Copy the scanned corpus onto the site so clients can fetch
|
data/relaton-cli.gemspec
CHANGED
|
@@ -36,7 +36,9 @@ Gem::Specification.new do |spec|
|
|
|
36
36
|
# already a runtime dep of `relaton`, but declare it here too so the require
|
|
37
37
|
# is self-supporting rather than dependent on relaton's transitive graph.
|
|
38
38
|
# 2.0.0.pre.alpha.11 is the first pubid with `Pubid::Errors`.
|
|
39
|
-
|
|
39
|
+
# match the relaton gemspec floor — the alpha.13 line predates the
|
|
40
|
+
# structured index shapes the published data repos ship
|
|
41
|
+
spec.add_dependency "pubid", "~> 2.0.0.pre.alpha.28"
|
|
40
42
|
# relaton bundles every flavor plus Relaton::Bib, so depending on `relaton`
|
|
41
43
|
# alone is sufficient — relaton-bib is no longer published standalone.
|
|
42
44
|
spec.add_dependency "relaton", "= #{relaton_version}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.0.pre.alpha.
|
|
4
|
+
version: 3.0.0.pre.alpha.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: liquid
|
|
@@ -30,28 +30,28 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 2.0.0.pre.alpha.
|
|
33
|
+
version: 2.0.0.pre.alpha.28
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 2.0.0.pre.alpha.
|
|
40
|
+
version: 2.0.0.pre.alpha.28
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: relaton
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - '='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 3.0.0.pre.alpha.
|
|
47
|
+
version: 3.0.0.pre.alpha.18
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - '='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 3.0.0.pre.alpha.
|
|
54
|
+
version: 3.0.0.pre.alpha.18
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: thor
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|