daengine 0.3.9.9 → 0.4.0.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.
@@ -82,6 +82,7 @@ module Daengine::TeamsiteMetadataParser
82
82
  update_count = 0; delete_count = 0; added_count = 0;
83
83
  assets.keys.each do |key|
84
84
  da = nil
85
+ asset_doc = assets[key]['documents_attributes'].first if (!assets[key]['documents_attributes'].empty?)
85
86
  begin
86
87
  if (!assets[key]['unpublished_at'].nil?)
87
88
  DigitalAsset.where(guid: key).try :delete_all
@@ -89,7 +90,8 @@ module Daengine::TeamsiteMetadataParser
89
90
  elsif (assets[key]['expires_at'].nil? || (assets[key]['expires_at'] < 1.minute.from_now))
90
91
  DigitalAsset.where(guid: key).try :delete_all
91
92
  delete_count += 1
92
- elsif (assets[key]['content_type'].== DigitalAsset::ContentType::XBRL_DOCUMENT)
93
+ elsif (asset_doc['content_type'] == DigitalAsset::ContentType::XBRL_DOCUMENT)
94
+ Daengine.log("Removing XBRL Document", "info")
93
95
  DigitalAsset.where(guid: key).try :delete_all
94
96
  delete_count += 1
95
97
  else
@@ -1,3 +1,3 @@
1
1
  module Daengine
2
- VERSION = "0.3.9.9"
2
+ VERSION = "0.4.0.0"
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.3.9.9
5
+ version: 0.4.0.0
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-08 00:00:00.000000000Z
13
+ date: 2013-01-09 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -138,7 +138,6 @@ files:
138
138
  - spec/dummy/config/initializers/wrap_parameters.rb
139
139
  - spec/dummy/config/locales/en.yml
140
140
  - spec/dummy/db/test.sqlite3
141
- - spec/dummy/log/test.log
142
141
  - spec/dummy/public/404.html
143
142
  - spec/dummy/public/422.html
144
143
  - spec/dummy/public/500.html
@@ -229,7 +228,6 @@ test_files:
229
228
  - spec/dummy/config/initializers/wrap_parameters.rb
230
229
  - spec/dummy/config/locales/en.yml
231
230
  - spec/dummy/db/test.sqlite3
232
- - spec/dummy/log/test.log
233
231
  - spec/dummy/public/404.html
234
232
  - spec/dummy/public/422.html
235
233
  - spec/dummy/public/500.html
File without changes