datacite 0.2.1 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1a3ce4e3973be5ba19e357515ff81e790269554a3a903b152d8c054ae2f9811
4
- data.tar.gz: 5fd70031a65a0ecd97bc29a15d472a984db3cc86a957d837cf0eb4ef95178c1b
3
+ metadata.gz: 1fee1923d00de9ba8043c40dc887b9de41337fb393e7571698898ea1d33cb5fd
4
+ data.tar.gz: db4544ce1ff24888c0c1f918cc423bca0b187f5d6486d2125cb5b48dee451a67
5
5
  SHA512:
6
- metadata.gz: '0864d11473d3d400f85048ff027a8640515269831244f16db78e4ed8a56fe69c8a39a72d2a5e2cd4c1ccca22f7f6b13f98b91a7bed45f0a35fbfe93c2622c6e7'
7
- data.tar.gz: 06512ddcebe1fbe294279b06635cbcca58449a3bea3cbdcf0bee3274d44ab172e069451bcadbcc9b765d5506832e406f683c93956b9e0f05277e51289358fff1
6
+ metadata.gz: 8cfcc7da219fde13da7a1766957dfb1c1271b55a3398ef350eb34b5c18905989a3972005c5545a5b78fa682137c1d68ab2f219b6198ee2e93f26952a791fa6d9
7
+ data.tar.gz: 501cc5e985beea3c78df3b281f75abf9371c703bbd190aba5c350cbe883929ca8592a882e22b3d0317174d64e360c67d062982673741aeb4f5f41d3cf78ff080
@@ -0,0 +1,12 @@
1
+ ## Why was this change made?
2
+
3
+
4
+
5
+ ## How was this change tested?
6
+
7
+
8
+
9
+ ## Which documentation and/or configurations were updated?
10
+
11
+
12
+
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
@@ -14,4 +14,5 @@ gem "rubocop", "~> 1.7"
14
14
  gem "rubocop-rake", "~> 0.6.0"
15
15
  gem "rubocop-rspec", "~> 2.4"
16
16
 
17
+ gem "byebug"
17
18
  gem "webmock", "~> 3.13"
data/Gemfile.lock CHANGED
@@ -1,10 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- datacite (0.2.1)
4
+ datacite (0.3.0)
5
5
  dry-monads (~> 1.3)
6
- faraday (~> 1.4)
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.4.4)
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 (1.7.0)
27
- faraday-em_http (~> 1.0)
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-em_http (1.0.0)
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
- multipart-post (2.1.1)
50
- parallel (1.20.1)
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.0.0)
55
- rake (13.0.4)
56
- regexp_parser (2.1.1)
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.10.0)
59
- rspec-core (~> 3.10.0)
60
- rspec-expectations (~> 3.10.0)
61
- rspec-mocks (~> 3.10.0)
62
- rspec-core (3.10.1)
63
- rspec-support (~> 3.10.0)
64
- rspec-expectations (3.10.1)
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.10.0)
67
- rspec-mocks (3.10.2)
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.10.0)
70
- rspec-support (3.10.2)
71
- rubocop (1.18.3)
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.0.0.0)
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.7.0, < 2.0)
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.7.0)
81
- parser (>= 3.0.1.1)
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.4.0)
85
- rubocop (~> 1.0)
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.0.0)
90
- webmock (3.13.0)
91
- addressable (>= 2.3.6)
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.2)
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.2.21
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", "~> 1.4"
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
@@ -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.basic_auth(username, password)
21
+ conn.request :authorization, :basic, username, password
23
22
  conn.response :json
24
23
  end
25
24
  end
@@ -220,6 +220,9 @@
220
220
  "type": "string",
221
221
  "enum": ["publish", "register", "hide"]
222
222
  },
223
+ "url": {
224
+ "type": "string"
225
+ },
223
226
  "types": {
224
227
  "type": "object",
225
228
  "properties": {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Datacite
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
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.2.1
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: 2021-08-19 00:00:00.000000000 Z
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: '1.4'
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: '1.4'
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
- post_install_message:
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.1.4
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: []