glossarist 2.3.12 → 2.4.0

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: 8e764b9c8ec92fdd762fdda65ea36270f6798ffd417547e40bd48c8b88e50521
4
- data.tar.gz: 2ad3ea02fcdc6d374b7e674796ef124473dc02fbfeff8e4d8053a38fe543e5c6
3
+ metadata.gz: a7c1f2292807bd8b1809b25ac5c818d1720ecded58b715a137e6f98fe87cb58b
4
+ data.tar.gz: 10eaf733aa2cc0802128eaa37ee2435659b75bdd48731a7bb5f4147d571c3488
5
5
  SHA512:
6
- metadata.gz: ee2ea9ab8d52588d84b19aecd860359438e8b929717726bb4f323e2ba37213bb2d39402cd950d0be896f4c4e63a6147a127fd21088cd42f52d99c0c623ccb945
7
- data.tar.gz: 10a6f8eb05fac3d6f87d1092b934793f01ae7ce0a000efc7314d865b4790bf3e14189fa90ef55b58020c40ae882bf1210b02c0ea5626171f7ccc0ef9f207135d
6
+ metadata.gz: 38ade24f616a3a303eb2ecf3723010b2876fbb7820bd010812abf7d2801abc28d4ddcb07f8c607f4958886ceb99b86ceea6710776c9aa6431c89513cecb6599a
7
+ data.tar.gz: fa76a77134597177540b24ae7070521d32efd5ea0f17451373c60b975ef62695dc677cb5f627380e6c85c239029920208f6fe1c1ebd4f9a76bec210e0a30bd9c
data/Gemfile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "lutaml-model", github: "lutaml/lutaml-model", branch: "main"
5
+ gem "lutaml-model"
6
6
  gem "pry"
7
7
  gem "rake"
8
8
  gem "rspec"
data/glossarist.gemspec CHANGED
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
32
32
  spec.require_paths = ["lib"]
33
33
 
34
34
  spec.add_dependency "lutaml-model", "~> 0.7"
35
- spec.add_dependency "relaton", "~> 1.19"
35
+ spec.add_dependency "relaton", ">= 2.0.0.alpha.1", "< 3"
36
36
  spec.add_dependency "thor"
37
37
  end
@@ -48,7 +48,7 @@ module Glossarist
48
48
  end
49
49
 
50
50
  def load_concept_from_file(filename)
51
- mixed_hashes = YAML.load_stream(File.read(filename))
51
+ mixed_hashes = YAML.load_stream(File.read(filename, encoding: "utf-8"))
52
52
  concepts = []
53
53
 
54
54
  concept_hashes, localized_concept_hashes =
@@ -78,7 +78,7 @@ module Glossarist
78
78
 
79
79
  concept_hash = if localized_concept_hashes.empty?
80
80
  Psych.safe_load(
81
- File.read(localized_concept_path(id)),
81
+ File.read(localized_concept_path(id), encoding: "utf-8"),
82
82
  permitted_classes: [Date, Time],
83
83
  )
84
84
  else
@@ -103,11 +103,11 @@ module Glossarist
103
103
  FileUtils.mkdir_p(localized_concept_dir)
104
104
 
105
105
  filename = File.join(concept_dir, "#{concept.uuid}.yaml")
106
- File.write(filename, concept.to_yaml)
106
+ File.write(filename, concept.to_yaml, encoding: "utf-8")
107
107
 
108
108
  concept.localized_concepts.each do |lang, uuid|
109
109
  filename = File.join(localized_concept_dir, "#{uuid}.yaml")
110
- File.write(filename, concept.localization(lang).to_yaml)
110
+ File.write(filename, concept.localization(lang).to_yaml, encoding: "utf-8")
111
111
  end
112
112
  end
113
113
 
@@ -126,7 +126,7 @@ module Glossarist
126
126
  content << concept.localization(lang).to_yaml
127
127
  end
128
128
 
129
- File.write(filename, content.join("\n"))
129
+ File.write(filename, content.join("\n"), encoding: "utf-8")
130
130
  end
131
131
 
132
132
  def concepts_glob
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "2.3.12"
7
+ VERSION = "2.4.0"
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glossarist
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.12
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-04-06 00:00:00.000000000 Z
11
+ date: 2026-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: relaton
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.0.alpha.1
34
+ - - "<"
32
35
  - !ruby/object:Gem::Version
33
- version: '1.19'
36
+ version: '3'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 2.0.0.alpha.1
44
+ - - "<"
39
45
  - !ruby/object:Gem::Version
40
- version: '1.19'
46
+ version: '3'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: thor
43
49
  requirement: !ruby/object:Gem::Requirement