composite_content 2.1.0 → 2.2.0

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
  SHA256:
3
- metadata.gz: ccf56533554d8f9d97dfab613e4ee0ada78da592eccd4cceb8df32e6a0a1c8d2
4
- data.tar.gz: 672795ed87288743f2ff87f37e025d43ba719d6e642e363fda2cc71ecf10086e
3
+ metadata.gz: 25a40a78ded99775cce45103b803b739c3334f52e2d57ad7f094cce7e306ac02
4
+ data.tar.gz: aa883c841bb10e67d8e78ad539f5db35d615a5fc7c1d9d56abeee8c11b2ab006
5
5
  SHA512:
6
- metadata.gz: 8033506c9619daa7030139aed7964359e8007f6d41d2c328d2403c06d14e5a6828444e25e055e4b77a525589299e229464f3b7aa96eedf10bc9f8c9daa7b951e
7
- data.tar.gz: ce91296bce01bb21899f02ac3a0f9779b4600bf8acbf5c083c13e24655b3e2d67e90919ad0f7bca1bf143c3b165f97e980c7b51d0e722cbe87ef55bddf6796e4
6
+ metadata.gz: b0ba96e1ee2f0fa41f85b6a11fc97a29c1832b0aceebf2932564e7c8724384f7cd53a11b9ac41e43ae88ecafe304a37b03286f25909ea24f1790a11d2cdd4f03
7
+ data.tar.gz: 46e059c9029118334f15a635702063b4b645e19e5bf858b50077052add4c275ab20cf0b1ef02fd9895d60c7e77e6912d2f70642c8b2d0d53b1df2ad4bf588924
data/CHANGELOG.md CHANGED
@@ -6,6 +6,24 @@ 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.2.0 (2024-10-01)
10
+
11
+ ### Changed
12
+
13
+ * Reintroduce Ruby 2.7 into the test matrix (#20)
14
+ So tested rubies match with supported Rails versions minimum requirements
15
+ * Drop support for Rails 6.1 (#20)
16
+ * Update test matrix to add Rails 7.2 (#17)
17
+
18
+ ## Version 2.1.1 (2024-02-10)
19
+
20
+ ### Changed
21
+
22
+ * Compatibility with Cocooned 2.1 (#15)
23
+ * Compatibility with Rails 7.1 (#14)
24
+ * Update test matrix (#14)
25
+ Add Ruby 3.3. Drop Ruby 2.6 and Ruby 2.7
26
+
9
27
  ## Version 2.1.0 (2023-08-29)
10
28
 
11
29
  ### Added
@@ -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 = '>= 2.6.0'
35
+ spec.required_ruby_version = '>= 2.7.0'
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.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(*args, &block)
60
- cocooned_move_item_up_link(*args, &block)
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(*args, &block)
65
- cocooned_move_item_down_link(*args, &block)
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(*args, &block)
70
- cocooned_remove_item_link(*args, &block)
69
+ def composite_content_remove_block_link(...)
70
+ cocooned_remove_item_link(...)
71
71
  end
72
72
 
73
73
  protected
@@ -34,7 +34,7 @@ module CompositeContent
34
34
 
35
35
  def class_mixin(name)
36
36
  Module.new do
37
- define_method "strong_parameters_for_#{name}" do
37
+ define_method :"strong_parameters_for_#{name}" do
38
38
  reflect_on_association(name).class_name.constantize.strong_parameters
39
39
  end
40
40
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompositeContent
4
- VERSION = '2.1.0'
4
+ VERSION = '2.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: composite_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaël-Ian Havard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-29 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_validations_reflection
@@ -44,14 +44,20 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.0.0
47
+ version: '2.0'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '2.4'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
- version: 2.0.0
57
+ version: '2.0'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '2.4'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rails
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -108,20 +114,6 @@ dependencies:
108
114
  - - "~>"
109
115
  - !ruby/object:Gem::Version
110
116
  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
117
  description: Build complex contents for your ActiveRecord models in a controllable
126
118
  way.
127
119
  email:
@@ -188,14 +180,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
180
  requirements:
189
181
  - - ">="
190
182
  - !ruby/object:Gem::Version
191
- version: 2.6.0
183
+ version: 2.7.0
192
184
  required_rubygems_version: !ruby/object:Gem::Requirement
193
185
  requirements:
194
186
  - - ">="
195
187
  - !ruby/object:Gem::Version
196
188
  version: '0'
197
189
  requirements: []
198
- rubygems_version: 3.4.1
190
+ rubygems_version: 3.5.3
199
191
  signing_key:
200
192
  specification_version: 4
201
193
  summary: Add composite content capacities to your ActiveRecord models.