relaton-cli 2.2.0.pre.alpha.1 → 3.0.0.pre.alpha.1

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: ec3c9fd306d4fce0c6fa28a8f77a80d18eeabb2eb44fa3f2b93329f7a46011ee
4
- data.tar.gz: 5353712fb017ddca3b5f25ef27ec7ea78b88668ac29e09ffab0605c8784ada4a
3
+ metadata.gz: a47c862db04dc7abfb595cf5bb150585dc09c6100047727ab33cf5c581c38dba
4
+ data.tar.gz: 2cb6efe9f2cc054b1825fed5a0c85b4988e74d93ecd7fdcb962af4efa6cd8eb9
5
5
  SHA512:
6
- metadata.gz: f71fef5cb4c191092621c2e9e75030be676f8f7f1f52342e233e977ccc59b36ecc8ec4e246908385081d35738a5227c82dbf25d83cfff3b65aeb8a5d213f9a5f
7
- data.tar.gz: 6875477222a8b3111f9cf5d2cf4b3d67c8387b2eaceeca19915dfb110bc57220542ef0b93d6abf1aa7ce83f1aa0a1a4cc33e8a32a1a3ec361edc31f760a48d5d
6
+ metadata.gz: 5433f5f5b96cd5e19e7fb17ee18012b275b6fe1468f38a61e4d6769b7d7b053dedc0d33925244660d8b8051197790a5f72805f0b84c4bc86ff0813e609841b21
7
+ data.tar.gz: 835cca13a812bf83da85d7251da06030da334bed0aa137ffc5d33b15d3482a12e1090c72585f85dfc6d89af8e1c7973f716106cbe07fb3d3fc3dc408b737ba28
data/CLAUDE.md CHANGED
@@ -86,7 +86,10 @@ Tests use VCR cassettes to replay HTTP interactions with standards registries. W
86
86
 
87
87
  ## Key Dependencies
88
88
 
89
- - `relaton ~> 1.20.0` — Core library providing DB, registry, and all standard-body processors
89
+ - `relaton` — Core library providing DB, registry, and all standard-body
90
+ processors. relaton-cli releases in lockstep with it: both the gemspec pin
91
+ (`= <version>`) and `Relaton::Cli::VERSION` derive from the root
92
+ `lib/relaton/version.rb` (`Relaton::VERSION`), so they never drift apart.
90
93
  - `thor` / `thor-hollaback` — CLI framework
91
94
  - `liquid ~> 5` — HTML template rendering
92
95
  - `nokogiri` (transitive via relaton) — XML parsing
data/Gemfile CHANGED
@@ -3,13 +3,8 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in gemspec
4
4
  gemspec
5
5
 
6
- # Use local monorepo sibling gems where available.
7
- Dir["../*/"].each do |dir|
8
- name = File.basename(dir)
9
- next if name == File.basename(__dir__)
10
- next unless File.exist?(File.join(dir, "#{name}.gemspec"))
11
- gem name, path: dir
12
- end
6
+ # The single combined `relaton` gem lives at the repo root.
7
+ gem "relaton", path: "../.."
13
8
 
14
9
  # https://github.com/rails/rails/issues/55886
15
10
  # add openssl as an explicit gem to fix SSL verification issues in GHA.
data/docs/README.adoc CHANGED
@@ -1,7 +1,7 @@
1
1
  = Relaton CLI: Command-line Interface for Bibliographic References
2
2
 
3
3
  image:https://img.shields.io/gem/v/relaton-cli.svg["Gem Version", link="https://rubygems.org/gems/relaton-cli"]
4
- image:https://github.com/relaton/relaton-cli/workflows/rake/badge.svg["Build Status", link="https://github.com/relaton/relaton-cli/actions?workflow=rake"]
4
+ image:https://github.com/relaton/relaton/actions/workflows/rake.yml/badge.svg["Build Status", link="https://github.com/relaton/relaton/actions/workflows/rake.yml"]
5
5
 
