bolognese 1.9.10 → 1.9.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5fb33f15f99b3bdc81bff725ce8c5999393bdf4d61eb933239afc19a7fb1dbf
4
- data.tar.gz: 64b6bd3bd8e5d848c98c9d5d7b319e4d2c49e9873f3a98fd5bb428aaa82ddad9
3
+ metadata.gz: 849fb87ec530a7e1ec773da483f9c1c02e77f121452631484df813c29c3e15c1
4
+ data.tar.gz: 4bae2258180b888f2c730222b997b66ad9824019bddaddd99dbee4980539eb1c
5
5
  SHA512:
6
- metadata.gz: 4946a67e3929a5c14d1e35b5fe27833921eef60d32dabba71d821bef586a4fabdbd8d5b06caa15282f13a02da61c3d8c3300afb0b0997a627cba3408f9660eb6
7
- data.tar.gz: 30e8c160beaa72788aaf6bf6c05148a4705a6085b375b180ead2ac3009b5b15567a544ae758bb5ad430d95eebdac739a75933c02609e401958ee62aa0b4821fc
6
+ metadata.gz: '00679fba333bc077b0c4f9562b017eccdd07e365f340d4f1c90da0e34049ad89a87d299fa0193a224282cdb594aa5113ab13e0f54aa794f195f33352487811e5'
7
+ data.tar.gz: f088ff9511beff4b6eb4f654923af62d4b3b47be8253314a05218b5e5453798b266035927d7350049deb5d5c85673fc79886c9faeb6dd9a540697711adc14b18
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.11](https://github.com/datacite/bolognese/tree/1.9.11) (2021-08-04)
4
+
5
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.10...1.9.11)
6
+
7
+ **Closed issues:**
8
+
9
+ - Sandbox Orcid URLs are not allowed. [\#120](https://github.com/datacite/bolognese/issues/120)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Allow Orcid URLs to have been issued from the sandbox [\#121](https://github.com/datacite/bolognese/pull/121) ([prdanelli](https://github.com/prdanelli))
14
+
15
+ ## [1.9.10](https://github.com/datacite/bolognese/tree/1.9.10) (2021-07-20)
16
+
17
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.9...1.9.10)
18
+
3
19
  ## [1.9.9](https://github.com/datacite/bolognese/tree/1.9.9) (2021-06-09)
4
20
 
5
21
  [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.8...1.9.9)
@@ -275,6 +291,7 @@
275
291
 
276
292
  - Map Fields of Research classification to OECD Fields of Science [\#93](https://github.com/datacite/bolognese/pull/93) ([mfenner](https://github.com/mfenner))
277
293
  - Don't try and normalise "Other" funder types. [\#91](https://github.com/datacite/bolognese/pull/91) ([richardhallett](https://github.com/richardhallett))
294
+ - fixes missing version attribute when data comes from datacite\_json [\#85](https://github.com/datacite/bolognese/pull/85) ([kjgarza](https://github.com/kjgarza))
278
295
 
279
296
  ## [1.6](https://github.com/datacite/bolognese/tree/1.6) (2020-05-16)
280
297
 
@@ -304,10 +321,6 @@
304
321
 
305
322
  [Full Changelog](https://github.com/datacite/bolognese/compare/1.5.17...1.5.18)
306
323
 
307
- **Merged pull requests:**
308
-
309
- - fixes missing version attribute when data comes from datacite\_json [\#85](https://github.com/datacite/bolognese/pull/85) ([kjgarza](https://github.com/kjgarza))
310
-
311
324
  ## [1.5.17](https://github.com/datacite/bolognese/tree/1.5.17) (2020-04-18)
312
325
 
313
326
  [Full Changelog](https://github.com/datacite/bolognese/compare/1.5.16...1.5.17)
@@ -1340,10 +1353,6 @@
1340
1353
 
1341
1354
  [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.9.64...v.0.9.65)
1342
1355
 
1343
- **Closed issues:**
1344
-
1345
- - inconsistent name parsing in JSON-LD conversion [\#16](https://github.com/datacite/bolognese/issues/16)
1346
-
1347
1356
  **Merged pull requests:**
1348
1357
 
1349
1358
  - \[\#28\] Removing multi author support from parsing single author fields. [\#19](https://github.com/datacite/bolognese/pull/19) ([richardhallett](https://github.com/richardhallett))
@@ -1522,6 +1531,7 @@
1522
1531
 
1523
1532
  **Closed issues:**
1524
1533
 
1534
+ - inconsistent name parsing in JSON-LD conversion [\#16](https://github.com/datacite/bolognese/issues/16)
1525
1535
  - Fix error handling alternate names in ris writer [\#14](https://github.com/datacite/bolognese/issues/14)
1526
1536
  - Error displaying container-title [\#13](https://github.com/datacite/bolognese/issues/13)
1527
1537
  - Error parsing funding information [\#12](https://github.com/datacite/bolognese/issues/12)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.9.10)
4
+ bolognese (1.9.11)
5
5
  activesupport (>= 4.2.5)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (>= 5.1.0)
@@ -45,16 +45,17 @@ GEM
45
45
  builder (3.2.4)
46
46
  citeproc (1.0.10)
47
47
  namae (~> 1.0)
48
- citeproc-ruby (1.1.13)
48
+ citeproc-ruby (1.1.14)
49
49
  citeproc (~> 1.0, >= 1.0.9)
50
- csl (~> 1.5)
50
+ csl (~> 1.6)
51
51
  colorize (0.8.1)
52
52
  concurrent-ruby (1.1.9)
53
53
  crack (0.4.5)
54
54
  rexml
55
55
  crass (1.0.6)
56
- csl (1.5.2)
56
+ csl (1.6.0)
57
57
  namae (~> 1.0)
58
+ rexml
58
59
  csl-styles (1.0.1.11)
59
60
  csl (~> 1.0)
60
61
  diff-lcs (1.4.4)
@@ -77,7 +78,7 @@ GEM
77
78
  faraday (>= 0.7.4, < 1.0)
78
79
  gender_detector (0.1.2)
79
80
  unicode_utils (>= 1.3.0)
80
- haml (5.2.1)
81
+ haml (5.2.2)
81
82
  temple (>= 0.8.0)
82
83
  tilt
83
84
  hamster (3.0.0)
@@ -104,7 +105,7 @@ GEM
104
105
  optimist (~> 3)
105
106
  latex-decode (0.3.2)
106
107
  link_header (0.0.8)
107
- loofah (2.10.0)
108
+ loofah (2.12.0)
108
109
  crass (~> 1.0.2)
109
110
  nokogiri (>= 1.5.9)
110
111
  maremma (4.9.5)
@@ -126,7 +127,7 @@ GEM
126
127
  nokogiri (1.11.7)
127
128
  mini_portile2 (~> 2.5.0)
128
129
  racc (~> 1.4)
129
- oj (3.12.1)
130
+ oj (3.13.2)
130
131
  oj_mimic_json (1.0.1)
131
132
  optimist (3.0.1)
132
133
  postrank-uri (1.0.24)
@@ -219,4 +220,4 @@ DEPENDENCIES
219
220
  webmock (~> 3.0, >= 3.0.1)
220
221
 
221
222
  BUNDLED WITH
222
- 2.2.19
223
+ 2.2.25
@@ -574,7 +574,7 @@ module Bolognese
574
574
  end
575
575
 
576
576
  def validate_orcid(orcid)
577
- orcid = Array(/\A(?:(http|https):\/\/(www\.)?orcid\.org\/)?(\d{4}[[:space:]-]\d{4}[[:space:]-]\d{4}[[:space:]-]\d{3}[0-9X]+)\z/.match(orcid)).last
577
+ orcid = Array(/\A(?:(?:http|https):\/\/(?:(?:www|sandbox)?\.)?orcid\.org\/)?(\d{4}[[:space:]-]\d{4}[[:space:]-]\d{4}[[:space:]-]\d{3}[0-9X]+)\z/.match(orcid)).last
578
578
  orcid.gsub(/[[:space:]]/, "-") if orcid.present?
579
579
  end
580
580
 
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.9.10"
2
+ VERSION = "1.9.11"
3
3
  end
data/spec/utils_spec.rb CHANGED
@@ -64,6 +64,18 @@ describe Bolognese::Metadata, vcr: true do
64
64
  expect(response).to eq("0000-0002-1394-3097")
65
65
  end
66
66
 
67
+ it "validate_orcid sandbox" do
68
+ orcid = "http://sandbox.orcid.org/0000-0002-2590-225X"
69
+ response = subject.validate_orcid(orcid)
70
+ expect(response).to eq("0000-0002-2590-225X")
71
+ end
72
+
73
+ it "validate_orcid sandbox https" do
74
+ orcid = "https://sandbox.orcid.org/0000-0002-2590-225X"
75
+ response = subject.validate_orcid(orcid)
76
+ expect(response).to eq("0000-0002-2590-225X")
77
+ end
78
+
67
79
  it "validate_orcid wrong id" do
68
80
  orcid = "0000-0002-1394-309"
69
81
  response = subject.validate_orcid(orcid)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolognese
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.10
4
+ version: 1.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2021-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma