toccatore 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -5
  3. data/lib/toccatore/base.rb +29 -1
  4. data/lib/toccatore/cli.rb +2 -0
  5. data/lib/toccatore/images/toccatore.png +0 -0
  6. data/lib/toccatore/version.rb +1 -1
  7. data/spec/base_spec.rb +32 -0
  8. data/spec/cli_spec.rb +7 -1
  9. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/datacite_related.yml +56 -0
  10. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/datacite_related_no_works.yml +56 -0
  11. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/orcid_update.yml +56 -0
  12. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/orcid_update_no_works.yml +56 -0
  13. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_fail.yml +215 -406
  14. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_DOI.yml +141 -186
  15. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_related_identifier.yml +74 -47
  16. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_succeed.yml +617 -792
  17. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_succeed_with_no_works.yml +56 -3
  18. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_fail.yml +59 -6
  19. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_DOI.yml +162 -101
  20. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_ORCID_ID.yml +369 -278
  21. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed.yml +295 -230
  22. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed_with_no_works.yml +56 -3
  23. data/spec/spec_helper.rb +1 -0
  24. data/toccatore.gemspec +1 -0
  25. metadata +21 -3
  26. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_delete.yml +0 -73
@@ -23,18 +23,18 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json;charset=UTF-8
25
25
  Date:
26
- - Sat, 11 Mar 2017 11:12:42 GMT
26
+ - Wed, 29 Mar 2017 13:22:48 GMT
27
27
  Server:
28
28
  - openresty/1.11.2.2
29
29
  Connection:
30
30
  - keep-alive
31
31
  body:
32
32
  encoding: UTF-8
33
- string: '{"responseHeader":{"status":0,"QTime":5},"response":{"numFound":1,"start":0,"docs":[]}}
33
+ string: '{"responseHeader":{"status":0,"QTime":2875},"response":{"numFound":1,"start":0,"docs":[]}}
34
34
 
35
35
  '
36
36
  http_version:
37
- recorded_at: Sat, 11 Mar 2017 11:12:42 GMT
37
+ recorded_at: Wed, 29 Mar 2017 13:22:48 GMT
38
38
  - request:
39
39
  method: get
40
40
  uri: https://search.datacite.org/api?fl=doi,resourceTypeGeneral,relatedIdentifier,nameIdentifier,minted,updated&fq=updated:%5B2013-01-01T00:00:00Z%20TO%202017-12-31T23:59:59Z%5D%20AND%20has_metadata:true%20AND%20is_active:true&q=doi:10.5438/6423&rows=1000&start=0&wt=json
@@ -58,7 +58,7 @@ http_interactions:
58
58
  Content-Type:
59
59
  - application/json;charset=UTF-8
60
60
  Date:
61
- - Sat, 11 Mar 2017 11:12:42 GMT
61
+ - Wed, 29 Mar 2017 13:22:49 GMT
62
62
  Server:
63
63
  - openresty/1.11.2.2
64
64
  Connection:
@@ -69,7 +69,7 @@ http_interactions:
69
69
 
70
70
  '
71
71
  http_version:
72
- recorded_at: Sat, 11 Mar 2017 11:12:42 GMT
72
+ recorded_at: Wed, 29 Mar 2017 13:22:49 GMT
73
73
  - request:
74
74
  method: post
75
75
  uri: https://profiles.test.datacite.org/api/claims
@@ -103,7 +103,7 @@ http_interactions:
103
103
  Content-Type:
104
104
  - application/json; charset=utf-8
105
105
  Date:
106
- - Sat, 11 Mar 2017 11:12:42 GMT
106
+ - Wed, 29 Mar 2017 13:22:50 GMT
107
107
  Server:
108
108
  - openresty/1.11.2.2
109
109
  Status:
@@ -117,9 +117,9 @@ http_interactions:
117
117
  X-Powered-By:
118
118
  - Phusion Passenger 5.1.2
119
119
  X-Request-Id:
120
- - fc5230a9-dcb4-45d0-934a-e3ccee3e8bdd
120
+ - 6da318db-df2f-4bd6-82cb-efcc0bd16264
121
121
  X-Runtime:
122
- - '0.011994'
122
+ - '0.027152'
123
123
  X-Xss-Protection:
124
124
  - 1; mode=block
125
125
  Content-Length:
@@ -130,7 +130,7 @@ http_interactions:
130
130
  encoding: UTF-8
131
131
  string: '{"data":{"id":"06bd74bb-bd4f-4e28-8a25-ace2209ce439","type":"claims","attributes":{"orcid":"0000-0001-5331-6592","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
132
132
  http_version:
133
- recorded_at: Sat, 11 Mar 2017 11:12:42 GMT
133
+ recorded_at: Wed, 29 Mar 2017 13:22:50 GMT
134
134
  - request:
135
135
  method: post
136
136
  uri: https://profiles.test.datacite.org/api/claims
@@ -164,7 +164,7 @@ http_interactions:
164
164
  Content-Type:
165
165
  - application/json; charset=utf-8
166
166
  Date:
167
- - Sat, 11 Mar 2017 11:12:42 GMT
167
+ - Wed, 29 Mar 2017 13:22:51 GMT
168
168
  Server:
169
169
  - openresty/1.11.2.2
170
170
  Status:
@@ -178,9 +178,9 @@ http_interactions:
178
178
  X-Powered-By:
179
179
  - Phusion Passenger 5.1.2
180
180
  X-Request-Id:
181
- - 2c5830ed-026d-473e-86bb-a8c8f9dbd472
181
+ - 5c582bc3-8234-467a-b625-2b536a1ff9b6
182
182
  X-Runtime:
183
- - '0.010297'
183
+ - '0.013914'
184
184
  X-Xss-Protection:
185
185
  - 1; mode=block
186
186
  Content-Length:
@@ -191,7 +191,7 @@ http_interactions:
191
191
  encoding: UTF-8
192
192
  string: '{"data":{"id":"7e971406-a81f-4de9-bd24-d43db36ed504","type":"claims","attributes":{"orcid":"0000-0002-4259-9774","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
193
193
  http_version:
194
- recorded_at: Sat, 11 Mar 2017 11:12:42 GMT
194
+ recorded_at: Wed, 29 Mar 2017 13:22:51 GMT
195
195
  - request:
196
196
  method: post
197
197
  uri: https://profiles.test.datacite.org/api/claims
@@ -225,7 +225,7 @@ http_interactions:
225
225
  Content-Type:
226
226
  - application/json; charset=utf-8
227
227
  Date:
228
- - Sat, 11 Mar 2017 11:12:42 GMT
228
+ - Wed, 29 Mar 2017 13:22:52 GMT
229
229
  Server:
230
230
  - openresty/1.11.2.2
231
231
  Status:
@@ -239,9 +239,9 @@ http_interactions:
239
239
  X-Powered-By:
240
240
  - Phusion Passenger 5.1.2
241
241
  X-Request-Id:
242
- - 5171b7a3-7546-410e-b6fe-e4dff7415a7c
242
+ - 2de80132-1821-4463-b06a-d00762027624
243
243
  X-Runtime:
244
- - '0.011255'
244
+ - '0.012487'
245
245
  X-Xss-Protection:
246
246
  - 1; mode=block
247
247
  Content-Length:
@@ -252,7 +252,7 @@ http_interactions:
252
252
  encoding: UTF-8
253
253
  string: '{"data":{"id":"8ebc15aa-f440-4cf4-a08d-bafc7afd9521","type":"claims","attributes":{"orcid":"0000-0002-8689-4935","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
254
254
  http_version:
255
- recorded_at: Sat, 11 Mar 2017 11:12:42 GMT
255
+ recorded_at: Wed, 29 Mar 2017 13:22:52 GMT
256
256
  - request:
257
257
  method: post
258
258
  uri: https://profiles.test.datacite.org/api/claims
@@ -286,7 +286,7 @@ http_interactions:
286
286
  Content-Type:
287
287
  - application/json; charset=utf-8
288
288
  Date:
289
- - Sat, 11 Mar 2017 11:12:43 GMT
289
+ - Wed, 29 Mar 2017 13:22:52 GMT
290
290
  Server:
291
291
  - openresty/1.11.2.2
292
292
  Status:
@@ -300,9 +300,9 @@ http_interactions:
300
300
  X-Powered-By:
301
301
  - Phusion Passenger 5.1.2
302
302
  X-Request-Id:
303
- - f7d45120-317e-4010-8dc7-7bfcaf1e25ef
303
+ - aff1849d-ec74-4aec-9b9f-0123a9583407
304
304
  X-Runtime:
305
- - '0.013368'
305
+ - '0.021038'
306
306
  X-Xss-Protection:
307
307
  - 1; mode=block
308
308
  Content-Length:
@@ -313,7 +313,7 @@ http_interactions:
313
313
  encoding: UTF-8
314
314
  string: '{"data":{"id":"7d626192-c800-49d1-be5c-293a783e8edf","type":"claims","attributes":{"orcid":"0000-0002-8099-7538","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
315
315
  http_version:
316
- recorded_at: Sat, 11 Mar 2017 11:12:43 GMT
316
+ recorded_at: Wed, 29 Mar 2017 13:22:52 GMT
317
317
  - request:
318
318
  method: post
319
319
  uri: https://profiles.test.datacite.org/api/claims
@@ -347,7 +347,7 @@ http_interactions:
347
347
  Content-Type:
348
348
  - application/json; charset=utf-8
349
349
  Date:
350
- - Sat, 11 Mar 2017 11:12:43 GMT
350
+ - Wed, 29 Mar 2017 13:22:53 GMT
351
351
  Server:
352
352
  - openresty/1.11.2.2
353
353
  Status:
@@ -361,9 +361,9 @@ http_interactions:
361
361
  X-Powered-By:
362
362
  - Phusion Passenger 5.1.2
363
363
  X-Request-Id:
364
- - e8c05c29-077d-4f59-9910-5e95816685c0
364
+ - b488d25d-1128-488b-a44e-84a7e904d1b3
365
365
  X-Runtime:
366
- - '0.010655'
366
+ - '0.013465'
367
367
  X-Xss-Protection:
368
368
  - 1; mode=block
369
369
  Content-Length:
@@ -374,7 +374,7 @@ http_interactions:
374
374
  encoding: UTF-8
375
375
  string: '{"data":{"id":"9bc65008-421a-4a7b-aed5-d99048a63e62","type":"claims","attributes":{"orcid":"0000-0002-9300-5278","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
376
376
  http_version:
377
- recorded_at: Sat, 11 Mar 2017 11:12:43 GMT
377
+ recorded_at: Wed, 29 Mar 2017 13:22:53 GMT
378
378
  - request:
379
379
  method: post
380
380
  uri: https://profiles.test.datacite.org/api/claims
@@ -408,7 +408,7 @@ http_interactions:
408
408
  Content-Type:
409
409
  - application/json; charset=utf-8
410
410
  Date:
411
- - Sat, 11 Mar 2017 11:12:43 GMT
411
+ - Wed, 29 Mar 2017 13:22:54 GMT
412
412
  Server:
413
413
  - openresty/1.11.2.2
414
414
  Status:
@@ -422,9 +422,9 @@ http_interactions:
422
422
  X-Powered-By:
423
423
  - Phusion Passenger 5.1.2
424
424
  X-Request-Id:
425
- - ac8873ce-c590-4436-a1a6-89120d43e7e9
425
+ - 579611e9-0745-41df-9da0-728cc807d89d
426
426
  X-Runtime:
427
- - '0.020313'
427
+ - '0.013723'
428
428
  X-Xss-Protection:
429
429
  - 1; mode=block
430
430
  Content-Length:
@@ -435,7 +435,7 @@ http_interactions:
435
435
  encoding: UTF-8
436
436
  string: '{"data":{"id":"46239857-8f62-44a4-913f-d68f52310b64","type":"claims","attributes":{"orcid":"0000-0002-6137-2348","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
437
437
  http_version:
438
- recorded_at: Sat, 11 Mar 2017 11:12:43 GMT
438
+ recorded_at: Wed, 29 Mar 2017 13:22:54 GMT
439
439
  - request:
440
440
  method: post
441
441
  uri: https://profiles.test.datacite.org/api/claims
@@ -469,7 +469,7 @@ http_interactions:
469
469
  Content-Type:
470
470
  - application/json; charset=utf-8
471
471
  Date:
472
- - Sat, 11 Mar 2017 11:12:43 GMT
472
+ - Wed, 29 Mar 2017 13:22:54 GMT
473
473
  Server:
474
474
  - openresty/1.11.2.2
475
475
  Status:
@@ -483,9 +483,9 @@ http_interactions:
483
483
  X-Powered-By:
484
484
  - Phusion Passenger 5.1.2
485
485
  X-Request-Id:
486
- - 37b7071f-efc3-4bf8-8c1a-5df3f2aa07dd
486
+ - 3f2ccefb-2478-42b9-b947-4a24cc9b277f
487
487
  X-Runtime:
488
- - '0.010581'
488
+ - '0.017348'
489
489
  X-Xss-Protection:
490
490
  - 1; mode=block
491
491
  Content-Length:
@@ -496,7 +496,7 @@ http_interactions:
496
496
  encoding: UTF-8
497
497
  string: '{"data":{"id":"f65845ea-809a-4ad5-b70b-f914456550f3","type":"claims","attributes":{"orcid":"0000-0003-2614-6676","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
498
498
  http_version:
499
- recorded_at: Sat, 11 Mar 2017 11:12:43 GMT
499
+ recorded_at: Wed, 29 Mar 2017 13:22:54 GMT
500
500
  - request:
501
501
  method: post
502
502
  uri: https://profiles.test.datacite.org/api/claims
@@ -530,7 +530,7 @@ http_interactions:
530
530
  Content-Type:
531
531
  - application/json; charset=utf-8
532
532
  Date:
533
- - Sat, 11 Mar 2017 11:12:44 GMT
533
+ - Wed, 29 Mar 2017 13:22:55 GMT
534
534
  Server:
535
535
  - openresty/1.11.2.2
536
536
  Status:
@@ -544,9 +544,9 @@ http_interactions:
544
544
  X-Powered-By:
545
545
  - Phusion Passenger 5.1.2
546
546
  X-Request-Id:
547
- - 36c2ed3c-8acc-45e9-8d92-f554ca326c84
547
+ - b0f99b81-0e33-4480-a289-bf9f84bad6f2
548
548
  X-Runtime:
549
- - '0.013316'
549
+ - '0.014854'
550
550
  X-Xss-Protection:
551
551
  - 1; mode=block
552
552
  Content-Length:
@@ -557,7 +557,7 @@ http_interactions:
557
557
  encoding: UTF-8
558
558
  string: '{"data":{"id":"991fe498-e46f-4636-996c-fb5340fc507d","type":"claims","attributes":{"orcid":"0000-0002-4695-7874","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
559
559
  http_version:
560
- recorded_at: Sat, 11 Mar 2017 11:12:44 GMT
560
+ recorded_at: Wed, 29 Mar 2017 13:22:55 GMT
561
561
  - request:
562
562
  method: post
563
563
  uri: https://profiles.test.datacite.org/api/claims
@@ -591,7 +591,7 @@ http_interactions:
591
591
  Content-Type:
592
592
  - application/json; charset=utf-8
593
593
  Date:
594
- - Sat, 11 Mar 2017 11:12:44 GMT
594
+ - Wed, 29 Mar 2017 13:22:55 GMT
595
595
  Server:
596
596
  - openresty/1.11.2.2
597
597
  Status:
@@ -605,18 +605,20 @@ http_interactions:
605
605
  X-Powered-By:
606
606
  - Phusion Passenger 5.1.2
607
607
  X-Request-Id:
608
- - 975966c1-e2b9-4249-a537-4bd73d664559
608
+ - ce0ecd4d-22c8-4d47-8830-dae4989c717e
609
609
  X-Runtime:
610
- - '0.011638'
610
+ - '0.012510'
611
611
  X-Xss-Protection:
612
612
  - 1; mode=block
613
+ Content-Length:
614
+ - '223'
613
615
  Connection:
614
616
  - keep-alive
615
617
  body:
616
618
  encoding: UTF-8
617
619
  string: '{"data":{"id":"a9849591-d3a3-4d1c-b073-325726b86507","type":"claims","attributes":{"orcid":"0000-0003-0902-4386","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
618
620
  http_version:
619
- recorded_at: Sat, 11 Mar 2017 11:12:44 GMT
621
+ recorded_at: Wed, 29 Mar 2017 13:22:55 GMT
620
622
  - request:
621
623
  method: post
622
624
  uri: https://profiles.test.datacite.org/api/claims
@@ -650,7 +652,7 @@ http_interactions:
650
652
  Content-Type:
651
653
  - application/json; charset=utf-8
652
654
  Date:
653
- - Sat, 11 Mar 2017 11:12:44 GMT
655
+ - Wed, 29 Mar 2017 13:22:56 GMT
654
656
  Server:
655
657
  - openresty/1.11.2.2
656
658
  Status:
@@ -664,18 +666,20 @@ http_interactions:
664
666
  X-Powered-By:
665
667
  - Phusion Passenger 5.1.2
666
668
  X-Request-Id:
667
- - 6443e618-bee7-447f-86cc-e97114dc2843
669
+ - d24ba8db-b75c-4d45-bcef-d3bbcc2c8c32
668
670
  X-Runtime:
669
- - '0.010605'
671
+ - '0.012574'
670
672
  X-Xss-Protection:
671
673
  - 1; mode=block
674
+ Content-Length:
675
+ - '223'
672
676
  Connection:
673
677
  - keep-alive
674
678
  body:
675
679
  encoding: UTF-8
676
680
  string: '{"data":{"id":"4b6d6e07-d5b2-4462-bda9-c182f2e5ff2b","type":"claims","attributes":{"orcid":"0000-0003-3096-6829","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
677
681
  http_version:
678
- recorded_at: Sat, 11 Mar 2017 11:12:44 GMT
682
+ recorded_at: Wed, 29 Mar 2017 13:22:56 GMT
679
683
  - request:
680
684
  method: post
681
685
  uri: https://profiles.test.datacite.org/api/claims
@@ -709,7 +713,7 @@ http_interactions:
709
713
  Content-Type:
710
714
  - application/json; charset=utf-8
711
715
  Date:
712
- - Sat, 11 Mar 2017 11:12:44 GMT
716
+ - Wed, 29 Mar 2017 13:22:57 GMT
713
717
  Server:
714
718
  - openresty/1.11.2.2
715
719
  Status:
@@ -723,9 +727,9 @@ http_interactions:
723
727
  X-Powered-By:
724
728
  - Phusion Passenger 5.1.2
725
729
  X-Request-Id:
726
- - 6bd020c4-66ba-409d-91aa-7ec6952604cd
730
+ - 42e39211-f987-453d-85bd-e1d4eadb45e8
727
731
  X-Runtime:
728
- - '0.011461'
732
+ - '0.023617'
729
733
  X-Xss-Protection:
730
734
  - 1; mode=block
731
735
  Content-Length:
@@ -736,7 +740,7 @@ http_interactions:
736
740
  encoding: UTF-8
737
741
  string: '{"data":{"id":"150f6ef2-7a9b-4b56-a587-2ff451055237","type":"claims","attributes":{"orcid":"0000-0003-3412-7192","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
738
742
  http_version:
739
- recorded_at: Sat, 11 Mar 2017 11:12:44 GMT
743
+ recorded_at: Wed, 29 Mar 2017 13:22:57 GMT
740
744
  - request:
741
745
  method: post
742
746
  uri: https://profiles.test.datacite.org/api/claims
@@ -770,7 +774,7 @@ http_interactions:
770
774
  Content-Type:
771
775
  - application/json; charset=utf-8
772
776
  Date:
773
- - Sat, 11 Mar 2017 11:12:45 GMT
777
+ - Wed, 29 Mar 2017 13:22:57 GMT
774
778
  Server:
775
779
  - openresty/1.11.2.2
776
780
  Status:
@@ -784,9 +788,9 @@ http_interactions:
784
788
  X-Powered-By:
785
789
  - Phusion Passenger 5.1.2
786
790
  X-Request-Id:
787
- - d61875ad-0ff2-48c3-9dfa-b3a70a789838
791
+ - 5864c0cd-5e6f-491e-b2a8-0657c0ee2de6
788
792
  X-Runtime:
789
- - '0.005403'
793
+ - '0.005820'
790
794
  X-Xss-Protection:
791
795
  - 1; mode=block
792
796
  Content-Length:
@@ -797,7 +801,7 @@ http_interactions:
797
801
  encoding: UTF-8
798
802
  string: '{"data":{"id":"4e07aae9-2094-4594-96b0-c365c89e2967","type":"claims","attributes":{"orcid":"0000-0003-1419-2405","doi":"10.5438/6423","source-id":"orcid_update","state":"done","claim-action":"create","claimed-at":"2016-09-26T07:57:36Z"}}}'
799
803
  http_version:
800
- recorded_at: Sat, 11 Mar 2017 11:12:45 GMT
804
+ recorded_at: Wed, 29 Mar 2017 13:22:57 GMT
801
805
  - request:
802
806
  method: post
803
807
  uri: https://profiles.test.datacite.org/api/claims
@@ -831,7 +835,7 @@ http_interactions:
831
835
  Content-Type:
832
836
  - application/json; charset=utf-8
833
837
  Date:
834
- - Sat, 11 Mar 2017 11:12:45 GMT
838
+ - Wed, 29 Mar 2017 13:22:58 GMT
835
839
  Server:
836
840
  - openresty/1.11.2.2
837
841
  Status:
@@ -845,9 +849,9 @@ http_interactions:
845
849
  X-Powered-By:
846
850
  - Phusion Passenger 5.1.2
847
851
  X-Request-Id:
848
- - ffde9519-6257-49f5-a003-abfb410c50b5
852
+ - cfd1929b-2c35-4705-9956-2f4f616d1294
849
853
  X-Runtime:
850
- - '0.011847'
854
+ - '0.013906'
851
855
  X-Xss-Protection:
852
856
  - 1; mode=block
853
857
  Content-Length:
@@ -858,7 +862,7 @@ http_interactions:
858
862
  encoding: UTF-8
859
863
  string: '{"data":{"id":"9cb248e0-952e-4826-901a-2e71b1ce6bad","type":"claims","attributes":{"orcid":"0000-0003-3484-6875","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
860
864
  http_version:
861
- recorded_at: Sat, 11 Mar 2017 11:12:45 GMT
865
+ recorded_at: Wed, 29 Mar 2017 13:22:58 GMT
862
866
  - request:
863
867
  method: post
864
868
  uri: https://profiles.test.datacite.org/api/claims
@@ -892,7 +896,7 @@ http_interactions:
892
896
  Content-Type:
893
897
  - application/json; charset=utf-8
894
898
  Date:
895
- - Sat, 11 Mar 2017 11:12:45 GMT
899
+ - Wed, 29 Mar 2017 13:22:58 GMT
896
900
  Server:
897
901
  - openresty/1.11.2.2
898
902
  Status:
@@ -906,9 +910,9 @@ http_interactions:
906
910
  X-Powered-By:
907
911
  - Phusion Passenger 5.1.2
908
912
  X-Request-Id:
909
- - 76adcf22-d128-484c-a423-fd7fe604573d
913
+ - d93c5f0b-6371-4d8f-8f69-98195e41313b
910
914
  X-Runtime:
911
- - '0.012009'
915
+ - '0.011794'
912
916
  X-Xss-Protection:
913
917
  - 1; mode=block
914
918
  Content-Length:
@@ -919,7 +923,7 @@ http_interactions:
919
923
  encoding: UTF-8
920
924
  string: '{"data":{"id":"7d6f7282-1cce-47fd-aada-0627953f8e55","type":"claims","attributes":{"orcid":"0000-0003-0183-6910","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
921
925
  http_version:
922
- recorded_at: Sat, 11 Mar 2017 11:12:45 GMT
926
+ recorded_at: Wed, 29 Mar 2017 13:22:58 GMT
923
927
  - request:
924
928
  method: post
925
929
  uri: https://profiles.test.datacite.org/api/claims
@@ -953,7 +957,7 @@ http_interactions:
953
957
  Content-Type:
954
958
  - application/json; charset=utf-8
955
959
  Date:
956
- - Sat, 11 Mar 2017 11:12:45 GMT
960
+ - Wed, 29 Mar 2017 13:22:59 GMT
957
961
  Server:
958
962
  - openresty/1.11.2.2
959
963
  Status:
@@ -967,9 +971,9 @@ http_interactions:
967
971
  X-Powered-By:
968
972
  - Phusion Passenger 5.1.2
969
973
  X-Request-Id:
970
- - 028071b2-30ed-4d55-b96c-00363f50d5f9
974
+ - b2160ae1-beb1-4188-a765-c891ad10ed6d
971
975
  X-Runtime:
972
- - '0.010977'
976
+ - '0.011461'
973
977
  X-Xss-Protection:
974
978
  - 1; mode=block
975
979
  Content-Length:
@@ -980,7 +984,7 @@ http_interactions:
980
984
  encoding: UTF-8
981
985
  string: '{"data":{"id":"a1f7c9b8-52d1-41d5-b4c5-c0dc495a9947","type":"claims","attributes":{"orcid":"0000-0001-5109-3700","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
982
986
  http_version:
983
- recorded_at: Sat, 11 Mar 2017 11:12:45 GMT
987
+ recorded_at: Wed, 29 Mar 2017 13:22:59 GMT
984
988
  - request:
985
989
  method: post
986
990
  uri: https://profiles.test.datacite.org/api/claims
@@ -1014,7 +1018,7 @@ http_interactions:
1014
1018
  Content-Type:
1015
1019
  - application/json; charset=utf-8
1016
1020
  Date:
1017
- - Sat, 11 Mar 2017 11:12:46 GMT
1021
+ - Wed, 29 Mar 2017 13:22:59 GMT
1018
1022
  Server:
1019
1023
  - openresty/1.11.2.2
1020
1024
  Status:
@@ -1028,9 +1032,9 @@ http_interactions:
1028
1032
  X-Powered-By:
1029
1033
  - Phusion Passenger 5.1.2
1030
1034
  X-Request-Id:
1031
- - 4b366904-67ab-4934-bec7-fdc59de9739d
1035
+ - de7478a0-8527-4109-9dc6-e5ada01ba24b
1032
1036
  X-Runtime:
1033
- - '0.012189'
1037
+ - '0.012479'
1034
1038
  X-Xss-Protection:
1035
1039
  - 1; mode=block
1036
1040
  Content-Length:
@@ -1041,7 +1045,7 @@ http_interactions:
1041
1045
  encoding: UTF-8
1042
1046
  string: '{"data":{"id":"1eb1e9cd-c31a-4135-8ba6-4a0e359118d1","type":"claims","attributes":{"orcid":"0000-0001-8771-7239","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
1043
1047
  http_version:
1044
- recorded_at: Sat, 11 Mar 2017 11:12:46 GMT
1048
+ recorded_at: Wed, 29 Mar 2017 13:22:59 GMT
1045
1049
  - request:
1046
1050
  method: post
1047
1051
  uri: https://profiles.test.datacite.org/api/claims
@@ -1075,7 +1079,7 @@ http_interactions:
1075
1079
  Content-Type:
1076
1080
  - application/json; charset=utf-8
1077
1081
  Date:
1078
- - Sat, 11 Mar 2017 11:12:46 GMT
1082
+ - Wed, 29 Mar 2017 13:23:00 GMT
1079
1083
  Server:
1080
1084
  - openresty/1.11.2.2
1081
1085
  Status:
@@ -1089,9 +1093,9 @@ http_interactions:
1089
1093
  X-Powered-By:
1090
1094
  - Phusion Passenger 5.1.2
1091
1095
  X-Request-Id:
1092
- - 26ff0583-bbc0-435e-8c32-0a1a4ad324d0
1096
+ - 033f02fa-67e9-4dfc-8240-d080042f0bc6
1093
1097
  X-Runtime:
1094
- - '0.012001'
1098
+ - '0.013192'
1095
1099
  X-Xss-Protection:
1096
1100
  - 1; mode=block
1097
1101
  Content-Length:
@@ -1102,7 +1106,7 @@ http_interactions:
1102
1106
  encoding: UTF-8
1103
1107
  string: '{"data":{"id":"dc06bb3d-0f98-415f-8665-bdc8ad8a2b2c","type":"claims","attributes":{"orcid":"0000-0001-6843-7960","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
1104
1108
  http_version:
1105
- recorded_at: Sat, 11 Mar 2017 11:12:46 GMT
1109
+ recorded_at: Wed, 29 Mar 2017 13:23:00 GMT
1106
1110
  - request:
1107
1111
  method: post
1108
1112
  uri: https://profiles.test.datacite.org/api/claims
@@ -1136,7 +1140,7 @@ http_interactions:
1136
1140
  Content-Type:
1137
1141
  - application/json; charset=utf-8
1138
1142
  Date:
1139
- - Sat, 11 Mar 2017 11:12:46 GMT
1143
+ - Wed, 29 Mar 2017 13:23:01 GMT
1140
1144
  Server:
1141
1145
  - openresty/1.11.2.2
1142
1146
  Status:
@@ -1150,9 +1154,9 @@ http_interactions:
1150
1154
  X-Powered-By:
1151
1155
  - Phusion Passenger 5.1.2
1152
1156
  X-Request-Id:
1153
- - 72bab955-3fe9-4fb7-9d9a-ca9b0f3455f9
1157
+ - 707d2f40-b9a0-48d7-a10a-06314a658557
1154
1158
  X-Runtime:
1155
- - '0.011116'
1159
+ - '0.013663'
1156
1160
  X-Xss-Protection:
1157
1161
  - 1; mode=block
1158
1162
  Content-Length:
@@ -1163,7 +1167,7 @@ http_interactions:
1163
1167
  encoding: UTF-8
1164
1168
  string: '{"data":{"id":"276cb9da-8f56-4a20-8199-b5998f795257","type":"claims","attributes":{"orcid":"0000-0001-9623-2225","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
1165
1169
  http_version:
1166
- recorded_at: Sat, 11 Mar 2017 11:12:46 GMT
1170
+ recorded_at: Wed, 29 Mar 2017 13:23:01 GMT
1167
1171
  - request:
1168
1172
  method: post
1169
1173
  uri: https://profiles.test.datacite.org/api/claims
@@ -1197,7 +1201,7 @@ http_interactions:
1197
1201
  Content-Type:
1198
1202
  - application/json; charset=utf-8
1199
1203
  Date:
1200
- - Sat, 11 Mar 2017 11:12:46 GMT
1204
+ - Wed, 29 Mar 2017 13:23:01 GMT
1201
1205
  Server:
1202
1206
  - openresty/1.11.2.2
1203
1207
  Status:
@@ -1211,18 +1215,20 @@ http_interactions:
1211
1215
  X-Powered-By:
1212
1216
  - Phusion Passenger 5.1.2
1213
1217
  X-Request-Id:
1214
- - 9b9deb41-4fef-42bc-ae70-6ef927b6d8b4
1218
+ - 4ed9b435-30d5-4657-b397-52307d621a57
1215
1219
  X-Runtime:
1216
- - '0.011201'
1220
+ - '0.013359'
1217
1221
  X-Xss-Protection:
1218
1222
  - 1; mode=block
1223
+ Content-Length:
1224
+ - '223'
1219
1225
  Connection:
1220
1226
  - keep-alive
1221
1227
  body:
1222
1228
  encoding: UTF-8
1223
1229
  string: '{"data":{"id":"4d6dfee8-73fc-4fdc-b9a3-5cf9a2f025fe","type":"claims","attributes":{"orcid":"0000-0002-1611-6935","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
1224
1230
  http_version:
1225
- recorded_at: Sat, 11 Mar 2017 11:12:46 GMT
1231
+ recorded_at: Wed, 29 Mar 2017 13:23:01 GMT
1226
1232
  - request:
1227
1233
  method: post
1228
1234
  uri: https://profiles.test.datacite.org/api/claims
@@ -1256,7 +1262,7 @@ http_interactions:
1256
1262
  Content-Type:
1257
1263
  - application/json; charset=utf-8
1258
1264
  Date:
1259
- - Sat, 11 Mar 2017 11:12:46 GMT
1265
+ - Wed, 29 Mar 2017 13:23:02 GMT
1260
1266
  Server:
1261
1267
  - openresty/1.11.2.2
1262
1268
  Status:
@@ -1270,9 +1276,9 @@ http_interactions:
1270
1276
  X-Powered-By:
1271
1277
  - Phusion Passenger 5.1.2
1272
1278
  X-Request-Id:
1273
- - 1ae35f79-b968-4588-a27a-ab31082c6bc5
1279
+ - fdd75471-52ce-4001-b60f-cc681165ef46
1274
1280
  X-Runtime:
1275
- - '0.010366'
1281
+ - '0.027540'
1276
1282
  X-Xss-Protection:
1277
1283
  - 1; mode=block
1278
1284
  Content-Length:
@@ -1283,7 +1289,7 @@ http_interactions:
1283
1289
  encoding: UTF-8
1284
1290
  string: '{"data":{"id":"95a8d571-92b2-4283-b813-024bd7c35d56","type":"claims","attributes":{"orcid":"0000-0003-0762-2235","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
1285
1291
  http_version:
1286
- recorded_at: Sat, 11 Mar 2017 11:12:47 GMT
1292
+ recorded_at: Wed, 29 Mar 2017 13:23:02 GMT
1287
1293
  - request:
1288
1294
  method: post
1289
1295
  uri: https://profiles.test.datacite.org/api/claims
@@ -1317,7 +1323,7 @@ http_interactions:
1317
1323
  Content-Type:
1318
1324
  - application/json; charset=utf-8
1319
1325
  Date:
1320
- - Sat, 11 Mar 2017 11:12:47 GMT
1326
+ - Wed, 29 Mar 2017 13:23:02 GMT
1321
1327
  Server:
1322
1328
  - openresty/1.11.2.2
1323
1329
  Status:
@@ -1331,18 +1337,20 @@ http_interactions:
1331
1337
  X-Powered-By:
1332
1338
  - Phusion Passenger 5.1.2
1333
1339
  X-Request-Id:
1334
- - d0ade592-2ebe-426d-bc76-52777d0b8e6e
1340
+ - b74f239e-2874-4060-9e80-9c4cfd73dc4e
1335
1341
  X-Runtime:
1336
- - '0.011192'
1342
+ - '0.011361'
1337
1343
  X-Xss-Protection:
1338
1344
  - 1; mode=block
1345
+ Content-Length:
1346
+ - '223'
1339
1347
  Connection:
1340
1348
  - keep-alive
1341
1349
  body:
1342
1350
  encoding: UTF-8
1343
1351
  string: '{"data":{"id":"96d55578-b067-4971-90ef-8ef9f829dc17","type":"claims","attributes":{"orcid":"0000-0002-9829-091X","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
1344
1352
  http_version:
1345
- recorded_at: Sat, 11 Mar 2017 11:12:47 GMT
1353
+ recorded_at: Wed, 29 Mar 2017 13:23:02 GMT
1346
1354
  - request:
1347
1355
  method: post
1348
1356
  uri: https://profiles.test.datacite.org/api/claims
@@ -1376,7 +1384,7 @@ http_interactions:
1376
1384
  Content-Type:
1377
1385
  - application/json; charset=utf-8
1378
1386
  Date:
1379
- - Sat, 11 Mar 2017 11:12:47 GMT
1387
+ - Wed, 29 Mar 2017 13:23:03 GMT
1380
1388
  Server:
1381
1389
  - openresty/1.11.2.2
1382
1390
  Status:
@@ -1390,9 +1398,9 @@ http_interactions:
1390
1398
  X-Powered-By:
1391
1399
  - Phusion Passenger 5.1.2
1392
1400
  X-Request-Id:
1393
- - 09476461-b084-4fa6-a213-ed1d5f8d9136
1401
+ - 83a03230-397a-4aa5-9d96-cbe0fd4479c3
1394
1402
  X-Runtime:
1395
- - '0.009840'
1403
+ - '0.013300'
1396
1404
  X-Xss-Protection:
1397
1405
  - 1; mode=block
1398
1406
  Content-Length:
@@ -1403,7 +1411,7 @@ http_interactions:
1403
1411
  encoding: UTF-8
1404
1412
  string: '{"data":{"id":"9adac474-3c1a-41b1-b387-cc4f4dc09386","type":"claims","attributes":{"orcid":"0000-0001-5952-7630","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
1405
1413
  http_version:
1406
- recorded_at: Sat, 11 Mar 2017 11:12:47 GMT
1414
+ recorded_at: Wed, 29 Mar 2017 13:23:03 GMT
1407
1415
  - request:
1408
1416
  method: post
1409
1417
  uri: https://profiles.test.datacite.org/api/claims
@@ -1437,7 +1445,7 @@ http_interactions:
1437
1445
  Content-Type:
1438
1446
  - application/json; charset=utf-8
1439
1447
  Date:
1440
- - Sat, 11 Mar 2017 11:12:47 GMT
1448
+ - Wed, 29 Mar 2017 13:23:03 GMT
1441
1449
  Server:
1442
1450
  - openresty/1.11.2.2
1443
1451
  Status:
@@ -1451,9 +1459,9 @@ http_interactions:
1451
1459
  X-Powered-By:
1452
1460
  - Phusion Passenger 5.1.2
1453
1461
  X-Request-Id:
1454
- - f3c88b73-8a63-4a57-808f-018bbf86fabc
1462
+ - f69e60ad-ea3f-4287-8f63-fa8983783ab9
1455
1463
  X-Runtime:
1456
- - '0.010804'
1464
+ - '0.011246'
1457
1465
  X-Xss-Protection:
1458
1466
  - 1; mode=block
1459
1467
  Content-Length:
@@ -1464,7 +1472,7 @@ http_interactions:
1464
1472
  encoding: UTF-8
1465
1473
  string: '{"data":{"id":"b9f20bf7-e252-4422-8771-ffbfb3f6a0db","type":"claims","attributes":{"orcid":"0000-0001-5492-3212","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
1466
1474
  http_version:
1467
- recorded_at: Sat, 11 Mar 2017 11:12:47 GMT
1475
+ recorded_at: Wed, 29 Mar 2017 13:23:04 GMT
1468
1476
  - request:
1469
1477
  method: post
1470
1478
  uri: https://profiles.test.datacite.org/api/claims
@@ -1498,7 +1506,7 @@ http_interactions:
1498
1506
  Content-Type:
1499
1507
  - application/json; charset=utf-8
1500
1508
  Date:
1501
- - Sat, 11 Mar 2017 11:12:47 GMT
1509
+ - Wed, 29 Mar 2017 13:23:04 GMT
1502
1510
  Server:
1503
1511
  - openresty/1.11.2.2
1504
1512
  Status:
@@ -1512,9 +1520,9 @@ http_interactions:
1512
1520
  X-Powered-By:
1513
1521
  - Phusion Passenger 5.1.2
1514
1522
  X-Request-Id:
1515
- - cbff5e88-b652-43c3-8391-33dbc27600d9
1523
+ - 96765581-63e8-482f-b690-bb1d08590377
1516
1524
  X-Runtime:
1517
- - '0.011259'
1525
+ - '0.022793'
1518
1526
  X-Xss-Protection:
1519
1527
  - 1; mode=block
1520
1528
  Content-Length:
@@ -1525,5 +1533,58 @@ http_interactions:
1525
1533
  encoding: UTF-8
1526
1534
  string: '{"data":{"id":"019981cc-ee7e-407d-bb4c-3c3a45e05e8b","type":"claims","attributes":{"orcid":"0000-0002-6133-2581","doi":"10.5438/6423","source-id":"orcid_update","state":"waiting","claim-action":"create","claimed-at":null}}}'
1527
1535
  http_version:
1528
- recorded_at: Sat, 11 Mar 2017 11:12:47 GMT
1536
+ recorded_at: Wed, 29 Mar 2017 13:23:04 GMT
1537
+ - request:
1538
+ method: post
1539
+ uri: "<SLACK_WEBHOOK_URL>"
1540
+ body:
1541
+ encoding: US-ASCII
1542
+ string: payload=%7B%22username%22%3A%22Event+Data+Agent%22%2C%22icon_url%22%3A%22https%3A%2F%2Fraw.githubusercontent.com%2Fdatacite%2Ftoccatore%2Fmaster%2Flib%2Ftoccatore%2Fimages%2Ftoccatore.png%22%2C%22attachments%22%3A%5B%7B%22title%22%3A%22Report+for+orcid_update%22%2C%22text%22%3A%221+works+processed+for+date+range+2013-01-01+-+2017-12-31.%22%2C%22color%22%3A%22good%22%7D%5D%7D
1543
+ headers:
1544
+ Accept-Encoding:
1545
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1546
+ Accept:
1547
+ - "*/*"
1548
+ User-Agent:
1549
+ - Ruby
1550
+ Content-Type:
1551
+ - application/x-www-form-urlencoded
1552
+ response:
1553
+ status:
1554
+ code: 200
1555
+ message: OK
1556
+ headers:
1557
+ Content-Type:
1558
+ - text/html
1559
+ Content-Length:
1560
+ - '22'
1561
+ Connection:
1562
+ - keep-alive
1563
+ Access-Control-Allow-Origin:
1564
+ - "*"
1565
+ Date:
1566
+ - Wed, 29 Mar 2017 13:23:05 GMT
1567
+ Referrer-Policy:
1568
+ - no-referrer
1569
+ Server:
1570
+ - Apache
1571
+ Strict-Transport-Security:
1572
+ - max-age=31536000; includeSubDomains; preload
1573
+ Vary:
1574
+ - Accept-Encoding
1575
+ X-Frame-Options:
1576
+ - SAMEORIGIN
1577
+ X-Slack-Backend:
1578
+ - h
1579
+ X-Cache:
1580
+ - Miss from cloudfront
1581
+ Via:
1582
+ - 1.1 b8b7a48d4425abc8f20c14956fccf2e5.cloudfront.net (CloudFront)
1583
+ X-Amz-Cf-Id:
1584
+ - qlVIIy1-A8luM5boCaAnLV-C5drQO8qG1s7pW0r3PVfuSpVZ747OuA==
1585
+ body:
1586
+ encoding: ASCII-8BIT
1587
+ string: ok
1588
+ http_version:
1589
+ recorded_at: Wed, 29 Mar 2017 13:23:05 GMT
1529
1590
  recorded_with: VCR 3.0.3