Skip to content

Commit 7ab6bc8

Browse files
author
Dominik Goltermann
committed
Bump version
1 parent 2d3e5e0 commit 7ab6bc8

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

Changelog.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,153 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

78
## Unreleased
89

10+
## [1.1.3] - 2025-10-27
11+
12+
### Fixed
13+
14+
- Fixed TypeError when using Definition.CoercibleType with certain non coercible values
15+
916
## [1.1.2] - 2024-08-22
17+
1018
### Fixed
11-
- Fixed "TypeError: no _dump_data is defined for class Proc" error that ocurred when a definition model inherits from another model that uses lambda based definitions
19+
20+
- Fixed "TypeError: no \_dump_data is defined for class Proc" error that ocurred when a definition model inherits from another model that uses lambda based definitions
1221

1322
## [1.1.1] - 2024-05-21
23+
1424
### Fixed
25+
1526
- Fixed Definition::Model inheritance
1627

1728
## [1.1.0] - 2023-11-22
29+
1830
### Changes
31+
1932
- Improved performance
2033

2134
## [1.0.0] - 2023-02-14
35+
2236
### Removed
37+
2338
- Removed deprecated version of `GreaterThanEqual` definition that had a typo in it (GreaterThenEqual)
2439
- Removed deprecated version of `GreaterThan` definition that had a typo in it (GreaterThen)
2540
- Removed deprecated version of `LessThanEqual` definition that had a typo in it (LessThenEqual)
2641
- Removed deprecated version of `LessThan` definition that had a typo in it (LessThen)
2742

2843
## [0.8.1] - 2022-10-05
44+
2945
### Fixed
46+
3047
- Definition::Model#eql? returns true when comparing two models with the same content
3148

3249
## [0.8.0] - 2022-10-05
50+
3351
### Added
52+
3453
- A Definition::Initializer mixin that can be used to validate keyword arguments of a class constructor
3554

3655
### Changes
56+
3757
- Include more information in the internal non-translated error messages. E.g. the max size of a LessThenEqual definition
3858
- Renamed GreaterThen, GreaterThenEqual, LessThen and LessThenEqual to fix typo (Then VS Than) Backwards compatibility is ensured
3959

4060
### Breaking changes
61+
4162
- The Definition::ValueObject was removed and replaced by Definition:Model which has a nicer DSL and only works with hash data structures. See [upgrade notes](./UpgradeNotes.md)
4263

4364
## [0.7.1] - 2022-03-04
65+
4466
### Fixed
67+
4568
- Float coercion: check for nil before coercion
4669

4770
## [0.7.0] - 2022-02-25
71+
4872
### Added
73+
4974
- Lambda definitions can now be failed with custom error messages
5075
- Compatibility with Ruby 3.0
76+
5177
### Fixed
78+
5279
- In some cases errors from nested `Keys` definitions inside `Or` definitions got lost when listing the validation errors via the `error_hash` method on the conform result object.
80+
5381
### Changed
82+
5483
- When no sub-definition of an `Or` conforms, then only the errors of the last definition of the `Or` are collected. Previously the errors of all sub-definitions were collected.
5584
- Translated error messages have been improved to be more suitable to be used as end user error messages
5685

5786
## [0.6.1] - 2021-12-14
87+
5888
### Fixed
89+
5990
- The `Keys` definition crashed with an error if the input was not a Hash
6091

6192
## [0.6.0] - 2020-03-21
93+
6294
### Added
95+
6396
- Added include method to Keys Definition that allows to inline other `Keys` Definitions into each other
6497

6598
## [0.5.2] - 2019-06-03
99+
66100
### Fixed
101+
67102
- added missing require for "pathname"
68103

69104
## [0.5.1] - 2019-04-27
105+
70106
### Fixed
107+
71108
- Typo in error debug output
72109

73110
## [0.5.0] - 2019-03-28
111+
74112
### Added
113+
75114
- CoercibleValueObject Definition for better nesting of ValueObjects
76115
- Nilable Definition as shortcut for nil OR some other definition
77116
- Option for Keys Definition to ignore unexpected keys
117+
78118
### Fixed
119+
79120
- Error hash was missing some errors in a few cases
80121
- `ConformResult.error_hash` was empty for Definitions without any `Keys` Definition
122+
81123
### Changed
124+
82125
- And Definition stops processing after the first failure
83126

84127
## [0.4.0] - 2019-03-22
128+
85129
### Added
130+
86131
- Added support for default values to Keys Definition
132+
87133
### Changed
134+
88135
- Errors returned from ConformResult were restructured for better debugging and usage
89136

90137
## [0.3.0] - 2019-02-03
138+
91139
### Added
140+
92141
- Added I18n translation support for errors
93142

94143
## [0.2.0] - 2019-01-13
144+
95145
### Added
146+
96147
- Added built in definitions for common usecases (e.g. string length validation)
97148

98149
## [0.1.0] - 2019-01-12
150+
99151
### Added
152+
100153
- Initial release

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
definition (1.1.2)
4+
definition (1.1.3)
55
activesupport
66
i18n
77

lib/definition/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Definition
4-
VERSION = "1.1.2"
4+
VERSION = "1.1.3"
55
end

0 commit comments

Comments
 (0)