ecm_downloads2 1.1.1 → 1.2.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: 9e98577d017dc309342a2f23200aae085cbd737e
4
- data.tar.gz: e1af520faeaffc7b564967af5019df69053aca30
3
+ metadata.gz: bc09ff1371c4f85e2c45f8c46fb8b7f8e5a2c56c
4
+ data.tar.gz: 3ec23c0045ba559083c5b59614398279b992f0b6
5
5
  SHA512:
6
- metadata.gz: 3276c76926725bfd84f43f8609c44dab7e68b00ad7247fbf0b36e4b309c7d3650e31d4c09ed5a8067bce603815cfe181a173604450cd98d0908482889cdf76ed
7
- data.tar.gz: 806c4ebc0a10b0a5a29787e9b7e18745027a97e5df9e899dca5a4dfb9dd96f2aeed8bdc20daf160172bf7083cf536c7db898af4ba738cc52e771ad9139e21f84
6
+ metadata.gz: 11057c4fe276cdc654fb14f6628d6f785fe40fc8c915299085a7d2a88f7968b72f216b22f0ca4c227212229fc2879cb26bc4e1fc0248997e310336339b384268
7
+ data.tar.gz: c2f3a59c4c3846dc5a3a322fdd4ad453d1e801c4997011748a77a7912a8e35b303881fd5d458435ad9331412a7c4a161da32dc4a5a54f36bfbe69001ac8a8a94
@@ -6,9 +6,9 @@ module Ecm::Downloads
6
6
  I18n.t('ecm.downloads.download_category.messages.not_found', :name => download_category_name)
7
7
  else
8
8
  begin
9
- o = '<notextile>'
9
+ o = Ecm::Downloads::Configuration.prevent_textile_rendering_in_html ? '<notextile>' : ''
10
10
  o << render(download_category)
11
- o << '</notextile>'
11
+ o << '</notextile>' if Ecm::Downloads::Configuration.prevent_textile_rendering_in_html
12
12
  return o.html_safe
13
13
  rescue => e
14
14
  raise e
@@ -6,9 +6,9 @@ module Ecm::Downloads
6
6
  I18n.t('ecm.downloads.download.messages.not_found', :name => download_name)
7
7
  else
8
8
  begin
9
- o = '<notextile>'
9
+ o = Ecm::Downloads::Configuration.prevent_textile_rendering_in_html ? '<notextile>' : ''
10
10
  o << render(download)
11
- o << '</notextile>'
11
+ o << '</notextile>' if Ecm::Downloads::Configuration.prevent_textile_rendering_in_html
12
12
  return o.html_safe
13
13
  rescue => e
14
14
  raise e
@@ -24,6 +24,10 @@ module Ecm
24
24
  mattr_accessor :download_categories_table_classes do
25
25
  'table table-striped table-hover'
26
26
  end
27
+
28
+ mattr_accessor :prevent_textile_rendering_in_html do
29
+ true
30
+ end
27
31
  end
28
32
  end
29
33
  end
@@ -1,6 +1,6 @@
1
1
  module Ecm
2
2
  module Downloads
3
- VERSION = "1.1.1"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
6
6
 
@@ -23,4 +23,10 @@ Ecm::Downloads.configure do |config|
23
23
  # Default: config.downloads_table_classes = 'table table-striped table-hover'
24
24
  #
25
25
  config.downloads_table_classes = 'table table-striped table-hover'
26
+
27
+ # Adds <notextile> tags around the to fix html output.
28
+ #
29
+ # Default: config.prevent_textile_rendering_in_html = true
30
+ #
31
+ config.prevent_textile_rendering_in_html = true
26
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_downloads2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel