toccatore 0.3 → 0.3.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/toccatore/base.rb +13 -3
- data/lib/toccatore/datacite_related.rb +25 -28
- data/lib/toccatore/orcid_update.rb +0 -11
- data/lib/toccatore/version.rb +1 -1
- data/spec/cli_spec.rb +5 -5
- data/spec/datacite_related_spec.rb +6 -0
- data/spec/fixtures/datacite_related_is_identical.json +20 -0
- data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_delete.yml +5 -64
- data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_fail.yml +5 -5
- data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_DOI.yml +107 -109
- data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_ORCID_ID.yml +289 -315
- data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed.yml +249 -245
- data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed_with_no_works.yml +3 -3
- metadata +2 -1
data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed_with_no_works.yml
CHANGED
@@ -23,16 +23,16 @@ http_interactions:
|
|
23
23
|
Content-Type:
|
24
24
|
- application/json;charset=UTF-8
|
25
25
|
Date:
|
26
|
-
- Sat, 11 Mar 2017
|
26
|
+
- Sat, 11 Mar 2017 11:13:05 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":
|
33
|
+
string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":0,"start":0,"docs":[]}}
|
34
34
|
|
35
35
|
'
|
36
36
|
http_version:
|
37
|
-
recorded_at: Sat, 11 Mar 2017
|
37
|
+
recorded_at: Sat, 11 Mar 2017 11:13:05 GMT
|
38
38
|
recorded_with: VCR 3.0.3
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toccatore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
@@ -263,6 +263,7 @@ files:
|
|
263
263
|
- spec/cli_spec.rb
|
264
264
|
- spec/datacite_related_spec.rb
|
265
265
|
- spec/fixtures/datacite_related.json
|
266
|
+
- spec/fixtures/datacite_related_is_identical.json
|
266
267
|
- spec/fixtures/datacite_related_nil.json
|
267
268
|
- spec/fixtures/orcid_update.json
|
268
269
|
- spec/fixtures/orcid_update_is_identical.json
|