orcid_client 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/orcid_client/version.rb +1 -1
- data/lib/orcid_client/work.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eccfb43c700f04c633f4d840660fc0d9a6c958ba4d6125c13abd5820613e266a
|
4
|
+
data.tar.gz: d501455a85b229ab850475f59070c6322ac388bc0ccbb503890e255273dce2b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e10154a60947efbef566bca680275c86eaf6b1a773df9e4e94f89b2d5f676dcdade71b33e51f6c9031c93cfd366657410566874294b81fa6e88c8d5ca406d30
|
7
|
+
data.tar.gz: 995196a4ab03a592fa8afea5a86d914c36a8298caecec9aba7825b01a6b053c696ef3460dd88606507f68209ee8b840b3ee942f4d17730672dda59cdf75a2591
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.9.7.1](https://github.com/datacite/orcid_client/tree/0.9.7.1) (2021-10-08)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/datacite/orcid_client/compare/0.9.7...0.9.7.1)
|
6
|
+
|
3
7
|
## [0.9.7](https://github.com/datacite/orcid_client/tree/0.9.7) (2021-10-08)
|
4
8
|
|
5
9
|
[Full Changelog](https://github.com/datacite/orcid_client/compare/0.9.6...0.9.7)
|
data/Gemfile.lock
CHANGED
data/lib/orcid_client/version.rb
CHANGED
data/lib/orcid_client/work.rb
CHANGED
@@ -17,7 +17,7 @@ module OrcidClient
|
|
17
17
|
|
18
18
|
include Bolognese::Utils
|
19
19
|
|
20
|
-
attr_reader :doi, :orcid, :schema, :orcid_token, :sandbox, :put_code, :visibility, :validation_errors, :name_detector
|
20
|
+
attr_reader :doi, :orcid, :schema, :orcid_token, :sandbox, :put_code, :agency, :visibility, :validation_errors, :name_detector
|
21
21
|
|
22
22
|
attr_writer :visibility
|
23
23
|
|
@@ -27,6 +27,7 @@ module OrcidClient
|
|
27
27
|
@orcid_token = orcid_token
|
28
28
|
@sandbox = options.fetch(:sandbox, nil) || ENV['API_URL'] == "https://api.stage.datacite.org"
|
29
29
|
@put_code = options.fetch(:put_code, nil)
|
30
|
+
@agency = options.fetch(:agency, nil)
|
30
31
|
@visibility = options.fetch(:visibility, 'public')
|
31
32
|
end
|
32
33
|
|
@@ -38,7 +39,7 @@ module OrcidClient
|
|
38
39
|
end
|
39
40
|
|
40
41
|
def metadata
|
41
|
-
@metadata ||= Bolognese::Metadata.new(input: doi, sandbox: sandbox)
|
42
|
+
@metadata ||= Bolognese::Metadata.new(input: doi, sandbox: sandbox, from: agency)
|
42
43
|
end
|
43
44
|
|
44
45
|
def contributors
|