daengine 0.3.7.2 → 0.3.7.3
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.
- data/app/models/digital_asset.rb +8 -0
- data/lib/daengine/version.rb +1 -1
- metadata +2 -2
data/app/models/digital_asset.rb
CHANGED
|
@@ -135,6 +135,14 @@ class DigitalAsset
|
|
|
135
135
|
TaxonomyTerm.label_for_term(audiences[0])
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
+
def primary_path
|
|
139
|
+
first_non_finra.try(:path)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
def primary_extension
|
|
143
|
+
first_non_finra.try(:path).try(:split,'.').try(:last).try(:upcase)
|
|
144
|
+
end
|
|
145
|
+
|
|
138
146
|
private
|
|
139
147
|
|
|
140
148
|
def first_non_finra; documents.detect{|d| d.content_type != '549'} end
|
data/lib/daengine/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: daengine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.3.7.
|
|
5
|
+
version: 0.3.7.3
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- sbhatia
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2012-09-
|
|
13
|
+
date: 2012-09-11 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|