ddr-models 2.4.13 → 2.4.14

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
  SHA1:
3
- metadata.gz: 7e305b209128c60e1cf1a0231c117686f834f491
4
- data.tar.gz: c4fa26a45ebf460c892c9e5770dc2b10f2a326db
3
+ metadata.gz: 89463db1599ed9a7f4707c36efed6b90edc54d43
4
+ data.tar.gz: ed8918d41b6176c00516bfadcc317593d0466255
5
5
  SHA512:
6
- metadata.gz: ddd8c567e7ec34286dc13eba223a0dedb0b0db7773196b8cecbfa179c4e1c8cc44e6794692fd50deabf9afc37e116e6a35068b2b3fc6b13d525d6425c4201b76
7
- data.tar.gz: a8139759bcd54585aa374f987598a8cdbfc27fabacb914ea841c980e271e384b1273ddd08d40c12f7724e3d836881435f9e09e40214dee42004f9a1ceff60c9d
6
+ metadata.gz: 19c5b9b657b4d755822ba5877016095264a6ee4c49751d87013d685571a5bf24d8568c2ebe75624aebfc3275f03fb180aa925451bae862832076a47692df0941
7
+ data.tar.gz: 499b13e8195943a1d4d9754a2ffe6965b275c14da27c47d9044f842ec9959e913335ee1b7b7b6b85173cf6c81d122728b41892bb1ea8a2b9539b3b592135f629
@@ -26,8 +26,11 @@ module Ddr
26
26
  vocabularies.each do |vocab|
27
27
  Ddr::Vocab::Vocabulary.property_terms(vocab).each do |term|
28
28
  term_name = Ddr::Vocab::Vocabulary.term_name(vocab, term)
29
- property term_name, predicate: term do |index|
30
- index.as *indexers_for(term_name)
29
+ # Do not include :license as a descriptive metadata property
30
+ unless term_name == :license
31
+ property term_name, predicate: term do |index|
32
+ index.as *indexers_for(term_name)
33
+ end
31
34
  end
32
35
  end
33
36
  end
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Models
3
- VERSION = "2.4.13"
3
+ VERSION = "2.4.14"
4
4
  end
5
5
  end
@@ -24,8 +24,8 @@ module Ddr
24
24
  RSpec.describe DescriptiveMetadataDatastream do
25
25
  context "terminology" do
26
26
  subject { described_class.term_names }
27
- it "should have a term for each term name in the RDF::DC vocab" do
28
- expect(subject).to include(*Ddr::Vocab::Vocabulary.term_names(RDF::DC))
27
+ it "should have a term for each term name in the RDF::DC vocab except :license" do
28
+ expect(subject).to include(*Ddr::Vocab::Vocabulary.term_names(RDF::DC)-[:license])
29
29
  end
30
30
  it "should have a term for each term name in the DukeTerms vocab" do
31
31
  expect(subject).to include(*Ddr::Vocab::Vocabulary.term_names(Ddr::Vocab::DukeTerms))
@@ -33,8 +33,9 @@ module Ddr
33
33
  end
34
34
  context "properties" do
35
35
  subject { described_class.properties.map { |prop| prop[1].predicate } }
36
- it "should include all the RDF::DC predicates" do
37
- expect(subject).to include(*Ddr::Vocab::Vocabulary.property_terms(RDF::DC))
36
+ it "should include all the RDF::DC predicates except http://purl.org/dc/terms/license" do
37
+ expected_predicates = Ddr::Vocab::Vocabulary.property_terms(RDF::DC).select { |p| p.to_s != 'http://purl.org/dc/terms/license' }
38
+ expect(subject).to include(*expected_predicates)
38
39
  end
39
40
  it "should include all the DukeTerms predicates" do
40
41
  expect(subject).to include(*Ddr::Vocab::Vocabulary.property_terms(Ddr::Vocab::DukeTerms))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddr-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.13
4
+ version: 2.4.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble