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.
@@ -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).first.try(:fund_code)}
142
- @fund_code = pid and TaxonomyTerm.find_term_by_id(pid)[0].try(:fund_code).try(:rjust, 5, '0')
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
@@ -35,7 +35,7 @@ class TaxonomyTerm
35
35
  end
36
36
 
37
37
  def self.find_term_by_id(term_id)
38
- where(term_id: term_id).try(:first)
38
+ self.term_id_is(term_id).try(:first)
39
39
  end
40
40
  class << self; extend Memoist; self; end.memoize :find_term_by_id
41
41
 
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 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
9
+ require 'daengine'
12
10
 
13
- require 'rubygems'
14
- require 'bundler/setup'
11
+ config = YAML.load_file(ARGV[0])
15
12
 
16
- load Gem.bin_path('daengine', 'process_assets')
13
+ t = Daengine.execute(config)
14
+
15
+ puts t
@@ -2,15 +2,14 @@
2
2
  #
3
3
  # This file was generated by Bundler.
4
4
  #
5
- # The application 'process_availability' is installed as part of a gem, and
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 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
9
+ require 'daengine'
12
10
 
13
- require 'rubygems'
14
- require 'bundler/setup'
11
+ config = YAML.load_file(ARGV[0])
15
12
 
16
- load Gem.bin_path('daengine', 'process_availability')
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 'process_taxonomy' is installed as part of a gem, and
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 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
9
+ require 'daengine'
12
10
 
13
- require 'rubygems'
14
- require 'bundler/setup'
11
+ config = YAML.load_file(ARGV[0])
15
12
 
16
- load Gem.bin_path('daengine', 'process_taxonomy')
13
+ t = Daengine.execute_taxonomy(config)
14
+
15
+ puts t
@@ -1,3 +1,3 @@
1
1
  module Daengine
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
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
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-16 00:00:00.000000000Z
13
+ date: 2013-01-21 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails