glossarist 0.1.1 → 0.1.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: daa4a50f33edeace0d689bb252dcf58d09572f35bd03fcb5110879ce4e24e996
4
- data.tar.gz: fe18be21d7fe17e0a03b63e8de2bda5217a7fa50363ce032d28248caafc4c0a6
3
+ metadata.gz: 81224c902256db7a2b325cc0969d35d044c52ee7a30e67c9c5c77c25c661ca45
4
+ data.tar.gz: db259d46d23ba8f78bedb40c998cae8ab5e5e46ef5debf3f63360c5ab420dd81
5
5
  SHA512:
6
- metadata.gz: a77fb0986ed398a0ea24876cecef2c18d222bb993269219976dcee805bef3b6515eb0b1a07da3dcb7ec8540f1103f609fe3cba36c1591a0f4cfb4c90df7b8a2b
7
- data.tar.gz: 2750b65aa74df42185ade592d1506eec5f7a6f84eefb6ecfdf099db8de284ebeaa39bc435d8f70efe71512d6f9266bb55dc22e96e55f8061858ed12befbd685c
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
- # @return [Hash]
40
- attr_accessor :authoritative_source
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" => 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,
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "0.1.1"
7
+ VERSION = "0.1.2"
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: 0.1.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-06-26 00:00:00.000000000 Z
11
+ date: 2021-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry