commonmeta-ruby 3.3.9 → 3.3.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39731365147aea3875a44db36625a0cd825826f7f0f94755601634b2716fcef9
4
- data.tar.gz: 7591e80c87796e20933352f49079437a9faac148e47889009a5ee3298471ee4c
3
+ metadata.gz: 533ba980ff639a50d0a61e345be68413bdf63467fc319685b6b64c9b466c7bf5
4
+ data.tar.gz: 3b87fd2fba942083c9962f9acf6bc5e99d54422f977d5f8b27c99cb6617bf5d1
5
5
  SHA512:
6
- metadata.gz: c9c3593d73cadfd1697163801d0505a74c536a93e2a40c2bcaac5e12e7c6e703970a4a207f9282331fe065257ec26856db4e214342926019334e64229b920059
7
- data.tar.gz: 69a053002420f6aa808b15c6a77344fa02e7a7c26e208a00b7be68d489540356beb47481e8f7565e102905233b51830a1dbd591a4a6435d5bc4c646a3f632d01
6
+ metadata.gz: 20cb1df5c515d34a2b782f48479e8f6ae271eb74ae23b685478d216034109677602f388468cd6b86944513f48b6f3e2a3544cf1d8359c46ce68369a0e20edfa0
7
+ data.tar.gz: aeedc938048a579bc6fa903a287a6f551e1e6e2e340a8809dc0e3505f0da134806f30ce2110f14394a03d3a3a82d4b9a6f8457e0dae5e51b2a49b17032279dfb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- commonmeta-ruby (3.3.9)
4
+ commonmeta-ruby (3.3.10)
5
5
  activesupport (>= 4.2.5, < 8.0)
6
6
  addressable (~> 2.8.1, < 2.8.2)
7
7
  base32-url (>= 0.7.0, < 1)
@@ -27,7 +27,7 @@ PATH
27
27
  GEM
28
28
  remote: https://rubygems.org/
29
29
  specs:
30
- activesupport (7.0.5.1)
30
+ activesupport (7.0.6)
31
31
  concurrent-ruby (~> 1.0, >= 1.0.2)
32
32
  i18n (>= 1.6, < 2)
33
33
  minitest (>= 5.1)
@@ -191,7 +191,7 @@ GEM
191
191
  rspec-xsd (0.1.0)
192
192
  nokogiri (~> 1.6)
193
193
  rspec (~> 3)
194
- rubocop (1.53.1)
194
+ rubocop (1.54.0)
195
195
  json (~> 2.3)
196
196
  language_server-protocol (>= 3.17.0)
197
197
  parallel (~> 1.10)
@@ -105,8 +105,8 @@ module Commonmeta
105
105
 
106
106
  desc "", "json_feed_not_indexed"
107
107
 
108
- def json_feed_not_indexed(date_indexed)
109
- puts get_json_feed_not_indexed(date_indexed)
108
+ def json_feed_not_indexed
109
+ puts get_json_feed_not_indexed
110
110
  end
111
111
 
112
112
  desc "", "json_feed_by_blog"
@@ -105,10 +105,10 @@ module Commonmeta
105
105
  posts.map { |post| post["uuid"] }.first
106
106
  end
107
107
 
108
- def get_json_feed_not_indexed(date_indexed)
109
- # get JSON Feed items not indexed in Crossref since a particular date
108
+ def get_json_feed_not_indexed
109
+ # get JSON Feed items not indexed in Crossref since they have been last updated
110
110
 
111
- url = json_feed_not_indexed_url(date_indexed)
111
+ url = json_feed_not_indexed_url
112
112
  response = HTTP.get(url)
113
113
  return { "string" => nil, "state" => "not_found" } unless response.status.success?
114
114
 
@@ -1437,8 +1437,8 @@ module Commonmeta
1437
1437
  Base32::URL.decode(id)
1438
1438
  end
1439
1439
 
1440
- def json_feed_not_indexed_url(date_indexed)
1441
- "https://rogue-scholar.org/api/posts/not_indexed/#{date_indexed}"
1440
+ def json_feed_not_indexed_url
1441
+ "https://rogue-scholar.org/api/posts/not_indexed"
1442
1442
  end
1443
1443
 
1444
1444
  def json_feed_unregistered_url
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmeta
4
- VERSION = '3.3.9'
4
+ VERSION = '3.3.10'
5
5
  end
data/spec/cli_spec.rb CHANGED
@@ -371,8 +371,7 @@ describe Commonmeta::CLI do
371
371
  end
372
372
 
373
373
  it "json_feed_not_indexed" do
374
- input = "2023-01-01"
375
- expect { subject.json_feed_not_indexed input }.to output(/ab58e412-06eb-42b7-b81a-d340825b9d48/).to_stdout
374
+ expect { subject.json_feed_not_indexed }.to output(/b1038a3f-c5aa-4a68-97cb-5c68b27942f7/).to_stdout
376
375
  end
377
376
 
378
377
  it "json_feed_by_blog" do
@@ -2152,4 +2152,74 @@ http_interactions:
2152
2152
  the Science","description":"Ein Blog aus dem Admin-Bereich der Wissenschaft","language":"de","favicon":null,"feed_url":"https://ulirockenbauch.blog/feed/atom/","home_page_url":"https://ulirockenbauch.blog","user_id":"8498eaf6-8c58-4b58-bc15-27eda292b1aa","created_at":"2023-05-31T07:28:16+00:00","indexed_at":"2023-04-21","feed_format":"application/atom+xml","license":"https://creativecommons.org/licenses/by/4.0/legalcode","generator":"WordPress
2153
2153
  (.com)","category":"Social Sciences","prefix":"10.59350","modified_at":"2023-04-13T17:48:41+00:00","version":"https://jsonfeed.org/version/1.1","backlog":true}}]'
2154
2154
  recorded_at: Fri, 16 Jun 2023 06:11:32 GMT
