scrivito_pdf_widget 1.0.18 → 1.1.0

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: df8385145640e3cfdf77df516b95cbf80f602f2a
4
- data.tar.gz: f29be934cd547feb833cb0493934d016d59523f8
3
+ metadata.gz: 703e17464cd79a5336c7316d28d77129a8b571b0
4
+ data.tar.gz: da8c2d2ab78941c486882ea0fdbb1e4c13bcd7f0
5
5
  SHA512:
6
- metadata.gz: 98adf7a55baab8f202bc62bfe9e4c45b87fc87a828fe8860cb5373f3361c5afa8fdc2d9258f0a4846a714a788090b07ed4651fc99ba3969e331226dd10158063
7
- data.tar.gz: 64f056e72dc3354905c65e8cf122873d4a1e9b53aa7023574902695d858082e5962940163454a0d5af09ec375f2a0e67ad11d51e6c201655e910035998436426
6
+ metadata.gz: 209365c511090f1fbb0e19572373562638dea5467f898998b722ab9ab09e032c9c5abee0fbd8d15ca73d4b99b25ca5be611d042a7b939489e3d1b7331659ce6b
7
+ data.tar.gz: 8685f06cbb7b1677397d3c2f53a6e78c5dbe812fa6b7a41e51384594ca5af09a72e291bb4dede0934079dc4066d5d70a2190f9207e4ce849329a9d87bb3f8d32
@@ -3,10 +3,6 @@ class Pdf < Obj
3
3
  attribute :blob, :binary
4
4
 
5
5
  def url_to_pdf
6
- self.try(:binary_url).split('?').first
7
- end
8
-
9
- def show_in_navigation?
10
- false
6
+ self.try(:binary_url)
11
7
  end
12
8
  end
@@ -1,7 +1,3 @@
1
1
  class PdfWidget < Widget
2
2
  attribute :pdf, :reference
3
-
4
- def self.filter
5
- {_obj_class: {field: '_obj_class', options: {images: {selected: true, title: 'PDFs', value: 'Pdf'}}}}
6
- end
7
3
  end
@@ -1,5 +1,5 @@
1
1
  <%= scrivito_details_for 'PDF' do %>
2
- <%= scrivito_tag(:div, widget, :pdf, data: {filter: PdfWidget.filter}) %>
2
+ <%= scrivito_tag(:div, widget, :pdf) %>
3
3
  <% end %>
4
4
 
5
5
  <% if widget.pdf.present? %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoPdfWidget
2
- VERSION = "1.0.18"
2
+ VERSION = "1.1.0"
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.18
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler