commonmeta-ruby 3.4.4 → 3.4.5
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/commonmeta/readers/json_feed_reader.rb +1 -1
- data/lib/commonmeta/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_related_identifiers_and_funding.yml +36 -36
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_related_identifiers_and_link_to_peer-reviewed_article.yml +4911 -0
- data/spec/readers/json_feed_reader_spec.rb +26 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07ed18313eb13c333097da69b4990dde7d57862f16c898ca085ed70a7025496c
|
4
|
+
data.tar.gz: a798ca9f507d5070a9e6b86e5f55dd47378c054c080b076229dbb6c02dbcb1ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eee34121b325b7b802ee4f67feaaf3d98393548a879a3b831d3d5950dde7e1a9510daf4d021fc195817ee7ea97004c62aa3cf0b32392d230c5dbbea7096fe0d0
|
7
|
+
data.tar.gz: 8eb084064dbbd0d2a6cd2c88de46d667813c298786ceb5c83b8dacd90ff33e1d8a6508d27f6f92526457386171b8c2d3ba6330b9d0e55bb5c8fab96cce0e1690
|
data/Gemfile.lock
CHANGED
@@ -109,7 +109,7 @@ module Commonmeta
|
|
109
109
|
|
110
110
|
def get_related_identifiers(meta)
|
111
111
|
# check that relationships resolve and has a supported type
|
112
|
-
supported_types = %w[IsIdenticalTo
|
112
|
+
supported_types = %w[IsIdenticalTo IsPreprintOf IsTranslationOf]
|
113
113
|
Array.wrap(meta["relationships"]).reduce([]) do |sum, relationship|
|
114
114
|
begin
|
115
115
|
if supported_types.include?(relationship["type"]) && [200, 301, 302].include?(HTTP.head(relationship["url"]).status)
|
data/lib/commonmeta/version.rb
CHANGED
@@ -27,9 +27,9 @@ http_interactions:
|
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Date:
|
30
|
-
- Thu, 07 Sep 2023
|
30
|
+
- Thu, 07 Sep 2023 22:02:05 GMT
|
31
31
|
Etag:
|
32
|
-
- '"
|
32
|
+
- '"1fh93kri2p6g9"'
|
33
33
|
Server:
|
34
34
|
- Vercel
|
35
35
|
Strict-Transport-Security:
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
X-Vercel-Cache:
|
40
40
|
- MISS
|
41
41
|
X-Vercel-Id:
|
42
|
-
- fra1::iad1::
|
42
|
+
- fra1::iad1::7sqgk-1694124124467-4d32847e7c1d
|
43
43
|
Connection:
|
44
44
|
- close
|
45
45
|
body:
|
@@ -117,13 +117,13 @@ http_interactions:
|
|
117
117
|
M. The DataCite GraphQL API is now open for (pre-release) business. Published
|
118
118
|
online May 15, 2019. doi:<a href=\"https://doi.org/10.53731/r79sa71-97aq74v-ag4vc\">10.53731/r79sa71-97aq74v-ag4vc</a></p>\n<p>Fenner
|
119
119
|
M, Aryani A. Introducing the PID Graph. Published online 2019. doi:<a href=\"https://doi.org/10.5438/JWVF-8A66\">10.5438/JWVF-8A66</a></p>
|
120
|
-
","published_at":1561939200,"updated_at":1694087432,"indexed_at":
|
120
|
+
","published_at":1561939200,"updated_at":1694087432,"indexed_at":1694117129,"authors":[{"url":"https://orcid.org/0000-0003-1419-2405","name":"Martin
|
121
121
|
Fenner"}],"image":"https://blog.front-matter.io/content/images/2022/08/download-19-.jpeg","tags":["Feature"],"language":"en","reference":[{"doi":"https://doi.org/10.14454/3BPW-W381","key":"ref1"},{"doi":"https://doi.org/10.53731/r79sa71-97aq74v-ag4vc","key":"ref2"},{"doi":"https://doi.org/10.5438/JWVF-8A66","key":"ref3"}],"relationships":[{"url":"https://doi.org/10.5438/bv9z-dc66","type":"IsIdenticalTo"},{"url":"https://doi.org/10.3030/777523","type":"HasAward"}],"blog_id":"f0m0e38","blog_name":"Front
|
122
122
|
Matter","blog_slug":"front_matter","blog":{"id":"f0m0e38","title":"Front Matter","description":"The
|
123
123
|
Front Matter Blog covers the intersection of science and technology since
|
124
124
|
2007.","language":"en","favicon":"https://blog.front-matter.io/favicon.png","feed_url":"https://blog.front-matter.io/atom-complete/","home_page_url":"https://blog.front-matter.io","user_id":"8498eaf6-8c58-4b58-bc15-27eda292b1aa","created_at":"2023-01-02","feed_format":"application/atom+xml","license":"https://creativecommons.org/licenses/by/4.0/legalcode","generator":"Ghost
|
125
125
|
5.52","category":"computerAndInformationSciences","prefix":"10.53731","modified_at":"2023-09-05T21:35:21+00:00","version":"https://jsonfeed.org/version/1.1","current_feed_url":"https://blog.front-matter.io/atom/","status":"active","issn":"2749-9952","backlog":0,"authors":null,"plan":"Team","slug":"front_matter","use_mastodon":true}}'
|
126
|
-
recorded_at: Thu, 07 Sep 2023
|
126
|
+
recorded_at: Thu, 07 Sep 2023 22:02:05 GMT
|
127
127
|
- request:
|
128
128
|
method: get
|
129
129
|
uri: https://doi.org/10.14454/3BPW-W381
|
@@ -145,7 +145,7 @@ http_interactions:
|
|
145
145
|
message: Found
|
146
146
|
headers:
|
147
147
|
Date:
|
148
|
-
- Thu, 07 Sep 2023
|
148
|
+
- Thu, 07 Sep 2023 22:02:05 GMT
|
149
149
|
Content-Type:
|
150
150
|
- text/html;charset=utf-8
|
151
151
|
Content-Length:
|
@@ -157,13 +157,13 @@ http_interactions:
|
|
157
157
|
Vary:
|
158
158
|
- Accept
|
159
159
|
Expires:
|
160
|
-
- Thu, 07 Sep 2023
|
160
|
+
- Thu, 07 Sep 2023 22:44:39 GMT
|
161
161
|
Permissions-Policy:
|
162
162
|
- interest-cohort=(),browsing-topics=()
|
163
163
|
Cf-Cache-Status:
|
164
164
|
- DYNAMIC
|
165
165
|
Report-To:
|
166
|
-
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s
|
166
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=%2F%2F8FT%2BDoQV1sQUHrms7gHbpamUGVC44gRmVvt2nULFxauHfQEuKGYGQxdCgzIyvRpvMI2WRuOOgfHkWUeeSSPwtoInAuW1W498U2f2saRGNUqedoiepFllFrosfvqwMMOKq2Fe0%3D"}],"group":"cf-nel","max_age":604800}'
|
167
167
|
Nel:
|
168
168
|
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
169
169
|
Strict-Transport-Security:
|
@@ -171,7 +171,7 @@ http_interactions:
|
|
171
171
|
Server:
|
172
172
|
- cloudflare
|
173
173
|
Cf-Ray:
|
174
|
-
-
|
174
|
+
- 80323be758bfb8d9-AMS
|
175
175
|
Alt-Svc:
|
176
176
|
- h3=":443"; ma=86400
|
177
177
|
body:
|
@@ -179,7 +179,7 @@ http_interactions:
|
|
179
179
|
string: |-
|
180
180
|
<html><head><title>Handle Redirect</title></head>
|
181
181
|
<body><a href="https://data.crosscite.org/10.14454%2F3BPW-W381">https://data.crosscite.org/10.14454%2F3BPW-W381</a></body></html>
|
182
|
-
recorded_at: Thu, 07 Sep 2023
|
182
|
+
recorded_at: Thu, 07 Sep 2023 22:02:05 GMT
|
183
183
|
- request:
|
184
184
|
method: get
|
185
185
|
uri: https://data.crosscite.org/10.14454%2F3BPW-W381
|
@@ -201,7 +201,7 @@ http_interactions:
|
|
201
201
|
message: OK
|
202
202
|
headers:
|
203
203
|
Date:
|
204
|
-
- Thu, 07 Sep 2023
|
204
|
+
- Thu, 07 Sep 2023 22:02:05 GMT
|
205
205
|
Content-Type:
|
206
206
|
- application/vnd.citationstyles.csl+json; charset=utf-8
|
207
207
|
Transfer-Encoding:
|
@@ -217,9 +217,9 @@ http_interactions:
|
|
217
217
|
Etag:
|
218
218
|
- W/"e5a505a4330ff4865cb47565f20f9119"
|
219
219
|
X-Runtime:
|
220
|
-
- '0.
|
220
|
+
- '0.015307'
|
221
221
|
X-Request-Id:
|
222
|
-
-
|
222
|
+
- be17b7bb-1acb-4d3d-aacb-90972fbd5ec6
|
223
223
|
X-Powered-By:
|
224
224
|
- Phusion Passenger(R) 6.0.13
|
225
225
|
Server:
|
@@ -260,7 +260,7 @@ http_interactions:
|
|
260
260
|
"copyright": "MIT License",
|
261
261
|
"version": "1.1.0"
|
262
262
|
}
|
263
|
-
recorded_at: Thu, 07 Sep 2023
|
263
|
+
recorded_at: Thu, 07 Sep 2023 22:02:05 GMT
|
264
264
|
- request:
|
265
265
|
method: get
|
266
266
|
uri: https://doi.org/10.53731/r79sa71-97aq74v-ag4vc
|
@@ -282,7 +282,7 @@ http_interactions:
|
|
282
282
|
message: Found
|
283
283
|
headers:
|
284
284
|
Date:
|
285
|
-
- Thu, 07 Sep 2023
|
285
|
+
- Thu, 07 Sep 2023 22:02:06 GMT
|
286
286
|
Content-Type:
|
287
287
|
- text/html;charset=utf-8
|
288
288
|
Content-Length:
|
@@ -294,13 +294,13 @@ http_interactions:
|
|
294
294
|
Vary:
|
295
295
|
- Accept
|
296
296
|
Expires:
|
297
|
-
- Thu, 07 Sep 2023
|
297
|
+
- Thu, 07 Sep 2023 22:44:21 GMT
|
298
298
|
Permissions-Policy:
|
299
299
|
- interest-cohort=(),browsing-topics=()
|
300
300
|
Cf-Cache-Status:
|
301
301
|
- DYNAMIC
|
302
302
|
Report-To:
|
303
|
-
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=
|
303
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=XXfHpUe5wfWE8tEJBpI%2FcaW5vYoYSa1Y2PslBF0NTu9HId2j2zCr238oQU2BN8OxhOWjKeL%2FzFJWGJL%2FZvEuFOuXMsm%2F6tPagfWigWpTOWosCWJiA6nSz%2Fdmo3gTmGdnJdjJTw4%3D"}],"group":"cf-nel","max_age":604800}'
|
304
304
|
Nel:
|
305
305
|
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
306
306
|
Strict-Transport-Security:
|
@@ -308,7 +308,7 @@ http_interactions:
|
|
308
308
|
Server:
|
309
309
|
- cloudflare
|
310
310
|
Cf-Ray:
|
311
|
-
-
|
311
|
+
- 80323bec2d0a1c8d-AMS
|
312
312
|
Alt-Svc:
|
313
313
|
- h3=":443"; ma=86400
|
314
314
|
body:
|
@@ -316,7 +316,7 @@ http_interactions:
|
|
316
316
|
string: |-
|
317
317
|
<html><head><title>Handle Redirect</title></head>
|
318
318
|
<body><a href="https://api.crossref.org/v1/works/10.53731%2Fr79sa71-97aq74v-ag4vc/transform">https://api.crossref.org/v1/works/10.53731%2Fr79sa71-97aq74v-ag4vc/transform</a></body></html>
|
319
|
-
recorded_at: Thu, 07 Sep 2023
|
319
|
+
recorded_at: Thu, 07 Sep 2023 22:02:06 GMT
|
320
320
|
- request:
|
321
321
|
method: get
|
322
322
|
uri: https://api.crossref.org/v1/works/10.53731%2Fr79sa71-97aq74v-ag4vc/transform
|
@@ -338,7 +338,7 @@ http_interactions:
|
|
338
338
|
message: OK
|
339
339
|
headers:
|
340
340
|
Date:
|
341
|
-
- Thu, 07 Sep 2023
|
341
|
+
- Thu, 07 Sep 2023 22:02:06 GMT
|
342
342
|
Content-Type:
|
343
343
|
- application/vnd.citationstyles.csl+json
|
344
344
|
Transfer-Encoding:
|
@@ -376,7 +376,7 @@ http_interactions:
|
|
376
376
|
- close
|
377
377
|
body:
|
378
378
|
encoding: ASCII-8BIT
|
379
|
-
string: '{"institution":[{"name":"Front Matter"}],"indexed":{"date-parts":[[2023,
|
379
|
+
string: '{"institution":[{"name":"Front Matter"}],"indexed":{"date-parts":[[2023,9,7]],"date-time":"2023-09-07T21:20:54Z","timestamp":1694121654343},"posted":{"date-parts":[[2019,5,15]]},"group-title":"Engineeringandtechnology","reference-count":1,"publisher":"Front
|
380
380
|
Matter","license":[{"start":{"date-parts":[[2019,5,15]],"date-time":"2019-05-15T00:00:00Z","timestamp":1557878400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"},{"start":{"date-parts":[[2019,5,15]],"date-time":"2019-05-15T00:00:00Z","timestamp":1557878400000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"content-domain":{"domain":[],"crossmark-restriction":false},"abstract":"<p>DataCite
|
381
381
|
DOIs describe resources such as datasets, samples, software and publications
|
382
382
|
with rich metadata. An important part of this metadata is the description
|
@@ -387,7 +387,7 @@ http_interactions:
|
|
387
387
|
while preserving the rich connections...<\/p>","DOI":"10.53731\/r79sa71-97aq74v-ag4vc","type":"posted-content","created":{"date-parts":[[2021,10,17]],"date-time":"2021-10-17T19:03:27Z","timestamp":1634497407000},"source":"Crossref","is-referenced-by-count":2,"title":"The
|
388
388
|
DataCite GraphQL API is now open for (pre-release) business","prefix":"10.53731","author":[{"ORCID":"http:\/\/orcid.org\/0000-0003-1419-2405","authenticated-orcid":false,"given":"Martin","family":"Fenner","sequence":"first","affiliation":[]}],"member":"31795","reference":[{"key":"ref1","doi-asserted-by":"publisher","article-title":"Introducing
|
389
389
|
the PID Graph","year":"2019","DOI":"10.5438\/jwvf-8a66"}],"container-title":[],"original-title":[],"link":[{"URL":"https:\/\/blog.front-matter.io\/posts\/the-datacite-graphql-api-is-now-open-for-pre-release-business","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"}],"deposited":{"date-parts":[[2023,8,4]],"date-time":"2023-08-04T10:35:54Z","timestamp":1691145354000},"score":1,"resource":{"primary":{"URL":"https:\/\/blog.front-matter.io\/posts\/the-datacite-graphql-api-is-now-open-for-pre-release-business"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,5,15]]},"references-count":1,"URL":"http:\/\/dx.doi.org\/10.53731\/r79sa71-97aq74v-ag4vc","relation":{},"published":{"date-parts":[[2019,5,15]]},"subtype":"other"}'
|
390
|
-
recorded_at: Thu, 07 Sep 2023
|
390
|
+
recorded_at: Thu, 07 Sep 2023 22:02:06 GMT
|
391
391
|
- request:
|
392
392
|
method: get
|
393
393
|
uri: https://doi.org/10.5438/JWVF-8A66
|
@@ -409,7 +409,7 @@ http_interactions:
|
|
409
409
|
message: Found
|
410
410
|
headers:
|
411
411
|
Date:
|
412
|
-
- Thu, 07 Sep 2023
|
412
|
+
- Thu, 07 Sep 2023 22:02:07 GMT
|
413
413
|
Content-Type:
|
414
414
|
- text/html;charset=utf-8
|
415
415
|
Content-Length:
|
@@ -421,13 +421,13 @@ http_interactions:
|
|
421
421
|
Vary:
|
422
422
|
- Accept
|
423
423
|
Expires:
|
424
|
-
- Thu, 07 Sep 2023
|
424
|
+
- Thu, 07 Sep 2023 22:20:54 GMT
|
425
425
|
Permissions-Policy:
|
426
426
|
- interest-cohort=(),browsing-topics=()
|
427
427
|
Cf-Cache-Status:
|
428
428
|
- DYNAMIC
|
429
429
|
Report-To:
|
430
|
-
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=
|
430
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=zYtySclKqvMmkqQTPk8gUdhxoBRNW8p6Aqr%2FalHY06KEQh5Nmp2vqYdrr5sxCvkrwkdYZUsk2t%2FGNywyiyIGLNUG30A1k7kZamdo%2BGjWP52w%2FufyGukfkP5NNn26V%2BOC7f%2BHvng%3D"}],"group":"cf-nel","max_age":604800}'
|
431
431
|
Nel:
|
432
432
|
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
433
433
|
Strict-Transport-Security:
|
@@ -435,7 +435,7 @@ http_interactions:
|
|
435
435
|
Server:
|
436
436
|
- cloudflare
|
437
437
|
Cf-Ray:
|
438
|
-
-
|
438
|
+
- 80323bf1ae600a61-AMS
|
439
439
|
Alt-Svc:
|
440
440
|
- h3=":443"; ma=86400
|
441
441
|
body:
|
@@ -443,7 +443,7 @@ http_interactions:
|
|
443
443
|
string: |-
|
444
444
|
<html><head><title>Handle Redirect</title></head>
|
445
445
|
<body><a href="https://data.crosscite.org/10.5438%2FJWVF-8A66">https://data.crosscite.org/10.5438%2FJWVF-8A66</a></body></html>
|
446
|
-
recorded_at: Thu, 07 Sep 2023
|
446
|
+
recorded_at: Thu, 07 Sep 2023 22:02:06 GMT
|
447
447
|
- request:
|
448
448
|
method: get
|
449
449
|
uri: https://data.crosscite.org/10.5438%2FJWVF-8A66
|
@@ -465,7 +465,7 @@ http_interactions:
|
|
465
465
|
message: OK
|
466
466
|
headers:
|
467
467
|
Date:
|
468
|
-
- Thu, 07 Sep 2023
|
468
|
+
- Thu, 07 Sep 2023 22:02:07 GMT
|
469
469
|
Content-Type:
|
470
470
|
- application/vnd.citationstyles.csl+json; charset=utf-8
|
471
471
|
Transfer-Encoding:
|
@@ -481,9 +481,9 @@ http_interactions:
|
|
481
481
|
Etag:
|
482
482
|
- W/"9f25c07c85d932482bc11873f11231a1"
|
483
483
|
X-Runtime:
|
484
|
-
- '0.
|
484
|
+
- '0.021068'
|
485
485
|
X-Request-Id:
|
486
|
-
-
|
486
|
+
- c6c4f712-35ce-438f-be62-d0817d82ff0b
|
487
487
|
X-Powered-By:
|
488
488
|
- Phusion Passenger(R) 6.0.13
|
489
489
|
Server:
|
@@ -524,7 +524,7 @@ http_interactions:
|
|
524
524
|
"copyright": "Creative Commons Attribution 4.0 International",
|
525
525
|
"version": "1.0"
|
526
526
|
}
|
527
|
-
recorded_at: Thu, 07 Sep 2023
|
527
|
+
recorded_at: Thu, 07 Sep 2023 22:02:07 GMT
|
528
528
|
- request:
|
529
529
|
method: head
|
530
530
|
uri: https://doi.org/10.5438/bv9z-dc66
|
@@ -544,7 +544,7 @@ http_interactions:
|
|
544
544
|
message: Found
|
545
545
|
headers:
|
546
546
|
Date:
|
547
|
-
- Thu, 07 Sep 2023
|
547
|
+
- Thu, 07 Sep 2023 22:02:07 GMT
|
548
548
|
Content-Type:
|
549
549
|
- text/html;charset=utf-8
|
550
550
|
Content-Length:
|
@@ -556,13 +556,13 @@ http_interactions:
|
|
556
556
|
Vary:
|
557
557
|
- Accept
|
558
558
|
Expires:
|
559
|
-
- Thu, 07 Sep 2023
|
559
|
+
- Thu, 07 Sep 2023 22:29:03 GMT
|
560
560
|
Permissions-Policy:
|
561
561
|
- interest-cohort=(),browsing-topics=()
|
562
562
|
Cf-Cache-Status:
|
563
563
|
- DYNAMIC
|
564
564
|
Report-To:
|
565
|
-
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=
|
565
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=4jfeHwzqrBRjhdPkYmq94Q%2F0w0QuldhZ3TqyBL%2F6lfg5olHNW%2B4O%2BuNux0rg8QoV4zRoO6sdzVPhl5WqVvN%2F8mNMvahdqaeqAjZFcfKv9ubFPRQw%2FOuN59azBNCLvQNQ%2FKYSsug%3D"}],"group":"cf-nel","max_age":604800}'
|
566
566
|
Nel:
|
567
567
|
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
568
568
|
Strict-Transport-Security:
|
@@ -570,11 +570,11 @@ http_interactions:
|
|
570
570
|
Server:
|
571
571
|
- cloudflare
|
572
572
|
Cf-Ray:
|
573
|
-
-
|
573
|
+
- 80323bf4bf94b73a-AMS
|
574
574
|
Alt-Svc:
|
575
575
|
- h3=":443"; ma=86400
|
576
576
|
body:
|
577
577
|
encoding: UTF-8
|
578
578
|
string: ''
|
579
|
-
recorded_at: Thu, 07 Sep 2023
|
579
|
+
recorded_at: Thu, 07 Sep 2023 22:02:07 GMT
|
580
580
|
recorded_with: VCR 6.2.0
|