bolognese 1.1.5 → 1.1.6

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: 428357052b8237d622f81a3ee9b7b877d64bb0790182ccc1ee60a8099d6b2edc
4
- data.tar.gz: 134ef1a95d6d540719c26b72957586423aa3f260ed7a191e4d97382da052c6bf
3
+ metadata.gz: 02ec698005af34046845045a8a78bd47ed1b70579678768b6117e242194c641e
4
+ data.tar.gz: ad2fbbd3bac845ce7c10f9c07f2a439b258a90cfe7020633adaa69568c92531d
5
5
  SHA512:
6
- metadata.gz: 5d54736948eff2c9cf8b9a95f2877e72f75d360944ad9f10e8f7ce9fc5b1c82a02535bf80a85d84bc48b4976088496a50f771439dba97f1079c6a0e0c4cc66cb
7
- data.tar.gz: 5531821a2e39560b397d811a6f9a1a78e5bbc699f55d6d4f2bc4e6d304c4541506ecbb49d840ae545bab85a34dcb5d08ffca5c6e66caf0932e353925261a64a8
6
+ metadata.gz: 50ca5d8a322de56b3d416c52e18080a6024e2d8ef706a268a8488d03f25ab6ec9f616943d6c6db4e6779459aa1d1191841613064a8d1b8892746554d5444cc42
7
+ data.tar.gz: 2c12554875e95489534c0a7fda479985f3b75e3fd5b24358f6bf63576e4a19f483bf9a3ea21dde316be5c808a3177f1c65734f6287d856deeb4c0a159e16c173
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.1.5)
4
+ bolognese (1.1.6)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
@@ -10,7 +10,7 @@
10
10
  2016-09-19 v4.0: namespace: kernel-4.0; makes "resourceType" required field, added optional "givenName" and "familyName" to creator and contributor, added "funderReference", added "valueURI" for subject, added "geoLocationPolygon"
11
11
  2017-10-23 v4.1: Addition of dateType value "Other", relationType values "Describes", "IsDescribedBy", "HasVersion", "IsVersionOf", "Requires", "IsRequiredBy", resourceType value "DataPaper", new subproperties "dateInformation", "inPolygonPoint", new attribute "nameType", optional attribute "resourceTypeGeneral" for relatedIdentifier
12
12
  2018-09-08 v4.1.1 Make schema 4.1 backwards compatible to 4.0 by allowing geolocation elements in any order
13
- 2019-02-14 v4.2: Addition of dateType value "Withdrawn", relationType values "Obsoletes", "isObsoletedBy", addition of new subproperties for Rights: rightsIdentifier, rightsIdentifierScheme, schemeURI, addition of the XML language attribute to the properties Creator, Contributor and Publisher for organizational names -->
13
+ 2019-02-14 v4.2: Addition of dateType value "Withdrawn", relationType values "Obsoletes", "isObsoletedBy", addition of new subproperties for Rights: rightsIdentifier, rightsIdentifierScheme, schemeURI, addition of the XML language attribute to the properties Creator, Contributor and Publisher for organizational names, don't check format of DOI -->
14
14
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified" xml:lang="EN">
15
15
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="include/xml.xsd"/>
16
16
  <xs:include schemaLocation="include/datacite-titleType-v4.xsd"/>
@@ -35,12 +35,11 @@
35
35
  <xs:element name="identifier">
36
36
  <xs:annotation>
37
37
  <xs:documentation>A persistent identifier that identifies a resource.</xs:documentation>
38
- <xs:documentation>Currently, only DOI is allowed.</xs:documentation>
39
38
  </xs:annotation>
40
39
  <xs:complexType>
41
40
  <xs:simpleContent>
42
- <xs:extension base="doiType">
43
- <xs:attribute name="identifierType" use="required" fixed="DOI"/>
41
+ <xs:extension base="nonemptycontentStringType">
42
+ <xs:attribute name="identifierType" use="required"/>
44
43
  </xs:extension>
45
44
  </xs:simpleContent>
46
45
  </xs:complexType>
@@ -438,12 +437,6 @@ Use the complete title of a license and include version information if applicabl
438
437
  </xs:complexType>
439
438
  </xs:element>
440
439
  <!-- TYPE DECLARATIONS -->
441
- <!-- defines the value for a DOI" -->
442
- <xs:simpleType name="doiType">
443
- <xs:restriction base="xs:token">
444
- <xs:pattern value="10\..+/.+"/>
445
- </xs:restriction>
446
- </xs:simpleType>
447
440
  <!-- defines value for mandatory fields -->
448
441
  <xs:simpleType name="nonemptycontentStringType">
449
442
  <xs:restriction base="xs:string">
@@ -10,7 +10,7 @@
10
10
  2016-09-19 v4.0: namespace: kernel-4.0; makes "resourceType" required field, added optional "givenName" and "familyName" to creator and contributor, added "funderReference", added "valueURI" for subject, added "geoLocationPolygon"
11
11
  2017-10-23 v4.1: Addition of dateType value "Other", relationType values "Describes", "IsDescribedBy", "HasVersion", "IsVersionOf", "Requires", "IsRequiredBy", resourceType value "DataPaper", new subproperties "dateInformation", "inPolygonPoint", new attribute "nameType", optional attribute "resourceTypeGeneral" for relatedIdentifier
12
12
  2018-09-08 v4.1.1 Make schema 4.1 backwards compatible to 4.0 by allowing geolocation elements in any order
13
- 2019-02-14 v4.2: Addition of dateType value "Withdrawn", relationType values "Obsoletes", "isObsoletedBy", addition of new subproperties for Rights: rightsIdentifier, rightsIdentifierScheme, schemeURI, addition of the XML language attribute to the properties Creator, Contributor and Publisher for organizational names -->
13
+ 2019-02-14 v4.2: Addition of dateType value "Withdrawn", relationType values "Obsoletes", "isObsoletedBy", addition of new subproperties for Rights: rightsIdentifier, rightsIdentifierScheme, schemeURI, addition of the XML language attribute to the properties Creator, Contributor and Publisher for organizational names, don't check format of DOI -->
14
14
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified" xml:lang="EN">
15
15
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="include/xml.xsd"/>
16
16
  <xs:include schemaLocation="include/datacite-titleType-v4.xsd"/>
@@ -35,12 +35,11 @@
35
35
  <xs:element name="identifier">
36
36
  <xs:annotation>
37
37
  <xs:documentation>A persistent identifier that identifies a resource.</xs:documentation>
38
- <xs:documentation>Currently, only DOI is allowed.</xs:documentation>
39
38
  </xs:annotation>
40
39
  <xs:complexType>
41
40
  <xs:simpleContent>
42
- <xs:extension base="doiType">
43
- <xs:attribute name="identifierType" use="required" fixed="DOI"/>
41
+ <xs:extension base="nonemptycontentStringType">
42
+ <xs:attribute name="identifierType" use="required"/>
44
43
  </xs:extension>
45
44
  </xs:simpleContent>
46
45
  </xs:complexType>
@@ -438,12 +437,6 @@ Use the complete title of a license and include version information if applicabl
438
437
  </xs:complexType>
439
438
  </xs:element>
440
439
  <!-- TYPE DECLARATIONS -->
441
- <!-- defines the value for a DOI" -->
442
- <xs:simpleType name="doiType">
443
- <xs:restriction base="xs:token">
444
- <xs:pattern value="10\..+/.+"/>
445
- </xs:restriction>
446
- </xs:simpleType>
447
440
  <!-- defines value for mandatory fields -->
448
441
  <xs:simpleType name="nonemptycontentStringType">
449
442
  <xs:restriction base="xs:string">
@@ -311,9 +311,7 @@ describe Bolognese::Metadata, vcr: true do
311
311
  subject.titles = "Data from: Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth"
312
312
  subject.types = { "schemaOrg" => "Dataset", "resourceTypeGeneral" => "Dataset" }
313
313
  expect(subject.doi).to eq("123")
314
- expect(subject.valid?).to be false
315
- expect(subject.errors.first).to start_with("3:0: ERROR: Element '{http://datacite.org/schema/kernel-4}identifier'")
316
- datacite = Maremma.from_xml(subject.datacite).fetch("resource", {})
314
+ expect(subject.valid?).to be true
317
315
  end
318
316
 
319
317
  it "from schema_org gtex" do
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.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-18 00:00:00.000000000 Z
11
+ date: 2019-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma