bolognese 1.8.6 → 1.8.7

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: 5e417ed2ca8755130ac288881cb4c28b283527893f5963d74f408b5f3330de22
4
- data.tar.gz: face7e8caddd3d4f0bf1140f3abd67039a312a82e34c17dcaa059b620363c7e2
3
+ metadata.gz: ef9724c0ea8f7e38ec30e8e1c30f721ab8af99e5af0953d0252cc6246dc498b3
4
+ data.tar.gz: 29193113893d82778b9bb993495c5470cf507020420df95e5a2b2ccb9a9189cd
5
5
  SHA512:
6
- metadata.gz: 55631c150cac82193eb675f13b5cf62f2e4e0799bc78076dabf2b2e4451f736252e6d06f52816301d24b775c0a58cc8606ed376d7c9c4da9c1b196d449c3acfb
7
- data.tar.gz: 5505f1626d16c96f31fca4e3ea81bed1f8d42de79c86007f045cfe618f8acf3af239a74b75f9b2d718c817bac9d6a6d1155a34d0a0325d0dce2348f32c8c48e3
6
+ metadata.gz: 8a86f7e9a2baeb384583006f6ee0f5fd43ebb3f3f30265ce12a77f69175bdfc3da9e18cb927e101ba92e1627be7af9c992443fedefb3f04d37638d6a9dfe7a1f
7
+ data.tar.gz: 01307b82549d4141d14890006f4183c4a928b9f5cb93cccce9ea4dcbe140bf8edd6d96947dbfc5c794707b7372a51944b6483e3c0cc2b55ce60d4134526af230
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.8.6)
4
+ bolognese (1.8.7)
5
5
  activesupport (>= 4.2.5)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (>= 5.1.0)
@@ -41,6 +41,7 @@ GEM
41
41
  benchmark_methods (0.7)
42
42
  bibtex-ruby (5.1.4)
43
43
  latex-decode (~> 0.0)
44
+ bigdecimal (2.0.0)
44
45
  builder (3.2.4)
45
46
  citeproc (1.0.10)
46
47
  namae (~> 1.0)
@@ -121,7 +122,8 @@ GEM
121
122
  namae (1.0.1)
122
123
  nokogiri (1.10.10)
123
124
  mini_portile2 (~> 2.4.0)
124
- oj (3.10.8)
125
+ oj (3.10.12)
126
+ bigdecimal (>= 1.0, < 3)
125
127
  oj_mimic_json (1.0.1)
126
128
  optimist (3.0.1)
127
129
  postrank-uri (1.0.24)
@@ -175,7 +177,7 @@ GEM
175
177
  rspec (~> 3)
176
178
  safe_yaml (1.0.5)
177
179
  scanf (1.0.0)
178
- simplecov (0.18.5)
180
+ simplecov (0.19.0)
179
181
  docile (~> 1.1)
180
182
  simplecov-html (~> 0.11)
181
183
  simplecov-html (0.12.2)
@@ -7,6 +7,7 @@ module Bolognese
7
7
  "https://creativecommons.org/licenses/by/2.0" => "https://creativecommons.org/licenses/by/2.0/legalcode",
8
8
  "https://creativecommons.org/licenses/by/2.5" => "https://creativecommons.org/licenses/by/2.5/legalcode",
9
9
  "https://creativecommons.org/licenses/by/3.0" => "https://creativecommons.org/licenses/by/3.0/legalcode",
10
+ "https://creativecommons.org/licenses/by/3.0/us" => "https://creativecommons.org/licenses/by/3.0/legalcode",
10
11
  "https://creativecommons.org/licenses/by/4.0" => "https://creativecommons.org/licenses/by/4.0/legalcode",
11
12
  "https://creativecommons.org/licenses/by-nc/1.0" => "https://creativecommons.org/licenses/by-nc/1.0/legalcode",
12
13
  "https://creativecommons.org/licenses/by-nc/2.0" => "https://creativecommons.org/licenses/by-nc/2.0/legalcode",
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.8.6"
2
+ VERSION = "1.8.7"
3
3
  end
@@ -0,0 +1,104 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.org/ra/10.6084
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org)
12
+ Accept:
13
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Date:
20
+ - Fri, 21 Aug 2020 11:43:04 GMT
21
+ Content-Type:
22
+ - application/json;charset=UTF-8
23
+ Connection:
24
+ - keep-alive
25
+ Set-Cookie:
26
+ - __cfduid=dfd6c87cff8b6f860fa122f6cddf80f0f1598010184; expires=Sun, 20-Sep-20
27
+ 11:43:04 GMT; path=/; domain=.doi.org; HttpOnly; SameSite=Lax; Secure
28
+ Cf-Cache-Status:
29
+ - DYNAMIC
30
+ Cf-Request-Id:
31
+ - 04b26d6b940000d6e96a26c200000001
32
+ Expect-Ct:
33
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
34
+ Strict-Transport-Security:
35
+ - max-age=31536000; includeSubDomains; preload
36
+ Server:
37
+ - cloudflare
38
+ Cf-Ray:
39
+ - 5c641825bf84d6e9-FRA
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: |-
43
+ [
44
+ {
45
+ "DOI": "10.6084",
46
+ "RA": "DataCite"
47
+ }
48
+ ]
49
+ http_version:
50
+ recorded_at: Fri, 21 Aug 2020 11:43:04 GMT
51
+ - request:
52
+ method: get
53
+ uri: https://api.datacite.org/dois/10.6084/m9.figshare.1286826.v1?include=media,client
54
+ body:
55
+ encoding: US-ASCII
56
+ string: ''
57
+ headers:
58
+ User-Agent:
59
+ - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org)
60
+ Accept:
61
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Date:
68
+ - Fri, 21 Aug 2020 11:43:05 GMT
69
+ Content-Type:
70
+ - application/json; charset=utf-8
71
+ Connection:
72
+ - keep-alive
73
+ Status:
74
+ - 200 OK
75
+ X-Anonymous-Consumer:
76
+ - 'true'
77
+ Cache-Control:
78
+ - max-age=0, private, must-revalidate
79
+ Vary:
80
+ - Accept-Encoding, Origin
81
+ X-Request-Id:
82
+ - f32dc0c7-ae28-4225-aebb-690f7ed8f96f
83
+ Etag:
84
+ - W/"1053de58f4bcf558a2c6eff57d658893"
85
+ X-Runtime:
86
+ - '0.281050'
87
+ X-Powered-By:
88
+ - Phusion Passenger 6.0.6
89
+ Server:
90
+ - nginx/1.14.0 + Phusion Passenger 6.0.6
91
+ body:
92
+ encoding: ASCII-8BIT
93
+ string: '{"data":{"id":"10.6084/m9.figshare.1286826.v1","type":"dois","attributes":{"doi":"10.6084/m9.figshare.1286826.v1","prefix":"10.6084","suffix":"m9.figshare.1286826.v1","identifiers":[],"alternateIdentifiers":[],"creators":[{"name":"Kramer,
94
+ Bianca","nameType":"Personal","givenName":"Bianca","familyName":"Kramer","affiliation":[],"nameIdentifiers":[{"nameIdentifier":"https://orcid.org/0000-0002-5965-6560","nameIdentifierScheme":"ORCID"}]},{"name":"Bosman,
95
+ Jeroen","nameType":"Personal","givenName":"Jeroen","familyName":"Bosman","affiliation":[],"nameIdentifiers":[{"nameIdentifier":"https://orcid.org/0000-0001-5796-2727","nameIdentifierScheme":"ORCID"}]}],"titles":[{"title":"101
96
+ Innovations in Scholarly Communication - the Changing Research Workflow"}],"publisher":"Figshare","container":{},"publicationYear":2015,"subjects":[],"contributors":[],"dates":[{"date":"2015","dateType":"Issued"}],"language":null,"types":{"ris":"DATA","bibtex":"misc","citeproc":"dataset","schemaOrg":"Dataset","resourceType":"Dataset","resourceTypeGeneral":"Dataset"},"relatedIdentifiers":[],"sizes":[],"formats":[],"version":null,"rightsList":[{"rights":"CC-BY","rightsUri":"http://creativecommons.org/licenses/by/3.0/us"}],"descriptions":[],"geoLocations":[],"fundingReferences":[],"xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3N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W48L2NyZWF0b3JOYW1lPjxuYW1lSWRlbnRpZmllciBuYW1lSWRlbnRpZmllclNjaGVtZT0iT1JDSUQiPjAwMDAtMDAwMS01Nzk2LTI3Mjc8L25hbWVJZGVudGlmaWVyPjwvY3JlYXRvcj48L2NyZWF0b3JzPjwvcmVzb3VyY2U+","url":"https://figshare.com/articles/101_Innovations_in_Scholarly_Communication_the_Changing_Research_Workflow/1286826/1","contentUrl":null,"metadataVersion":0,"schemaVersion":"http://datacite.org/schema/kernel-3","source":null,"isActive":true,"state":"findable","reason":null,"viewCount":0,"viewsOverTime":[],"downloadCount":0,"downloadsOverTime":[],"referenceCount":0,"citationCount":0,"citationsOverTime":[],"partCount":0,"partOfCount":0,"versionCount":0,"versionOfCount":0,"created":"2016-01-19T13:15:11.000Z","registered":"2016-01-19T13:15:12.000Z","published":"2015","updated":"2020-07-27T15:52:33.000Z"},"relationships":{"client":{"data":{"id":"figshare.ars","type":"clients"}},"media":{"data":{"id":"10.6084/m9.figshare.1286826.v1","type":"media"}},"references":{"data":[]},"citations":{"data":[]},"parts":{"data":[]},"partOf":{"data":[]},"versions":{"data":[]},"versionOf":{"data":[]}}},"included":[{"id":"figshare.ars","type":"clients","attributes":{"name":"figshare
97
+ Academic Research System","symbol":"FIGSHARE.ARS","year":2016,"contactEmail":"danielduduta@figshare.com","alternateName":null,"description":"figshare
98
+ allows researchers to publish all of their research outputs in an easily citable,
99
+ sharable and discoverable manner. All file formats can be published, including
100
+ videos and datasets. Optional peer review process. figshare uses creative
101
+ commons licensing.","language":null,"clientType":"repository","domains":"figshare.com","re3data":"https://doi.org/10.17616/R3PK5R","opendoar":null,"issn":null,"url":"http://figshare.com/","created":"2016-10-12T13:42:35.000Z","updated":"2019-07-27T07:15:48.000Z","isActive":true,"hasPassword":true},"relationships":{"provider":{"data":{"id":"figshare","type":"providers"}},"prefixes":{"data":[{"id":"10.6084","type":"prefixes"}]}}}]}'
102
+ http_version:
103
+ recorded_at: Fri, 21 Aug 2020 11:43:05 GMT
104
+ recorded_with: VCR 3.0.3
@@ -295,6 +295,17 @@ describe Bolognese::Metadata, vcr: true do
295
295
  {"subject"=>"FOS: Media and communications", "subjectScheme"=>"Fields of Science and Technology (FOS)", "schemeUri"=>"http://www.oecd.org/science/inno/38235147.pdf"}, {"subject"=>"Library and Information Studies"}])
296
296
  end
297
297
 
298
+ it "cc-by 3.0 us" do
299
+ input = "10.6084/m9.figshare.1286826.v1"
300
+ subject = Bolognese::Metadata.new(input: input)
301
+ expect(subject.valid?).to be true
302
+ expect(subject.rights_list).to eq([{"rights"=>"Creative Commons Attribution 3.0 Unported",
303
+ + "rightsIdentifier"=>"cc-by-3.0",
304
+ + "rightsIdentifierScheme"=>"SPDX",
305
+ + "rightsUri"=>"https://creativecommons.org/licenses/by/3.0/legalcode",
306
+ + "schemeUri"=>"https://spdx.org/licenses/"}])
307
+ end
308
+
298
309
  it "funding schema version 3" do
299
310
  input = "https://doi.org/10.5281/ZENODO.1239"
300
311
  subject = Bolognese::Metadata.new(input: input)
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.8.6
4
+ version: 1.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-13 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma
@@ -941,6 +941,7 @@ files:
941
941
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_only_full_name.yml
942
942
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_with_scheme.yml
943
943
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_with_wrong_orcid_scheme.yml
944
+ - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/cc-by_3_0_us.yml
944
945
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/content_url.yml
945
946
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/date.yml
946
947
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/dissertation.yml