orcid_client 0.2.3 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +120 -43
  3. data/lib/orcid_client/api.rb +1 -1
  4. data/lib/orcid_client/author.rb +2 -49
  5. data/lib/orcid_client/date.rb +3 -3
  6. data/lib/orcid_client/external_identifier.rb +1 -1
  7. data/lib/orcid_client/notification.rb +3 -5
  8. data/lib/orcid_client/version.rb +1 -1
  9. data/lib/orcid_client/work.rb +23 -28
  10. data/lib/orcid_client.rb +2 -0
  11. data/orcid_client.gemspec +5 -4
  12. data/resources/{common_2.0_rc3/common-2.0_rc3.xsd → common_2.0/common-2.0.xsd} +68 -49
  13. data/resources/{common_2.0_rc3/samples/common-2.0_rc3.xml → common_2.0/samples/common-2.0.xml} +1 -1
  14. data/resources/notification_2.0/README.md +123 -0
  15. data/resources/notification_2.0/notification-custom-2.0.xsd +38 -0
  16. data/resources/notification_2.0/notification-permission-2.0.xsd +134 -0
  17. data/resources/{notification_2.0_rc3/samples/notification-custom-2.0_rc3.xml → notification_2.0/samples/notification-custom-2.0.xml} +3 -3
  18. data/resources/{notification_2.0_rc3/samples/notification-permission-2.0_rc3.xml → notification_2.0/samples/notification-permission-2.0.xml} +2 -2
  19. data/resources/record_2.0/README.md +304 -0
  20. data/resources/{record_2.0_rc3/activities-2.0_rc3.xsd → record_2.0/activities-2.0.xsd} +79 -46
  21. data/resources/{record_2.0_rc3/address-2.0_rc3.xsd → record_2.0/address-2.0.xsd} +1 -1
  22. data/resources/{record_2.0_rc3/bulk-2.0_rc3.xsd → record_2.0/bulk-2.0.xsd} +12 -12
  23. data/resources/{record_2.0_rc3/education-2.0_rc3.xsd → record_2.0/education-2.0.xsd} +5 -5
  24. data/resources/{record_2.0_rc3/email-2.0_rc3.xsd → record_2.0/email-2.0.xsd} +3 -1
  25. data/resources/{record_2.0_rc3/employment-2.0_rc3.xsd → record_2.0/employment-2.0.xsd} +5 -5
  26. data/resources/{record_2.0_rc3/error-2.0_rc3.xsd → record_2.0/error-2.0.xsd} +0 -0
  27. data/resources/{record_2.0_rc3/funding-2.0_rc3.xsd → record_2.0/funding-2.0.xsd} +5 -49
  28. data/resources/{record_2.0_rc3/history-2.0_rc3.xsd → record_2.0/history-2.0.xsd} +1 -1
  29. data/resources/{record_2.0_rc3/keyword-2.0_rc3.xsd → record_2.0/keyword-2.0.xsd} +2 -2
  30. data/resources/{record_2.0_rc3/other-name-2.0_rc3.xsd → record_2.0/other-name-2.0.xsd} +2 -2
  31. data/resources/{record_2.0_rc3/peer-review-2.0_rc3.xsd → record_2.0/peer-review-2.0.xsd} +4 -4
  32. data/resources/record_2.0/peer-review-guide-v2.0.md +131 -0
  33. data/resources/{record_2.0_rc3/person-2.0_rc3.xsd → record_2.0/person-2.0.xsd} +8 -21
  34. data/resources/{record_2.0_rc3/person-external-identifier-2.0_rc3.xsd → record_2.0/person-external-identifier-2.0.xsd} +1 -1
  35. data/resources/{record_2.0_rc3/personal-details-2.0_rc3.xsd → record_2.0/personal-details-2.0.xsd} +5 -7
  36. data/resources/{record_2.0_rc3/preferences-2.0_rc3.xsd → record_2.0/preferences-2.0.xsd} +1 -1
  37. data/resources/{record_2.0_rc3/record-2.0_rc3.xsd → record_2.0/record-2.0.xsd} +16 -23
  38. data/resources/{record_2.0_rc3/researcher-url-2.0_rc3.xsd → record_2.0/researcher-url-2.0.xsd} +2 -2
  39. data/resources/{record_2.0_rc3/samples/activities-2.0_rc3.xml → record_2.0/samples/read_samples/activities-2.0.xml} +24 -12
  40. data/resources/{record_2.0_rc3/samples/address-2.0_rc3.xml → record_2.0/samples/read_samples/address-2.0.xml} +1 -1
  41. data/resources/{record_2.0_rc3/samples/addresses-2.0_rc3.xml → record_2.0/samples/read_samples/addresses-2.0.xml} +1 -1
  42. data/resources/{record_2.0_rc3/samples/biography-2.0_rc3.xml → record_2.0/samples/read_samples/biography-2.0.xml} +2 -2
  43. data/resources/record_2.0/samples/read_samples/bulk-work-error.xml +45 -0
  44. data/resources/{record_2.0_rc3/samples/credit-name-2.0_rc3.xml → record_2.0/samples/read_samples/credit-name-2.0.xml} +2 -2
  45. data/resources/{record_2.0_rc3/samples/education-full-2.0_rc3.xml → record_2.0/samples/read_samples/education-2.0.xml} +1 -1
  46. data/resources/{record_2.0_rc3/samples/education-2.0_rc3.xml → record_2.0/samples/read_samples/education-full-2.0.xml} +12 -2
  47. data/resources/record_2.0/samples/read_samples/educations-2.0.xml +52 -0
  48. data/resources/{record_2.0_rc3/samples/email-2.0_rc3.xml → record_2.0/samples/read_samples/email-2.0.xml} +2 -2
  49. data/resources/{record_2.0_rc3/samples/emails-2.0_rc3.xml → record_2.0/samples/read_samples/emails-2.0.xml} +3 -3
  50. data/resources/{record_2.0_rc3/samples/employment-full-2.0_rc3.xml → record_2.0/samples/read_samples/employment-2.0.xml} +1 -1
  51. data/resources/{record_2.0_rc3/samples/employment-2.0_rc3.xml → record_2.0/samples/read_samples/employment-full-2.0.xml} +14 -4
  52. data/resources/record_2.0/samples/read_samples/employments-2.0.xml +52 -0
  53. data/resources/{record_2.0_rc3/samples/error-2.0_rc3.xml → record_2.0/samples/read_samples/error-2.0.xml} +1 -1
  54. data/resources/{record_2.0_rc3/samples/external-identifier-2.0_rc3.xml → record_2.0/samples/read_samples/external-identifier-2.0.xml} +3 -2
  55. data/resources/{record_2.0_rc3/samples/external-identifiers-2.0_rc3.xml → record_2.0/samples/read_samples/external-identifiers-2.0.xml} +5 -3
  56. data/resources/{record_2.0_rc3/samples/funding-full-2.0_rc3.xml → record_2.0/samples/read_samples/funding-2.0.xml} +2 -2
  57. data/resources/{record_2.0_rc3/samples/funding-2.0_rc3.xml → record_2.0/samples/read_samples/funding-full-2.0.xml} +13 -3
  58. data/resources/record_2.0/samples/read_samples/fundings-2.0.xml +138 -0
  59. data/resources/{record_2.0_rc3/samples/history-2.0_rc3.xml → record_2.0/samples/read_samples/history-2.0.xml} +1 -1
  60. data/resources/{record_2.0_rc3/samples/keyword-2.0_rc3.xml → record_2.0/samples/read_samples/keyword-2.0.xml} +1 -1
  61. data/resources/{record_2.0_rc3/samples/keywords-2.0_rc3.xml → record_2.0/samples/read_samples/keywords-2.0.xml} +1 -1
  62. data/resources/{record_2.0_rc3/samples/name-2.0_rc3.xml → record_2.0/samples/read_samples/name-2.0.xml} +1 -1
  63. data/resources/{record_2.0_rc3/samples/other-name-2.0_rc3.xml → record_2.0/samples/read_samples/other-name-2.0.xml} +1 -1
  64. data/resources/{record_2.0_rc3/samples/other-names-2.0_rc3.xml → record_2.0/samples/read_samples/other-names-2.0.xml} +1 -1
  65. data/resources/{record_2.0_rc3/samples/peer-review-full-2.0_rc3.xml → record_2.0/samples/read_samples/peer-review-2.0.xml} +1 -1
  66. data/resources/{record_2.0_rc3/samples/peer-review-2.0_rc3.xml → record_2.0/samples/read_samples/peer-review-full-2.0.xml} +18 -8
  67. data/resources/record_2.0/samples/read_samples/peer-reviews-2.0.xml +73 -0
  68. data/resources/{record_2.0_rc3/samples/person-2.0_rc3.xml → record_2.0/samples/read_samples/person-2.0.xml} +1 -1
  69. data/resources/{record_2.0_rc3/samples/personal-details-2.0_rc3.xml → record_2.0/samples/read_samples/personal-details-2.0.xml} +1 -1
  70. data/resources/{record_2.0_rc3/samples/preferences-2.0_rc3.xml → record_2.0/samples/read_samples/preferences-2.0.xml} +1 -1
  71. data/resources/{record_2.0_rc3/samples/record-2.0_rc3.xml → record_2.0/samples/read_samples/record-2.0.xml} +73 -85
  72. data/resources/{record_2.0_rc3/samples/researcher-url-2.0_rc3.xml → record_2.0/samples/read_samples/researcher-url-2.0.xml} +1 -1
  73. data/resources/{record_2.0_rc3/samples/researcher-urls-2.0_rc3.xml → record_2.0/samples/read_samples/researcher-urls-2.0.xml} +1 -1
  74. data/resources/record_2.0/samples/read_samples/search-2.0.xml +14 -0
  75. data/resources/{record_2.0_rc3/samples/work-full-2.0_rc3.xml → record_2.0/samples/read_samples/work-2.0.xml} +5 -5
  76. data/resources/{record_2.0_rc3/samples/work-2.0_rc3.xml → record_2.0/samples/read_samples/work-full-2.0.xml} +14 -4
  77. data/resources/record_2.0/samples/read_samples/works-2.0.xml +146 -0
  78. data/resources/record_2.0/samples/write_sample/address-2.0.xml +6 -0
  79. data/resources/{record_2.0_rc3/samples/bulk-work-2.0_rc3.json → record_2.0/samples/write_sample/bulk-work-2.0.json} +55 -55
  80. data/resources/{record_2.0_rc3/samples/bulk-work-2.0_rc3.xml → record_2.0/samples/write_sample/bulk-work-2.0.xml} +18 -11
  81. data/resources/record_2.0/samples/write_sample/education-2.0.xml +30 -0
  82. data/resources/record_2.0/samples/write_sample/employment-2.0.xml +30 -0
  83. data/resources/record_2.0/samples/write_sample/external-identifier-2.0.xml +11 -0
  84. data/resources/record_2.0/samples/write_sample/funding-2.0.xml +44 -0
  85. data/resources/record_2.0/samples/write_sample/keyword-2.0.xml +7 -0
  86. data/resources/record_2.0/samples/write_sample/other-name-2.0.xml +6 -0
  87. data/resources/record_2.0/samples/write_sample/peer-review-full-2.0.xml +48 -0
  88. data/resources/record_2.0/samples/write_sample/peer-review-simple-2.0.xml +32 -0
  89. data/resources/record_2.0/samples/write_sample/researcher-url-2.0.xml +7 -0
  90. data/resources/record_2.0/samples/write_sample/work-full-2.0.xml +54 -0
  91. data/resources/record_2.0/samples/write_sample/work-simple-2.0.xml +18 -0
  92. data/resources/{record_2.0_rc3/search-2.0_rc3.xsd → record_2.0/search-2.0.xsd} +6 -26
  93. data/resources/{record_2.0_rc3/work-2.0_rc3.xsd → record_2.0/work-2.0.xsd} +8 -129
  94. data/spec/api_spec.rb +3 -3
  95. data/spec/external_identifier_spec.rb +2 -2
  96. data/spec/fixtures/external_identifier.xml +1 -1
  97. data/spec/fixtures/vcr_cassettes/OrcidClient/external_identifier/delete/should_delete_external_identifier.yml +17 -5
  98. data/spec/fixtures/vcr_cassettes/OrcidClient/external_identifier/post/should_create_external_identifier.yml +19 -7
  99. data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/delete/should_delete_notification.yml +19 -6
  100. data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/get/should_get_notification.yml +20 -6
  101. data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/post/should_create_notification.yml +90 -25
  102. data/spec/fixtures/vcr_cassettes/OrcidClient/works/delete/should_delete_work.yml +17 -5
  103. data/spec/fixtures/vcr_cassettes/OrcidClient/works/get/should_get_works.yml +554 -543
  104. data/spec/fixtures/vcr_cassettes/OrcidClient/works/post/should_create_work.yml +90 -25
  105. data/spec/fixtures/vcr_cassettes/OrcidClient/works/put/should_update_work.yml +99 -28
  106. data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/data.yml +72 -17
  107. data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_data.yml +70 -17
  108. data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_item_type_work.yml +72 -14
  109. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/literal.yml +72 -20
  110. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/multiple_titles.yml +72 -20
  111. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/valid.yml +72 -23
  112. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/with_ORCID_IDs.yml +75 -133
  113. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/data.yml +72 -23
  114. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/publication_date.yml +72 -23
  115. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_ORCID_IDs_for_contributors.yml +75 -133
  116. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_data.yml +72 -23
  117. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_work_type_data-set.yml +72 -20
  118. data/spec/fixtures/work.xml +4 -2
  119. data/spec/notification_spec.rb +4 -4
  120. data/spec/work_spec.rb +6 -6
  121. metadata +122 -80
  122. data/lib/orcid_client/metadata.rb +0 -128
  123. data/resources/notification_2.0_rc3/notification-custom-2.0_rc3.xsd +0 -32
  124. data/resources/notification_2.0_rc3/notification-permission-2.0_rc3.xsd +0 -128
  125. data/resources/record_2.0_rc3/deprecated-2.0_rc3.xsd +0 -80
  126. data/resources/record_2.0_rc3/internal-2.0_rc3.xsd +0 -199
  127. data/resources/record_2.0_rc3/samples/deprecated-2.0_rc3.xml +0 -13
  128. data/resources/record_2.0_rc3/samples/search-2.0_rc3.xml +0 -368
  129. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/citation.yml +0 -50
@@ -33,10 +33,10 @@
33
33
  </xs:appinfo>
34
34
  </xs:annotation>
35
35
  <xs:import namespace="http://www.orcid.org/ns/common"
36
- schemaLocation="../common_2.0_rc3/common-2.0_rc3.xsd" />
36
+ schemaLocation="../common_2.0/common-2.0.xsd" />
37
37
 
38
38
  <xs:import namespace="http://www.orcid.org/ns/error"
39
- schemaLocation="error-2.0_rc3.xsd" />
39
+ schemaLocation="error-2.0.xsd" />
40
40
 
41
41
  <xs:element name="work">
42
42
  <xs:complexType>
@@ -155,125 +155,8 @@
155
155
  <xs:enumeration value="working-paper" />
156
156
  </xs:restriction>
157
157
  </xs:simpleType>
158
- <!--
159
- <xs:complexType name="work-external-identifiers">
160
- <xs:annotation>
161
- <xs:documentation>Container for storing the external references to
162
- the work.
163
- </xs:documentation>
164
- </xs:annotation>
165
- <xs:sequence>
166
- <xs:element maxOccurs="unbounded" minOccurs="0"
167
- name="work-external-identifier" type="work:external-identifier" />
168
- </xs:sequence>
169
- </xs:complexType>
170
-
171
- <xs:complexType name="external-identifier">
172
- <xs:annotation>
173
- <xs:documentation>External references to the work.
174
- </xs:documentation>
175
- </xs:annotation>
176
- <xs:complexContent>
177
- <xs:extension base="common:external-identifier">
178
- <xs:sequence>
179
- <xs:element name="external-identifier-type" type="work:external-identifier-type"
180
- maxOccurs="1" />
181
- <xs:element name="external-identifier-id" maxOccurs="1"
182
- type="common:non-empty-string">
183
- <xs:annotation>
184
- <xs:documentation>Value for the identifier</xs:documentation>
185
- </xs:annotation>
186
- </xs:element>
187
- </xs:sequence>
188
- </xs:extension>
189
- </xs:complexContent>
190
- </xs:complexType>
191
158
 
192
- <xs:simpleType name="external-identifier-type">
193
- <xs:annotation>
194
- <xs:documentation>The type of work external identifier, e.g DOI, PMID
195
- etc.
196
- </xs:documentation>
197
- </xs:annotation>
198
-
199
- <xs:restriction base="xs:string">
200
- <xs:enumeration value="agr">
201
- <xs:annotation>
202
- <xs:documentation>Agricola</xs:documentation>
203
- </xs:annotation>
204
- </xs:enumeration>
205
- <xs:enumeration value="arxiv" />
206
- <xs:enumeration value="asin" />
207
- <xs:enumeration value="asin-tld" />
208
- <xs:enumeration value="bibcode" />
209
- <xs:enumeration value="cba">
210
- <xs:annotation>
211
- <xs:documentation>Chinese Biological Abstracts</xs:documentation>
212
- </xs:annotation>
213
- </xs:enumeration>
214
- <xs:enumeration value="cit">
215
- <xs:annotation>
216
- <xs:documentation>CiteSeer</xs:documentation>
217
- </xs:annotation>
218
- </xs:enumeration>
219
- <xs:enumeration value="ctx">
220
- <xs:annotation>
221
- <xs:documentation>CiteXplore submission</xs:documentation>
222
- </xs:annotation>
223
- </xs:enumeration>
224
- <xs:enumeration value="doi" />
225
- <xs:enumeration value="eid" />
226
- <xs:enumeration value="ethos">
227
- <xs:annotation>
228
- <xs:documentation>EThOS Peristent ID</xs:documentation>
229
- </xs:annotation>
230
- </xs:enumeration>
231
- <xs:enumeration value="handle" />
232
- <xs:enumeration value="hir">
233
- <xs:annotation>
234
- <xs:documentation>NHS Evidence</xs:documentation>
235
- </xs:annotation>
236
- </xs:enumeration>
237
- <xs:enumeration value="isbn" />
238
- <xs:enumeration value="issn" />
239
- <xs:enumeration value="jfm" />
240
- <xs:enumeration value="jstor" />
241
- <xs:enumeration value="lccn" />
242
- <xs:enumeration value="mr" />
243
- <xs:enumeration value="oclc" />
244
- <xs:enumeration value="ol" />
245
- <xs:enumeration value="osti" />
246
- <xs:enumeration value="other-id" />
247
- <xs:enumeration value="pat">
248
- <xs:annotation>
249
- <xs:documentation>Patent number prefixed with ISO 3611 two letter
250
- country code
251
- </xs:documentation>
252
- </xs:annotation>
253
- </xs:enumeration>
254
- <xs:enumeration value="pmc" />
255
- <xs:enumeration value="pmid" />
256
- <xs:enumeration value="rfc" />
257
- <xs:enumeration value="source-work-id">
258
- <xs:annotation>
259
- <xs:documentation>Non-standard ID with meaning only in the system
260
- from which the work data were sourced
261
- </xs:documentation>
262
- </xs:annotation>
263
- </xs:enumeration>
264
- <xs:enumeration value="ssrn" />
265
- <xs:enumeration value="uri" />
266
- <xs:enumeration value="urn" />
267
- <xs:enumeration value="wosuid">
268
- <xs:annotation>
269
- <xs:documentation>Web of Science™ identifier</xs:documentation>
270
- </xs:annotation>
271
- </xs:enumeration>
272
- <xs:enumeration value="zbl" />
273
- </xs:restriction>
274
- </xs:simpleType>
275
- -->
276
- <xs:complexType name="work-contributors">
159
+ <xs:complexType name="work-contributors">
277
160
  <xs:annotation>
278
161
  <xs:documentation>Container for the contributors of a Work.
279
162
  </xs:documentation>
@@ -380,7 +263,7 @@
380
263
  <xs:element ref="common:translated-title" minOccurs="0" />
381
264
  </xs:sequence>
382
265
  </xs:complexType>
383
- <xs:complexType mixed="true" name="journal-title">
266
+ <xs:simpleType name="journal-title">
384
267
  <xs:annotation>
385
268
  <xs:documentation>The title of the publication or group under which
386
269
  the work was published.
@@ -396,14 +279,10 @@
396
279
  the conference name.
397
280
  </xs:documentation>
398
281
  </xs:annotation>
399
- </xs:complexType>
400
-
401
- <xs:complexType name="subtitle" mixed="true">
402
- <xs:annotation>
403
- <xs:documentation>If the work has a subtitle, include it here.
404
- </xs:documentation>
405
- </xs:annotation>
406
- </xs:complexType>
282
+ <xs:restriction base="xs:string">
283
+ <xs:maxLength value="1000"/>
284
+ </xs:restriction>
285
+ </xs:simpleType>
407
286
 
408
287
  <xs:complexType name="citation">
409
288
  <xs:annotation>
data/spec/api_spec.rb CHANGED
@@ -5,7 +5,7 @@ describe OrcidClient, vcr: true do
5
5
  let(:orcid) { "0000-0001-6528-2027" }
6
6
  let(:access_token) { ENV['ACCESS_TOKEN'] }
7
7
  let(:notification_access_token) { ENV['NOTIFICATION_ACCESS_TOKEN'] }
8
- let(:put_code) { "740616" }
8
+ let(:put_code) { "837845" }
9
9
  let(:fixture_path) { "spec/fixtures/" }
10
10
 
11
11
  subject { OrcidClient::Work.new(doi: doi, orcid: orcid, access_token: access_token, put_code: put_code) }
@@ -33,7 +33,7 @@ describe OrcidClient, vcr: true do
33
33
  works = response.body.fetch("data", {}).fetch("group", {})
34
34
  expect(works.length).to eq(27)
35
35
  work = works.first
36
- expect(work["external-ids"]).to eq("external-id"=>[{"external-id-type"=>"doi", "external-id-value"=>"10.5167/UZH-19531", "external-id-url"=>nil, "external-id-relationship"=>"SELF"}])
36
+ expect(work["external-ids"]).to eq("external-id"=>[{"external-id-type"=>"doi", "external-id-value"=>"10.5281/zenodo.59983", "external-id-url"=>nil, "external-id-relationship"=>"SELF"}])
37
37
  end
38
38
 
39
39
  it 'access_token missing' do
@@ -74,7 +74,7 @@ describe OrcidClient, vcr: true do
74
74
  end
75
75
 
76
76
  describe "external_identifier", :order => :defined do
77
- subject { OrcidClient::ExternalIdentifier.new(type: "GitHub", value: "mfenner", url: "https://github.com/mfenner", orcid: orcid, access_token: access_token, put_code: "3316") }
77
+ subject { OrcidClient::ExternalIdentifier.new(type: "GitHub", value: "mfenner", url: "https://github.com/mfenner", orcid: orcid, access_token: access_token, put_code: "3824") }
78
78
 
79
79
  describe 'post' do
80
80
  subject { OrcidClient::ExternalIdentifier.new(type: "GitHub", value: "mfenner", url: "https://github.com/mfenner", orcid: orcid, access_token: access_token) }
@@ -7,13 +7,13 @@ describe OrcidClient::ExternalIdentifier, vcr: true do
7
7
  let(:orcid) { "0000-0001-6528-2027" }
8
8
  let(:access_token) { ENV['ACCESS_TOKEN'] }
9
9
  let(:fixture_path) { "spec/fixtures/" }
10
- let(:samples_path) { "resources/record_2.0_rc3/samples/" }
10
+ let(:samples_path) { "resources/record_2.0/samples/read_samples/" }
11
11
 
12
12
  subject { OrcidClient::ExternalIdentifier.new(type: type, value: value, url: url, orcid: orcid, access_token: access_token) }
13
13
 
14
14
  describe 'schema' do
15
15
  it 'validates sample' do
16
- validation_errors = subject.schema.validate(samples_path + 'external-identifier-2.0_rc3.xml').map { |error| error.to_s }
16
+ validation_errors = subject.schema.validate(samples_path + 'external-identifier-2.0.xml').map { |error| error.to_s }
17
17
  expect(validation_errors).to be_empty
18
18
  end
19
19
 
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <external-identifier:external-identifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier" visibility="public" xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.0_rc3.xsd">
2
+ <external-identifier:external-identifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier" visibility="public" xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.0.xsd">
3
3
  <common:external-id-type>GitHub</common:external-id-type>
4
4
  <common:external-id-value>mfenner</common:external-id-value>
5
5
  <common:external-id-url>https://github.com/mfenner</common:external-id-url>
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
5
- uri: https://api.sandbox.orcid.org/v2.0_rc3/0000-0001-6528-2027/external-identifiers/3316
5
+ uri: https://api.sandbox.orcid.org/v2.0/0000-0001-6528-2027/external-identifiers/3824
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -18,21 +18,33 @@ http_interactions:
18
18
  response:
19
19
  status:
20
20
  code: 204
21
- message: ''
21
+ message: No Content
22
22
  headers:
23
23
  Server:
24
- - nginx/1.4.6 (Ubuntu)
24
+ - nginx/1.10.0
25
25
  Date:
26
- - Sun, 27 Nov 2016 09:57:07 GMT
26
+ - Tue, 20 Jun 2017 08:52:46 GMT
27
27
  Content-Type:
28
28
  - application/vnd.orcid+xml; qs=5;charset=UTF-8
29
29
  Connection:
30
30
  - keep-alive
31
31
  Access-Control-Allow-Origin:
32
32
  - "*"
33
+ Cache-Control:
34
+ - no-cache, no-store, max-age=0, must-revalidate
35
+ Pragma:
36
+ - no-cache
37
+ Expires:
38
+ - '0'
39
+ X-Xss-Protection:
40
+ - 1; mode=block
41
+ X-Frame-Options:
42
+ - DENY
43
+ X-Content-Type-Options:
44
+ - nosniff
33
45
  body:
34
46
  encoding: UTF-8
35
47
  string: ''
36
48
  http_version:
37
- recorded_at: Sun, 27 Nov 2016 09:57:07 GMT
49
+ recorded_at: Tue, 20 Jun 2017 08:52:46 GMT
38
50
  recorded_with: VCR 3.0.3
@@ -2,12 +2,12 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://api.sandbox.orcid.org/v2.0_rc3/0000-0001-6528-2027/external-identifiers
5
+ uri: https://api.sandbox.orcid.org/v2.0/0000-0001-6528-2027/external-identifiers
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: |
9
9
  <?xml version="1.0" encoding="UTF-8"?>
10
- <external-identifier:external-identifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier" visibility="public" xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.0_rc3.xsd">
10
+ <external-identifier:external-identifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier" visibility="public" xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.0.xsd">
11
11
  <common:external-id-type>GitHub</common:external-id-type>
12
12
  <common:external-id-value>mfenner</common:external-id-value>
13
13
  <common:external-id-url>https://github.com/mfenner</common:external-id-url>
@@ -25,12 +25,12 @@ http_interactions:
25
25
  response:
26
26
  status:
27
27
  code: 201
28
- message: ''
28
+ message: Created
29
29
  headers:
30
30
  Server:
31
- - nginx/1.4.6 (Ubuntu)
31
+ - nginx/1.10.0
32
32
  Date:
33
- - Sun, 27 Nov 2016 09:35:59 GMT
33
+ - Tue, 20 Jun 2017 08:49:26 GMT
34
34
  Content-Type:
35
35
  - application/vnd.orcid+xml; qs=5;charset=UTF-8
36
36
  Content-Length:
@@ -39,11 +39,23 @@ http_interactions:
39
39
  - keep-alive
40
40
  Access-Control-Allow-Origin:
41
41
  - "*"
42
+ Cache-Control:
43
+ - no-cache, no-store, max-age=0, must-revalidate
44
+ Pragma:
45
+ - no-cache
46
+ Expires:
47
+ - '0'
48
+ X-Xss-Protection:
49
+ - 1; mode=block
50
+ X-Frame-Options:
51
+ - DENY
52
+ X-Content-Type-Options:
53
+ - nosniff
42
54
  Location:
43
- - http://api.sandbox.orcid.org:443/orcid-api-web/v2.0_rc3/0000-0001-6528-2027/external-identifiers/3316
55
+ - http://api.sandbox.orcid.org:443/orcid-api-web/v2.0/0000-0001-6528-2027/external-identifiers/3824
44
56
  body:
45
57
  encoding: UTF-8
46
58
  string: ''
47
59
  http_version:
48
- recorded_at: Sun, 27 Nov 2016 09:35:59 GMT
60
+ recorded_at: Tue, 20 Jun 2017 08:49:27 GMT
49
61
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
5
- uri: https://api.sandbox.orcid.org/v2.0_rc3/0000-0001-6528-2027/notification-permission/144941
5
+ uri: https://api.sandbox.orcid.org/v2.0/0000-0001-6528-2027/notification-permission/144941
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -18,23 +18,35 @@ http_interactions:
18
18
  response:
19
19
  status:
20
20
  code: 200
21
- message: ''
21
+ message: OK
22
22
  headers:
23
23
  Server:
24
- - nginx/1.4.6 (Ubuntu)
24
+ - nginx/1.10.0
25
25
  Date:
26
- - Sat, 26 Nov 2016 07:25:16 GMT
26
+ - Tue, 20 Jun 2017 08:44:45 GMT
27
27
  Content-Type:
28
28
  - application/vnd.orcid+xml; qs=5;charset=UTF-8
29
29
  Connection:
30
30
  - keep-alive
31
31
  Access-Control-Allow-Origin:
32
32
  - "*"
33
+ Cache-Control:
34
+ - no-cache, no-store, max-age=0, must-revalidate
35
+ Pragma:
36
+ - no-cache
37
+ Expires:
38
+ - '0'
39
+ X-Xss-Protection:
40
+ - 1; mode=block
41
+ X-Frame-Options:
42
+ - DENY
43
+ X-Content-Type-Options:
44
+ - nosniff
33
45
  body:
34
46
  encoding: UTF-8
35
47
  string: |
36
48
  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
37
- <notification:notification put-code="144941" xmlns:internal="http://www.orcid.org/ns/internal" xmlns:funding="http://www.orcid.org/ns/funding" xmlns:preferences="http://www.orcid.org/ns/preferences" xmlns:address="http://www.orcid.org/ns/address" xmlns:education="http://www.orcid.org/ns/education" xmlns:work="http://www.orcid.org/ns/work" xmlns:deprecated="http://www.orcid.org/ns/deprecated" xmlns:other-name="http://www.orcid.org/ns/other-name" xmlns:history="http://www.orcid.org/ns/history" xmlns:employment="http://www.orcid.org/ns/employment" xmlns:error="http://www.orcid.org/ns/error" xmlns:notification="http://www.orcid.org/ns/notification" xmlns:common="http://www.orcid.org/ns/common" xmlns:person="http://www.orcid.org/ns/person" xmlns:activities="http://www.orcid.org/ns/activities" xmlns:record="http://www.orcid.org/ns/record" xmlns:researcher-url="http://www.orcid.org/ns/researcher-url" xmlns:peer-review="http://www.orcid.org/ns/peer-review" xmlns:personal-details="http://www.orcid.org/ns/personal-details" xmlns:keyword="http://www.orcid.org/ns/keyword" xmlns:email="http://www.orcid.org/ns/email" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier">
49
+ <notification:notification put-code="144941" xmlns:internal="http://www.orcid.org/ns/internal" xmlns:funding="http://www.orcid.org/ns/funding" xmlns:preferences="http://www.orcid.org/ns/preferences" xmlns:address="http://www.orcid.org/ns/address" xmlns:education="http://www.orcid.org/ns/education" xmlns:work="http://www.orcid.org/ns/work" xmlns:deprecated="http://www.orcid.org/ns/deprecated" xmlns:other-name="http://www.orcid.org/ns/other-name" xmlns:history="http://www.orcid.org/ns/history" xmlns:employment="http://www.orcid.org/ns/employment" xmlns:error="http://www.orcid.org/ns/error" xmlns:notification="http://www.orcid.org/ns/notification" xmlns:common="http://www.orcid.org/ns/common" xmlns:person="http://www.orcid.org/ns/person" xmlns:activities="http://www.orcid.org/ns/activities" xmlns:record="http://www.orcid.org/ns/record" xmlns:researcher-url="http://www.orcid.org/ns/researcher-url" xmlns:peer-review="http://www.orcid.org/ns/peer-review" xmlns:personal-details="http://www.orcid.org/ns/personal-details" xmlns:bulk="http://www.orcid.org/ns/bulk" xmlns:keyword="http://www.orcid.org/ns/keyword" xmlns:email="http://www.orcid.org/ns/email" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier">
38
50
  <notification:notification-type>permission</notification:notification-type>
39
51
  <notification:authorization-url>
40
52
  <notification:uri>https://sandbox.orcid.org/oauth/authorize?client_id=<ORCID_CLIENT_ID>&amp;response_type=code&amp;scope=/read-limited%20/activities/update%20/person/update&amp;redirect_uri=http://localhost:8080/users/auth/orcid/callback</notification:uri>
@@ -54,6 +66,7 @@ http_interactions:
54
66
  </notification:item>
55
67
  </notification:items>
56
68
  <common:created-date>2016-11-26T07:24:33.965Z</common:created-date>
69
+ <common:sent-date>2016-11-26T07:25:35.313Z</common:sent-date>
57
70
  <common:archived-date>2016-11-26T07:25:16.060Z</common:archived-date>
58
71
  <common:source>
59
72
  <common:source-client-id>
@@ -65,5 +78,5 @@ http_interactions:
65
78
  </common:source>
66
79
  </notification:notification>
67
80
  http_version:
68
- recorded_at: Sat, 26 Nov 2016 07:25:16 GMT
81
+ recorded_at: Tue, 20 Jun 2017 08:44:45 GMT
69
82
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.sandbox.orcid.org/v2.0_rc3/0000-0001-6528-2027/notification-permission/144941
5
+ uri: https://api.sandbox.orcid.org/v2.0/0000-0001-6528-2027/notification-permission/144941
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -18,23 +18,35 @@ http_interactions:
18
18
  response:
19
19
  status:
20
20
  code: 200
21
- message: ''
21
+ message: OK
22
22
  headers:
23
23
  Server:
24
- - nginx/1.4.6 (Ubuntu)
24
+ - nginx/1.10.0
25
25
  Date:
26
- - Sat, 26 Nov 2016 07:25:15 GMT
26
+ - Tue, 20 Jun 2017 08:44:44 GMT
27
27
  Content-Type:
28
28
  - application/vnd.orcid+xml; qs=5;charset=UTF-8
29
29
  Connection:
30
30
  - keep-alive
31
31
  Access-Control-Allow-Origin:
32
32
  - "*"
33
+ Cache-Control:
34
+ - no-cache, no-store, max-age=0, must-revalidate
35
+ Pragma:
36
+ - no-cache
37
+ Expires:
38
+ - '0'
39
+ X-Xss-Protection:
40
+ - 1; mode=block
41
+ X-Frame-Options:
42
+ - DENY
43
+ X-Content-Type-Options:
44
+ - nosniff
33
45
  body:
34
46
  encoding: UTF-8
35
47
  string: |
36
48
  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
37
- <notification:notification put-code="144941" xmlns:internal="http://www.orcid.org/ns/internal" xmlns:funding="http://www.orcid.org/ns/funding" xmlns:preferences="http://www.orcid.org/ns/preferences" xmlns:address="http://www.orcid.org/ns/address" xmlns:education="http://www.orcid.org/ns/education" xmlns:work="http://www.orcid.org/ns/work" xmlns:deprecated="http://www.orcid.org/ns/deprecated" xmlns:other-name="http://www.orcid.org/ns/other-name" xmlns:history="http://www.orcid.org/ns/history" xmlns:employment="http://www.orcid.org/ns/employment" xmlns:error="http://www.orcid.org/ns/error" xmlns:notification="http://www.orcid.org/ns/notification" xmlns:common="http://www.orcid.org/ns/common" xmlns:person="http://www.orcid.org/ns/person" xmlns:activities="http://www.orcid.org/ns/activities" xmlns:record="http://www.orcid.org/ns/record" xmlns:researcher-url="http://www.orcid.org/ns/researcher-url" xmlns:peer-review="http://www.orcid.org/ns/peer-review" xmlns:personal-details="http://www.orcid.org/ns/personal-details" xmlns:keyword="http://www.orcid.org/ns/keyword" xmlns:email="http://www.orcid.org/ns/email" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier">
49
+ <notification:notification put-code="144941" xmlns:internal="http://www.orcid.org/ns/internal" xmlns:funding="http://www.orcid.org/ns/funding" xmlns:preferences="http://www.orcid.org/ns/preferences" xmlns:address="http://www.orcid.org/ns/address" xmlns:education="http://www.orcid.org/ns/education" xmlns:work="http://www.orcid.org/ns/work" xmlns:deprecated="http://www.orcid.org/ns/deprecated" xmlns:other-name="http://www.orcid.org/ns/other-name" xmlns:history="http://www.orcid.org/ns/history" xmlns:employment="http://www.orcid.org/ns/employment" xmlns:error="http://www.orcid.org/ns/error" xmlns:notification="http://www.orcid.org/ns/notification" xmlns:common="http://www.orcid.org/ns/common" xmlns:person="http://www.orcid.org/ns/person" xmlns:activities="http://www.orcid.org/ns/activities" xmlns:record="http://www.orcid.org/ns/record" xmlns:researcher-url="http://www.orcid.org/ns/researcher-url" xmlns:peer-review="http://www.orcid.org/ns/peer-review" xmlns:personal-details="http://www.orcid.org/ns/personal-details" xmlns:bulk="http://www.orcid.org/ns/bulk" xmlns:keyword="http://www.orcid.org/ns/keyword" xmlns:email="http://www.orcid.org/ns/email" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier">
38
50
  <notification:notification-type>permission</notification:notification-type>
39
51
  <notification:authorization-url>
40
52
  <notification:uri>https://sandbox.orcid.org/oauth/authorize?client_id=<ORCID_CLIENT_ID>&amp;response_type=code&amp;scope=/read-limited%20/activities/update%20/person/update&amp;redirect_uri=http://localhost:8080/users/auth/orcid/callback</notification:uri>
@@ -54,6 +66,8 @@ http_interactions:
54
66
  </notification:item>
55
67
  </notification:items>
56
68
  <common:created-date>2016-11-26T07:24:33.965Z</common:created-date>
69
+ <common:sent-date>2016-11-26T07:25:35.313Z</common:sent-date>
70
+ <common:archived-date>2016-11-26T07:25:16.060Z</common:archived-date>
57
71
  <common:source>
58
72
  <common:source-client-id>
59
73
  <common:uri>http://sandbox.orcid.org/client/<ORCID_CLIENT_ID></common:uri>
@@ -64,5 +78,5 @@ http_interactions:
64
78
  </common:source>
65
79
  </notification:notification>
66
80
  http_version:
67
- recorded_at: Sat, 26 Nov 2016 07:25:15 GMT
81
+ recorded_at: Tue, 20 Jun 2017 08:44:44 GMT
68
82
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://search.datacite.org/api?fl=doi,creator,title,publisher,publicationYear,resourceTypeGeneral,description,datacentre,datacentre_symbol,prefix,relatedIdentifier,xml,minted,updated&q=doi:10.5281/zenodo.59983&rows=1&wt=json
5
+ uri: https://api.datacite.org/prefixes/10.5281
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -14,41 +14,94 @@ http_interactions:
14
14
  response:
15
15
  status:
16
16
  code: 200
17
- message: ''
17
+ message: OK
18
18
  headers:
19
- Server:
20
- - openresty/1.11.2.1
21
- Date:
22
- - Sat, 26 Nov 2016 07:24:33 GMT
19
+ Access-Control-Allow-Headers:
20
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
21
+ Access-Control-Allow-Methods:
22
+ - GET, POST, OPTIONS
23
+ Access-Control-Allow-Origin:
24
+ - "*"
25
+ Access-Control-Max-Age:
26
+ - '1728000'
27
+ Cache-Control:
28
+ - max-age=0, private, must-revalidate
23
29
  Content-Type:
24
- - application/json;charset=UTF-8
30
+ - application/vnd.api+json; charset=utf-8
31
+ Date:
32
+ - Tue, 20 Jun 2017 08:44:42 GMT
33
+ Etag:
34
+ - W/"0411b3916b13b0c38e2c133d6e9905e2"
35
+ Server:
36
+ - openresty/1.11.2.2
37
+ Status:
38
+ - 200 OK
39
+ Vary:
40
+ - Accept-Encoding
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Frame-Options:
44
+ - SAMEORIGIN
45
+ X-Powered-By:
46
+ - Phusion Passenger 5.1.4
47
+ X-Request-Id:
48
+ - 2d44e1b2-55ab-4e38-a481-33a8ed0fdf37
49
+ X-Runtime:
50
+ - '0.549845'
51
+ X-Xss-Protection:
52
+ - 1; mode=block
25
53
  Connection:
26
54
  - keep-alive
27
- Access-Control-Allow-Origin:
28
- - "*"
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"data":{"id":"10.5281","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"2016-09-21T20:27:13Z"}}}'
58
+ http_version:
59
+ recorded_at: Tue, 20 Jun 2017 08:44:42 GMT
60
+ - request:
61
+ method: get
62
+ uri: https://search.datacite.org/api?fl=doi,xml,media,minted,updated&q=doi:10.5281/zenodo.59983&wt=json
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ User-Agent:
68
+ - Maremma - https://github.com/datacite/maremma
69
+ Accept:
70
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
71
+ response:
72
+ status:
73
+ code: 200
74
+ message: OK
75
+ headers:
29
76
  Access-Control-Allow-Methods:
30
77
  - GET, POST, OPTIONS
78
+ Access-Control-Allow-Origin:
79
+ - "*"
80
+ Content-Type:
81
+ - application/json;charset=UTF-8
82
+ Date:
83
+ - Tue, 20 Jun 2017 08:44:42 GMT
84
+ Server:
85
+ - openresty/1.11.2.2
86
+ Content-Length:
87
+ - '2816'
88
+ Connection:
89
+ - keep-alive
31
90
  body:
32
91
  encoding: UTF-8
33
- string: '{"responseHeader":{"status":0,"QTime":6},"response":{"numFound":1,"start":0,"docs":[{"minted":"2016-08-11T04:47:51Z","datacentre_symbol":"CERN.ZENODO","xml":"PHJlc291cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyI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ucz4KICAgIDxkZXNjcmlwdGlvbiBkZXNjcmlwdGlvblR5cGU9IkFic3RyYWN0Ij4mbHQ7cCZndDsmbHQ7YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vZGF0YWNpdGUvb21uaWF1dGgtb3JjaWQvcmVsZWFzZXMvdGFnL3YuMS4xLjUiJmd0O29ubWlhdXRoLW9yY2lkIDEuMS41Jmx0Oy9hJmd0OyB3YXMgcmVsZWFzZWQgb24gQXVndXN0IDExLCAyMDE2IHdpdGggdGhlIGZvbGxvd2luZyBjaGFuZ2VzOiZsdDsvcCZndDsKCiZsdDt1bCZndDsKJmx0O2xpJmd0O2NvbXBhdGliaWxpdHkgd2l0aCBvbW5pYXV0aC1vYXV0aDIgMS40LjAuIFRoYW5rcyB0byBwdWxsIHJlcXVlc3QgJmx0O2EgaHJlZj0iaHR0cHM6Ly9naXRodWIuY29tL2RhdGFjaXRlL29tbmlhdXRoLW9yY2lkL3B1bGwvNyImZ3Q7IzcmbHQ7L2EmZ3Q7IGJ5ICZsdDthIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS9lbGVhbm9yYWtoIiZndDtlbGVhbm9yYWtoJmx0Oy9hJmd0Oy4mbHQ7L2xpJmd0OwombHQ7L3VsJmd0OzwvZGVzY3JpcHRpb24+CiAgPC9kZXNjcmlwdGlvbnM+CjwvcmVzb3VyY2U+Cg==","datacentre":"CERN.ZENODO
34
- - ZENODO - Research. Shared.","updated":"2016-08-11T04:47:51Z","prefix":"10.5281","doi":"10.5281/ZENODO.59983","relatedIdentifier":["IsSupplementTo:URL:https://github.com/datacite/omniauth-orcid/tree/v.1.1.5","HasPart:URL:https://zenodo.org/record/59983/files/omniauth-orcid-v.1.1.5.zip"],"creator":["Martin
35
- Fenner","Gudmundur A. Thorisson","Eleanor Kiefel Haggerty","Anusha Ranganathan"],"publisher":"Zenodo","title":["omniauth-orcid:
36
- v.1.1.5"],"description":["<p><a href=\"https://github.com/datacite/omniauth-orcid/releases/tag/v.1.1.5\">onmiauth-orcid
37
- 1.1.5</a> was released on August 11, 2016 with the following changes:</p>\n\n<ul>\n<li>compatibility
38
- with omniauth-oauth2 1.4.0. Thanks to pull request <a href=\"https://github.com/datacite/omniauth-orcid/pull/7\">#7</a>
39
- by <a href=\"https://github.com/eleanorakh\">eleanorakh</a>.</li>\n</ul>"],"publicationYear":"2016","resourceTypeGeneral":"Software"}]}}
92
+ string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":1,"start":0,"docs":[{"xml":"PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPHJlc291cmNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5lbC0zL21ldGFkYXRhLnhzZCI+CiAgPGlkZW50aWZpZXIgaWRlbnRpZmllclR5cGU9IkRPSSI+MTAuNTI4MS96ZW5vZG8uNTk5ODM8L2lkZW50aWZpZXI+CiAgPGNyZWF0b3JzPgogICAgPGNyZWF0b3I+CiAgICAgIDxjcmVhdG9yTmFtZT5NYXJ0aW4gRmVubmVyPC9jcmVhdG9yTmFtZT4KICAgICAgPGFmZmlsaWF0aW9uPkRhdGFDaXRlPC9hZmZpbGlhdGlvbj4KICAgIDwvY3JlYXRvcj4KICAgIDxjcmVhdG9yPgogICAgICA8Y3JlYXRvck5hbWU+R3VkbXVuZHVyIEEuIFRob3Jpc3NvbjwvY3JlYXRvck5hbWU+CiAgICA8L2NyZWF0b3I+CiAgICA8Y3JlYXRvcj4KICAgICAgPGNyZWF0b3JOYW1lPkVsZWFub3IgS2llZmVsIEhhZ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C9yaWdodHNMaXN0PgogIDxkZXNjcmlwdGlvbnM+CiAgICA8ZGVzY3JpcHRpb24gZGVzY3JpcHRpb25UeXBlPSJBYnN0cmFjdCI+Jmx0O3AmZ3Q7Jmx0O2EgaHJlZj0iaHR0cHM6Ly9naXRodWIuY29tL2RhdGFjaXRlL29tbmlhdXRoLW9yY2lkL3JlbGVhc2VzL3RhZy92LjEuMS41IiZndDtvbm1pYXV0aC1vcmNpZCAxLjEuNSZsdDsvYSZndDsgd2FzIHJlbGVhc2VkIG9uIEF1Z3VzdCAxMSwgMjAxNiB3aXRoIHRoZSBmb2xsb3dpbmcgY2hhbmdlczombHQ7L3AmZ3Q7CgombHQ7dWwmZ3Q7CiZsdDtsaSZndDtjb21wYXRpYmlsaXR5IHdpdGggb21uaWF1dGgtb2F1dGgyIDEuNC4wLiBUaGFua3MgdG8gcHVsbCByZXF1ZXN0ICZsdDthIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS9kYXRhY2l0ZS9vbW5pYXV0aC1vcmNpZC9wdWxsLzciJmd0OyM3Jmx0Oy9hJmd0OyBieSAmbHQ7YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vZWxlYW5vcmFraCImZ3Q7ZWxlYW5vcmFraCZsdDsvYSZndDsuJmx0Oy9saSZndDsKJmx0Oy91bCZndDs8L2Rlc2NyaXB0aW9uPgogIDwvZGVzY3JpcHRpb25zPgo8L3Jlc291cmNlPgo=","minted":"2016-08-11T04:47:51Z","updated":"2017-05-30T02:43:22Z","doi":"10.5281/ZENODO.59983"}]}}
40
93
 
41
94
  '
42
95
  http_version:
43
- recorded_at: Sat, 26 Nov 2016 07:24:34 GMT
96
+ recorded_at: Tue, 20 Jun 2017 08:44:42 GMT
44
97
  - request:
45
98
  method: post
46
- uri: https://api.sandbox.orcid.org/v2.0_rc3/0000-0001-6528-2027/notification-permission
99
+ uri: https://api.sandbox.orcid.org/v2.0/0000-0001-6528-2027/notification-permission
47
100
  body:
48
101
  encoding: UTF-8
49
102
  string: |
50
103
  <?xml version="1.0" encoding="UTF-8"?>
51
- <notification:notification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:notification="http://www.orcid.org/ns/notification" xsi:schemaLocation="http://www.orcid.org/ns/notification ../notification-permission-2.0_rc3.xsd">
104
+ <notification:notification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:notification="http://www.orcid.org/ns/notification" xsi:schemaLocation="http://www.orcid.org/ns/notification ../notification-permission-2.0.xsd">
52
105
  <notification:notification-type>permission</notification:notification-type>
53
106
  <notification:authorization-url>
54
107
  <notification:path>/oauth/authorize?client_id=<ORCID_CLIENT_ID>&amp;response_type=code&amp;scope=/read-limited%20/activities/update%20/person/update&amp;redirect_uri=http://localhost:8080/users/auth/orcid/callback</notification:path>
@@ -59,7 +112,7 @@ http_interactions:
59
112
  <notification:items>
60
113
  <notification:item>
61
114
  <notification:item-type>work</notification:item-type>
62
- <notification:item-name>omniauth-orcid: v.1.1.5</notification:item-name>
115
+ <notification:item-name>Omniauth-Orcid: V.1.1.5</notification:item-name>
63
116
  <common:external-id>
64
117
  <common:external-id-type>doi</common:external-id-type>
65
118
  <common:external-id-value>10.5281/zenodo.59983</common:external-id-value>
@@ -80,12 +133,12 @@ http_interactions:
80
133
  response:
81
134
  status:
82
135
  code: 201
83
- message: ''
136
+ message: Created
84
137
  headers:
85
138
  Server:
86
- - nginx/1.4.6 (Ubuntu)
139
+ - nginx/1.10.0
87
140
  Date:
88
- - Sat, 26 Nov 2016 07:24:34 GMT
141
+ - Tue, 20 Jun 2017 08:44:44 GMT
89
142
  Content-Type:
90
143
  - application/vnd.orcid+xml; qs=5;charset=UTF-8
91
144
  Content-Length:
@@ -94,11 +147,23 @@ http_interactions:
94
147
  - keep-alive
95
148
  Access-Control-Allow-Origin:
96
149
  - "*"
150
+ Cache-Control:
151
+ - no-cache, no-store, max-age=0, must-revalidate
152
+ Pragma:
153
+ - no-cache
154
+ Expires:
155
+ - '0'
156
+ X-Xss-Protection:
157
+ - 1; mode=block
158
+ X-Frame-Options:
159
+ - DENY
160
+ X-Content-Type-Options:
161
+ - nosniff
97
162
  Location:
98
- - http://api.sandbox.orcid.org:443/orcid-api-web/v2.0_rc3/0000-0001-6528-2027/notification-permission/144941
163
+ - http://api.sandbox.orcid.org:443/orcid-api-web/v2.0/0000-0001-6528-2027/notification-permission/248060
99
164
  body:
100
165
  encoding: UTF-8
101
166
  string: ''
102
167
  http_version:
103
- recorded_at: Sat, 26 Nov 2016 07:24:35 GMT
168
+ recorded_at: Tue, 20 Jun 2017 08:44:44 GMT
104
169
  recorded_with: VCR 3.0.3