cadmus 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/cadmus/renderers.rb +3 -1
- data/lib/cadmus/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ec60a64ad92c23d2f945ebf3e954c3dc8b30920
|
4
|
+
data.tar.gz: 213c4003f0c49f6d573de4d3158549af76aef486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1d497d73e198e2c052b6f10e2e334d0028f7449a108de8135547d365102c715fb4ccf48a73d073891a2235aeaec7498cf3abb70b367f7ff2057d5c146128333
|
7
|
+
data.tar.gz: f62c0c64feab4552bc33597fe890d2bc6a34e31d9ea54ebe8d681172af3a4c3a383b571bf289a04ab1f85b23c9c7c3dbb729d5d0c55b69d8e556d0383a3e80c3
|
data/CHANGELOG.md
CHANGED
data/lib/cadmus/renderers.rb
CHANGED
@@ -15,12 +15,14 @@ module Cadmus
|
|
15
15
|
class Base
|
16
16
|
attr_accessor :default_assigns, :default_filters, :default_registers, :html_sanitizer
|
17
17
|
|
18
|
+
DEFAULT_HTML_SANITIZER = defined?(Rails::Html::FullSanitizer) ? Rails::Html::FullSanitizer : HTML::FullSanitizer
|
19
|
+
|
18
20
|
def initialize
|
19
21
|
self.default_registers = {}
|
20
22
|
self.default_filters = []
|
21
23
|
self.default_assigns = {}
|
22
24
|
|
23
|
-
self.html_sanitizer = Rails.application.config.action_view.full_sanitizer ||
|
25
|
+
self.html_sanitizer = Rails.application.config.action_view.full_sanitizer || DEFAULT_HTML_SANITIZER.new
|
24
26
|
end
|
25
27
|
|
26
28
|
# The preprocess method performs the initial rendering of the Liquid template using the a combination
|
data/lib/cadmus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cadmus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Budin
|
@@ -9,34 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-05-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 4.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 4.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: liquid
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
description: Why deal with setting up a separate CMS? Cadmus is just a little bit
|
@@ -49,8 +49,8 @@ executables: []
|
|
49
49
|
extensions: []
|
50
50
|
extra_rdoc_files: []
|
51
51
|
files:
|
52
|
-
- .gitignore
|
53
|
-
- .yardopts
|
52
|
+
- ".gitignore"
|
53
|
+
- ".yardopts"
|
54
54
|
- CHANGELOG.md
|
55
55
|
- Gemfile
|
56
56
|
- LICENSE
|
@@ -82,17 +82,17 @@ require_paths:
|
|
82
82
|
- lib
|
83
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- -
|
90
|
+
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.4.5
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Embeddable CMS for Rails 3 apps
|