ecm_downloads2 5.0.1 → 5.0.2

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: 456136de30ecda9957cadc0c41bada6ded670538
4
- data.tar.gz: 8cd392b8c17a7408d154bc4fca352a253cb25b70
3
+ metadata.gz: '08ab8c9c3c9d8744fe647eaec2c898a8c0ae1e32'
4
+ data.tar.gz: 7e755d9a352be6eccb5ac804bb1e384ff2f5ae29
5
5
  SHA512:
6
- metadata.gz: cd29318a6fb84415be4233abb35e59bca76f4ab0f6fb017bc0c86325cf9c6d3b23fadcce5dd07b8927c414ba347bf904bbad926847edee80b62dbcbe1a04665e
7
- data.tar.gz: 0bcaeeadc53f740b39d298206a4f05effdf6b1198cf072bdd7d81e462d4c64f8c40bb40c0f246cc98909d2170ee40fc60280fd3d275e8ceb4a40c32cf07a1539
6
+ metadata.gz: 6ea697df4b710ece2428856fbda3fabd922687b2a945806e84f0314758deeb241d7b480f1915c199550f928bfbe3875e5aa0fe6cceda8736c298fb8bcbf36eb5
7
+ data.tar.gz: ffc46274a8de31d52ac9c71c95fb690d4f1b32c7b6aad4eb7dc1b9c30b9159562e246f0a2bcb91fa4fda0df38715d807692fc054c21e8f129d85949b1b5736f8
@@ -5,14 +5,10 @@ module Ecm::Downloads
5
5
  if download.nil?
6
6
  I18n.t('ecm.downloads.download.messages.not_found', name: download_name)
7
7
  else
8
- begin
9
- o = Ecm::Downloads::Configuration.prevent_textile_rendering_in_html ? '<notextile>' : ''
10
- o << render(download)
11
- o << '</notextile>' if Ecm::Downloads::Configuration.prevent_textile_rendering_in_html
12
- return o.html_safe
13
- rescue => e
14
- raise e
15
- end
8
+ o = Ecm::Downloads::Configuration.prevent_textile_rendering_in_html ? '<notextile>' : ''
9
+ o << render(download)
10
+ o << '</notextile>' if Ecm::Downloads::Configuration.prevent_textile_rendering_in_html
11
+ return o.html_safe
16
12
  end
17
13
  end
18
14
  end
@@ -1,6 +1,6 @@
1
1
  = bootstrap_responsive_media_object do
2
2
  %h4= download.name
3
3
  %p= download.description
4
- = bootstrap_button(to: polymorphic_url([:download, download], only_path: true), context: :primary) do
4
+ = bootstrap_button(to: ecm_downloads.polymorphic_url([:download, download], only_path: true), context: :primary) do
5
5
  = t('.download')
6
6
  = "(#{download.filesize})"
@@ -1,4 +1,7 @@
1
1
  de:
2
+ component:
3
+ collection_table:
4
+ download: Herunterladen
2
5
  ecm:
3
6
  downloads:
4
7
  download:
@@ -3,6 +3,7 @@ de:
3
3
  activerecord:
4
4
  attributes:
5
5
  ecm/downloads/download:
6
+ additional_actions: ''
6
7
  asset: Datei
7
8
  asset_content_type: Datei Content-Type
8
9
  asset_file_name: Dateiname
@@ -3,6 +3,7 @@ en:
3
3
  activerecord:
4
4
  attributes:
5
5
  ecm/downloads/download:
6
+ additional_actions: ''
6
7
  asset: file
7
8
  asset_content_type: content type
8
9
  asset_file_name: filename
@@ -1,4 +1,7 @@
1
1
  en:
2
+ component:
3
+ collection_table:
4
+ download: Download
2
5
  ecm:
3
6
  downloads:
4
7
  download:
@@ -1,5 +1,6 @@
1
1
  class RemoveEcmDownloadsDownloadsCount < ActiveRecord::Migration[4.2]
2
2
  def change
3
- remove_column :ecm_downloads_download_categories, :ecm_downloads_downloads_count
3
+ remove_column :ecm_downloads_download_categories, :ecm_downloads_downloads_count, :integer
4
+ end
4
5
  end
5
6
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Downloads
3
- VERSION = '5.0.1'
3
+ VERSION = '5.0.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_downloads2
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-16 00:00:00.000000000 Z
11
+ date: 2018-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails