-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use ruby 2.7 * Rework error model dependency * Update rubocop * Add upgrading note * Correct ENV name * Fix options * Drop support for old rails versions
- Loading branch information
Showing
12 changed files
with
61 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.6.4 | ||
2.7.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# 0.1 -> 0.2 | ||
|
||
Some changes to make writing serializers for non-active record objects easier. | ||
|
||
* ErrorSerializer class was renamed to EachSerializer | ||
* EachSerializer's initializer now accepts 3 parameters instead of 2. The first | ||
parameter is now the resource | ||
* The included error model was removed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,22 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) | |
# Describe your gem and declare its dependencies: | ||
Gem::Specification.new do |s| | ||
s.name = 'invalid_model-serializer' | ||
s.version = ENV.fetch 'VERSION', '0.1.4' | ||
s.version = ENV.fetch 'VERSION', '0.2.0' | ||
s.authors = ['mkon'] | ||
s.email = ['[email protected]'] | ||
s.homepage = 'https://github.com/mkon/invalid_model-serializer' | ||
s.summary = 'Serialize models with validation errors to json-api errors.' | ||
s.license = 'MIT' | ||
s.required_ruby_version = '~> 2.6' | ||
|
||
s.files = Dir['{app,config,db,lib}/**/*', 'LICENSE', 'README.md'] | ||
|
||
s.add_dependency 'activesupport', '>= 5.0', '< 7' | ||
s.add_dependency 'activesupport', '>= 6.1', '< 7' | ||
|
||
s.add_development_dependency 'activemodel', '>= 5.0', '< 7' | ||
s.add_development_dependency 'json_spec', '~> 1.1' | ||
s.add_development_dependency 'rspec', '~> 3.7' | ||
s.add_development_dependency 'rubocop', '0.76.0' | ||
s.add_development_dependency 'rubocop-rspec', '1.36.0' | ||
s.add_development_dependency 'rubocop', '1.11.0' | ||
s.add_development_dependency 'rubocop-rspec', '2.2.0' | ||
s.add_development_dependency 'simplecov', '~> 0.16' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters