briard 2.8.2 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +11 -1
- data/briard.gemspec +1 -0
- data/lib/briard/metadata.rb +4 -2
- data/lib/briard/metadata_utils.rb +2 -0
- data/lib/briard/readers/datacite_reader.rb +1 -1
- data/lib/briard/schema_utils.rb +15 -0
- data/lib/briard/version.rb +1 -1
- data/resources/json-schema/briard_schema.json +367 -0
- data/spec/fixtures/crosscite.json +1 -1
- data/spec/fixtures/datacite.json +1 -1
- data/spec/fixtures/datacite_software.json +1 -1
- data/spec/fixtures/datacite_software_version.json +1 -1
- data/spec/fixtures/vcr_cassettes/Briard_Metadata/json_schema_errors/doi_not_found.yml +105 -0
- data/spec/fixtures/vcr_cassettes/Briard_Metadata/json_schema_errors/is_valid.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Briard_Metadata/json_schema_valid_/is_valid.yml +65 -0
- data/spec/metadata_spec.rb +1 -0
- data/spec/readers/datacite_json_reader_spec.rb +2 -2
- data/spec/readers/datacite_reader_spec.rb +36 -36
- data/spec/readers/npm_reader_spec.rb +3 -3
- data/spec/schema_utils_spec.rb +24 -0
- data/spec/writers/datacite_writer_spec.rb +6 -6
- metadata +21 -1
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: briard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
@@ -290,6 +290,20 @@ dependencies:
|
|
290
290
|
- - "~>"
|
291
291
|
- !ruby/object:Gem::Version
|
292
292
|
version: 0.3.0
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: json_schemer
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: 0.2.23
|
300
|
+
type: :runtime
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - "~>"
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: 0.2.23
|
293
307
|
- !ruby/object:Gem::Dependency
|
294
308
|
name: loofah
|
295
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -747,6 +761,7 @@ files:
|
|
747
761
|
- lib/briard/readers/npm_reader.rb
|
748
762
|
- lib/briard/readers/ris_reader.rb
|
749
763
|
- lib/briard/readers/schema_org_reader.rb
|
764
|
+
- lib/briard/schema_utils.rb
|
750
765
|
- lib/briard/string.rb
|
751
766
|
- lib/briard/utils.rb
|
752
767
|
- lib/briard/version.rb
|
@@ -790,6 +805,7 @@ files:
|
|
790
805
|
- resources/datacite-relationType-v4.xsd
|
791
806
|
- resources/datacite-resourceType-v4.xsd
|
792
807
|
- resources/datacite-titleType-v4.xsd
|
808
|
+
- resources/json-schema/briard_schema.json
|
793
809
|
- resources/kernel-2.1/include/datacite-contributorType-v1.1.xsd
|
794
810
|
- resources/kernel-2.1/include/datacite-contributorType-v2.xsd
|
795
811
|
- resources/kernel-2.1/include/datacite-dateType-v1.1.xsd
|
@@ -1289,6 +1305,9 @@ files:
|
|
1289
1305
|
- spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_no_info.yml
|
1290
1306
|
- spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_orcid_id.yml
|
1291
1307
|
- spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_type_organization.yml
|
1308
|
+
- spec/fixtures/vcr_cassettes/Briard_Metadata/json_schema_errors/doi_not_found.yml
|
1309
|
+
- spec/fixtures/vcr_cassettes/Briard_Metadata/json_schema_errors/is_valid.yml
|
1310
|
+
- spec/fixtures/vcr_cassettes/Briard_Metadata/json_schema_valid_/is_valid.yml
|
1292
1311
|
- spec/fixtures/vcr_cassettes/Briard_Metadata/jsonlint/missing_comma.yml
|
1293
1312
|
- spec/fixtures/vcr_cassettes/Briard_Metadata/jsonlint/nil.yml
|
1294
1313
|
- spec/fixtures/vcr_cassettes/Briard_Metadata/jsonlint/overlapping_keys.yml
|
@@ -1501,6 +1520,7 @@ files:
|
|
1501
1520
|
- spec/readers/npm_reader_spec.rb
|
1502
1521
|
- spec/readers/ris_reader_spec.rb
|
1503
1522
|
- spec/readers/schema_org_reader_spec.rb
|
1523
|
+
- spec/schema_utils_spec.rb
|
1504
1524
|
- spec/spec_helper.rb
|
1505
1525
|
- spec/utils_spec.rb
|
1506
1526
|
- spec/writers/bibtex_writer_spec.rb
|