datacite 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee5281533d561e3ce179796ac1ed4513713dc57c363316f796c8a1d085c2c333
4
- data.tar.gz: 379a7b690eb7cc4ff1408244e9ef21a70d66c6da31e18140c07c2477059c4be0
3
+ metadata.gz: e1a3ce4e3973be5ba19e357515ff81e790269554a3a903b152d8c054ae2f9811
4
+ data.tar.gz: 5fd70031a65a0ecd97bc29a15d472a984db3cc86a957d837cf0eb4ef95178c1b
5
5
  SHA512:
6
- metadata.gz: 399e71f4036b3fcec9ffddbd1db55be088ee8575d9d9a0ba801523de2adec3287332a1fad6fd908c526cf0af4fd67e385881000423e909e81afa2df0f010915d
7
- data.tar.gz: 79cacf956ecda9284b9a30e17dbbc4ca65fa1b363d2b25a96b862e24b8b90334c92b449130ee87f709e8f063df499a200c5fa04815cfc2eb5cc6685056c36fbd
6
+ metadata.gz: '0864d11473d3d400f85048ff027a8640515269831244f16db78e4ed8a56fe69c8a39a72d2a5e2cd4c1ccca22f7f6b13f98b91a7bed45f0a35fbfe93c2622c6e7'
7
+ data.tar.gz: 06512ddcebe1fbe294279b06635cbcca58449a3bea3cbdcf0bee3274d44ab172e069451bcadbcc9b765d5506832e406f683c93956b9e0f05277e51289358fff1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- datacite (0.2.0)
4
+ datacite (0.2.1)
5
5
  dry-monads (~> 1.3)
6
6
  faraday (~> 1.4)
7
7
  faraday_middleware (~> 1.0)
@@ -20,12 +20,10 @@ GEM
20
20
  diff-lcs (1.4.4)
21
21
  dry-core (0.7.1)
22
22
  concurrent-ruby (~> 1.0)
23
- dry-equalizer (0.3.0)
24
- dry-monads (1.3.5)
23
+ dry-monads (1.4.0)
25
24
  concurrent-ruby (~> 1.0)
26
- dry-core (~> 0.4, >= 0.4.4)
27
- dry-equalizer
28
- faraday (1.5.1)
25
+ dry-core (~> 0.7)
26
+ faraday (1.7.0)
29
27
  faraday-em_http (~> 1.0)
30
28
  faraday-em_synchrony (~> 1.0)
31
29
  faraday-excon (~> 1.1)
@@ -33,6 +31,7 @@ GEM
33
31
  faraday-net_http (~> 1.0)
34
32
  faraday-net_http_persistent (~> 1.1)
35
33
  faraday-patron (~> 1.0)
34
+ faraday-rack (~> 1.0)
36
35
  multipart-post (>= 1.2, < 3)
37
36
  ruby2_keywords (>= 0.0.4)
38
37
  faraday-em_http (1.0.0)
@@ -42,7 +41,8 @@ GEM
42
41
  faraday-net_http (1.0.1)
43
42
  faraday-net_http_persistent (1.2.0)
44
43
  faraday-patron (1.0.0)
45
- faraday_middleware (1.0.0)
44
+ faraday-rack (1.0.0)
45
+ faraday_middleware (1.1.0)
46
46
  faraday (~> 1.0)
47
47
  hashdiff (1.0.1)
48
48
  json_schema (0.21.0)
@@ -85,7 +85,7 @@ GEM
85
85
  rubocop (~> 1.0)
86
86
  rubocop-ast (>= 1.1.0)
87
87
  ruby-progressbar (1.11.0)
88
- ruby2_keywords (0.0.4)
88
+ ruby2_keywords (0.0.5)
89
89
  unicode-display_width (2.0.0)
90
90
  webmock (3.13.0)
91
91
  addressable (>= 2.3.6)
data/README.md CHANGED
@@ -73,6 +73,13 @@ result.either(
73
73
  )
74
74
  ```
75
75
 
76
+ ### Validation
77
+ This gem validates using a json schema from https://github.com/datacite/schema/blob/master/source/json/kernel-4.3/datacite_4.3_schema.json
78
+
79
+ We've made the following changes:
80
+ * relax the required fields (https://github.com/datacite/schema/issues/97)
81
+ * add event property (https://github.com/datacite/schema/issues/100)
82
+
76
83
  ## Development
77
84
 
78
85
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -216,6 +216,10 @@
216
216
  "type": "object",
217
217
 
218
218
  "properties": {
219
+ "event": {
220
+ "type": "string",
221
+ "enum": ["publish", "register", "hide"]
222
+ },
219
223
  "types": {
220
224
  "type": "object",
221
225
  "properties": {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Datacite
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-15 00:00:00.000000000 Z
11
+ date: 2021-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-monads