maltese 0.8.10 → 0.8.12

Sign up to get free protection for your applications and to get access to all the features.
data/spec/sitemap_spec.rb CHANGED
@@ -3,39 +3,39 @@ require 'spec_helper'
3
3
  describe Maltese::Sitemap, vcr: true do
4
4
  subject { Maltese::Sitemap.new }
5
5
 
6
- let(:doi) { "10.1097/npt.0b013e3181c1fc0b" }
6
+ let(:doi) { "10.1002/jca.21694" }
7
7
 
8
8
  context "get_query_url" do
9
9
  it "default" do
10
- expect(subject.get_query_url).to eq("https://api.test.datacite.org/dois?fields%5Bdois%5D=doi%2Cupdated&page%5Bscroll%5D=3m&page%5Bsize%5D=1000")
10
+ expect(subject.get_query_url).to eq("https://api.test.datacite.org/dois?fields%5Bdois%5D=doi%2Cupdated&page%5Bscroll%5D=7m&page%5Bsize%5D=1000")
11
11
  end
12
12
 
13
13
  it "with page[size] one" do
14
- expect(subject.get_query_url(size: 1)).to eq("https://api.test.datacite.org/dois?fields%5Bdois%5D=doi%2Cupdated&page%5Bscroll%5D=3m&page%5Bsize%5D=1")
14
+ expect(subject.get_query_url(size: 1)).to eq("https://api.test.datacite.org/dois?fields%5Bdois%5D=doi%2Cupdated&page%5Bscroll%5D=7m&page%5Bsize%5D=1")
15
15
  end
16
16
 
17
17
  it "with size" do
18
- expect(subject.get_query_url(size: 250)).to eq("https://api.test.datacite.org/dois?fields%5Bdois%5D=doi%2Cupdated&page%5Bscroll%5D=3m&page%5Bsize%5D=250")
18
+ expect(subject.get_query_url(size: 250)).to eq("https://api.test.datacite.org/dois?fields%5Bdois%5D=doi%2Cupdated&page%5Bscroll%5D=7m&page%5Bsize%5D=250")
19
19
  end
20
20
  end
21
21
 
22
22
  context "get_total" do
23
23
  it "with works" do
24
- expect(subject.get_total).to eq(807468)
24
+ expect(subject.get_total).to eq(833105)
25
25
  end
26
26
  end
27
27
 
28
28
  context "queue_jobs" do
29
29
  it "should report if there are works returned by the Datacite REST API" do
30
30
  response = subject.queue_jobs
31
- expect(response).to eq(807880)
31
+ expect(response).to eq(833085)
32
32
  end
33
33
  end
34
34
 
35
35
  context "get_data" do
36
36
  it "should report if there are works returned by the Datacite REST API" do
37
37
  response = subject.get_data(subject.get_query_url)
38
- expect(response.body.dig("meta", "total")).to eq(806854)
38
+ expect(response.body.dig("meta", "total")).to eq(833098)
39
39
  expect(response.body.fetch("data", []).size).to eq(1000)
40
40
  doc = response.body.fetch("data", []).first
41
41
  expect(doc.dig("attributes", "doi")).to eq(doi)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maltese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.10
4
+ version: 0.8.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner