daengine 0.2.0 → 0.2.1

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.
@@ -16,6 +16,7 @@ class DigitalAsset
16
16
  field :fund_ids, type: Array, default: []
17
17
  field :business_owner, type: String
18
18
  field :summary, type: String
19
+ field :content_organization_ids, type: Array, default: []
19
20
 
20
21
  key :guid
21
22
 
@@ -30,6 +31,7 @@ class DigitalAsset
30
31
  scope :guid_is, ->(guid) { where(:guid => guid)}
31
32
  scope :funds_in, ->(fund_id) { where(:fund_ids.in => fund_id)}
32
33
  scope :audience_in, ->(audience_id) {where(:audiences.in => audience_id)}
34
+ scope :content_organization_in, ->(content_organization_id) {where(:content_organization_ids.in => content_organization_id)}
33
35
  scope :sami_is, ->(sami_code) {where(:sami_code => sami_code)}
34
36
  scope :path_is, ->(path) {where(:'documents.path' => path)}
35
37
  scope :doctype_in, ->(types) {where(:'documents.content_type'.in => types)}
@@ -51,8 +51,7 @@ module Daengine
51
51
  @config
52
52
  end
53
53
 
54
- def self.execute()
55
- config_options = YAML.load_file('C:\dev\529-workspace\rails\daengine\client\config.yml')
54
+ def self.execute(config_options)
56
55
  self.configure(config_options)
57
56
  self.set_logger()
58
57
  self.log("Daengine: ### Loading application config ###", "info")
@@ -14,7 +14,8 @@ module Daengine::TeamsiteMetadataParser
14
14
  "TeamSite/Metadata/enterprise_guid" => 'guid',
15
15
  "TeamSite/Metadata/shortSynopsis" => 'summary',
16
16
  "TeamSite/Metadata/business_owner" => 'business_owner',
17
- "TeamSite/Metadata/enterprise_product_id" => 'product_ids'
17
+ "TeamSite/Metadata/enterprise_product_id" => 'product_ids',
18
+ "TeamSite/Metadata/enterprise_content_organization_id" => 'content_organization_ids'
18
19
  }
19
20
  @@path_tuples = {
20
21
  "path" => 'path',
@@ -1,3 +1,3 @@
1
1
  module Daengine
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.2.0
5
+ version: 0.2.1
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-06-29 00:00:00.000000000Z
13
+ date: 2012-07-09 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails