Skip to content

Commit

Permalink
Prepare 2.1.1 release (#16)
Browse files Browse the repository at this point in the history
* Bump version to 2.1.1
* Update changelog
* Fix new Rubocop offenses
  • Loading branch information
gael-ian authored Feb 10, 2024
1 parent 30935a6 commit 8709de4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## Version 2.1.1 (2024-02-10)

### Changed

* Compatibility with Cocooned 2.1 (#15)
* Compatibility with Rails 7.1 (#14)
* Update test matrix (#14)
Add Ruby 3.3. Drop Ruby 2.6 and Ruby 2.7


## Version 2.1.0 (2023-08-29)

### Added
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
composite_content (2.1.0)
composite_content (2.1.1)
active_model_validations_reflection
acts_as_list (>= 1.0.4)
cocooned (~> 2.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/composite_content/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def instance_mixin(name)

def class_mixin(name)
Module.new do
define_method "strong_parameters_for_#{name}" do
define_method :"strong_parameters_for_#{name}" do
reflect_on_association(name).class_name.constantize.strong_parameters
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/composite_content/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module CompositeContent
VERSION = '2.1.0'
VERSION = '2.1.1'
end
2 changes: 1 addition & 1 deletion spec/unit/shared/model_with_composite_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

describe ".strong_parameters_for_#{association}" do
it 'returns slot class strong parameters definition Hash' do
expect(parent.send("strong_parameters_for_#{association}")).to eq(classname.constantize.strong_parameters)
expect(parent.send(:"strong_parameters_for_#{association}")).to eq(classname.constantize.strong_parameters)
end
end
end

0 comments on commit 8709de4

Please sign in to comment.