2155
- recorded_with: VCR 6.1.0
2155
+ - request:
2156
+ method: get
2157
+ uri: https://rogue-scholar.org/api/posts/not_indexed
2158
+ body:
2159
+ encoding: UTF-8
2160
+ string: ''
2161
+ headers:
2162
+ Connection:
2163
+ - close
2164
+ Host:
2165
+ - rogue-scholar.org
2166
+ User-Agent:
2167
+ - http.rb/5.1.1
2168
+ response:
2169
+ status:
2170
+ code: 200
2171
+ message: OK
2172
+ headers:
2173
+ Age:
2174
+ - '0'
2175
+ Cache-Control:
2176
+ - public, max-age=0, must-revalidate
2177
+ Content-Length:
2178
+ - '4252'
2179
+ Content-Type:
2180
+ - application/json; charset=utf-8
2181
+ Date:
2182
+ - Sat, 01 Jul 2023 18:57:43 GMT
2183
+ Etag:
2184
+ - '"ll4w4ic9co3a0"'
2185
+ Server:
2186
+ - Vercel
2187
+ Strict-Transport-Security:
2188
+ - max-age=63072000
2189
+ X-Matched-Path:
2190
+ - "/api/posts/[[...params]]"
2191
+ X-Vercel-Cache:
2192
+ - MISS
2193
+ X-Vercel-Id:
2194
+ - fra1::iad1::sx58r-1688237863458-f29812df0cd7
2195
+ Connection:
2196
+ - close
2197
+ body:
2198
+ encoding: UTF-8
2199
+ string: '[{"id":"https://doi.org/10.53731/r294649-6f79289-8cw1w","uuid":"b1038a3f-c5aa-4a68-97cb-5c68b27942f7","url":"https://blog.front-matter.io/posts/re3data-org-registry-of-research-data-repositories-launched","title":"re3data.org:
2200
+ registry of research data repositories launched","summary":"Earlier this week
2201
+ re3data.org – the Registry of Research Data Repositories – officially launched.
2202
+ The registry is nicely described in a preprint also published this week.re3data.org
2203
+ offers researchers, funding organizations, libraries and publishers and overview
2204
+ of the heterogeneous research data repository landscape. Information icons
2205
+ help researchers to identify an adequate repository for the storage and reuse
2206
+ of their data.I really like re3data.org, and that is not because I personally
2207
+ know...","date_published":"2013-06-01T00:00:00+00:00","date_modified":"2023-06-29T18:04:53+00:00","date_indexed":"2023-06-28T18:13:09+00:00","authors":[{"url":"https://orcid.org/0000-0003-1419-2405","name":"Martin
2208
+ Fenner"}],"image":"https://blog.front-matter.io/content/images/2022/08/figure2.png","tags":["News"],"language":"en","references":[{"doi":"https://doi.org/10.7287/peerj.preprints.21v1","key":"ref1"},{"doi":"https://doi.org/10.2312/re3.002","key":"ref2"}],"blog_id":"f0m0e38","blog":{"id":"f0m0e38","title":"Front
2209
+ Matter","description":"The Front Matter Blog covers the intersection of science
2210
+ and technology since 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-05-31T07:20:33+00:00","indexed_at":"2023-01-02","feed_format":"application/atom+xml","license":"https://creativecommons.org/licenses/by/4.0/legalcode","generator":"Ghost
2211
+ 5.52","category":"Engineering and Technology","prefix":"10.53731","modified_at":"2023-06-29T18:04:53+00:00","version":"https://jsonfeed.org/version/1.1","backlog":false,"authors":null,"current_feed_url":"https://blog.front-matter.io/atom/","expired":null}},{"id":"https://doi.org/10.53731/r294649-6f79289-8cw3h","uuid":"e4e13c41-5991-41b6-811b-6271510c1b0e","url":"https://blog.front-matter.io/posts/increased-cancer-risk-following-computed-tomography-scans","title":"Increased
2212
+ cancer risk following computed tomography scans","summary":"Two papers (this
2213
+ and this) and an editorial in the latest issue of Archives of Internal Medicine
2214
+ examine the cancer risks associated with the use of computed tomography (CT)
2215
+ examinations.1Ionizing radiation increases the risk for developing cancer.
2216
+ There is direct evidence from atomic bomb survivors in Japan in 1945 and from
2217
+ nuclear accidents such as the one in Chernobyl in 1986. There are no studies
2218
+ directly demonstrating an increased cancer risk from the diagnostic use of
2219
+ X-rays (either...","date_published":"2009-12-20T00:00:00+00:00","date_modified":"2023-06-29T17:49:57+00:00","date_indexed":"2023-06-28T18:13:09+00:00","authors":[{"url":"https://orcid.org/0000-0003-1419-2405","name":"Martin
2220
+ Fenner"}],"image":"https://blog.front-matter.io/content/images/2022/08/ioi90119f2.jpg","tags":["Feature"],"language":"en","references":[{"doi":"https://doi.org/10.1001/archinternmed.2009.427","key":"ref1"},{"doi":"https://doi.org/10.1001/archinternmed.2009.440","key":"ref2"},{"doi":"https://doi.org/10.1001/archinternmed.2009.453","key":"ref3"}],"blog_id":"f0m0e38","blog":{"id":"f0m0e38","title":"Front
2221
+ Matter","description":"The Front Matter Blog covers the intersection of science
2222
+ and technology since 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-05-31T07:20:33+00:00","indexed_at":"2023-01-02","feed_format":"application/atom+xml","license":"https://creativecommons.org/licenses/by/4.0/legalcode","generator":"Ghost
2223
+ 5.52","category":"Engineering and Technology","prefix":"10.53731","modified_at":"2023-06-29T18:04:53+00:00","version":"https://jsonfeed.org/version/1.1","backlog":false,"authors":null,"current_feed_url":"https://blog.front-matter.io/atom/","expired":null}}]'
2224
+ recorded_at: Sat, 01 Jul 2023 18:57:43 GMT
2225
+ recorded_with: VCR 6.2.0
@@ -1420,4 +1420,74 @@ http_interactions:
1420
1420
  highlights interesting science stories from around the web.\",\"language\":\"en\",\"favicon\":\"https://syldavia-gazette.org/favicon.png\",\"feed_url\":\"https://syldavia-gazette.org/atom/\",\"home_page_url\":\"https://syldavia-gazette.org\",\"user_id\":\"8498eaf6-8c58-4b58-bc15-27eda292b1aa\",\"created_at\":\"2023-05-31T16:54:04+00:00\",\"indexed_at\":\"2023-02-01\",\"feed_format\":\"application/atom+xml\",\"license\":\"https://creativecommons.org/licenses/by/4.0/legalcode\",\"generator\":\"Ghost
1421
1421
  5.40\",\"category\":\"Humanities\",\"prefix\":\"10.53731\",\"modified_at\":\"2023-03-15T20:37:00+00:00\",\"version\":\"https://jsonfeed.org/version/1.1\",\"backlog\":false,\"authors\":null}}]"
1422
1422
  recorded_at: Sun, 18 Jun 2023 15:23:51 GMT
1423
- recorded_with: VCR 6.1.0
1423
+ - request:
1424
+ method: get
1425
+ uri: https://rogue-scholar.org/api/posts/not_indexed
1426
+ body:
1427
+ encoding: UTF-8
1428
+ string: ''
1429
+ headers:
1430
+ Connection:
1431
+ - close
1432
+ Host:
1433
+ - rogue-scholar.org
1434
+ User-Agent:
1435
+ - http.rb/5.1.1
1436
+ response:
1437
+ status:
1438
+ code: 200
1439
+ message: OK
1440
+ headers:
1441
+ Age:
1442
+ - '0'
1443
+ Cache-Control:
1444
+ - public, max-age=0, must-revalidate
1445
+ Content-Length:
1446
+ - '4252'
1447
+ Content-Type:
1448
+ - application/json; charset=utf-8
1449
+ Date:
1450
+ - Sat, 01 Jul 2023 18:57:39 GMT
1451
+ Etag:
1452
+ - '"ll4w4ic9co3a0"'
1453
+ Server:
1454
+ - Vercel
1455
+ Strict-Transport-Security:
1456
+ - max-age=63072000
1457
+ X-Matched-Path:
1458
+ - "/api/posts/[[...params]]"
1459
+ X-Vercel-Cache:
1460
+ - MISS
1461
+ X-Vercel-Id:
1462
+ - fra1::iad1::jjzwd-1688237856423-827b9226d892
1463
+ Connection:
1464
+ - close
1465
+ body:
1466
+ encoding: UTF-8
1467
+ string: '[{"id":"https://doi.org/10.53731/r294649-6f79289-8cw1w","uuid":"b1038a3f-c5aa-4a68-97cb-5c68b27942f7","url":"https://blog.front-matter.io/posts/re3data-org-registry-of-research-data-repositories-launched","title":"re3data.org:
1468
+ registry of research data repositories launched","summary":"Earlier this week
1469
+ re3data.org – the Registry of Research Data Repositories – officially launched.
1470
+ The registry is nicely described in a preprint also published this week.re3data.org
1471
+ offers researchers, funding organizations, libraries and publishers and overview
1472
+ of the heterogeneous research data repository landscape. Information icons
1473
+ help researchers to identify an adequate repository for the storage and reuse
1474
+ of their data.I really like re3data.org, and that is not because I personally
1475
+ know...","date_published":"2013-06-01T00:00:00+00:00","date_modified":"2023-06-29T18:04:53+00:00","date_indexed":"2023-06-28T18:13:09+00:00","authors":[{"url":"https://orcid.org/0000-0003-1419-2405","name":"Martin
1476
+ Fenner"}],"image":"https://blog.front-matter.io/content/images/2022/08/figure2.png","tags":["News"],"language":"en","references":[{"doi":"https://doi.org/10.7287/peerj.preprints.21v1","key":"ref1"},{"doi":"https://doi.org/10.2312/re3.002","key":"ref2"}],"blog_id":"f0m0e38","blog":{"id":"f0m0e38","title":"Front
1477
+ Matter","description":"The Front Matter Blog covers the intersection of science
1478
+ and technology since 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-05-31T07:20:33+00:00","indexed_at":"2023-01-02","feed_format":"application/atom+xml","license":"https://creativecommons.org/licenses/by/4.0/legalcode","generator":"Ghost
1479
+ 5.52","category":"Engineering and Technology","prefix":"10.53731","modified_at":"2023-06-29T18:04:53+00:00","version":"https://jsonfeed.org/version/1.1","backlog":false,"authors":null,"current_feed_url":"https://blog.front-matter.io/atom/","expired":null}},{"id":"https://doi.org/10.53731/r294649-6f79289-8cw3h","uuid":"e4e13c41-5991-41b6-811b-6271510c1b0e","url":"https://blog.front-matter.io/posts/increased-cancer-risk-following-computed-tomography-scans","title":"Increased
1480
+ cancer risk following computed tomography scans","summary":"Two papers (this
1481
+ and this) and an editorial in the latest issue of Archives of Internal Medicine
1482
+ examine the cancer risks associated with the use of computed tomography (CT)
1483
+ examinations.1Ionizing radiation increases the risk for developing cancer.
1484
+ There is direct evidence from atomic bomb survivors in Japan in 1945 and from
1485
+ nuclear accidents such as the one in Chernobyl in 1986. There are no studies
1486
+ directly demonstrating an increased cancer risk from the diagnostic use of
1487
+ X-rays (either...","date_published":"2009-12-20T00:00:00+00:00","date_modified":"2023-06-29T17:49:57+00:00","date_indexed":"2023-06-28T18:13:09+00:00","authors":[{"url":"https://orcid.org/0000-0003-1419-2405","name":"Martin
1488
+ Fenner"}],"image":"https://blog.front-matter.io/content/images/2022/08/ioi90119f2.jpg","tags":["Feature"],"language":"en","references":[{"doi":"https://doi.org/10.1001/archinternmed.2009.427","key":"ref1"},{"doi":"https://doi.org/10.1001/archinternmed.2009.440","key":"ref2"},{"doi":"https://doi.org/10.1001/archinternmed.2009.453","key":"ref3"}],"blog_id":"f0m0e38","blog":{"id":"f0m0e38","title":"Front
1489
+ Matter","description":"The Front Matter Blog covers the intersection of science
1490
+ and technology since 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-05-31T07:20:33+00:00","indexed_at":"2023-01-02","feed_format":"application/atom+xml","license":"https://creativecommons.org/licenses/by/4.0/legalcode","generator":"Ghost
1491
+ 5.52","category":"Engineering and Technology","prefix":"10.53731","modified_at":"2023-06-29T18:04:53+00:00","version":"https://jsonfeed.org/version/1.1","backlog":false,"authors":null,"current_feed_url":"https://blog.front-matter.io/atom/","expired":null}}]'
1492
+ recorded_at: Sat, 01 Jul 2023 18:57:39 GMT
1493
+ recorded_with: VCR 6.2.0
@@ -382,8 +382,8 @@ describe Commonmeta::Metadata, vcr: true do
382
382
  end
383
383
 
384
384
  it "not indexed posts" do
385
- response = subject.get_json_feed_not_indexed("2023-01-01")
386
- expect(response).to eq("ca2a7df4-f3b9-487c-82e9-27f54de75ea8")
385
+ response = subject.get_json_feed_not_indexed
386
+ expect(response).to eq("b1038a3f-c5aa-4a68-97cb-5c68b27942f7")
387
387
  end
388
388
 
389
389
  it "by blog_id" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmeta-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.9
4
+ version: 3.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-28 00:00:00.000000000 Z
11
+ date: 2023-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport