glossarist 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/glossarist/localized_concept.rb +8 -3
- data/lib/glossarist/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81224c902256db7a2b325cc0969d35d044c52ee7a30e67c9c5c77c25c661ca45
|
4
|
+
data.tar.gz: db259d46d23ba8f78bedb40c998cae8ab5e5e46ef5debf3f63360c5ab420dd81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b141c56e7cce306ebdaca6c67f813de0fbfae1dbc343b576842d5515f54dba7f2a9861aaca60505ccf7ae49b6cc5a53279409dd3892d19b9b4d94a4007438298
|
7
|
+
data.tar.gz: 16bc4e45b695adbe4ac4a8c6e1a6b6dbd47bf981f70342f29f223c0f8a77a05c7f1bbb0ee2a862398ed80c8599e3ffc1873e37e2b3c6fea5fbcc86a480662434
|
@@ -36,8 +36,12 @@ module Glossarist
|
|
36
36
|
|
37
37
|
# @todo Right now accepts hashes for legacy reasons, but they will be
|
38
38
|
# replaced with dedicated classes.
|
39
|
-
# @
|
40
|
-
|
39
|
+
# @todo Alias +authoritative_source+ exists for legacy reasons and may be
|
40
|
+
# removed.
|
41
|
+
# @return [Array<Hash>]
|
42
|
+
attr_accessor :sources
|
43
|
+
alias :authoritative_source :sources
|
44
|
+
alias :authoritative_source= :sources=
|
41
45
|
|
42
46
|
# Must be one of the following:
|
43
47
|
# +notValid+, +valid+, +superseded+, +retired+.
|
@@ -73,6 +77,7 @@ module Glossarist
|
|
73
77
|
@notes = []
|
74
78
|
@designations = []
|
75
79
|
@superseded_concepts = []
|
80
|
+
@sources = []
|
76
81
|
super
|
77
82
|
end
|
78
83
|
|
@@ -86,7 +91,7 @@ module Glossarist
|
|
86
91
|
"examples" => examples,
|
87
92
|
"entry_status" => entry_status,
|
88
93
|
"classification" => classification,
|
89
|
-
"authoritative_source" =>
|
94
|
+
"authoritative_source" => (sources if sources&.any?),
|
90
95
|
"date_accepted" => date_accepted,
|
91
96
|
"date_amended" => date_amended,
|
92
97
|
"review_date" => review_date,
|
data/lib/glossarist/version.rb
CHANGED
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: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|