composite_content 2.2.0 → 2.3.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 +4 -4
- data/CHANGELOG.md +18 -0
- data/composite_content.gemspec +3 -3
- data/lib/composite_content/action_view.rb +3 -3
- data/lib/composite_content/active_record.rb +2 -2
- data/lib/composite_content/version.rb +1 -1
- metadata +6 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa9b3d52e34458ff993a898811cc8d3a77ff2096f15c1a7d1bde306baafc5a43
|
|
4
|
+
data.tar.gz: e41b1127b1880682cb54d2e3e20f63c53bc2089b1e21a849c0363f243754b889
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5932fc95e014a3b92bf145330752af35e36d380c3a6e120ac58950df620e94b2d483cfb339f491c26766cb559bd8c4a86d6a65a76c795f99825ddc4a336103c2
|
|
7
|
+
data.tar.gz: c7460e86eaf6f6cbf158de1a6fbe1498017f8e6486b327352b93f9fd2f697dc733f10fed1acea99344ada751fbf4ca11fd365ba37cbcac4e5fb26b8e89c67fbe
|
data/CHANGELOG.md
CHANGED
|
@@ -6,10 +6,28 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## Version 2.3.1 (2026-03-15)
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
* Soften version constraint on `cocooned` to support `cocooned ~> 3.0` (#35)
|
|
14
|
+
* Add Ruby 4.0 to the test matrix (#34)
|
|
15
|
+
|
|
16
|
+
## Version 2.3.0 (2025-10-23)
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
* Configure dependabot to auto-update Github Actions (#29)
|
|
21
|
+
* Drop support for Rails 7.1, Ruby 2.7 and Ruby 3.0 (#28)
|
|
22
|
+
* Add support for Rails 8.1 (#27)
|
|
23
|
+
* Drop support for Rails 7.0 (#26)
|
|
24
|
+
* Add Ruby 3.4 to the test matrix (#23)
|
|
25
|
+
|
|
9
26
|
## Version 2.2.0 (2024-10-01)
|
|
10
27
|
|
|
11
28
|
### Changed
|
|
12
29
|
|
|
30
|
+
* Add Rails 8.0 to the test matrix (#22)
|
|
13
31
|
* Reintroduce Ruby 2.7 into the test matrix (#20)
|
|
14
32
|
So tested rubies match with supported Rails versions minimum requirements
|
|
15
33
|
* Drop support for Rails 6.1 (#20)
|
data/composite_content.gemspec
CHANGED
|
@@ -32,15 +32,15 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
f.match(excluded_dirs) || excluded_files.include?(f)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
spec.required_ruby_version = '>=
|
|
35
|
+
spec.required_ruby_version = '>= 3.1'
|
|
36
36
|
|
|
37
37
|
spec.add_dependency 'active_model_validations_reflection'
|
|
38
38
|
spec.add_dependency 'acts_as_list', '>= 1.0.4'
|
|
39
|
-
spec.add_dependency 'cocooned', '
|
|
39
|
+
spec.add_dependency 'cocooned', '>= 2.4'
|
|
40
40
|
spec.add_dependency 'rails', '>= 6.1.0'
|
|
41
41
|
|
|
42
42
|
# Development tools
|
|
43
|
-
spec.add_development_dependency 'bundler', '
|
|
43
|
+
spec.add_development_dependency 'bundler', '>= 2.1'
|
|
44
44
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
45
45
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
|
46
46
|
end
|
|
@@ -48,9 +48,9 @@ module CompositeContent
|
|
|
48
48
|
label, form, block_type, options = *args
|
|
49
49
|
label ||= composite_content_default_label(block_type)
|
|
50
50
|
opts = (options || {}).except(:count, :form_name, :force_non_association_create)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
.merge!(form_name: :form,
|
|
52
|
+
partial: "#{CompositeContent::Engine.config.views_path}/block/form",
|
|
53
|
+
wrap_object: ->(b) { composite_content_wrap_block(b, block_type) })
|
|
54
54
|
|
|
55
55
|
cocooned_add_item_link(label, form, :blocks, opts)
|
|
56
56
|
end
|
|
@@ -7,7 +7,7 @@ module CompositeContent
|
|
|
7
7
|
# Integration methods with ActiveRecord models
|
|
8
8
|
# These methods are available on any ActiveRecord model once CompositeContent is loaded.
|
|
9
9
|
#
|
|
10
|
-
# rubocop:disable Naming/
|
|
10
|
+
# rubocop:disable Naming/PredicatePrefix
|
|
11
11
|
module ClassMethods
|
|
12
12
|
def has_composite_content(name = :composite_content, types: [])
|
|
13
13
|
CompositeContent::Model::Builder::Block.build(self, name, types)
|
|
@@ -20,7 +20,7 @@ module CompositeContent
|
|
|
20
20
|
extend Mixins.class_mixin(name)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
-
# rubocop:enable Naming/
|
|
23
|
+
# rubocop:enable Naming/PredicatePrefix
|
|
24
24
|
|
|
25
25
|
module Mixins # :nodoc:
|
|
26
26
|
class << self
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: composite_content
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gaël-Ian Havard
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: active_model_validations_reflection
|
|
@@ -42,9 +41,6 @@ dependencies:
|
|
|
42
41
|
name: cocooned
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '2.0'
|
|
48
44
|
- - ">="
|
|
49
45
|
- !ruby/object:Gem::Version
|
|
50
46
|
version: '2.4'
|
|
@@ -52,9 +48,6 @@ dependencies:
|
|
|
52
48
|
prerelease: false
|
|
53
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
54
50
|
requirements:
|
|
55
|
-
- - "~>"
|
|
56
|
-
- !ruby/object:Gem::Version
|
|
57
|
-
version: '2.0'
|
|
58
51
|
- - ">="
|
|
59
52
|
- !ruby/object:Gem::Version
|
|
60
53
|
version: '2.4'
|
|
@@ -76,14 +69,14 @@ dependencies:
|
|
|
76
69
|
name: bundler
|
|
77
70
|
requirement: !ruby/object:Gem::Requirement
|
|
78
71
|
requirements:
|
|
79
|
-
- - "
|
|
72
|
+
- - ">="
|
|
80
73
|
- !ruby/object:Gem::Version
|
|
81
74
|
version: '2.1'
|
|
82
75
|
type: :development
|
|
83
76
|
prerelease: false
|
|
84
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
78
|
requirements:
|
|
86
|
-
- - "
|
|
79
|
+
- - ">="
|
|
87
80
|
- !ruby/object:Gem::Version
|
|
88
81
|
version: '2.1'
|
|
89
82
|
- !ruby/object:Gem::Dependency
|
|
@@ -172,7 +165,6 @@ metadata:
|
|
|
172
165
|
homepage_uri: https://github.com/notus-sh/composite_content
|
|
173
166
|
source_code_uri: https://github.com/notus-sh/composite_content
|
|
174
167
|
funding_uri: https://opencollective.com/notus-sh
|
|
175
|
-
post_install_message:
|
|
176
168
|
rdoc_options: []
|
|
177
169
|
require_paths:
|
|
178
170
|
- lib
|
|
@@ -180,15 +172,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
180
172
|
requirements:
|
|
181
173
|
- - ">="
|
|
182
174
|
- !ruby/object:Gem::Version
|
|
183
|
-
version:
|
|
175
|
+
version: '3.1'
|
|
184
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
177
|
requirements:
|
|
186
178
|
- - ">="
|
|
187
179
|
- !ruby/object:Gem::Version
|
|
188
180
|
version: '0'
|
|
189
181
|
requirements: []
|
|
190
|
-
rubygems_version:
|
|
191
|
-
signing_key:
|
|
182
|
+
rubygems_version: 4.0.3
|
|
192
183
|
specification_version: 4
|
|
193
184
|
summary: Add composite content capacities to your ActiveRecord models.
|
|
194
185
|
test_files: []
|