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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0344d8b346783ac2d1995fcbd3361c411e8c4da4
4
- data.tar.gz: 2d823243b48271f4435bfbdd9294ffcacdebbb0e
3
+ metadata.gz: 1ec60a64ad92c23d2f945ebf3e954c3dc8b30920
4
+ data.tar.gz: 213c4003f0c49f6d573de4d3158549af76aef486
5
5
  SHA512:
6
- metadata.gz: 48bab095c089f8f196df474b448583c9c3b91b78ef8375951259085fa0979dd41e1d9e8b5d0830fe6adbfb5464494fa6e6e5799737fbf28a294fd6425f0a4b16
7
- data.tar.gz: 6d9f4fced3c43a68a82696cbe669286ab3b83a45be1d2369230f05a3a2b8a4d59eb39a701b4d9f31c234b5c58c355acd808834b2e27ae78fb262d7caadce0309
6
+ metadata.gz: d1d497d73e198e2c052b6f10e2e334d0028f7449a108de8135547d365102c715fb4ccf48a73d073891a2235aeaec7498cf3abb70b367f7ff2057d5c146128333
7
+ data.tar.gz: f62c0c64feab4552bc33597fe890d2bc6a34e31d9ea54ebe8d681172af3a4c3a383b571bf289a04ab1f85b23c9c7c3dbb729d5d0c55b69d8e556d0383a3e80c3
@@ -1,3 +1,7 @@
1
+ ## cadmus 0.5.1 (05-03-2015)
2
+
3
+ * Support the sanitizer changes in Rails 4.2
4
+
1
5
  ## cadmus 0.5.0 (12-06-2013)
2
6
 
3
7
  * First release that requires Rails 4.0
@@ -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 || HTML::FullSanitizer.new
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
@@ -1,3 +1,3 @@
1
1
  module Cadmus
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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: 2013-12-06 00:00:00.000000000 Z
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.1.11
95
+ rubygems_version: 2.4.5
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Embeddable CMS for Rails 3 apps