etd_model 2.0.0 → 2.1.0
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 +4 -4
- data/lib/etd_model/etd.rb +3 -3
- data/lib/etd_model/etd_helper.rb +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cac7af1db2bf1ad47dde1614f55bb9365e5d655
|
|
4
|
+
data.tar.gz: 4f243d13dee7faa6fc47f340fd2b421abbbb6eb7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 312ff152ec0d15645de75421d8e4eec930733acfd898ff26e5b96816c83f586f6f191e845fe5801764410b98ed99c33cd932db826e1315ed3b23d7ec9f837029
|
|
7
|
+
data.tar.gz: 6e83244587c5bfe84c4da215d5a9af6598f4747fbbc50e3893e00a8fe6a6a3f76124b21267489035bd355bde9515343ea34f82cd64dd4f358fc79d8e9c4a98c5
|
data/lib/etd_model/etd.rb
CHANGED
|
@@ -4,9 +4,9 @@ module EtdModel
|
|
|
4
4
|
include Dor::Embargoable
|
|
5
5
|
include Dor::Eventable
|
|
6
6
|
|
|
7
|
-
has_many 'parts', :property => :is_part_of
|
|
8
|
-
has_many 'supplemental_files', :property => :is_constituent_of
|
|
9
|
-
has_many 'permission_files', :property => :is_dependent_of
|
|
7
|
+
has_many 'parts', :property => :is_part_of
|
|
8
|
+
has_many 'supplemental_files', :property => :is_constituent_of
|
|
9
|
+
has_many 'permission_files', :property => :is_dependent_of
|
|
10
10
|
|
|
11
11
|
has_metadata :name => 'properties', :type => ActiveFedora::SimpleDatastream do |m|
|
|
12
12
|
m.field 'name', :string # PS:name
|
data/lib/etd_model/etd_helper.rb
CHANGED
|
@@ -2,9 +2,9 @@ module EtdModel
|
|
|
2
2
|
module EtdHelper
|
|
3
3
|
def get_embargo_date
|
|
4
4
|
props_ds = datastreams['properties']
|
|
5
|
-
regaction = props_ds.
|
|
6
|
-
embargo = props_ds.
|
|
7
|
-
if props_ds.
|
|
5
|
+
regaction = props_ds.regactiondttm.first
|
|
6
|
+
embargo = props_ds.embargo.first
|
|
7
|
+
if props_ds.regapproval.first =~ /^approved$/i &&
|
|
8
8
|
!embargo.nil? && embargo != '' &&
|
|
9
9
|
!regaction.nil? && regaction != ''
|
|
10
10
|
case embargo
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: etd_model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Douglas Kim
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: dor-services
|
|
@@ -17,14 +17,14 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '5.
|
|
20
|
+
version: '5.13'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: '5.
|
|
27
|
+
version: '5.13'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: coveralls
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
114
114
|
version: '0'
|
|
115
115
|
requirements: []
|
|
116
116
|
rubyforge_project:
|
|
117
|
-
rubygems_version: 2.
|
|
117
|
+
rubygems_version: 2.5.2
|
|
118
118
|
signing_key:
|
|
119
119
|
specification_version: 4
|
|
120
120
|
summary: ETD content model used by the SULAIR Digital Library
|