bolognese 0.9.88 → 0.9.89
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bolognese/version.rb +1 -1
- data/lib/bolognese/writers/codemeta_writer.rb +2 -2
- data/lib/bolognese/writers/crosscite_writer.rb +14 -3
- data/spec/readers/ris_reader_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c65e0d018f38032f50e090618a92ff8a72d08c30b674e716652c8c1b5f813bb
|
4
|
+
data.tar.gz: 465e6671b6324e7c6d78d5218acd6572ea3ec5e3e694e7bfea065239dfea7c82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1350a292f8d26c5a5872c370828eb34de5192def69abbc1a1c03fcc78f48ebe66db1d2888e20b68418ceac63483c0b28351c6c5db02fadaa3b6d66b31823766e
|
7
|
+
data.tar.gz: 0aeda7e14667ad79de35b85cc0997c7b04b828bb2b1e3dfe72b81f5520f2efc653845bd873d203a5473409d81befaa78ff9459e24e8f8c17448c2f73864bdcaa
|
data/Gemfile.lock
CHANGED
data/lib/bolognese/version.rb
CHANGED
@@ -7,8 +7,8 @@ module Bolognese
|
|
7
7
|
hsh = {
|
8
8
|
"@context" => id.present? ? "https://raw.githubusercontent.com/codemeta/codemeta/master/codemeta.jsonld" : nil,
|
9
9
|
"@type" => type,
|
10
|
-
"@id" =>
|
11
|
-
"identifier" =>
|
10
|
+
"@id" => identifier,
|
11
|
+
"identifier" => identifier,
|
12
12
|
"codeRepository" => url,
|
13
13
|
"title" => title,
|
14
14
|
"agents" => author,
|
@@ -3,7 +3,7 @@ module Bolognese
|
|
3
3
|
module CrossciteWriter
|
4
4
|
def crosscite
|
5
5
|
hsh = {
|
6
|
-
"id" =>
|
6
|
+
"id" => identifier,
|
7
7
|
"doi" => doi,
|
8
8
|
"url" => url,
|
9
9
|
"type" => type,
|
@@ -31,9 +31,7 @@ module Bolognese
|
|
31
31
|
"date_valid" => date_valid,
|
32
32
|
"language" => language,
|
33
33
|
"alternate_name" => alternate_name,
|
34
|
-
"references" => references,
|
35
34
|
"content_size" => content_size,
|
36
|
-
"format" => format,
|
37
35
|
"version" => version,
|
38
36
|
"license" => license,
|
39
37
|
"description" => description,
|
@@ -43,6 +41,19 @@ module Bolognese
|
|
43
41
|
"last_page" => last_page,
|
44
42
|
"spatial_coverage" => spatial_coverage,
|
45
43
|
"funding" => funding,
|
44
|
+
"is_identical_to" => is_identical_to,
|
45
|
+
"is_part_of" => is_part_of,
|
46
|
+
"has_part" => has_part,
|
47
|
+
"is_previous_version_of" => is_previous_version_of,
|
48
|
+
"is_new_version_of" => is_new_version_of,
|
49
|
+
"is_variant_form_of" => is_variant_form_of,
|
50
|
+
"is_original_form_of" => is_original_form_of,
|
51
|
+
"references" => references,
|
52
|
+
"is_referenced_by" => is_referenced_by,
|
53
|
+
"is_supplement_to" => is_supplement_to,
|
54
|
+
"is_supplemented_by" => is_supplemented_by,
|
55
|
+
"reviews" => reviews,
|
56
|
+
"is_reviewed_by" => is_reviewed_by,
|
46
57
|
"schema_version" => schema_version,
|
47
58
|
"provider_id" => provider_id,
|
48
59
|
"client_id" => client_id,
|
@@ -39,6 +39,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
39
39
|
expect(subject.description["text"]).to start_with("Among various advantages, their small size makes model organisms preferred subjects of investigation.")
|
40
40
|
expect(subject.date_published).to eq("2014")
|
41
41
|
expect(subject.is_part_of).to eq("type"=>"Periodical", "title"=>"eLife")
|
42
|
+
expect(subject.container_title).to eq("eLife")
|
42
43
|
end
|
43
44
|
end
|
44
45
|
end
|