rdcms_publication 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0606c1a1c3463e50808f2e9dcc0197b9d09ec4a
4
- data.tar.gz: 13160773a6eec7dfad37785a944100857c953276
3
+ metadata.gz: 80ea76e7a111a940f58dac4bc7e89584075fdab2
4
+ data.tar.gz: 5596353648a88fc42825d2c2b8c4ea35526f448b
5
5
  SHA512:
6
- metadata.gz: cf89991ea49fa2a7663fbdaa3df4cc6b52a75c6d7e827921bde0bdadb5c87a20f1aeefe95da9c1fd3963b4fcb39b0c44f9f58cc7d508bfaab7231453a8fa7a1c
7
- data.tar.gz: d37db3d1d206edd76178edbf1a9fdec0a5e59400fc8a08f756f079cfe1afd9c5bd29446f71beb1b8e331a1e8e35abd4331d1d2858f4e0aaa4279e8782d60d61b
6
+ metadata.gz: bb6152d8c119b9649d0be0d4a2196b1b6f1f123d997575cf73c1f783a776e7f0280b7f8d281d125b3d5f74d64a4db1e73ffa0881b1350122a19b509fe40e2a7e
7
+ data.tar.gz: 05040678709dc5434ee0ec23622b3a124a879c69862a9984596c5bfb05476cc1391bdeb0366a8b5f8815ba0fee3923a5d1aa9165af8a6dac4f62d4e92006eeb8
data/Rakefile CHANGED
@@ -16,6 +16,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
16
16
  rdoc.rdoc_dir = 'rdoc'
17
17
  rdoc.title = "Rdcms Publications #{RdcmsPublication::VERSION}"
18
18
  rdoc.options << '--line-numbers'
19
- rdoc.rdoc_files.include('README.rdoc')
19
+ rdoc.rdoc_files.include('README.md')
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
21
21
  end
@@ -76,7 +76,8 @@ class Publication < ActiveRecord::Base
76
76
  end
77
77
 
78
78
  def issuu_upload
79
- if defined?(self.file) and !defined?(self.document_name)
79
+ if defined?(self.file) and self.document_name.nil?
80
+ Rails.logger.info "\n==== Issuu Upload:"
80
81
  self.language = I18n.locale.to_s if self.language.nil?
81
82
  self.document_name = self.slug[/^(.{0,50})/]
82
83
 
@@ -101,8 +102,10 @@ class Publication < ActiveRecord::Base
101
102
  username: document.username
102
103
  }
103
104
  rescue Issuu::IssuuException, Timeout::Error => msg
105
+ errors.add :document, msg.to_s
104
106
  document = { error: true, msg: msg }
105
107
  end
108
+ Rails.logger.info "\n #{document.inspect}\n"
106
109
  end
107
110
  end
108
111
 
@@ -1,3 +1,3 @@
1
1
  module RdcmsPublication
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdcms_publication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gullit Miranda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-20 00:00:00.000000000 Z
11
+ date: 2013-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler