datacite 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +12 -0
- data/.rubocop.yml +34 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +37 -54
- data/README.md +1 -0
- data/datacite.gemspec +2 -2
- data/lib/datacite/client.rb +1 -2
- data/lib/datacite/schema.json +3 -0
- data/lib/datacite/version.rb +1 -1
- metadata +10 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fee1923d00de9ba8043c40dc887b9de41337fb393e7571698898ea1d33cb5fd
|
4
|
+
data.tar.gz: db4544ce1ff24888c0c1f918cc423bca0b187f5d6486d2125cb5b48dee451a67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cfcc7da219fde13da7a1766957dfb1c1271b55a3398ef350eb34b5c18905989a3972005c5545a5b78fa682137c1d68ab2f219b6198ee2e93f26952a791fa6d9
|
7
|
+
data.tar.gz: 501cc5e985beea3c78df3b281f75abf9371c703bbd190aba5c350cbe883929ca8592a882e22b3d0317174d64e360c67d062982673741aeb4f5f41d3cf78ff080
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.7
|
2
|
+
TargetRubyVersion: 2.7 # dor-service-app is < 3.0 due to fedora3
|
3
3
|
|
4
4
|
Metrics/BlockLength:
|
5
5
|
Exclude:
|
@@ -88,3 +88,36 @@ Style/StringChars: # (new in 1.12)
|
|
88
88
|
Enabled: true
|
89
89
|
Style/SwapValues: # (new in 1.1)
|
90
90
|
Enabled: true
|
91
|
+
|
92
|
+
Gemspec/RequireMFA: # new in 1.23
|
93
|
+
Enabled: true
|
94
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
95
|
+
Enabled: true
|
96
|
+
Lint/AmbiguousRange: # new in 1.19
|
97
|
+
Enabled: true
|
98
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
99
|
+
Enabled: true
|
100
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
101
|
+
Enabled: true
|
102
|
+
Lint/UselessRuby2Keywords: # new in 1.23
|
103
|
+
Enabled: true
|
104
|
+
Naming/BlockForwarding: # new in 1.24
|
105
|
+
Enabled: true
|
106
|
+
Security/IoMethods: # new in 1.22
|
107
|
+
Enabled: true
|
108
|
+
Style/FileRead: # new in 1.24
|
109
|
+
Enabled: true
|
110
|
+
Style/FileWrite: # new in 1.24
|
111
|
+
Enabled: true
|
112
|
+
Style/MapToHash: # new in 1.24
|
113
|
+
Enabled: true
|
114
|
+
Style/NumberedParameters: # new in 1.22
|
115
|
+
Enabled: true
|
116
|
+
Style/NumberedParametersLimit: # new in 1.22
|
117
|
+
Enabled: true
|
118
|
+
Style/OpenStructUse: # new in 1.23
|
119
|
+
Enabled: true
|
120
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
121
|
+
Enabled: true
|
122
|
+
Style/SelectByRegexp: # new in 1.22
|
123
|
+
Enabled: true
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
datacite (0.
|
4
|
+
datacite (0.3.0)
|
5
5
|
dry-monads (~> 1.3)
|
6
|
-
faraday (~>
|
7
|
-
faraday_middleware (~> 1.0)
|
6
|
+
faraday (~> 2.0)
|
8
7
|
json_schema (~> 0.21.0)
|
9
8
|
zeitwerk (~> 2.4)
|
10
9
|
|
@@ -14,90 +13,74 @@ GEM
|
|
14
13
|
addressable (2.8.0)
|
15
14
|
public_suffix (>= 2.0.2, < 5.0)
|
16
15
|
ast (2.4.2)
|
16
|
+
byebug (11.1.3)
|
17
17
|
concurrent-ruby (1.1.9)
|
18
18
|
crack (0.4.5)
|
19
19
|
rexml
|
20
|
-
diff-lcs (1.
|
20
|
+
diff-lcs (1.5.0)
|
21
21
|
dry-core (0.7.1)
|
22
22
|
concurrent-ruby (~> 1.0)
|
23
23
|
dry-monads (1.4.0)
|
24
24
|
concurrent-ruby (~> 1.0)
|
25
25
|
dry-core (~> 0.7)
|
26
|
-
faraday (
|
27
|
-
faraday-
|
28
|
-
faraday-em_synchrony (~> 1.0)
|
29
|
-
faraday-excon (~> 1.1)
|
30
|
-
faraday-httpclient (~> 1.0.1)
|
31
|
-
faraday-net_http (~> 1.0)
|
32
|
-
faraday-net_http_persistent (~> 1.1)
|
33
|
-
faraday-patron (~> 1.0)
|
34
|
-
faraday-rack (~> 1.0)
|
35
|
-
multipart-post (>= 1.2, < 3)
|
26
|
+
faraday (2.2.0)
|
27
|
+
faraday-net_http (~> 2.0)
|
36
28
|
ruby2_keywords (>= 0.0.4)
|
37
|
-
faraday-
|
38
|
-
faraday-em_synchrony (1.0.0)
|
39
|
-
faraday-excon (1.1.0)
|
40
|
-
faraday-httpclient (1.0.1)
|
41
|
-
faraday-net_http (1.0.1)
|
42
|
-
faraday-net_http_persistent (1.2.0)
|
43
|
-
faraday-patron (1.0.0)
|
44
|
-
faraday-rack (1.0.0)
|
45
|
-
faraday_middleware (1.1.0)
|
46
|
-
faraday (~> 1.0)
|
29
|
+
faraday-net_http (2.0.1)
|
47
30
|
hashdiff (1.0.1)
|
48
31
|
json_schema (0.21.0)
|
49
|
-
|
50
|
-
|
51
|
-
parser (3.0.1.1)
|
32
|
+
parallel (1.21.0)
|
33
|
+
parser (3.1.1.0)
|
52
34
|
ast (~> 2.4.1)
|
53
35
|
public_suffix (4.0.6)
|
54
|
-
rainbow (3.
|
55
|
-
rake (13.0.
|
56
|
-
regexp_parser (2.
|
36
|
+
rainbow (3.1.1)
|
37
|
+
rake (13.0.6)
|
38
|
+
regexp_parser (2.2.1)
|
57
39
|
rexml (3.2.5)
|
58
|
-
rspec (3.
|
59
|
-
rspec-core (~> 3.
|
60
|
-
rspec-expectations (~> 3.
|
61
|
-
rspec-mocks (~> 3.
|
62
|
-
rspec-core (3.
|
63
|
-
rspec-support (~> 3.
|
64
|
-
rspec-expectations (3.
|
40
|
+
rspec (3.11.0)
|
41
|
+
rspec-core (~> 3.11.0)
|
42
|
+
rspec-expectations (~> 3.11.0)
|
43
|
+
rspec-mocks (~> 3.11.0)
|
44
|
+
rspec-core (3.11.0)
|
45
|
+
rspec-support (~> 3.11.0)
|
46
|
+
rspec-expectations (3.11.0)
|
65
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
66
|
-
rspec-support (~> 3.
|
67
|
-
rspec-mocks (3.
|
48
|
+
rspec-support (~> 3.11.0)
|
49
|
+
rspec-mocks (3.11.0)
|
68
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
69
|
-
rspec-support (~> 3.
|
70
|
-
rspec-support (3.
|
71
|
-
rubocop (1.
|
51
|
+
rspec-support (~> 3.11.0)
|
52
|
+
rspec-support (3.11.0)
|
53
|
+
rubocop (1.25.1)
|
72
54
|
parallel (~> 1.10)
|
73
|
-
parser (>= 3.
|
55
|
+
parser (>= 3.1.0.0)
|
74
56
|
rainbow (>= 2.2.2, < 4.0)
|
75
57
|
regexp_parser (>= 1.8, < 3.0)
|
76
58
|
rexml
|
77
|
-
rubocop-ast (>= 1.
|
59
|
+
rubocop-ast (>= 1.15.1, < 2.0)
|
78
60
|
ruby-progressbar (~> 1.7)
|
79
61
|
unicode-display_width (>= 1.4.0, < 3.0)
|
80
|
-
rubocop-ast (1.
|
81
|
-
parser (>= 3.
|
62
|
+
rubocop-ast (1.16.0)
|
63
|
+
parser (>= 3.1.1.0)
|
82
64
|
rubocop-rake (0.6.0)
|
83
65
|
rubocop (~> 1.0)
|
84
|
-
rubocop-rspec (2.
|
85
|
-
rubocop (~> 1.
|
86
|
-
rubocop-ast (>= 1.1.0)
|
66
|
+
rubocop-rspec (2.9.0)
|
67
|
+
rubocop (~> 1.19)
|
87
68
|
ruby-progressbar (1.11.0)
|
88
69
|
ruby2_keywords (0.0.5)
|
89
|
-
unicode-display_width (2.
|
90
|
-
webmock (3.
|
91
|
-
addressable (>= 2.
|
70
|
+
unicode-display_width (2.1.0)
|
71
|
+
webmock (3.14.0)
|
72
|
+
addressable (>= 2.8.0)
|
92
73
|
crack (>= 0.3.2)
|
93
74
|
hashdiff (>= 0.4.0, < 2.0.0)
|
94
|
-
zeitwerk (2.4
|
75
|
+
zeitwerk (2.5.4)
|
95
76
|
|
96
77
|
PLATFORMS
|
97
78
|
x86_64-darwin-19
|
79
|
+
x86_64-darwin-21
|
98
80
|
x86_64-linux
|
99
81
|
|
100
82
|
DEPENDENCIES
|
83
|
+
byebug
|
101
84
|
datacite!
|
102
85
|
rake (~> 13.0)
|
103
86
|
rspec (~> 3.0)
|
@@ -107,4 +90,4 @@ DEPENDENCIES
|
|
107
90
|
webmock (~> 3.13)
|
108
91
|
|
109
92
|
BUNDLED WITH
|
110
|
-
2.
|
93
|
+
2.3.4
|
data/README.md
CHANGED
@@ -79,6 +79,7 @@ This gem validates using a json schema from https://github.com/datacite/schema/b
|
|
79
79
|
We've made the following changes:
|
80
80
|
* relax the required fields (https://github.com/datacite/schema/issues/97)
|
81
81
|
* add event property (https://github.com/datacite/schema/issues/100)
|
82
|
+
* add url property (https://github.com/datacite/schema/issues/101)
|
82
83
|
|
83
84
|
## Development
|
84
85
|
|
data/datacite.gemspec
CHANGED
@@ -29,8 +29,8 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
31
|
spec.add_dependency "dry-monads", "~> 1.3"
|
32
|
-
spec.add_dependency "faraday", "~>
|
33
|
-
spec.add_dependency "faraday_middleware", "~> 1.0"
|
32
|
+
spec.add_dependency "faraday", "~> 2.0"
|
34
33
|
spec.add_dependency "json_schema", "~> 0.21.0"
|
35
34
|
spec.add_dependency "zeitwerk", "~> 2.4"
|
35
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
36
36
|
end
|
data/lib/datacite/client.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "faraday"
|
4
|
-
require "faraday_middleware"
|
5
4
|
require "dry/monads"
|
6
5
|
require "json_schema"
|
7
6
|
|
@@ -19,7 +18,7 @@ module Datacite
|
|
19
18
|
headers: headers
|
20
19
|
) do |conn|
|
21
20
|
conn.request :json
|
22
|
-
conn.
|
21
|
+
conn.request :authorization, :basic, username, password
|
23
22
|
conn.response :json
|
24
23
|
end
|
25
24
|
end
|
data/lib/datacite/schema.json
CHANGED
data/lib/datacite/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datacite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-monads
|
@@ -30,28 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: faraday_middleware
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.0'
|
40
|
+
version: '2.0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: json_schema
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,6 +73,7 @@ executables: []
|
|
87
73
|
extensions: []
|
88
74
|
extra_rdoc_files: []
|
89
75
|
files:
|
76
|
+
- ".github/pull_request_template.md"
|
90
77
|
- ".github/workflows/main.yml"
|
91
78
|
- ".gitignore"
|
92
79
|
- ".rspec"
|
@@ -112,7 +99,8 @@ metadata:
|
|
112
99
|
allowed_push_host: https://rubygems.org
|
113
100
|
homepage_uri: https://github.com/sul-dlss/datacite-ruby
|
114
101
|
source_code_uri: https://github.com/sul-dlss/datacite-ruby
|
115
|
-
|
102
|
+
rubygems_mfa_required: 'true'
|
103
|
+
post_install_message:
|
116
104
|
rdoc_options: []
|
117
105
|
require_paths:
|
118
106
|
- lib
|
@@ -127,8 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
115
|
- !ruby/object:Gem::Version
|
128
116
|
version: '0'
|
129
117
|
requirements: []
|
130
|
-
rubygems_version: 3.
|
131
|
-
signing_key:
|
118
|
+
rubygems_version: 3.2.32
|
119
|
+
signing_key:
|
132
120
|
specification_version: 4
|
133
121
|
summary: A Ruby client library for the DataCite REST API
|
134
122
|
test_files: []
|