6
6
  Relaton CLI is a command-line tool for fetching, converting, and managing
7
7
  bibliographic references to standards (ISO, IEC, IETF, NIST, IEEE, and many
@@ -26,7 +26,7 @@ $ gem install relaton-cli
26
26
 
27
27
  == Requirements
28
28
 
29
- * Ruby >= 3.2.0
29
+ * Ruby >= 3.3.0
30
30
 
31
31
  == Usage
32
32
 
@@ -181,7 +181,7 @@ root:
181
181
  content: proposal
182
182
  ----
183
183
 
184
- A Relaton YAML file describing an individual bibliographic entry is limited to metadata specific to that entry. The link:https://github.com/relaton/relaton-bib/blob/master/docs/hash.adoc#yaml[Relaton YAML] illustrates the common fields supported by all flavor gems.
184
+ A Relaton YAML file describing an individual bibliographic entry is limited to metadata specific to that entry. The link:https://github.com/relaton/relaton-bib/blob/master/docs/hash.adoc#yaml[Relaton YAML] illustrates the common fields supported by all flavors.
185
185
 
186
186
  === relaton xml2yaml
187
187
 
@@ -232,7 +232,8 @@ Render a Relaton YAML file as an HTML file. The `stylesheet` and `liquid-templat
232
232
  $ relaton version
233
233
  ----
234
234
 
235
- Display version information for the CLI and all installed Relaton libraries.
235
+ Display version information for the CLI and the bundled `relaton` gem (every
236
+ flavor now reports the single `relaton` version).
236
237
 
237
238
  === relaton collection
238
239
 
@@ -402,7 +403,7 @@ $ bundle exec rubocop
402
403
 
403
404
  == Contributing
404
405
 
405
- Open an issue or pull request at https://github.com/relaton/relaton-cli.
406
+ Open an issue or pull request at https://github.com/relaton/relaton.
406
407
 
407
408
  This gem is developed, maintained, and funded by
408
409
  https://www.ribose.com[Ribose Inc.]
@@ -1,5 +1,11 @@
1
+ # relaton-cli ships in lockstep with the combined `relaton` gem, so its version
2
+ # is that gem's version — the single source of truth in Relaton::VERSION. relaton
3
+ # is a hard runtime dependency, so requiring its lightweight version file always
4
+ # resolves. Don't hardcode a string here; it would silently drift on a bump.
5
+ require "relaton/version"
6
+
1
7
  module Relaton
2
8
  module Cli
3
- VERSION = "2.2.0.pre.alpha.1".freeze
9
+ VERSION = Relaton::VERSION
4
10
  end
5
11
  end
data/lib/relaton/cli.rb CHANGED
@@ -43,12 +43,14 @@ module Relaton
43
43
  def version
44
44
  require "relaton/bib"
45
45
  registry = Relaton::Db::Registry.instance
46
+ # Every flavor now ships inside the single `relaton` gem, so they all
47
+ # report Relaton::VERSION rather than a separate gem version.
46
48
  puts "CLI => #{Relaton::Cli::VERSION}"
47
- puts "relaton => #{Gem.loaded_specs['relaton'].version}"
48
- puts "relaton-bib => #{Gem.loaded_specs['relaton-bib'].version}"
49
+ puts "relaton => #{Relaton::VERSION}"
50
+ puts "relaton-bib => #{Relaton::VERSION}"
49
51
  registry.processors.each_key do |k|
50
52
  name = k.to_s.sub("_", "-")
51
- puts "#{name} => #{Gem.loaded_specs[name].version}"
53
+ puts "#{name} => #{Relaton::VERSION}"
52
54
  end
53
55
  end
54
56
 
data/relaton-cli.gemspec CHANGED
@@ -1,10 +1,14 @@
1
- lib = File.expand_path("lib", __dir__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "relaton/cli/version"
1
+ # relaton-cli is released in lockstep with the combined `relaton` gem from this
2
+ # repo. Derive the version (and the relaton dependency pin) from the single
3
+ # source of truth — root lib/relaton/version.rb — so `gem bump` on that one file
4
+ # re-stamps both gems. No separate version to hand-sync.
5
+ root_version_file = File.expand_path("../../lib/relaton/version.rb", __dir__)
6
+ relaton_version = File.read(root_version_file)[/VERSION\s*=\s*["']([^"']+)["']/, 1] or
7
+ raise "could not parse Relaton::VERSION from #{root_version_file}"
4
8
 
5
9
  Gem::Specification.new do |spec|
6
10
  spec.name = "relaton-cli"
7
- spec.version = Relaton::Cli::VERSION
11
+ spec.version = relaton_version
8
12
  spec.authors = ["Ribose Inc."]
9
13
  spec.email = ["open.source@ribose.com"]
10
14
 
@@ -23,8 +27,9 @@ Gem::Specification.new do |spec|
23
27
  spec.required_ruby_version = Gem::Requirement.new(">= 3.3.0")
24
28
 
25
29
  spec.add_dependency "liquid", "~> 5"
26
- spec.add_dependency "relaton-bib", "~> 2.2.0.pre.alpha.1"
27
- spec.add_dependency "relaton", "~> 2.2.0.pre.alpha.1"
30
+ # relaton bundles every flavor plus Relaton::Bib, so depending on `relaton`
31
+ # alone is sufficient — relaton-bib is no longer published standalone.
32
+ spec.add_dependency "relaton", "= #{relaton_version}"
28
33
  spec.add_dependency "thor"
29
34
  spec.add_dependency "thor-hollaback"
30
35
  end
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: 2.2.0.pre.alpha.1
4
+ version: 3.0.0.pre.alpha.1
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-06-26 00:00:00.000000000 Z
11
+ date: 2026-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid
@@ -24,34 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5'
27
- - !ruby/object:Gem::Dependency
28
- name: relaton-bib
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 2.2.0.pre.alpha.1
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 2.2.0.pre.alpha.1
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: relaton
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - "~>"
31
+ - - '='
46
32
  - !ruby/object:Gem::Version
47
- version: 2.2.0.pre.alpha.1
33
+ version: 3.0.0.pre.alpha.1
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - "~>"
38
+ - - '='
53
39
  - !ruby/object:Gem::Version
54
- version: 2.2.0.pre.alpha.1
40
+ version: 3.0.0.pre.alpha.1
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: thor
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -90,8 +76,6 @@ extra_rdoc_files:
90
76
  - docs/README.adoc
91
77
  - LICENSE
92
78
  files:
93
- - ".github/workflows/rake.yml"
94
- - ".github/workflows/release.yml"
95
79
  - ".gitignore"
96
80
  - ".hound.yml"
97
81
  - ".rspec"
@@ -1,14 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: rake
4
-
5
- on:
6
- push:
7
- branches: [ master, main, lutaml-integration ]
8
- tags: [ v* ]
9
- pull_request:
10
- workflow_dispatch:
11
-
12
- jobs:
13
- rake:
14
- uses: relaton/support/.github/workflows/rake.yml@main
@@ -1,24 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: release
4
-
5
- on:
6
- workflow_dispatch:
7
- inputs:
8
- next_version:
9
- description: |
10
- Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc).
11
- Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
12
- required: true
13
- default: 'skip'
14
- repository_dispatch:
15
- types: [ do-release ]
16
-
17
-
18
- jobs:
19
- release:
20
- uses: relaton/support/.github/workflows/release.yml@main
21
- with:
22
- next_version: ${{ github.event.inputs.next_version }}
23
- secrets:
24
- rubygems-api-key: ${{ secrets.RELATON_CI_RUBYGEMS_API_KEY }}