cadmus 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c607dee469a52a3503f7ed85361b5324c4b10cb44941ce653e122a6642881c6
4
- data.tar.gz: ac58d718a15527304ebb19291d8fa641076334dfcebd6cc97711e493ee3afc77
3
+ metadata.gz: 976db2b31a6439bbd4be7c6d8b0cd262bc9a6d69e065770643904703e5a7ff89
4
+ data.tar.gz: fd4e5c8a7dd861bbac67b18aeb72f3b1c6ca5e0956334aa645c0eca019dfec5a
5
5
  SHA512:
6
- metadata.gz: 5629fb1f4409a98cbd053110aad417e2d3dc697f5b0cb14f00dcfd24003e5ba2571d3de2651d659c794da91bd8d83b7afe45a8f34eb9e293ece85195f6cf3603
7
- data.tar.gz: 1996d05f4e055806e4c76428414af0c1e437e7399d5d3792ccb03a7183301a7e8411f86d5f48355cb2dbfe9c4bec11f7992113d50e6cadf890068519d7a2dc74
6
+ metadata.gz: d93ed1826c12119f410af33808a44c3f2bbf8e4215b3e8d0fd8c61792550db2feb4163faf8a3d8a4554dc1fc1a99ff3b91433d3effab8e546b4765f9c70ec643
7
+ data.tar.gz: 30b44dc40bc5698f5da0d23967c4a888fce8838e04d434329f0f5f776a2cd84f166aa6abaec6f0a583a645917aa1152ca79ff5ace04d6f0200870a49c21dd7da
data/CHANGELOG.md CHANGED
@@ -1,60 +1,64 @@
1
+ ## cadmus 0.7.1 (12-22-2021)
2
+
3
+ - Rails 7 compatibility fixes
4
+
1
5
  ## cadmus 0.7.0 (09-19-2018)
2
6
 
3
- * BREAKING CHANGE: Cadmus no longer mixes anything into `ActiveRecord::Base` when required; instead, models must explicitly include the mixins they need
4
- * Layouts
5
- * Partials
6
- * Major internal refactors
7
+ - BREAKING CHANGE: Cadmus no longer mixes anything into `ActiveRecord::Base` when required; instead, models must explicitly include the mixins they need
8
+ - Layouts
9
+ - Partials
10
+ - Major internal refactors
7
11
 
8
12
  ## cadmus 0.6.0 (04-08-2017)
9
13
 
10
- * Expose a `{% page_url %}` tag, which outputs the URL to a page (for easier inter-page linking)
11
- * Expose a Liquid register called `parent` from controllers that mix in `Cadmus::ControllerExtensions`, which contains the page parent (if present)
12
- * Extract a mixin module called `Cadmus::Concerns::LiquidTemplateField`, which makes it easier to add Liquid templates to models
14
+ - Expose a `{% page_url %}` tag, which outputs the URL to a page (for easier inter-page linking)
15
+ - Expose a Liquid register called `parent` from controllers that mix in `Cadmus::ControllerExtensions`, which contains the page parent (if present)
16
+ - Extract a mixin module called `Cadmus::Concerns::LiquidTemplateField`, which makes it easier to add Liquid templates to models
13
17
 
14
18
  ## cadmus 0.5.3 (02-04-2017)
15
19
 
16
- * Make it possible to make `liquid_assigns`, `liquid_filters` and `liquid_registers` private or protected methods in controllers and other Renderables.
20
+ - Make it possible to make `liquid_assigns`, `liquid_filters` and `liquid_registers` private or protected methods in controllers and other Renderables.
17
21
 
18
22
  ## cadmus 0.5.2 (11-10-2016)
19
23
 
20
- * Rails 5 compatibility fixes
24
+ - Rails 5 compatibility fixes
21
25
 
22
26
  ## cadmus 0.5.1 (05-03-2015)
23
27
 
24
- * Support the sanitizer changes in Rails 4.2
28
+ - Support the sanitizer changes in Rails 4.2
25
29
 
26
30
  ## cadmus 0.5.0 (12-06-2013)
27
31
 
28
- * First release that requires Rails 4.0
29
- * Strong parameters compatibility by default
32
+ - First release that requires Rails 4.0
33
+ - Strong parameters compatibility by default
30
34
 
31
35
  ## cadmus 0.4.8 (07-16-2013)
32
36
 
33
- * Add license info to gemspec
37
+ - Add license info to gemspec
34
38
 
35
39
  ## cadmus 0.4.7 (07-15-2013)
36
40
 
37
- * Bugfix: don't try to use the parameters in the new action. This prevents us from raising errors unnecessarily for required params in Rails 4.
41
+ - Bugfix: don't try to use the parameters in the new action. This prevents us from raising errors unnecessarily for required params in Rails 4.
38
42
 
39
43
  ## cadmus 0.4.6 (07-15-2013)
40
44
 
41
- * Changes for Rails 4 compatibility:
42
- ** Allow PUT or PATCH for the update action
43
- ** Implement a page_params protected method in page controllers, which you can override to get strong_parameters support
45
+ - Changes for Rails 4 compatibility:
46
+ ** Allow PUT or PATCH for the update action
47
+ ** Implement a page_params protected method in page controllers, which you can override to get strong_parameters support
44
48
 
45
49
  ## cadmus 0.4.5 (03-04-2013)
46
50
 
47
- * Change all the other uses of ^ and $ in regexes to \A and \z
48
- * Change scope to use a lambda for Rails 4 compatibility
51
+ - Change all the other uses of ^ and $ in regexes to \A and \z
52
+ - Change scope to use a lambda for Rails 4 compatibility
49
53
 
50
54
  ## cadmus 0.4.4 (03-04-2013)
51
55
 
52
- * Change some uses of ^ and $ in regexes to \A and \z
56
+ - Change some uses of ^ and $ in regexes to \A and \z
53
57
 
54
58
  ## cadmus 0.4.3 (06-17-2012)
55
59
 
56
- * Add a cadmus:views generator to make view customization easier
60
+ - Add a cadmus:views generator to make view customization easier
57
61
 
58
62
  ## cadmus 0.4.2 (06-16-2012)
59
63
 
60
- * Make `cadmus_pages` route function work with no arguments
64
+ - Make `cadmus_pages` route function work with no arguments
data/Gemfile CHANGED
@@ -7,4 +7,5 @@ gem 'yard'
7
7
  gem 'redcarpet', '~> 1.0'
8
8
  gem 'github-markup'
9
9
  gem 'rails', '>= 5.1'
10
- gem 'sqlite3'
10
+ gem 'sprockets-rails'
11
+ gem 'sqlite3'
@@ -1,3 +1,5 @@
1
+ require 'rails-html-sanitizer'
2
+
1
3
  module Cadmus
2
4
 
3
5
  # A Cadmus renderer is an object that handles the rendering of +Liquid::Template+s to output formats
@@ -15,7 +17,7 @@ module Cadmus
15
17
  class Base
16
18
  attr_accessor :default_assigns, :default_filters, :default_registers, :html_sanitizer
17
19
 
18
- DEFAULT_HTML_SANITIZER = defined?(Rails::Html::FullSanitizer) ? Rails::Html::FullSanitizer : HTML::FullSanitizer
20
+ DEFAULT_HTML_SANITIZER = Rails::Html::FullSanitizer
19
21
 
20
22
  def initialize
21
23
  self.default_registers = {}
@@ -1,3 +1,3 @@
1
1
  module Cadmus
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -6,8 +6,6 @@ require "rails/test_help"
6
6
  # to be shown.
7
7
  Minitest.backtrace_filter = Minitest::BacktraceFilter.new
8
8
 
9
- Rails::TestUnitReporter.executable = 'bin/test'
10
-
11
9
  # Load fixtures from the engine
12
10
  if ActiveSupport::TestCase.respond_to?(:fixture_path=)
13
11
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cadmus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Budin
8
8
  - Aziz Khoury
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-19 00:00:00.000000000 Z
12
+ date: 2021-12-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -159,7 +159,7 @@ homepage: http://github.com/gively/cadmus
159
159
  licenses:
160
160
  - MIT
161
161
  metadata: {}
162
- post_install_message:
162
+ post_install_message:
163
163
  rdoc_options: []
164
164
  require_paths:
165
165
  - lib
@@ -174,9 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubyforge_project:
178
- rubygems_version: 2.7.3
179
- signing_key:
177
+ rubygems_version: 3.1.6
178
+ signing_key:
180
179
  specification_version: 4
181
180
  summary: Embeddable CMS for Rails 3 apps
182
181
  test_files: