toccatore 0.3.9 → 0.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile.lock +76 -54
  3. data/README.md +1 -1
  4. data/lib/toccatore/base.rb +15 -4
  5. data/lib/toccatore/cli.rb +12 -0
  6. data/lib/toccatore/datacite_related.rb +18 -3
  7. data/lib/toccatore/orcid_update.rb +6 -2
  8. data/lib/toccatore/queue.rb +56 -0
  9. data/lib/toccatore/usage_update.rb +183 -0
  10. data/lib/toccatore/version.rb +1 -1
  11. data/lib/toccatore.rb +2 -0
  12. data/spec/base_spec.rb +4 -4
  13. data/spec/cli_spec.rb +36 -3
  14. data/spec/datacite_related_spec.rb +10 -10
  15. data/spec/factories/default.rb +22 -0
  16. data/spec/fixtures/event_data_resp_1 +2 -0
  17. data/spec/fixtures/event_data_resp_2 +4 -0
  18. data/spec/fixtures/events_empty.json +33 -0
  19. data/spec/fixtures/usage_event.json +1 -0
  20. data/spec/fixtures/usage_event_fail.json +17 -0
  21. data/spec/fixtures/usage_events.json +63 -0
  22. data/spec/fixtures/usage_update.json +101 -0
  23. data/spec/fixtures/usage_update_1.json +36738 -0
  24. data/spec/fixtures/usage_update_2.json +171 -0
  25. data/spec/fixtures/usage_update_3.json +176 -0
  26. data/spec/fixtures/usage_update_4.json +101 -0
  27. data/spec/fixtures/usage_update_nil.json +6 -0
  28. data/spec/fixtures/vcr_cassettes/Toccatore_Base/get_doi_ra/crossref.yml +21 -45
  29. data/spec/fixtures/vcr_cassettes/Toccatore_Base/get_doi_ra/datacite.yml +23 -47
  30. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/datacite_related.yml +14 -12
  31. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/datacite_related_no_works.yml +15 -13
  32. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/orcid_update.yml +14 -12
  33. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/orcid_update_no_works.yml +15 -13
  34. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_fail.yml +345 -852
  35. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_DOI.yml +327 -409
  36. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_related_identifier.yml +140 -117
  37. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_succeed.yml +1267 -2068
  38. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_succeed_with_no_works.yml +31 -25
  39. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_fail.yml +47 -39
  40. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_DOI.yml +673 -855
  41. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_ORCID_ID.yml +1885 -2419
  42. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed.yml +1555 -1991
  43. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed_with_no_works.yml +31 -27
  44. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/no_reports_in_the_queue/should_succeed_with_no_works.yml +196 -0
  45. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_allow_queries_by_DOI_of_the_Datacite_Metadata_Search_API.yml +16 -12
  46. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_allow_queries_by_related_identifier_of_the_Datacite_Metadata_Search_API.yml +17 -13
  47. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_report_if_there_are_no_works_returned_by_the_Datacite_Metadata_Search_API.yml +16 -12
  48. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +16 -14
  49. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_total/with_no_works.yml +15 -11
  50. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_total/with_works.yml +16 -12
  51. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/parse_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +437 -869
  52. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/push_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +1240 -1662
  53. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/push_data/should_work_with_DataCite_Event_Data.yml +4026 -6556
  54. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_allow_queries_by_DOI_of_the_Datacite_Metadata_Search_API.yml +15 -13
  55. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_allow_queries_by_ORCID_ID_of_the_Datacite_Metadata_Search_API.yml +15 -11
  56. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_report_if_there_are_no_works_returned_by_the_Datacite_Metadata_Search_API.yml +15 -11
  57. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +15 -13
  58. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_total/with_no_works.yml +15 -13
  59. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_total/with_works.yml +15 -13
  60. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/push_data/should_delete_claims.yml +25 -32
  61. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/push_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +1347 -1791
  62. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/queue_jobs/should_report_if_there_are_no_works_returned_by_the_Datacite_Metadata_Search_API.yml +14 -10
  63. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/queue_jobs/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +29 -25
  64. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_are_messages/should_return_the_data_for_one_message.yml +73 -0
  65. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_is_ONE_message/should_return_the_data_for_one_message.yml +73 -0
  66. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_no_meessage_when_the_queue_is_empty.yml +95 -0
  67. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_one_message_when_there_are_multiple_messages.yml +95 -0
  68. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_total/when_is_working_with_AWS.yml +187 -0
  69. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_fail_if_format_of_the_event_is_empty.yml +169 -0
  70. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_fail_if_format_of_the_event_is_wrong.yml +667 -0
  71. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_work_with_a_single_item.yml +169 -0
  72. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/queue_url/should_return_always_correct_queue_url.yml +49 -0
  73. data/spec/orcid_update_spec.rb +1 -1
  74. data/spec/queue_spec.rb +47 -0
  75. data/spec/spec_helper.rb +23 -1
  76. data/spec/usage_update_spec.rb +146 -0
  77. data/toccatore.gemspec +11 -5
  78. metadata +109 -26
@@ -0,0 +1,171 @@
1
+ {
2
+ "data":{
3
+ "report": {
4
+ "id": "2018-3-Dash",
5
+ "report-header": {
6
+ "report-name": "dataset report",
7
+ "report-id": "DSR",
8
+ "release": "rd1",
9
+ "created": "2128-04-09",
10
+ "created-by": "dash",
11
+ "report-attributes": [],
12
+ "report-filters": [
13
+ {
14
+ "name": "begin-date",
15
+ "value": "2018-03-01"
16
+ },
17
+ {
18
+ "name": "end-date",
19
+ "value": "2018-03-31"
20
+ }
21
+ ],
22
+ "exceptions": [
23
+ {
24
+ "code": 3040,
25
+ "severity": "warning",
26
+ "message": "partial data returned",
27
+ "help-url": "string",
28
+ "data": "usage data has not been processed for the entire reporting period"
29
+ }
30
+ ]
31
+ },
32
+ "report-datasets": [
33
+ {
34
+ "dataset-title": "chemical shift-based methods in nmr structure determination",
35
+ "dataset-id": [
36
+ {
37
+ "type": "doi",
38
+ "value": "10.7291/d1q94r"
39
+ }
40
+ ],
41
+ "dataset-contributors": [
42
+ {
43
+ "type": "name",
44
+ "value": "santrupti nerli"
45
+ },
46
+ {
47
+ "type": "name",
48
+ "value": "andrew c. mcshan"
49
+ },
50
+ {
51
+ "type": "name",
52
+ "value": "nikolaos g. sgourakis"
53
+ }
54
+ ],
55
+ "dataset-dates": [
56
+ {
57
+ "type": "pub-date",
58
+ "value": "2018-05-01"
59
+ }
60
+ ],
61
+ "platform": "dash",
62
+ "publisher": "uc santa cruz",
63
+ "publisher-id": [
64
+ {
65
+ "type": "orcid",
66
+ "value": "2059-4343-4343-4343"
67
+ }
68
+ ],
69
+ "data-type": "dataset",
70
+ "yop": "2018",
71
+ "uri": "https://dash.library.ucsc.edu/stash/dataset/doi:10.7291/d1q94r",
72
+ "performance": [
73
+ {
74
+ "period": {
75
+ "begin-date": "2018-03-01",
76
+ "end-date": "2018-03-31"
77
+ },
78
+ "instance": [
79
+ {
80
+ "access-method": "regular",
81
+ "metric-type": "total-dataset-investigations",
82
+ "count": 3
83
+ },
84
+ {
85
+ "access-method": "regular",
86
+ "metric-type": "unique-dataset-investigations",
87
+ "count": 3
88
+ }
89
+ ]
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "uri": "https://dash.ucmerced.edu/stash/dataset/doi:10.6071/Z7WC73",
95
+ "yop": 2013,
96
+ "platform": "Dash",
97
+ "data-type": "Dataset",
98
+ "publisher": "UC Merced",
99
+ "dataset-id": [
100
+ {
101
+ "type": "DOI",
102
+ "value": "10.6071/Z7WC73"
103
+ }
104
+ ],
105
+ "performance": [
106
+ {
107
+ "period": {
108
+ "end-date": "2018-03-31",
109
+ "begin-date": "2018-03-01"
110
+ },
111
+ "instance": [
112
+ {
113
+ "count": 254,
114
+ "metric-type": "Total-Dataset-Requests",
115
+ "access-method": "Machine"
116
+ },
117
+ {
118
+ "count": 208,
119
+ "metric-type": "Unique-Dataset-Requests",
120
+ "access-method": "Machine"
121
+ }
122
+ ]
123
+ }
124
+ ],
125
+ "publisher-id": [
126
+ {
127
+ "type": "GRID",
128
+ "value": "266096.d"
129
+ }
130
+ ],
131
+ "dataset-dates": [
132
+ {
133
+ "type": "Pub-Date",
134
+ "value": "2016-03-14"
135
+ }
136
+ ],
137
+ "dataset-title": "Southern Sierra Critical Zone Observatory (SSCZO), Providence Creek meteorological data, soil moisture and temperature, snow depth and air temperature",
138
+ "dataset-contributors": [
139
+ {
140
+ "type": "Name",
141
+ "value": "Roger Bales"
142
+ },
143
+ {
144
+ "type": "Name",
145
+ "value": "Matt Meadows"
146
+ },
147
+ {
148
+ "type": "Name",
149
+ "value": "Erin Stacy"
150
+ },
151
+ {
152
+ "type": "Name",
153
+ "value": "Martha Conklin"
154
+ },
155
+ {
156
+ "type": "Name",
157
+ "value": "Xiande Meng"
158
+ },
159
+ {
160
+ "type": "Name",
161
+ "value": "SSCZO Southern Sierra Critical Zone Observatory"
162
+ }
163
+ ]
164
+ }]
165
+
166
+ }
167
+ }
168
+ }
169
+
170
+
171
+
@@ -0,0 +1,176 @@
1
+ {
2
+ "data":{
3
+ "report": {
4
+ "id": "2018-3-Dash",
5
+ "report-header": {
6
+ "report-name": "dataset report",
7
+ "report-id": "DSR",
8
+ "release": "rd1",
9
+ "created": "2128-04-09",
10
+ "created-by": "dash",
11
+ "report-attributes": [],
12
+ "report-filters": [
13
+ {
14
+ "name": "begin-date",
15
+ "value": "2018-03-01"
16
+ },
17
+ {
18
+ "name": "end-date",
19
+ "value": "2018-03-31"
20
+ }
21
+ ],
22
+ "exceptions": [
23
+ {
24
+ "code": 3040,
25
+ "severity": "warning",
26
+ "message": "partial data returned",
27
+ "help-url": "string",
28
+ "data": "usage data has not been processed for the entire reporting period"
29
+ }
30
+ ]
31
+ },
32
+ "report-datasets": [
33
+ {
34
+ "dataset-title": "chemical shift-based methods in nmr structure determination",
35
+ "dataset-id": [
36
+ {
37
+ "type": "doi",
38
+ "value": "10.7291/d1q94r"
39
+ }
40
+ ],
41
+ "dataset-contributors": [
42
+ {
43
+ "type": "name",
44
+ "value": "santrupti nerli"
45
+ },
46
+ {
47
+ "type": "name",
48
+ "value": "andrew c. mcshan"
49
+ },
50
+ {
51
+ "type": "name",
52
+ "value": "nikolaos g. sgourakis"
53
+ }
54
+ ],
55
+ "dataset-dates": [
56
+ {
57
+ "type": "pub-date",
58
+ "value": "2018-05-01"
59
+ }
60
+ ],
61
+ "platform": "dash",
62
+ "publisher": "uc santa cruz",
63
+ "publisher-id": [
64
+ {
65
+ "type": "orcid",
66
+ "value": "2059-4343-4343-4343"
67
+ }
68
+ ],
69
+ "data-type": "dataset",
70
+ "yop": "2018",
71
+ "uri": "https://dash.library.ucsc.edu/stash/dataset/doi:10.7291/d1q94r",
72
+ "performance": [
73
+ {
74
+ "period": {
75
+ "begin-date": "2018-03-01",
76
+ "end-date": "2018-03-31"
77
+ },
78
+ "instance": [
79
+ {
80
+ "access-method": "regular",
81
+ "metric-type": "total-dataset-investigations",
82
+ "count": 3
83
+ },
84
+ {
85
+ "access-method": "regular",
86
+ "metric-type": "unique-dataset-investigations",
87
+ "count": 3
88
+ }
89
+ ]
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "uri": "https://dash.ucmerced.edu/stash/dataset/doi:10.6071/Z7WC73",
95
+ "yop": 2013,
96
+ "platform": "Dash",
97
+ "data-type": "Dataset",
98
+ "publisher": "UC Merced",
99
+ "dataset-id": [
100
+ {
101
+ "type": "DOI",
102
+ "value": "10.6071/Z7WC73"
103
+ }
104
+ ],
105
+ "performance": [
106
+ {
107
+ "period": {
108
+ "end-date": "2018-03-31",
109
+ "begin-date": "2018-03-01"
110
+ },
111
+ "instance": [
112
+ {
113
+ "count": 254,
114
+ "metric-type": "Total-Dataset-Requests",
115
+ "access-method": "Machine"
116
+ },
117
+ {
118
+ "count": 1,
119
+ "metric-type": "Total-Dataset-investigations",
120
+ "access-method": "Regular"
121
+ },
122
+ {
123
+ "count": 208,
124
+ "metric-type": "Unique-Dataset-Requests",
125
+ "access-method": "Machine"
126
+ }
127
+ ]
128
+ }
129
+ ],
130
+ "publisher-id": [
131
+ {
132
+ "type": "GRID",
133
+ "value": "266096.d"
134
+ }
135
+ ],
136
+ "dataset-dates": [
137
+ {
138
+ "type": "Pub-Date",
139
+ "value": "2016-03-14"
140
+ }
141
+ ],
142
+ "dataset-title": "Southern Sierra Critical Zone Observatory (SSCZO), Providence Creek meteorological data, soil moisture and temperature, snow depth and air temperature",
143
+ "dataset-contributors": [
144
+ {
145
+ "type": "Name",
146
+ "value": "Roger Bales"
147
+ },
148
+ {
149
+ "type": "Name",
150
+ "value": "Matt Meadows"
151
+ },
152
+ {
153
+ "type": "Name",
154
+ "value": "Erin Stacy"
155
+ },
156
+ {
157
+ "type": "Name",
158
+ "value": "Martha Conklin"
159
+ },
160
+ {
161
+ "type": "Name",
162
+ "value": "Xiande Meng"
163
+ },
164
+ {
165
+ "type": "Name",
166
+ "value": "SSCZO Southern Sierra Critical Zone Observatory"
167
+ }
168
+ ]
169
+ }]
170
+
171
+ }
172
+ }
173
+ }
174
+
175
+
176
+
@@ -0,0 +1,101 @@
1
+ {
2
+ "data":{
3
+ "report": {
4
+ "id": "2018-3-Dash",
5
+ "report-header": {
6
+ "report-name": "dataset report",
7
+ "report-id": "DSR",
8
+ "release": "rd1",
9
+ "created": "2128-04-09",
10
+ "created-by": "dash",
11
+ "report-attributes": [],
12
+ "report-filters": [
13
+ {
14
+ "name": "begin-date",
15
+ "value": "2018-03-01"
16
+ },
17
+ {
18
+ "name": "end-date",
19
+ "value": "2018-03-31"
20
+ }
21
+ ],
22
+ "exceptions": [
23
+ {
24
+ "code": 3040,
25
+ "severity": "warning",
26
+ "message": "partial data returned",
27
+ "help-url": "string",
28
+ "data": "usage data has not been processed for the entire reporting period"
29
+ }
30
+ ]
31
+ },
32
+ "report-datasets": [
33
+ {
34
+ "dataset-title": "chemical shift-based methods in nmr structure determination",
35
+ "dataset-id": [
36
+ {
37
+ "type": "doi",
38
+ "value": "10.7291/d1q94r"
39
+ }
40
+ ],
41
+ "dataset-contributors": [
42
+ {
43
+ "type": "name",
44
+ "value": "santrupti nerli"
45
+ },
46
+ {
47
+ "type": "name",
48
+ "value": "andrew c. mcshan"
49
+ },
50
+ {
51
+ "type": "name",
52
+ "value": "nikolaos g. sgourakis"
53
+ }
54
+ ],
55
+ "dataset-dates": [
56
+ {
57
+ "type": "pub-date",
58
+ "value": "2018-05-01"
59
+ }
60
+ ],
61
+ "platform": "dash",
62
+ "publisher": "uc santa cruz",
63
+ "publisher-id": [
64
+ {
65
+ "type": "orcid",
66
+ "value": "2059-4343-4343-4343"
67
+ }
68
+ ],
69
+ "data-type": "dataset",
70
+ "yop": "2018",
71
+ "uri": "https://dash.library.ucsc.edu/stash/dataset/doi:10.7291/d1q94r",
72
+ "performance": [
73
+ {
74
+ "period": {
75
+ "begin-date": "2018-03-01",
76
+ "end-date": "2018-03-31"
77
+ },
78
+ "instance": [
79
+ {
80
+ "country": "gb",
81
+ "access-method": "regular",
82
+ "metric-type": "total-dataset-investigations",
83
+ "count": 3
84
+ },
85
+ {
86
+ "country": "gb",
87
+ "access-method": "regular",
88
+ "metric-type": "unique-dataset-investigations",
89
+ "count": 3
90
+ }
91
+ ]
92
+ }
93
+ ]
94
+ }]
95
+
96
+ }
97
+ }
98
+ }
99
+
100
+
101
+
@@ -0,0 +1,6 @@
1
+ {
2
+ "errors": [{
3
+ "status": "404",
4
+ "title": "The resource you are looking for doesn't exist."
5
+ }]
6
+ }
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Maremma - https://github.com/datacite/maremma
11
+ - Mozilla/5.0 (compatible; Maremma/4.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
14
  response:
@@ -16,57 +16,33 @@ http_interactions:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Access-Control-Allow-Credentials:
20
- - 'true'
21
- Access-Control-Allow-Headers:
22
- - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
23
- Access-Control-Allow-Methods:
24
- - POST, GET, OPTIONS
25
- Access-Control-Allow-Origin:
26
- - "*"
27
- Access-Control-Max-Age:
28
- - '1728000'
29
- Cache-Control:
30
- - max-age=0, private, must-revalidate
19
+ Date:
20
+ - Fri, 10 Aug 2018 13:40:04 GMT
31
21
  Content-Type:
32
22
  - application/vnd.api+json; charset=utf-8
33
- Date:
34
- - Fri, 10 Mar 2017 21:37:10 GMT
35
- Etag:
36
- - W/"daf85afdb45f3c2713bc7e75916ba82a"
37
- Server:
38
- - openresty/1.11.2.2
23
+ Connection:
24
+ - keep-alive
39
25
  Status:
40
26
  - 200 OK
27
+ X-Anonymous-Consumer:
28
+ - 'true'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
41
31
  Vary:
42
- - Accept-Encoding
43
- Via:
44
- - kong/0.10.0rc3
45
- X-Content-Type-Options:
46
- - nosniff
47
- X-Frame-Options:
48
- - SAMEORIGIN
49
- X-Kong-Proxy-Latency:
50
- - '1'
51
- X-Kong-Upstream-Latency:
52
- - '384'
53
- X-Powered-By:
54
- - Phusion Passenger 5.1.2
55
- X-Ratelimit-Limit-Hour:
56
- - '10000'
57
- X-Ratelimit-Remaining-Hour:
58
- - '9998'
32
+ - Accept-Encoding, Origin
59
33
  X-Request-Id:
60
- - 108bec99-876c-4d10-b3d1-0246c406557f
34
+ - 05d50b94-ce2c-461e-87d6-b96927c96532
35
+ Etag:
36
+ - W/"258c3a49bbc303b1229efe2fae9cc9e2"
61
37
  X-Runtime:
62
- - '0.382567'
63
- X-Xss-Protection:
64
- - 1; mode=block
65
- Connection:
66
- - keep-alive
38
+ - '0.100187'
39
+ X-Powered-By:
40
+ - Phusion Passenger 5.3.4
41
+ Server:
42
+ - nginx/1.14.0 + Phusion Passenger 5.3.4
67
43
  body:
68
- encoding: UTF-8
69
- string: '{"data":{"id":"10.7554","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T21:07:27Z"}}}'
44
+ encoding: ASCII-8BIT
45
+ string: '{"data":{"id":"10.7554","type":"handles","attributes":{"registration-agency":"Crossref","created":null,"updated":"2016-09-21T21:07:27Z"},"relationships":{"clients":{"data":[]},"providers":{"data":[]}}}}'
70
46
  http_version:
71
- recorded_at: Fri, 10 Mar 2017 21:37:10 GMT
47
+ recorded_at: Fri, 10 Aug 2018 13:40:04 GMT
72
48
  recorded_with: VCR 3.0.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Maremma - https://github.com/datacite/maremma
11
+ - Mozilla/5.0 (compatible; Maremma/4.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
14
  response:
@@ -16,59 +16,35 @@ http_interactions:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Access-Control-Allow-Credentials:
20
- - 'true'
21
- Access-Control-Allow-Headers:
22
- - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
23
- Access-Control-Allow-Methods:
24
- - POST, GET, OPTIONS
25
- Access-Control-Allow-Origin:
26
- - "*"
27
- Access-Control-Max-Age:
28
- - '1728000'
29
- Cache-Control:
30
- - max-age=0, private, must-revalidate
19
+ Date:
20
+ - Fri, 10 Aug 2018 13:40:04 GMT
31
21
  Content-Type:
32
22
  - application/vnd.api+json; charset=utf-8
33
- Date:
34
- - Fri, 10 Mar 2017 21:33:42 GMT
35
- Etag:
36
- - W/"1eb3f4f371821b1becc6cd25a71755ce"
37
- Server:
38
- - openresty/1.11.2.2
23
+ Connection:
24
+ - keep-alive
39
25
  Status:
40
26
  - 200 OK
27
+ X-Anonymous-Consumer:
28
+ - 'true'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
41
31
  Vary:
42
- - Accept-Encoding
43
- Via:
44
- - kong/0.10.0rc3
45
- X-Content-Type-Options:
46
- - nosniff
47
- X-Frame-Options:
48
- - SAMEORIGIN
49
- X-Kong-Proxy-Latency:
50
- - '3'
51
- X-Kong-Upstream-Latency:
52
- - '577'
53
- X-Powered-By:
54
- - Phusion Passenger 5.1.2
55
- X-Ratelimit-Limit-Hour:
56
- - '10000'
57
- X-Ratelimit-Remaining-Hour:
58
- - '9999'
32
+ - Accept-Encoding, Origin
59
33
  X-Request-Id:
60
- - 64a8e7a2-594d-491d-8a96-68e88a136fbd
34
+ - 8700324c-2564-48fa-94e3-59dff94c4c81
35
+ Etag:
36
+ - W/"2d33bfdf34ccb1bfea6ae7d2cd01cb9b"
61
37
  X-Runtime:
62
- - '0.575399'
63
- X-Xss-Protection:
64
- - 1; mode=block
65
- Content-Length:
66
- - '124'
67
- Connection:
68
- - keep-alive
38
+ - '0.012854'
39
+ X-Powered-By:
40
+ - Phusion Passenger 5.3.4
41
+ Server:
42
+ - nginx/1.14.0 + Phusion Passenger 5.3.4
69
43
  body:
70
- encoding: UTF-8
71
- string: '{"data":{"id":"10.5061","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"2016-09-21T20:27:07Z"}}}'
44
+ encoding: ASCII-8BIT
45
+ string: '{"data":{"id":"10.5061","type":"prefixes","attributes":{"registration-agency":"DataCite","created":"2010-01-01T00:00:00.000Z","updated":null},"relationships":{"clients":{"data":[{"id":"dryad.dryad","type":"clients"}]},"providers":{"data":[{"id":"dryad","type":"providers"}]}}},"included":[{"id":"dryad.dryad","type":"clients","attributes":{"name":"DRYAD","symbol":"DRYAD.DRYAD","year":2018,"contact-name":"Dryad
46
+ Administrator","contact-email":"admin@datadryad.org","domains":"*","url":null,"is-active":true,"has-password":true,"created":"2018-04-24T20:59:15Z","updated":"2018-08-10T02:36:18Z"},"relationships":{"prefixes":{"meta":{}},"provider":{"meta":{}},"repository":{"meta":{}}}},{"id":"dryad","type":"providers","attributes":{"name":"Dryad","symbol":"DRYAD","website":null,"contact-name":"Elizabeth
47
+ Hull","contact-email":"ehull@datadryad.org","phone":null,"description":null,"country":"US","logo-url":"https://assets.datacite.org/images/members/dryad.png","institution-type":null,"is-active":true,"has-password":true,"joined":"2017-12-30","created":"2018-02-08T23:35:26.000Z","updated":"2018-08-10T02:25:53.000Z"},"relationships":{"clients":{"meta":{}},"prefixes":{"meta":{}}}}]}'
72
48
  http_version:
73
- recorded_at: Fri, 10 Mar 2017 21:33:42 GMT
49
+ recorded_at: Fri, 10 Aug 2018 13:40:04 GMT
74
50
  recorded_with: VCR 3.0.3
@@ -26,31 +26,33 @@ http_interactions:
26
26
  - '22'
27
27
  Connection:
28
28
  - keep-alive
29
- Access-Control-Allow-Origin:
30
- - "*"
31
29
  Date:
32
- - Wed, 29 Mar 2017 12:22:55 GMT
33
- Referrer-Policy:
34
- - no-referrer
30
+ - Fri, 10 Aug 2018 16:22:55 GMT
35
31
  Server:
36
32
  - Apache
33
+ X-Slack-Backend:
34
+ - h
35
+ Referrer-Policy:
36
+ - no-referrer
37
37
  Strict-Transport-Security:
38
38
  - max-age=31536000; includeSubDomains; preload
39
- Vary:
40
- - Accept-Encoding
41
39
  X-Frame-Options:
42
40
  - SAMEORIGIN
43
- X-Slack-Backend:
44
- - h
41
+ Vary:
42
+ - Accept-Encoding
43
+ Access-Control-Allow-Origin:
44
+ - "*"
45
+ X-Via:
46
+ - haproxy-www-xom6
45
47
  X-Cache:
46
48
  - Miss from cloudfront
47
49
  Via:
48
- - 1.1 8a4d4882753d62d900bb1b7541308eca.cloudfront.net (CloudFront)
50
+ - 1.1 fd0b6604a702c913fca13c5d665f0604.cloudfront.net (CloudFront)
49
51
  X-Amz-Cf-Id:
50
- - NHshrt1mNkLoOKPf0Eb6EdL_WFYPdKTkLcWcuHUCLS0rn-b31QoKgw==
52
+ - D4QjAqyFTNMO4eqoqhWyd_DL2yVMldgPKJ570PA-3UDp86opy1mlNw==
51
53
  body:
52
54
  encoding: ASCII-8BIT
53
55
  string: ok
54
56
  http_version:
55
- recorded_at: Wed, 29 Mar 2017 12:22:55 GMT
57
+ recorded_at: Fri, 10 Aug 2018 16:22:55 GMT
56
58
  recorded_with: VCR 3.0.3