maltese 0.2.4 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +137 -1035
- data/.travis.yml +1 -1
- data/Gemfile.lock +39 -38
- data/README.md +1 -1
- data/lib/maltese/sitemap.rb +17 -33
- data/lib/maltese/version.rb +1 -1
- data/spec/cli_spec.rb +4 -17
- data/spec/fixtures/sitemap.json +69666 -7571
- data/spec/fixtures/sitemap_nil.json +8 -8
- data/spec/fixtures/vcr_cassettes/Maltese_CLI/sitemap/should_succeed.yml +37 -73
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_data/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml +49 -0
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_total/with_works.yml +24 -19
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_no_works_returned_by_the_Datacite_REST_API.yml +59 -0
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml +59 -0
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/queue_jobs/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml +105 -0
- data/spec/sitemap_spec.rb +28 -52
- data/spec/spec_helper.rb +0 -1
- metadata +6 -10
- data/spec/fixtures/vcr_cassettes/Maltese_CLI/sitemap/should_succeed_with_no_works.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_data/should_report_if_there_are_no_works_returned_by_the_Datacite_Solr_API.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_data/should_report_if_there_are_works_returned_by_the_Datacite_Solr_API.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_total/with_no_works.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_no_works_returned_by_the_Datacite_Solr_API.yml +0 -59
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_works_returned_by_the_Datacite_Solr_API.yml +0 -59
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/queue_jobs/should_report_if_there_are_no_works_returned_by_the_Datacite_Solr_API.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/queue_jobs/should_report_if_there_are_works_returned_by_the_Datacite_Solr_API.yml +0 -141
@@ -2,43 +2,48 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.test.datacite.org/dois?page%5Bcursor%5D=1&page%5Bsize%5D=0
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Mozilla/5.0 (compatible; Maremma/4.
|
11
|
+
- Mozilla/5.0 (compatible; Maremma/4.2.1; +https://github.com/datacite/maremma)
|
12
12
|
Accept:
|
13
13
|
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
14
|
-
Authorization:
|
15
|
-
- Basic <ENCODED AUTH HEADER>
|
16
14
|
response:
|
17
15
|
status:
|
18
16
|
code: 200
|
19
17
|
message: OK
|
20
18
|
headers:
|
21
19
|
Date:
|
22
|
-
-
|
20
|
+
- Sat, 01 Jun 2019 07:54:14 GMT
|
23
21
|
Content-Type:
|
24
|
-
- application/json;charset=
|
22
|
+
- application/json; charset=utf-8
|
25
23
|
Connection:
|
26
24
|
- keep-alive
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
X-Anonymous-Consumer:
|
28
|
+
- 'true'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding, Origin
|
33
|
+
Etag:
|
34
|
+
- W/"25203fc5150eb6f7e557ea3e60dbeecc"
|
35
|
+
X-Runtime:
|
36
|
+
- '0.239077'
|
37
|
+
X-Request-Id:
|
38
|
+
- a81d0d48-730c-4832-bad9-119f20cf912d
|
39
|
+
X-Powered-By:
|
40
|
+
- Phusion Passenger 6.0.2
|
27
41
|
Server:
|
28
|
-
- nginx/1.
|
29
|
-
Access-Control-Allow-Origin:
|
30
|
-
- "*"
|
31
|
-
Access-Control-Allow-Methods:
|
32
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
33
|
-
Access-Control-Allow-Headers:
|
34
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
35
|
-
Access-Control-Expose-Headers:
|
36
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
42
|
+
- nginx/1.15.8 + Phusion Passenger 6.0.2
|
37
43
|
body:
|
38
44
|
encoding: ASCII-8BIT
|
39
|
-
string:
|
40
|
-
|
41
|
-
'
|
45
|
+
string: !binary |-
|
46
|
+
eyJkYXRhIjpbXSwiaW5jbHVkZWQiOltdLCJtZXRhIjp7InRvdGFsIjo3MjAyMywidG90YWxQYWdlcyI6MCwic3RhdGVzIjpbeyJpZCI6ImZpbmRhYmxlIiwidGl0bGUiOiJGaW5kYWJsZSIsImNvdW50Ijo3MjAyM31dLCJyZXNvdXJjZVR5cGVzIjpbeyJpZCI6InRleHQiLCJ0aXRsZSI6IlRleHQiLCJjb3VudCI6MjAzOTd9LHsiaWQiOiJkYXRhc2V0IiwidGl0bGUiOiJEYXRhc2V0IiwiY291bnQiOjEwMjE1fSx7ImlkIjoib3RoZXIiLCJ0aXRsZSI6Ik90aGVyIiwiY291bnQiOjEwNjJ9LHsiaWQiOiJzb2Z0d2FyZSIsInRpdGxlIjoiU29mdHdhcmUiLCJjb3VudCI6Njc1fSx7ImlkIjoiaW1hZ2UiLCJ0aXRsZSI6IkltYWdlIiwiY291bnQiOjY1Mn0seyJpZCI6ImNvbGxlY3Rpb24iLCJ0aXRsZSI6Ik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kluY2x1ZGUgS2V5d29yZChTKSBUaGF0IERlc2NyaWJlIFRoZSBTdWJqZWN0IEZvY3VzIE9mIFRoZSBSZXNvdXJjZS4gRm9ybWF0OiBDb21tYSBTZXBhcmF0ZWQgTGlzdCBPZiBLZXl3b3Jkcy4iLCJjb3VudCI6NDQ1fSx7ImlkIjoiSGVyemJlcmcsIEdlcmhhcmQiLCJ0aXRsZSI6IkhlcnpiZXJnLCBHZXJoYXJkIiwiY291bnQiOjQwMn0seyJpZCI6IjUxMCIsInRpdGxlIjoiNTEwIiwiY291bnQiOjM2NX0seyJpZCI6IkJpb2xvZ3kiLCJ0aXRsZSI6IkJpb2xvZ3kiLCJjb3VudCI6MzE1fSx7ImlkIjoiT3BlbktJTSIsInRpdGxlIjoiT3BlbiBLaW0iLCJjb3VudCI6MzEzfSx7ImlkIjoiUGFyYW1ldGVyaXplZCBNb2RlbCIsInRpdGxlIjoiUGFyYW1ldGVyaXplZCBNb2RlbCIsImNvdW50IjoyNTZ9XX0sImxpbmtzIjp7InNlbGYiOiJodHRwczovL2FwaS50ZXN0LmRhdGFjaXRlLm9yZy9kb2lzP3BhZ2UlNUJjdXJzb3IlNUQ9MSZwYWdlJTVCc2l6ZSU1RD0wIiwibmV4dCI6Imh0dHBzOi8vYXBpLnRlc3QuZGF0YWNpdGUub3JnL2RvaXM/cGFnZSU1QnNpemUlNUQ9MCJ9fQ==
|
42
47
|
http_version:
|
43
|
-
recorded_at:
|
48
|
+
recorded_at: Sat, 01 Jun 2019 07:54:14 GMT
|
44
49
|
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://s3.eu-west-1.amazonaws.com/search.test.datacite.org/sitemaps/sitemap.xml.gz
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: !binary |-
|
9
|
+
H4sIADIv8lwAA5WSPW+DMBCG/wryWuEP2kYFOWTrlE5Npa6uccCSsSnnBvLv6xhS0aoD2eDuee5exPHd2JrkpHrQzm4RwxQlykpXaVtv0dvhOX1Cu5J/9QaUTwJroRhBb1HjfVcQMgwDHu6x62uSUcrI+8v+VTaqFam24IWVCiWBLyAW904KHxctdNA+tDqIQyYOyFwkFOfJDez1GY9QoSnuTbtmp9CtqNUvs3auNgpL1/710ggThtnVPulKubV2hJe2VQOslS/sMnfrPrRZHXyiSfzpk9+FLwmdtQNmfDlhbHxr/jsPluc5iV0U76nkxsnywkEAQYleNtgr8LgSXsiwIWqcXDBuBPjWVWVGWZ7STUrZgebF40ORbe5oVlAauBnhshG2VsdefZbCDOIMnCxKvOu167U/lyE1Jz9vnMRQZDr18huuVNkBGQMAAA==
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/x-gzip
|
13
|
+
Accept-Encoding:
|
14
|
+
- ''
|
15
|
+
User-Agent:
|
16
|
+
- aws-sdk-ruby3/3.54.1 ruby/2.6.0 x86_64-darwin18 aws-sdk-s3/1.41.0
|
17
|
+
X-Amz-Acl:
|
18
|
+
- public-read
|
19
|
+
Cache-Control:
|
20
|
+
- private, max-age=0, no-cache
|
21
|
+
Expect:
|
22
|
+
- 100-continue
|
23
|
+
Content-Md5:
|
24
|
+
- MqcFmQwtK0tNhF7KTvb3Gg==
|
25
|
+
X-Amz-Date:
|
26
|
+
- 20190601T075426Z
|
27
|
+
X-Amz-Content-Sha256:
|
28
|
+
- 05cf62d823348cf6e54c7547a080c9c54abdb582d2cda5a40b06ec271d02de45
|
29
|
+
Authorization:
|
30
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJAMMCXAR3IXMNCGQ/20190601/eu-west-1/s3/aws4_request,
|
31
|
+
SignedHeaders=cache-control;content-md5;content-type;expect;host;user-agent;x-amz-acl;x-amz-content-sha256;x-amz-date,
|
32
|
+
Signature=5933684d5b219e3a060fe9f2179bb50a19df6af7792d156d7afaa4376d67ca1b
|
33
|
+
Content-Length:
|
34
|
+
- '334'
|
35
|
+
Accept:
|
36
|
+
- "*/*"
|
37
|
+
response:
|
38
|
+
status:
|
39
|
+
code: 200
|
40
|
+
message: OK
|
41
|
+
headers:
|
42
|
+
X-Amz-Id-2:
|
43
|
+
- rykr6Devdhw7TsCUhLIHYVWk6wBC8AJoT4GiEf4bdrUYYE2ryLvCnru960QcFKJGMmaW01OvWr0=
|
44
|
+
X-Amz-Request-Id:
|
45
|
+
- 1CB23DE1C89089F5
|
46
|
+
Date:
|
47
|
+
- Sat, 01 Jun 2019 07:54:27 GMT
|
48
|
+
Etag:
|
49
|
+
- '"32a705990c2d2b4b4d845eca4ef6f71a"'
|
50
|
+
Content-Length:
|
51
|
+
- '0'
|
52
|
+
Server:
|
53
|
+
- AmazonS3
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: ''
|
57
|
+
http_version:
|
58
|
+
recorded_at: Sat, 01 Jun 2019 07:54:26 GMT
|
59
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://s3.eu-west-1.amazonaws.com/search.test.datacite.org/sitemaps/sitemap.xml.gz
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: !binary |-
|
9
|
+
H4sIADEv8lwAA82dTW/cSJKG/0rD14VU/Eomaag9tz3NnnYW2FtDJEVS/BK/hpnJX79RsuUqzfQCHmCAJy8Nt11lPWZmRLwRGRl8+osdh9+Ol3V7fZt+/xI+Bl9+e5nKt+p1an7/8j9/+8+H7Mtfvj39fR22l/03+ey0fbXb6+9f2n2fv14uxphHEz++rc0lCoLw8r//9df/LtuX8fnhddr256l8+fKbfP7r9v6bf30rn/f3H3T39e11lz+at/e/5PvntsuP37wEj/lv/8JnP379aLfqy3fcf+ln/fjO19fxuXn59M3m7a0ZXh7Lt/Efv/fw/uFL+Bh+fPt4rV7efvXb7x++//b0YrZf/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jpUmHqTomfIAIvfCRn3oawXT8zsIHzqzwsiH2lEYxXy9hJsy+xPBg6cQ86UKrs/6hoAJuxsC5qxvCFjy9xOB6zO/IfAWwXWY3xA82At8QZvTkjcEPkxxA0ZvCHyk5IaM3hB4v5DywTr14CnwwZorDf5E4Jq2bwj8duQapW8I/HbkzvluCLxeyP49euH63+1l//Z/9aAtF68IAgA=
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/x-gzip
|
13
|
+
Accept-Encoding:
|
14
|
+
- ''
|
15
|
+
User-Agent:
|
16
|
+
- aws-sdk-ruby3/3.54.1 ruby/2.6.0 x86_64-darwin18 aws-sdk-s3/1.41.0
|
17
|
+
X-Amz-Acl:
|
18
|
+
- public-read
|
19
|
+
Cache-Control:
|
20
|
+
- private, max-age=0, no-cache
|
21
|
+
Expect:
|
22
|
+
- 100-continue
|
23
|
+
Content-Md5:
|
24
|
+
- i9vuzb6r7iueHICATV54Iw==
|
25
|
+
X-Amz-Date:
|
26
|
+
- 20190601T075425Z
|
27
|
+
X-Amz-Content-Sha256:
|
28
|
+
- 47f7a2c6e78e084249a3a99d1b45419a68e68df6fe8851ca0f55dff1e7e05c02
|
29
|
+
Authorization:
|
30
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJAMMCXAR3IXMNCGQ/20190601/eu-west-1/s3/aws4_request,
|
31
|
+
SignedHeaders=cache-control;content-md5;content-type;expect;host;user-agent;x-amz-acl;x-amz-content-sha256;x-amz-date,
|
32
|
+
Signature=96f0ccb2e47879af504f1c3e6367bfb7860e68e9c2037bf7dfc285e45faee33b
|
33
|
+
Content-Length:
|
34
|
+
- '5270'
|
35
|
+
Accept:
|
36
|
+
- "*/*"
|
37
|
+
response:
|
38
|
+
status:
|
39
|
+
code: 200
|
40
|
+
message: OK
|
41
|
+
headers:
|
42
|
+
X-Amz-Id-2:
|
43
|
+
- OF9RdXfL49duYvrQksm3ECKO9qzqO8w4n2XE3eJTp540r9gNiI9Qnnn2eOCCxSmqXWVVM4zwxCM=
|
44
|
+
X-Amz-Request-Id:
|
45
|
+
- 74B55E4B271A669D
|
46
|
+
Date:
|
47
|
+
- Sat, 01 Jun 2019 07:54:27 GMT
|
48
|
+
Etag:
|
49
|
+
- '"8bdbeecdbeabee2b9e1c80804d5e7823"'
|
50
|
+
Content-Length:
|
51
|
+
- '0'
|
52
|
+
Server:
|
53
|
+
- AmazonS3
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: ''
|
57
|
+
http_version:
|
58
|
+
recorded_at: Sat, 01 Jun 2019 07:54:26 GMT
|
59
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,105 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.test.datacite.org/dois?page%5Bcursor%5D=1&page%5Bsize%5D=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Mozilla/5.0 (compatible; Maremma/4.2.1; +https://github.com/datacite/maremma)
|
12
|
+
Accept:
|
13
|
+
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Sat, 01 Jun 2019 07:54:13 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
X-Anonymous-Consumer:
|
28
|
+
- 'true'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding, Origin
|
33
|
+
Etag:
|
34
|
+
- W/"25203fc5150eb6f7e557ea3e60dbeecc"
|
35
|
+
X-Runtime:
|
36
|
+
- '0.093190'
|
37
|
+
X-Request-Id:
|
38
|
+
- 62c1fef1-ad50-441b-91b5-46aacbdcedfe
|
39
|
+
X-Powered-By:
|
40
|
+
- Phusion Passenger 6.0.2
|
41
|
+
Server:
|
42
|
+
- nginx/1.15.8 + Phusion Passenger 6.0.2
|
43
|
+
body:
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: !binary |-
|
46
|
+
eyJkYXRhIjpbXSwiaW5jbHVkZWQiOltdLCJtZXRhIjp7InRvdGFsIjo3MjAyMywidG90YWxQYWdlcyI6MCwic3RhdGVzIjpbeyJpZCI6ImZpbmRhYmxlIiwidGl0bGUiOiJGaW5kYWJsZSIsImNvdW50Ijo3MjAyM31dLCJyZXNvdXJjZVR5cGVzIjpbeyJpZCI6InRleHQiLCJ0aXRsZSI6IlRleHQiLCJjb3VudCI6MjAzOTd9LHsiaWQiOiJkYXRhc2V0IiwidGl0bGUiOiJEYXRhc2V0IiwiY291bnQiOjEwMjE1fSx7ImlkIjoib3RoZXIiLCJ0aXRsZSI6Ik90aGVyIiwiY291bnQiOjEwNjJ9LHsiaWQiOiJzb2Z0d2FyZSIsInRpdGxlIjoiU29mdHdhcmUiLCJjb3VudCI6Njc1fSx7ImlkIjoiaW1hZ2UiLCJ0aXRsZSI6IkltYWdlIiwiY291bnQiOjY1Mn0seyJpZCI6ImNvbGxlY3Rpb24iLCJ0aXRsZSI6IkNvbGxlY3Rpb24iLCJjb3VudCI6Mzc0fSx7ImlkIjoid29ya2Zsb3ciLCJ0aXRsZSI6IldvcmtmbG93IiwiY291bnQiOjk2fSx7ImlkIjoiYXVkaW92aXN1YWwiLCJ0aXRsZSI6IkF1ZGlvdmlzdWFsIiwiY291bnQiOjcwfSx7ImlkIjoicGh5c2ljYWwtb2JqZWN0IiwidGl0bGUiOiJQaHlzaWNhbE9iamVjdCIsImNvdW50Ijo0NX0seyJpZCI6ImV2ZW50IiwidGl0bGUiOiJFdmVudCIsImNvdW50IjoyNX0seyJpZCI6ImludGVyYWN0aXZlL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Z3kiLCJ0aXRsZSI6IkJpb2xvZ3kiLCJjb3VudCI6MzE1fSx7ImlkIjoiT3BlbktJTSIsInRpdGxlIjoiT3BlbiBLaW0iLCJjb3VudCI6MzEzfSx7ImlkIjoiUGFyYW1ldGVyaXplZCBNb2RlbCIsInRpdGxlIjoiUGFyYW1ldGVyaXplZCBNb2RlbCIsImNvdW50IjoyNTZ9XX0sImxpbmtzIjp7InNlbGYiOiJodHRwczovL2FwaS50ZXN0LmRhdGFjaXRlLm9yZy9kb2lzP3BhZ2UlNUJjdXJzb3IlNUQ9MSZwYWdlJTVCc2l6ZSU1RD0wIiwibmV4dCI6Imh0dHBzOi8vYXBpLnRlc3QuZGF0YWNpdGUub3JnL2RvaXM/cGFnZSU1QnNpemUlNUQ9MCJ9fQ==
|
47
|
+
http_version:
|
48
|
+
recorded_at: Sat, 01 Jun 2019 07:54:13 GMT
|
49
|
+
- request:
|
50
|
+
method: put
|
51
|
+
uri: https://s3.eu-west-1.amazonaws.com/search.test.datacite.org/sitemaps/sitemap.xml.gz
|
52
|
+
body:
|
53
|
+
encoding: ASCII-8BIT
|
54
|
+
string: !binary |-
|
55
|
+
H4sIACUv8lwAA5WSTU+EMBCG/wrp1dCPXTXSdNmbp/XkmnitpUKT0iJTF/bf2y1o0HhgbzDzPDMvYcR+bG120j0Y73aIYYoy7ZSvjKt36OX4mD+gfSk+ews6ZJF1wEcwO9SE0HFChmHAwxb7viYbShl5fTo8q0a3MjcOgnRKoyzyHFLx4JUMadFCBxNiq4M0ZOKAzEVCcZFdwX4/4xEqNMW9atfscNPKWv8ya+9rq7Hy7V8vTzBhmH3bJ1Npv9ZO8NJ2eoC18oVd5m79m7Grg080ST998rv4JbGzdsCMLyeMTWjtf+fBiqIgqYvSPZXCelVeOIggaNmrBgcNAVcySBU3JE2QCyashND6qtxQVuT0PqfsSAt+d8vZ9oZuOKWRmxGhGulq/d7rj1LaQZ5BkEVJdL3xvQnnMqYW5OdNkBSKTKdefgHiSwyOGQMAAA==
|
56
|
+
headers:
|
57
|
+
Content-Type:
|
58
|
+
- application/x-gzip
|
59
|
+
Accept-Encoding:
|
60
|
+
- ''
|
61
|
+
User-Agent:
|
62
|
+
- aws-sdk-ruby3/3.54.1 ruby/2.6.0 x86_64-darwin18 aws-sdk-s3/1.41.0
|
63
|
+
X-Amz-Acl:
|
64
|
+
- public-read
|
65
|
+
Cache-Control:
|
66
|
+
- private, max-age=0, no-cache
|
67
|
+
Expect:
|
68
|
+
- 100-continue
|
69
|
+
Content-Md5:
|
70
|
+
- IlI3PzOgk15/BZ/dmTWGyg==
|
71
|
+
X-Amz-Date:
|
72
|
+
- 20190601T075413Z
|
73
|
+
X-Amz-Content-Sha256:
|
74
|
+
- 3c8ed9be912da19663c1a71411344cdbcfea6c7a8f1d049580996c788243e3cb
|
75
|
+
Authorization:
|
76
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJAMMCXAR3IXMNCGQ/20190601/eu-west-1/s3/aws4_request,
|
77
|
+
SignedHeaders=cache-control;content-md5;content-type;expect;host;user-agent;x-amz-acl;x-amz-content-sha256;x-amz-date,
|
78
|
+
Signature=92d74b0bd89a5e9d963d51cdc05d46f4d40a8fc25507c30172752a044c0bc387
|
79
|
+
Content-Length:
|
80
|
+
- '334'
|
81
|
+
Accept:
|
82
|
+
- "*/*"
|
83
|
+
response:
|
84
|
+
status:
|
85
|
+
code: 200
|
86
|
+
message: OK
|
87
|
+
headers:
|
88
|
+
X-Amz-Id-2:
|
89
|
+
- UShRFiv7MEICyCd8S/AZ5i03stQjJbBZnuz7/cdaAmMVyBH9lu5GZ10OnNE4gRYxgTsmv/9sSgU=
|
90
|
+
X-Amz-Request-Id:
|
91
|
+
- 27CA785C3B724575
|
92
|
+
Date:
|
93
|
+
- Sat, 01 Jun 2019 07:54:14 GMT
|
94
|
+
Etag:
|
95
|
+
- '"2252373f33a0935e7f059fdd993586ca"'
|
96
|
+
Content-Length:
|
97
|
+
- '0'
|
98
|
+
Server:
|
99
|
+
- AmazonS3
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: ''
|
103
|
+
http_version:
|
104
|
+
recorded_at: Sat, 01 Jun 2019 07:54:13 GMT
|
105
|
+
recorded_with: VCR 3.0.3
|
data/spec/sitemap_spec.rb
CHANGED
@@ -3,73 +3,49 @@ require 'spec_helper'
|
|
3
3
|
describe Maltese::Sitemap, vcr: true do
|
4
4
|
subject { Maltese::Sitemap.new }
|
5
5
|
|
6
|
-
let(:
|
7
|
-
let(:doi) { "10.15771/IMEJIDEV.RM" }
|
8
|
-
let(:from_date) { (Date.current - 1.day).strftime("%F") }
|
9
|
-
let(:until_date) { Date.current.strftime("%F") }
|
6
|
+
let(:doi) { "10.4124/cc3d60p" }
|
10
7
|
|
11
8
|
context "get_query_url" do
|
12
9
|
it "default" do
|
13
|
-
expect(subject.get_query_url).to eq("https://
|
10
|
+
expect(subject.get_query_url).to eq("https://api.test.datacite.org/dois?page%5Bcursor%5D=1&page%5Bsize%5D=1000")
|
14
11
|
end
|
15
12
|
|
16
|
-
it "with zero
|
17
|
-
expect(subject.get_query_url(
|
13
|
+
it "with page[size] zero" do
|
14
|
+
expect(subject.get_query_url(size: 0)).to eq("https://api.test.datacite.org/dois?page%5Bcursor%5D=1&page%5Bsize%5D=0")
|
18
15
|
end
|
19
16
|
|
20
|
-
it "with
|
21
|
-
subject
|
22
|
-
expect(subject.get_query_url).to eq("https://solr.test.datacite.org/api?q=*%3A*&fq=updated%3A%5B2015-04-05T00%3A00%3A00Z+TO+2015-04-05T23%3A59%3A59Z%5D+AND+has_metadata%3Atrue+AND+is_active%3Atrue&start=0&rows=50000&fl=doi%2Cupdated&sort=updated+asc&wt=json")
|
17
|
+
it "with cursor" do
|
18
|
+
expect(subject.get_query_url(cursor: 250)).to eq("https://api.test.datacite.org/dois?page%5Bcursor%5D=250&page%5Bsize%5D=1000")
|
23
19
|
end
|
24
20
|
|
25
|
-
it "with
|
26
|
-
expect(subject.get_query_url(
|
27
|
-
end
|
28
|
-
|
29
|
-
it "with rows" do
|
30
|
-
expect(subject.get_query_url(rows: 250)).to eq("https://solr.test.datacite.org/api?q=*%3A*&fq=updated%3A%5B#{from_date}T00%3A00%3A00Z+TO+#{until_date}T23%3A59%3A59Z%5D+AND+has_metadata%3Atrue+AND+is_active%3Atrue&start=0&rows=250&fl=doi%2Cupdated&sort=updated+asc&wt=json")
|
21
|
+
it "with size" do
|
22
|
+
expect(subject.get_query_url(size: 250)).to eq("https://api.test.datacite.org/dois?page%5Bcursor%5D=1&page%5Bsize%5D=250")
|
31
23
|
end
|
32
24
|
end
|
33
25
|
|
34
26
|
context "get_total" do
|
35
27
|
it "with works" do
|
36
|
-
expect(subject.get_total).to eq(
|
37
|
-
end
|
38
|
-
|
39
|
-
it "with no works" do
|
40
|
-
subject = Maltese::Sitemap.new(from_date: "2005-04-07", until_date: "2005-04-08")
|
41
|
-
expect(subject.get_total).to eq(0)
|
28
|
+
expect(subject.get_total).to eq(72023)
|
42
29
|
end
|
43
30
|
end
|
44
31
|
|
45
32
|
context "queue_jobs" do
|
46
|
-
it "should report if there are
|
47
|
-
subject = Maltese::Sitemap.new(from_date: "2005-04-07", until_date: "2005-04-08")
|
48
|
-
response = subject.queue_jobs
|
49
|
-
expect(response).to eq(0)
|
50
|
-
end
|
51
|
-
|
52
|
-
it "should report if there are works returned by the Datacite Solr API" do
|
33
|
+
it "should report if there are works returned by the Datacite REST API" do
|
53
34
|
response = subject.queue_jobs
|
54
|
-
expect(response).to eq(
|
35
|
+
expect(response).to eq(72023)
|
55
36
|
end
|
56
37
|
end
|
57
38
|
|
58
39
|
context "get_data" do
|
59
|
-
it "should report if there are
|
60
|
-
subject = Maltese::Sitemap.new(from_date: "2005-04-07", until_date: "2005-04-08")
|
61
|
-
response = subject.get_data
|
62
|
-
expect(response.body.dig("data", "response", "numFound")).to eq(0)
|
63
|
-
end
|
64
|
-
|
65
|
-
it "should report if there are works returned by the Datacite Solr API" do
|
40
|
+
it "should report if there are works returned by the Datacite REST API" do
|
66
41
|
response = subject.get_data
|
67
|
-
expect(response.body.dig("
|
68
|
-
|
69
|
-
|
42
|
+
expect(response.body.dig("meta", "total")).to eq(72024)
|
43
|
+
expect(response.body.fetch("data", []).size).to eq(1000)
|
44
|
+
doc = response.body.fetch("data", []).first
|
45
|
+
expect(doc.dig("attributes", "doi")).to eq(doi)
|
70
46
|
end
|
71
47
|
|
72
|
-
it "should catch errors with the Datacite
|
48
|
+
it "should catch errors with the Datacite REST API" do
|
73
49
|
stub = stub_request(:get, subject.get_query_url(rows: 0)).to_return(:status => [408])
|
74
50
|
response = subject.get_data(rows: 0)
|
75
51
|
expect(response.body).to eq("errors"=>[{"status"=>408, "title"=>"Request timeout"}])
|
@@ -78,37 +54,37 @@ describe Maltese::Sitemap, vcr: true do
|
|
78
54
|
end
|
79
55
|
|
80
56
|
context "parse_data" do
|
81
|
-
it "should report if there are no works returned by the Datacite
|
57
|
+
it "should report if there are no works returned by the Datacite REST API" do
|
82
58
|
body = File.read(fixture_path + 'sitemap_nil.json')
|
83
|
-
result = OpenStruct.new(body:
|
59
|
+
result = OpenStruct.new(body: JSON.parse(body))
|
84
60
|
expect(subject.parse_data(result)).to eq(0)
|
85
61
|
end
|
86
62
|
|
87
|
-
it "should report if there are works returned by the Datacite
|
63
|
+
it "should report if there are works returned by the Datacite REST API" do
|
88
64
|
body = File.read(fixture_path + 'sitemap.json')
|
89
|
-
result = OpenStruct.new(body:
|
65
|
+
result = OpenStruct.new(body: JSON.parse(body))
|
90
66
|
response = subject.parse_data(result)
|
91
|
-
expect(response).to eq(
|
67
|
+
expect(response).to eq(1001)
|
92
68
|
end
|
93
69
|
|
94
|
-
it "should catch timeout errors with the Datacite
|
95
|
-
result = OpenStruct.new(body: { "errors" => [{ "title" => "the server responded with status 408 for https://
|
70
|
+
it "should catch timeout errors with the Datacite REST API" do
|
71
|
+
result = OpenStruct.new(body: { "errors" => [{ "title" => "the server responded with status 408 for https://REST.test.datacite.org", "status" => 408 }] })
|
96
72
|
response = subject.parse_data(result)
|
97
73
|
expect(response).to eq(result.body["errors"])
|
98
74
|
end
|
99
75
|
end
|
100
76
|
|
101
77
|
context "push_data" do
|
102
|
-
it "should report if there are no works returned by the Datacite
|
78
|
+
it "should report if there are no works returned by the Datacite REST API" do
|
103
79
|
result = []
|
104
80
|
expect { subject.push_data }.to output(/1 links/).to_stdout
|
105
81
|
end
|
106
82
|
|
107
|
-
it "should report if there are works returned by the Datacite
|
83
|
+
it "should report if there are works returned by the Datacite REST API" do
|
108
84
|
body = File.read(fixture_path + 'sitemap.json')
|
109
|
-
result = OpenStruct.new(body:
|
85
|
+
result = OpenStruct.new(body: JSON.parse(body))
|
110
86
|
result = subject.parse_data(result)
|
111
|
-
expect { subject.push_data }.to output(/
|
87
|
+
expect { subject.push_data }.to output(/1001 links/).to_stdout
|
112
88
|
end
|
113
89
|
end
|
114
90
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -92,5 +92,4 @@ VCR.configure do |c|
|
|
92
92
|
c.filter_sensitive_data("<AWS_SECRET_ACCESS_KEY>") { ENV["AWS_SECRET_ACCESS_KEY"] }
|
93
93
|
c.filter_sensitive_data("<FOG_DIRECTORY>") { ENV['FOG_DIRECTORY'] }
|
94
94
|
c.filter_sensitive_data("<FOG_REGION>") { ENV["FOG_REGION"] }
|
95
|
-
c.filter_sensitive_data('<ENCODED AUTH HEADER>') { Base64.strict_encode64("#{ENV.fetch('SOLR_USERNAME')}:#{ENV.fetch('SOLR_PASSWORD')}") }
|
96
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maltese
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: maremma
|
@@ -279,15 +279,11 @@ files:
|
|
279
279
|
- spec/fixtures/sitemap.json
|
280
280
|
- spec/fixtures/sitemap_nil.json
|
281
281
|
- spec/fixtures/vcr_cassettes/Maltese_CLI/sitemap/should_succeed.yml
|
282
|
-
- spec/fixtures/vcr_cassettes/
|
283
|
-
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_data/should_report_if_there_are_no_works_returned_by_the_Datacite_Solr_API.yml
|
284
|
-
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_data/should_report_if_there_are_works_returned_by_the_Datacite_Solr_API.yml
|
285
|
-
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_total/with_no_works.yml
|
282
|
+
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_data/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml
|
286
283
|
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_total/with_works.yml
|
287
|
-
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/
|
288
|
-
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/
|
289
|
-
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/queue_jobs/
|
290
|
-
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/queue_jobs/should_report_if_there_are_works_returned_by_the_Datacite_Solr_API.yml
|
284
|
+
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_no_works_returned_by_the_Datacite_REST_API.yml
|
285
|
+
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml
|
286
|
+
- spec/fixtures/vcr_cassettes/Maltese_Sitemap/queue_jobs/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml
|
291
287
|
- spec/sitemap_spec.rb
|
292
288
|
- spec/spec_helper.rb
|
293
289
|
homepage: https://github.com/datacite/maltese
|
@@ -1,44 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://solr.test.datacite.org/api?fl=doi,updated&fq=updated:%5B2005-04-07T00:00:00Z%20TO%202005-04-08T23:59:59Z%5D%20AND%20has_metadata:true%20AND%20is_active:true&q=*:*&rows=0&sort=updated%20asc&start=0&wt=json
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Mozilla/5.0 (compatible; Maremma/4.1.1; +https://github.com/datacite/maremma)
|
12
|
-
Accept:
|
13
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
14
|
-
Authorization:
|
15
|
-
- Basic <ENCODED AUTH HEADER>
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Date:
|
22
|
-
- Sun, 09 Sep 2018 05:56:18 GMT
|
23
|
-
Content-Type:
|
24
|
-
- application/json;charset=UTF-8
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
Server:
|
28
|
-
- nginx/1.10.3 (Ubuntu)
|
29
|
-
Access-Control-Allow-Origin:
|
30
|
-
- "*"
|
31
|
-
Access-Control-Allow-Methods:
|
32
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
33
|
-
Access-Control-Allow-Headers:
|
34
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
35
|
-
Access-Control-Expose-Headers:
|
36
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
37
|
-
body:
|
38
|
-
encoding: ASCII-8BIT
|
39
|
-
string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":0,"start":0,"docs":[]}}
|
40
|
-
|
41
|
-
'
|
42
|
-
http_version:
|
43
|
-
recorded_at: Sun, 09 Sep 2018 05:56:18 GMT
|
44
|
-
recorded_with: VCR 3.0.3
|
@@ -1,44 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://solr.test.datacite.org/api?fl=doi,updated&fq=updated:%5B2005-04-07T00:00:00Z%20TO%202005-04-08T23:59:59Z%5D%20AND%20has_metadata:true%20AND%20is_active:true&q=*:*&rows=50000&sort=updated%20asc&start=0&wt=json
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Mozilla/5.0 (compatible; Maremma/4.1.1; +https://github.com/datacite/maremma)
|
12
|
-
Accept:
|
13
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
14
|
-
Authorization:
|
15
|
-
- Basic <ENCODED AUTH HEADER>
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Date:
|
22
|
-
- Sun, 09 Sep 2018 05:56:17 GMT
|
23
|
-
Content-Type:
|
24
|
-
- application/json;charset=UTF-8
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
Server:
|
28
|
-
- nginx/1.10.3 (Ubuntu)
|
29
|
-
Access-Control-Allow-Origin:
|
30
|
-
- "*"
|
31
|
-
Access-Control-Allow-Methods:
|
32
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
33
|
-
Access-Control-Allow-Headers:
|
34
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
35
|
-
Access-Control-Expose-Headers:
|
36
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
37
|
-
body:
|
38
|
-
encoding: ASCII-8BIT
|
39
|
-
string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":0,"start":0,"docs":[]}}
|
40
|
-
|
41
|
-
'
|
42
|
-
http_version:
|
43
|
-
recorded_at: Sun, 09 Sep 2018 05:56:17 GMT
|
44
|
-
recorded_with: VCR 3.0.3
|