daengine 0.4.5 → 0.4.6
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 +2 -2
- data/app/models/taxonomy_term.rb +1 -1
- data/bin/process_assets +5 -6
- data/bin/process_availability +6 -7
- data/bin/process_taxonomy +6 -7
- data/lib/daengine/version.rb +1 -1
- metadata +2 -2
data/app/models/digital_asset.rb
CHANGED
@@ -138,8 +138,8 @@ class DigitalAsset
|
|
138
138
|
if @fund_code
|
139
139
|
return @fund_code
|
140
140
|
end
|
141
|
-
pid = product_ids.find {|pid| TaxonomyTerm.find_term_by_id(pid).
|
142
|
-
@fund_code = pid and TaxonomyTerm.find_term_by_id(pid)
|
141
|
+
pid = product_ids.find {|pid| TaxonomyTerm.find_term_by_id(pid).try(:fund_code)}
|
142
|
+
@fund_code = pid and TaxonomyTerm.find_term_by_id(pid).try(:fund_code).try(:rjust, 5, '0')
|
143
143
|
end
|
144
144
|
|
145
145
|
def content_type
|
data/app/models/taxonomy_term.rb
CHANGED
data/bin/process_assets
CHANGED
@@ -6,11 +6,10 @@
|
|
6
6
|
# this file is here to facilitate running it.
|
7
7
|
#
|
8
8
|
|
9
|
-
require '
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
-
Pathname.new(__FILE__).realpath)
|
9
|
+
require 'daengine'
|
12
10
|
|
13
|
-
|
14
|
-
require 'bundler/setup'
|
11
|
+
config = YAML.load_file(ARGV[0])
|
15
12
|
|
16
|
-
|
13
|
+
t = Daengine.execute(config)
|
14
|
+
|
15
|
+
puts t
|
data/bin/process_availability
CHANGED
@@ -2,15 +2,14 @@
|
|
2
2
|
#
|
3
3
|
# This file was generated by Bundler.
|
4
4
|
#
|
5
|
-
# The application '
|
5
|
+
# The application 'process_assets' is installed as part of a gem, and
|
6
6
|
# this file is here to facilitate running it.
|
7
7
|
#
|
8
8
|
|
9
|
-
require '
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
-
Pathname.new(__FILE__).realpath)
|
9
|
+
require 'daengine'
|
12
10
|
|
13
|
-
|
14
|
-
require 'bundler/setup'
|
11
|
+
config = YAML.load_file(ARGV[0])
|
15
12
|
|
16
|
-
|
13
|
+
t = Daengine.execute_content_service(config)
|
14
|
+
|
15
|
+
puts t
|
data/bin/process_taxonomy
CHANGED
@@ -2,15 +2,14 @@
|
|
2
2
|
#
|
3
3
|
# This file was generated by Bundler.
|
4
4
|
#
|
5
|
-
# The application '
|
5
|
+
# The application 'process_assets' is installed as part of a gem, and
|
6
6
|
# this file is here to facilitate running it.
|
7
7
|
#
|
8
8
|
|
9
|
-
require '
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
-
Pathname.new(__FILE__).realpath)
|
9
|
+
require 'daengine'
|
12
10
|
|
13
|
-
|
14
|
-
require 'bundler/setup'
|
11
|
+
config = YAML.load_file(ARGV[0])
|
15
12
|
|
16
|
-
|
13
|
+
t = Daengine.execute_taxonomy(config)
|
14
|
+
|
15
|
+
puts t
|
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.4.
|
5
|
+
version: 0.4.6
|
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: 2013-01-
|
13
|
+
date: 2013-01-21 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|