composite_content 2.1.1 → 2.3.0
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 +20 -0
- data/composite_content.gemspec +2 -3
- data/lib/composite_content/action_view.rb +6 -6
- data/lib/composite_content/active_record.rb +2 -2
- data/lib/composite_content/version.rb +1 -1
- metadata +10 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c0a7082122d22d90c3eb294ed3cd4ffd763a51dcf688221a350b8619b1d8fc1
|
|
4
|
+
data.tar.gz: dd821b242a7817ca48de868b73afb5efd74fb6c1fe5e3b92f1a988eec07eb8f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c54d98869a3c3c5319131d42cb048dd208c04c2fb11cb5b0a4bb053eb534847dd36b5258f7d30f4108eb91461db07d38e6796f28b954f23bafb31261a359796
|
|
7
|
+
data.tar.gz: 724beed7aa73d04c001bcab16e20e69137a5d4c5b071b917381cd29a6d4d7f2a76325830020f865f44b72658fab3f177fda198337addd17ab3afaed8b4260fd3
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,26 @@ 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.0 (2025-10-23)
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
* Configure dependabot to auto-update Github Actions (#29)
|
|
14
|
+
* Drop support for Rails 7.1, Ruby 2.7 and Ruby 3.0 (#28)
|
|
15
|
+
* Add support for Rails 8.1 (#27)
|
|
16
|
+
* Drop support for Rails 7.0 (#26)
|
|
17
|
+
* Add Ruby 3.4 to the test matrix (#23)
|
|
18
|
+
|
|
19
|
+
## Version 2.2.0 (2024-10-01)
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
* Add Rails 8.0 to the test matrix (#22)
|
|
24
|
+
* Reintroduce Ruby 2.7 into the test matrix (#20)
|
|
25
|
+
So tested rubies match with supported Rails versions minimum requirements
|
|
26
|
+
* Drop support for Rails 6.1 (#20)
|
|
27
|
+
* Update test matrix to add Rails 7.2 (#17)
|
|
28
|
+
|
|
9
29
|
## Version 2.1.1 (2024-02-10)
|
|
10
30
|
|
|
11
31
|
### Changed
|
data/composite_content.gemspec
CHANGED
|
@@ -32,16 +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', '~> 2.0'
|
|
39
|
+
spec.add_dependency 'cocooned', '~> 2.0', '>= 2.4'
|
|
40
40
|
spec.add_dependency 'rails', '>= 6.1.0'
|
|
41
41
|
|
|
42
42
|
# Development tools
|
|
43
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
|
-
spec.add_development_dependency 'shoulda-matchers', '~> 5.0'
|
|
47
46
|
end
|
|
@@ -56,18 +56,18 @@ module CompositeContent
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# Alias to cocooned_move_item_up_link
|
|
59
|
-
def composite_content_move_block_up_link(
|
|
60
|
-
cocooned_move_item_up_link(
|
|
59
|
+
def composite_content_move_block_up_link(...)
|
|
60
|
+
cocooned_move_item_up_link(...)
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
# Alias to cocooned_move_item_down_link
|
|
64
|
-
def composite_content_move_block_down_link(
|
|
65
|
-
cocooned_move_item_down_link(
|
|
64
|
+
def composite_content_move_block_down_link(...)
|
|
65
|
+
cocooned_move_item_down_link(...)
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
# Alias to cocooned_remove_item_link
|
|
69
|
-
def composite_content_remove_block_link(
|
|
70
|
-
cocooned_remove_item_link(
|
|
69
|
+
def composite_content_remove_block_link(...)
|
|
70
|
+
cocooned_remove_item_link(...)
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
protected
|
|
@@ -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.0
|
|
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
|
|
@@ -45,6 +44,9 @@ dependencies:
|
|
|
45
44
|
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
46
|
version: '2.0'
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '2.4'
|
|
48
50
|
type: :runtime
|
|
49
51
|
prerelease: false
|
|
50
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -52,6 +54,9 @@ dependencies:
|
|
|
52
54
|
- - "~>"
|
|
53
55
|
- !ruby/object:Gem::Version
|
|
54
56
|
version: '2.0'
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '2.4'
|
|
55
60
|
- !ruby/object:Gem::Dependency
|
|
56
61
|
name: rails
|
|
57
62
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -108,20 +113,6 @@ dependencies:
|
|
|
108
113
|
- - "~>"
|
|
109
114
|
- !ruby/object:Gem::Version
|
|
110
115
|
version: '3.10'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: shoulda-matchers
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - "~>"
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '5.0'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - "~>"
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '5.0'
|
|
125
116
|
description: Build complex contents for your ActiveRecord models in a controllable
|
|
126
117
|
way.
|
|
127
118
|
email:
|
|
@@ -180,7 +171,6 @@ metadata:
|
|
|
180
171
|
homepage_uri: https://github.com/notus-sh/composite_content
|
|
181
172
|
source_code_uri: https://github.com/notus-sh/composite_content
|
|
182
173
|
funding_uri: https://opencollective.com/notus-sh
|
|
183
|
-
post_install_message:
|
|
184
174
|
rdoc_options: []
|
|
185
175
|
require_paths:
|
|
186
176
|
- lib
|
|
@@ -188,15 +178,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
188
178
|
requirements:
|
|
189
179
|
- - ">="
|
|
190
180
|
- !ruby/object:Gem::Version
|
|
191
|
-
version:
|
|
181
|
+
version: '3.1'
|
|
192
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
183
|
requirements:
|
|
194
184
|
- - ">="
|
|
195
185
|
- !ruby/object:Gem::Version
|
|
196
186
|
version: '0'
|
|
197
187
|
requirements: []
|
|
198
|
-
rubygems_version: 3.
|
|
199
|
-
signing_key:
|
|
188
|
+
rubygems_version: 3.6.9
|
|
200
189
|
specification_version: 4
|
|
201
190
|
summary: Add composite content capacities to your ActiveRecord models.
|
|
202
191
|
test_files: []
|