hydra-pcdm 0.8.0.beta1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hydra-pcdm.gemspec +1 -1
- data/lib/hydra/pcdm.rb +0 -1
- data/lib/hydra/pcdm/models/file.rb +0 -12
- data/lib/hydra/pcdm/version.rb +1 -1
- data/spec/hydra/pcdm/models/file_spec.rb +3 -4
- metadata +9 -17
- data/lib/hydra/pcdm/vocab/sweet_jpl_terms.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a90c91c29ad51ee8fbf6d62c30f23a7734e166f3
|
4
|
+
data.tar.gz: d066243d36c4d71405dc1175870c59ce68815a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5042497a4d0983cab587b96c95844106dde0a9447ead9ba31ce138d0f8b291d07023d9ceb02b3122910962ae6c66d5de1a65d2ac3560ec0e0565b29c8b09054e
|
7
|
+
data.tar.gz: 0bb38762f7d5f399e27e19a1c1921af8076ec783c96890683d97340d4ecaa090c5abf960f5e09cc00c96aa0146b42e0c20028fc4280579c24b5380b8d775cb76
|
data/hydra-pcdm.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_dependency 'active-fedora', '
|
22
|
+
spec.add_dependency 'active-fedora', '~> 10.0.0.beta2'
|
23
23
|
spec.add_dependency 'mime-types', '>= 1'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
data/lib/hydra/pcdm.rb
CHANGED
@@ -1,21 +1,9 @@
|
|
1
1
|
module Hydra::PCDM
|
2
2
|
class File < ActiveFedora::File
|
3
3
|
include ActiveFedora::WithMetadata
|
4
|
-
include ActiveFedora::Schema
|
5
4
|
|
6
5
|
metadata do
|
7
6
|
configure type: Vocab::PCDMTerms.File
|
8
|
-
property :label, predicate: ::RDF::RDFS.label
|
9
|
-
|
10
|
-
property :file_name, predicate: RDF::Vocab::EBUCore.filename
|
11
|
-
property :file_size, predicate: RDF::Vocab::EBUCore.fileSize
|
12
|
-
property :date_created, predicate: RDF::Vocab::EBUCore.dateCreated
|
13
|
-
property :has_mime_type, predicate: RDF::Vocab::EBUCore.hasMimeType
|
14
|
-
property :date_modified, predicate: RDF::Vocab::EBUCore.dateModified
|
15
|
-
property :byte_order, predicate: Vocab::SweetJPLTerms.byteOrder
|
16
|
-
|
17
|
-
# This is a server-managed predicate which means Fedora does not let us change it.
|
18
|
-
property :file_hash, predicate: RDF::Vocab::PREMIS.hasMessageDigest
|
19
7
|
end
|
20
8
|
end
|
21
9
|
end
|
data/lib/hydra/pcdm/version.rb
CHANGED
@@ -70,9 +70,8 @@ describe Hydra::PCDM::File do
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
describe '
|
74
|
-
|
75
|
-
|
76
|
-
end
|
73
|
+
describe '::metadata_class_factory' do
|
74
|
+
subject { described_class.metadata_class_factory }
|
75
|
+
it { is_expected.to eq(ActiveFedora::WithMetadata::DefaultMetadataClassFactory) }
|
77
76
|
end
|
78
77
|
end
|
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-pcdm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.0
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- E. Lynette Rayle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active-fedora
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '9.11'
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: 10.0.0.beta2
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '9.11'
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: 10.0.0.beta2
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: mime-types
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -167,7 +161,6 @@ files:
|
|
167
161
|
- lib/hydra/pcdm/validators/pcdm_validator.rb
|
168
162
|
- lib/hydra/pcdm/version.rb
|
169
163
|
- lib/hydra/pcdm/vocab/pcdm_terms.rb
|
170
|
-
- lib/hydra/pcdm/vocab/sweet_jpl_terms.rb
|
171
164
|
- solr/config/_rest_managed.json
|
172
165
|
- solr/config/admin-extra.html
|
173
166
|
- solr/config/elevate.xml
|
@@ -209,12 +202,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
202
|
version: 1.9.3
|
210
203
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
204
|
requirements:
|
212
|
-
- - "
|
205
|
+
- - ">="
|
213
206
|
- !ruby/object:Gem::Version
|
214
|
-
version:
|
207
|
+
version: '0'
|
215
208
|
requirements: []
|
216
209
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.
|
210
|
+
rubygems_version: 2.6.4
|
218
211
|
signing_key:
|
219
212
|
specification_version: 4
|
220
213
|
summary: Portland Common Data Model (PCDM)
|
@@ -229,4 +222,3 @@ test_files:
|
|
229
222
|
- spec/hydra/pcdm/services/file/get_mime_type_spec.rb
|
230
223
|
- spec/hydra/pcdm_spec.rb
|
231
224
|
- spec/spec_helper.rb
|
232
|
-
has_rdoc:
|
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'rdf'
|
2
|
-
module Hydra::PCDM
|
3
|
-
module Vocab
|
4
|
-
class SweetJPLTerms < RDF::StrictVocabulary('http://sweet.jpl.nasa.gov/2.2/reprDataFormat.owl#')
|
5
|
-
# Property definitions
|
6
|
-
property :byteOrder,
|
7
|
-
comment: ['Byte Order.'.freeze],
|
8
|
-
range: 'xsd:string'.freeze,
|
9
|
-
label: 'Byte Order'.freeze
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|