glossarist 2.0.6 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f22479e4e171b68688f2be4ac4e43826a644d106ecaac478c91d7f05afe19271
4
- data.tar.gz: e0bcd25c609656d4ed5eec57b82e10c7a33a56f9a78513c93394bc26dc69abe5
3
+ metadata.gz: f77e7dd57f654204563b26dc3ebbe3aa742472f871580386d1931315972d9ac5
4
+ data.tar.gz: d846cff8cadef8a4589adba11b969404250ca83d4888e27e824827c023b90900
5
5
  SHA512:
6
- metadata.gz: 34333ae5aeecddb918c973a708b921684ae459b9e4980c4b8718bd49c8283a1ec50a0a74a785791eabb1ed32d4537b665f79607fc0b6b3722dfa861d4b04fa81
7
- data.tar.gz: 2f616084f0bbad3643907bff900828590c834e8dbf27bb72e12b248c427afddcbbd52fac67736624dd7712c5f7fcc01163170e9e376ea69b453803c75c149c3a
6
+ metadata.gz: 9256800dc5d3057726c809d14e32c800a7a50599ab39702f876e4e5572fa0d466c3be3150fe32d4401d4462a608297aa76d3de6fad354d1398e1ec29c101cf2b
7
+ data.tar.gz: c3a9c06cc620dd67df6c24a1c25fe459f861d23052948f77e4f9f6b13a0a0b026de1ec8125a73102d6e6afa4bcb1e1c22a7ba6935192714d6dfe4b2f8ddf6aea
@@ -74,9 +74,13 @@ module Glossarist
74
74
  end
75
75
 
76
76
  def id=(id)
77
- raise(Glossarist::Error, "Expect id to be a string, Got #{id.class} (#{id})") unless id.is_a?(String) || id.nil?
78
-
79
- @id = id
77
+ # Some of the glossaries that are not generated using glossarist, contains ids that are integers
78
+ # so adding a temporary check until every glossary is updated using glossarist.
79
+ if !id.nil? && (id.is_a?(String) || id.is_a?(Integer))
80
+ @id = id
81
+ else
82
+ raise(Glossarist::Error, "Expect id to be a String or Integer, Got #{id.class} (#{id})")
83
+ end
80
84
  end
81
85
  alias :termid= :id=
82
86
  alias :identifier= :id=
@@ -49,6 +49,7 @@ module Glossarist
49
49
 
50
50
  data = attributes.delete(:data) || {}
51
51
  data["groups"] = attributes[:groups]
52
+ data["status"] = attributes[:status]
52
53
 
53
54
  data = symbolize_keys(data.compact)
54
55
 
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "2.0.6"
7
+ VERSION = "2.0.8"
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.0.6
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-05 00:00:00.000000000 Z
11
+ date: 2024-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: relaton