bolognese 1.9.14 → 1.9.17

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: 6ba10d4692952a5c5c4032f160b97fbbdaaf4bfe29bb687a34295bf419ffa8bb
4
- data.tar.gz: 485add29ad628c4ac8ecdf019c42037db3edfa6f7222e5750691b3fe6d6591bf
3
+ metadata.gz: dd97b1d21783c57768cd25908cbd6be7d676c1f6993a0c242d5c3f254ad22b93
4
+ data.tar.gz: 10a5d72f8291eb95773b0f65b3ebc161072c98ff62fd7ac7c90263fa1be63578
5
5
  SHA512:
6
- metadata.gz: 410a666e4784f93feed5053e7c187e1022e2d68d38004cf28e210962a1d21a432ed472bc049b256daf117180fb77f5dcb3c1730f1c43babb322935ce0be17647
7
- data.tar.gz: 550841a2e9ed10210b083702f2a25b0ef5fa968753a39b76d00fa3f63b1817366e52001e19c14fdfeb7a6e46ce5c3df628c42d1f9906aac9227762ea5417363f
6
+ metadata.gz: 6d05090c57b150bf61a9111a57aab3432d7fceaf60b75949476571344b61838b25140a816d2b2bd3b052f071428193f3dc9bcfdc6a452552cf7af1212c97060b
7
+ data.tar.gz: ebf7a1b66b48cfe38ab3cdd308c9c936638fffb64fd3b756ec0d5b51c89545bdb07c23e0443d9536c18d2761c16a9133e860c703e102e1b66b01ed2c40b153ad
data/.gitignore CHANGED
@@ -57,3 +57,4 @@ coverage/
57
57
  !.env.travis
58
58
 
59
59
  .vscode
60
+ .ruby-version
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.16](https://github.com/datacite/bolognese/tree/1.9.16) (2022-07-04)
4
+
5
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.15...1.9.16)
6
+
7
+ ## [1.9.15](https://github.com/datacite/bolognese/tree/1.9.15) (2022-07-04)
8
+
9
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.14...1.9.15)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Fix issue Bracco 521 [\#138](https://github.com/datacite/bolognese/pull/138) ([richardhallett](https://github.com/richardhallett))
14
+
15
+ ## [1.9.14](https://github.com/datacite/bolognese/tree/1.9.14) (2022-05-25)
16
+
17
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.13...1.9.14)
18
+
19
+ **Merged pull requests:**
20
+
21
+ - Update critical dependencies [\#134](https://github.com/datacite/bolognese/pull/134) ([jrhoads](https://github.com/jrhoads))
22
+
3
23
  ## [1.9.13](https://github.com/datacite/bolognese/tree/1.9.13) (2022-01-06)
4
24
 
5
25
  [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.12...1.9.13)
@@ -87,6 +107,10 @@
87
107
 
88
108
  - Singular geoLocationPolygons are wrapped in additional array [\#110](https://github.com/datacite/bolognese/issues/110)
89
109
 
110
+ **Merged pull requests:**
111
+
112
+ - Support returning single geoLocationPolygon [\#111](https://github.com/datacite/bolognese/pull/111) ([richardhallett](https://github.com/richardhallett))
113
+
90
114
  ## [1.9.3](https://github.com/datacite/bolognese/tree/1.9.3) (2021-03-26)
91
115
 
92
116
  [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.2...1.9.3)
@@ -187,7 +211,6 @@
187
211
 
188
212
  **Merged pull requests:**
189
213
 
190
- - Support returning single geoLocationPolygon [\#111](https://github.com/datacite/bolognese/pull/111) ([richardhallett](https://github.com/richardhallett))
191
214
  - Allow some pre-1.0 versions of thor [\#102](https://github.com/datacite/bolognese/pull/102) ([cjcolvar](https://github.com/cjcolvar))
192
215
 
193
216
  ## [1.8.5](https://github.com/datacite/bolognese/tree/1.8.5) (2020-07-30)
@@ -339,6 +362,10 @@
339
362
 
340
363
  [Full Changelog](https://github.com/datacite/bolognese/compare/1.5.17...1.5.18)
341
364
 
365
+ **Merged pull requests:**
366
+
367
+ - fixes missing version attribute when data comes from datacite\_json [\#85](https://github.com/datacite/bolognese/pull/85) ([kjgarza](https://github.com/kjgarza))
368
+
342
369
  ## [1.5.17](https://github.com/datacite/bolognese/tree/1.5.17) (2020-04-18)
343
370
 
344
371
  [Full Changelog](https://github.com/datacite/bolognese/compare/1.5.16...1.5.17)
@@ -445,7 +472,6 @@
445
472
 
446
473
  **Merged pull requests:**
447
474
 
448
- - fixes missing version attribute when data comes from datacite\_json [\#85](https://github.com/datacite/bolognese/pull/85) ([kjgarza](https://github.com/kjgarza))
449
475
  - Bump rack from 2.0.7 to 2.0.8 [\#79](https://github.com/datacite/bolognese/pull/79) ([dependabot[bot]](https://github.com/apps/dependabot))
450
476
 
451
477
  ## [v.1.4.1](https://github.com/datacite/bolognese/tree/v.1.4.1) (2019-12-15)
@@ -1334,15 +1360,15 @@
1334
1360
 
1335
1361
  ## [v.0.9.70](https://github.com/datacite/bolognese/tree/v.0.9.70) (2018-01-12)
1336
1362
 
1337
- [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.9.69...v.0.9.70)
1363
+ [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.6.69...v.0.9.70)
1338
1364
 
1339
- ## [v.0.9.69](https://github.com/datacite/bolognese/tree/v.0.9.69) (2018-01-11)
1365
+ ## [v.0.6.69](https://github.com/datacite/bolognese/tree/v.0.6.69) (2018-01-11)
1340
1366
 
1341
- [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.6.69...v.0.9.69)
1367
+ [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.9.69...v.0.6.69)
1342
1368
 
1343
- ## [v.0.6.69](https://github.com/datacite/bolognese/tree/v.0.6.69) (2018-01-11)
1369
+ ## [v.0.9.69](https://github.com/datacite/bolognese/tree/v.0.9.69) (2018-01-11)
1344
1370
 
1345
- [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.9.68...v.0.6.69)
1371
+ [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.9.68...v.0.9.69)
1346
1372
 
1347
1373
  ## [v.0.9.68](https://github.com/datacite/bolognese/tree/v.0.9.68) (2018-01-11)
1348
1374
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.9.14)
4
+ bolognese (1.9.17)
5
5
  activesupport (>= 4.2.5)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (>= 5.1.0)
@@ -119,14 +119,14 @@ GEM
119
119
  oj_mimic_json (~> 1.0, >= 1.0.1)
120
120
  matrix (0.4.2)
121
121
  mini_portile2 (2.8.0)
122
- minitest (5.15.0)
122
+ minitest (5.16.2)
123
123
  multi_json (1.15.0)
124
- multipart-post (2.1.1)
124
+ multipart-post (2.2.3)
125
125
  namae (1.1.1)
126
126
  nokogiri (1.13.6)
127
127
  mini_portile2 (~> 2.8.0)
128
128
  racc (~> 1.4)
129
- oj (3.13.13)
129
+ oj (3.13.15)
130
130
  oj_mimic_json (1.0.1)
131
131
  optimist (3.0.1)
132
132
  postrank-uri (1.0.24)
@@ -135,13 +135,13 @@ GEM
135
135
  public_suffix (>= 2.0.0, < 2.1)
136
136
  public_suffix (2.0.5)
137
137
  racc (1.6.0)
138
- rack (2.2.3)
138
+ rack (2.2.3.1)
139
139
  rack-test (0.8.3)
140
140
  rack (>= 1.0, < 3)
141
141
  rake (12.3.3)
142
- rdf (3.2.7)
142
+ rdf (3.2.8)
143
143
  link_header (~> 0.0, >= 0.0.8)
144
- rdf-aggregate-repo (3.2.0)
144
+ rdf-aggregate-repo (3.2.1)
145
145
  rdf (~> 3.2)
146
146
  rdf-rdfa (3.2.0)
147
147
  haml (~> 5.2)
@@ -155,7 +155,7 @@ GEM
155
155
  rdf (~> 3.2)
156
156
  rdf-rdfa (~> 3.2)
157
157
  rdf-xsd (~> 3.2)
158
- rdf-turtle (3.2.0)
158
+ rdf-turtle (3.2.1)
159
159
  ebnf (~> 2.3)
160
160
  rdf (~> 3.2)
161
161
  rdf-vocab (3.2.1)
@@ -201,7 +201,7 @@ GEM
201
201
  addressable (>= 2.8.0)
202
202
  crack (>= 0.3.2)
203
203
  hashdiff (>= 0.4.0, < 2.0.0)
204
- zeitwerk (2.5.4)
204
+ zeitwerk (2.6.0)
205
205
 
206
206
  PLATFORMS
207
207
  ruby
@@ -219,4 +219,4 @@ DEPENDENCIES
219
219
  webmock (~> 3.0, >= 3.0.1)
220
220
 
221
221
  BUNDLED WITH
222
- 2.3.14
222
+ 2.3.17
@@ -28,11 +28,10 @@ module Bolognese
28
28
 
29
29
  url = normalize_id(id)
30
30
  response = Maremma.get(url)
31
- doc = Nokogiri::XML(response.body.fetch("data", nil), nil, 'UTF-8')
32
31
 
33
- # workaround for xhtml documents
34
- nodeset = doc.css("script")
35
- string = nodeset.find { |element| element["type"] == "application/ld+json" }
32
+ # Find the schema.org json from the html body
33
+ doc = Nokogiri::HTML(response.body.fetch("data", nil))
34
+ string = doc.at('script[type="application/ld+json"]')
36
35
  string = string.text if string.present?
37
36
 
38
37
  { "string" => string }
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.9.14"
2
+ VERSION = "1.9.17"
3
3
  end
@@ -153,7 +153,7 @@ describe Bolognese::Metadata, vcr: true do
153
153
  it "missing_comma" do
154
154
  json = IO.read(fixture_path + "datacite_software_missing_comma.json")
155
155
  response = subject.jsonlint(json)
156
- expect(response).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:388]"])
156
+ expect(response.first).to include("expected comma, not a string (after doi)")
157
157
  end
158
158
 
159
159
  it "overlapping_keys" do
@@ -46,7 +46,7 @@ describe Bolognese::Metadata, vcr: true do
46
46
  input = fixture_path + "datacite_software_missing_comma.json"
47
47
  subject = Bolognese::Metadata.new(input: input, from: "datacite_json", show_errors: true)
48
48
  expect(subject.valid?).to be false
49
- expect(subject.errors).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:388]"])
49
+ expect(subject.errors.first).to include("expected comma, not a string (after doi)")
50
50
  expect(subject.codemeta).to be_nil
51
51
  end
52
52
 
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.14
4
+ version: 1.9.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-25 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma