scrivito_pdf_widget 1.0.11 → 1.0.12

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: 8e2baf898d7da1b03fddef4669c5f1ee463c39c9
4
- data.tar.gz: cb7e2fb2784f0cad6ea873e4b0281615a6ddc82e
3
+ metadata.gz: faf81214dc320a20bf74ac7d95efeeb06b0eded8
4
+ data.tar.gz: c130a4ff4a345a14e15e40a9f774ac30ff0eb076
5
5
  SHA512:
6
- metadata.gz: d22e4d13f126e549564d4df9af18e0cb4b3b366d1361b530f3405dcef6c947d37decb153c97b3ff904b14f36cf632d89fdad9a6147f60501b2bb92224bd51dfd
7
- data.tar.gz: 16e25fc814aa16c01005cf2f11940ff7436ee6a041fb64239c65b577c98d83e10eecde87c0f13ca8e0bad4c227738d54e9f63540fb07c87fbbce93d44556ab4c
6
+ metadata.gz: 3913dee2c2a7cc812ffe531ef5092ee480d200c6ef140aac703b03dae352e4d836c28f7f1bea8efa42fe82b2537c038a392b3b95a560527c21506fbf16781bd8
7
+ data.tar.gz: c598cc262169c74250bbaee63b407add4100b90dc2606110b594228ae49bba14f15a4e63d1f46c794f74d9b3d2133ba9bf2c5d76e02aa8c2050d8fb2638e0c27
@@ -1,7 +1,7 @@
1
1
  (function($) {
2
2
  'use strict';
3
3
 
4
- $(function() {
4
+ scrivito.on('content', function() {
5
5
  $('.inline-pdf').pdfViewer({
6
6
  workerSrc: "<%= asset_url('scrivito_pdf_widget/pdf.worker.js') %>",
7
7
  lacy: false
data/app/models/pdf.rb CHANGED
@@ -1,4 +1,8 @@
1
- class Pdf < Obj
1
+ class Pdf < Scrivito::BasicObj
2
+ attribute :headline, :string
3
+ attribute :description, :html
4
+ attribute :blob, :binary
5
+
2
6
  def self.create(attributes)
3
7
  attributes = attributes.with_indifferent_access
4
8
 
@@ -1,3 +1,3 @@
1
1
  class PdfWidget < Widget
2
-
2
+ attribute :pdf, :reference
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module ScrivitoPdfWidget
2
- VERSION = "1.0.11"
2
+ VERSION = "1.0.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_pdf_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler