metanorma-release 0.2.1 → 0.2.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f35e60b63c59a16ffc5b88d2109cb307e0fa92516da21eddc5440bf6ad92196
|
|
4
|
+
data.tar.gz: c9477fa6090bf5afa89d74329cab173895add611476dc0ca7868d474280cda33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e43d168fa1438c85ce2886b238efabaea9be5e3dc4c18eb3e5e584390a5151d54a0ea86de30d32ad0d838ed3e0353cb2b61bd5a3111f1db982af621f707dc78
|
|
7
|
+
data.tar.gz: b23d8f3364286e1abb805e2745f7b3d45e6cdb079b41fe22e66f11a72b997bc9081c6bee6b74bf0ebdd714f018da8ab5e345a67bcac6a0f1bb5680489aaa5dd5
|
data/README.adoc
CHANGED
|
@@ -45,13 +45,13 @@ The gem ships three commands:
|
|
|
45
45
|
[source,sh]
|
|
46
46
|
----
|
|
47
47
|
# Package compiled documents as zip archives
|
|
48
|
-
|
|
48
|
+
metanorma-release package --output-dir _site --manifest metanorma.release.yml
|
|
49
49
|
|
|
50
50
|
# Package and publish to a platform
|
|
51
|
-
|
|
51
|
+
metanorma-release publish --platform github --output-dir _site --token $GITHUB_TOKEN
|
|
52
52
|
|
|
53
53
|
# Aggregate published releases into a file tree + index.json
|
|
54
|
-
|
|
54
|
+
metanorma-release aggregate --source github --organizations my-org --output-dir _site/cc
|
|
55
55
|
----
|
|
56
56
|
|
|
57
57
|
=== Rake tasks
|
|
@@ -110,13 +110,13 @@ result.failed # => [{ document: ..., error: "..." }]
|
|
|
110
110
|
|
|
111
111
|
== CLI reference
|
|
112
112
|
|
|
113
|
-
=== `
|
|
113
|
+
=== `metanorma-release package`
|
|
114
114
|
|
|
115
115
|
Package compiled documents into zip archives without publishing.
|
|
116
116
|
|
|
117
117
|
[source,sh]
|
|
118
118
|
----
|
|
119
|
-
|
|
119
|
+
metanorma-release package [options]
|
|
120
120
|
----
|
|
121
121
|
|
|
122
122
|
[cols="1m,3",options="header"]
|
|
@@ -128,13 +128,13 @@ mn-release package [options]
|
|
|
128
128
|
|`--config SOURCE` |Channel config file or platform ref
|
|
129
129
|
|===
|
|
130
130
|
|
|
131
|
-
=== `
|
|
131
|
+
=== `metanorma-release publish`
|
|
132
132
|
|
|
133
133
|
Package and publish documents to a platform.
|
|
134
134
|
|
|
135
135
|
[source,sh]
|
|
136
136
|
----
|
|
137
|
-
|
|
137
|
+
metanorma-release publish [options]
|
|
138
138
|
----
|
|
139
139
|
|
|
140
140
|
[cols="1m,3",options="header"]
|
|
@@ -151,13 +151,13 @@ mn-release publish [options]
|
|
|
151
151
|
|`--config SOURCE` |Channel config file or platform ref
|
|
152
152
|
|===
|
|
153
153
|
|
|
154
|
-
=== `
|
|
154
|
+
=== `metanorma-release aggregate`
|
|
155
155
|
|
|
156
156
|
Aggregate published releases from multiple repositories into a unified file tree.
|
|
157
157
|
|
|
158
158
|
[source,sh]
|
|
159
159
|
----
|
|
160
|
-
|
|
160
|
+
metanorma-release aggregate [options]
|
|
161
161
|
----
|
|
162
162
|
|
|
163
163
|
[cols="1m,3",options="header"]
|
|
@@ -20,12 +20,6 @@ module Metanorma
|
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
module IndexGenerator
|
|
24
|
-
def generate(documents, output_dir, format:, parameters:)
|
|
25
|
-
raise NotImplementedError, "#{self.class} must implement #generate"
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
|
|
29
23
|
FetchResult = Struct.new(:releases, :etag, :unchanged?, keyword_init: true)
|
|
30
24
|
RepoReport = Struct.new(:releases, :included, :skipped, :reason, :errors, keyword_init: true)
|
|
31
25
|
RepoError = Struct.new(:tag, :message, keyword_init: true)
|
|
@@ -14,7 +14,7 @@ module Metanorma
|
|
|
14
14
|
when 'publish' then run_publish(argv)
|
|
15
15
|
when 'aggregate' then run_aggregate(argv)
|
|
16
16
|
when nil
|
|
17
|
-
warn 'Usage:
|
|
17
|
+
warn 'Usage: metanorma-release <package|publish|aggregate> [options]'
|
|
18
18
|
exit 2
|
|
19
19
|
else
|
|
20
20
|
warn "Unknown command: #{command}"
|
|
@@ -54,7 +54,7 @@ module Metanorma
|
|
|
54
54
|
options = { output_dir: '_site', dest: 'dist', manifest: 'metanorma.release.yml',
|
|
55
55
|
config_source: nil }
|
|
56
56
|
OptionParser.new do |opts|
|
|
57
|
-
opts.banner = 'Usage:
|
|
57
|
+
opts.banner = 'Usage: metanorma-release package [options]'
|
|
58
58
|
opts.on('--output-dir DIR', 'Compiled docs directory') { |v| options[:output_dir] = v }
|
|
59
59
|
opts.on('--dest DIR', 'Destination for packages') { |v| options[:dest] = v }
|
|
60
60
|
opts.on('--manifest FILE', 'Release manifest file') { |v| options[:manifest] = v }
|
|
@@ -68,7 +68,7 @@ module Metanorma
|
|
|
68
68
|
force: false, force_replace: [], channels: nil, concurrency: 4, token: nil,
|
|
69
69
|
config_source: nil }
|
|
70
70
|
OptionParser.new do |opts|
|
|
71
|
-
opts.banner = 'Usage:
|
|
71
|
+
opts.banner = 'Usage: metanorma-release publish [options]'
|
|
72
72
|
opts.on('--platform NAME', 'github|local') { |v| options[:platform] = v }
|
|
73
73
|
opts.on('--output-dir DIR', 'Compiled docs directory') { |v| options[:output_dir] = v }
|
|
74
74
|
opts.on('--manifest FILE', 'Release manifest file') { |v| options[:manifest] = v }
|
|
@@ -88,7 +88,7 @@ module Metanorma
|
|
|
88
88
|
file_routing: 'by-document', cache_dir: nil,
|
|
89
89
|
include_drafts: false, concurrency: 4, min_documents: 0, token: nil }
|
|
90
90
|
OptionParser.new do |opts|
|
|
91
|
-
opts.banner = 'Usage:
|
|
91
|
+
opts.banner = 'Usage: metanorma-release aggregate [options]'
|
|
92
92
|
opts.on('--source SOURCE', 'github|local:PATH') { |v| options[:source] = v }
|
|
93
93
|
opts.on('--organizations ORGS', 'Comma-separated org list') { |v| options[:organizations] = v.split(',') }
|
|
94
94
|
opts.on('--topic TOPIC', 'Repository topic') { |v| options[:topic] = v }
|
data/lib/metanorma/release.rb
CHANGED
|
@@ -86,7 +86,6 @@ module Metanorma
|
|
|
86
86
|
autoload :RepoDiscoverer, 'metanorma/release/aggregation_interfaces'
|
|
87
87
|
autoload :ReleaseFetcher, 'metanorma/release/aggregation_interfaces'
|
|
88
88
|
autoload :ManifestReader, 'metanorma/release/aggregation_interfaces'
|
|
89
|
-
autoload :IndexGenerator, 'metanorma/release/aggregation_interfaces'
|
|
90
89
|
autoload :FetchResult, 'metanorma/release/aggregation_interfaces'
|
|
91
90
|
autoload :RepoReport, 'metanorma/release/aggregation_interfaces'
|
|
92
91
|
autoload :RepoError, 'metanorma/release/aggregation_interfaces'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-release
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -59,7 +59,7 @@ description: 'Manages the full release lifecycle of Metanorma documents: discove
|
|
|
59
59
|
email:
|
|
60
60
|
- open.source@ribose.com
|
|
61
61
|
executables:
|
|
62
|
-
-
|
|
62
|
+
- metanorma-release
|
|
63
63
|
extensions: []
|
|
64
64
|
extra_rdoc_files: []
|
|
65
65
|
files:
|
|
@@ -70,7 +70,7 @@ files:
|
|
|
70
70
|
- PROMPT.md
|
|
71
71
|
- README.adoc
|
|
72
72
|
- Rakefile
|
|
73
|
-
- exe/
|
|
73
|
+
- exe/metanorma-release
|
|
74
74
|
- lib/metanorma/release.rb
|
|
75
75
|
- lib/metanorma/release/aggregation_interfaces.rb
|
|
76
76
|
- lib/metanorma/release/aggregation_pipeline.rb
|
|
File without changes
|