glossarist-new 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/glossarist/citation.rb +7 -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: 442880e43fea97be6b9226dfe85895005fff7201cc5e5fda9560a83bf930e868
|
4
|
+
data.tar.gz: f2e3741feadb58449f9a968c656fc6b8b5efd62356f7f79b400c71081776c989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b8fa26c16edb86abc96b9eea2c06903dc37caf330fd99f3adc22d5bb661c6c661b71f50bf8600eb0884f9a16216e22161d39c14a296d79b66626a8829460505
|
7
|
+
data.tar.gz: e78d3c5eddb092014afaecd9097e3857da8765a8bf28b8ad4858ef5f54841d744ece34e465960baa5e9350a1c4aa8bb61a898cc96eb6b95d945d333463d6722c
|
data/lib/glossarist/citation.rb
CHANGED
@@ -67,9 +67,13 @@ module Glossarist
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def ref=(ref)
|
70
|
-
|
71
|
-
|
72
|
-
|
70
|
+
if ref.is_a?(Hash)
|
71
|
+
@source = ref["source"]
|
72
|
+
@id = ref["id"]
|
73
|
+
@version = ref["version"]
|
74
|
+
else
|
75
|
+
@text = ref
|
76
|
+
end
|
73
77
|
end
|
74
78
|
|
75
79
|
private
|
data/lib/glossarist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glossarist-new
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|