Sha256: 186ba4936689cd0ddae569d9eae8b78223adf8cfbce0152bf4d40c3a73e2423e

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

## [Unreleased]

## [0.4.0] - 2024-02-04

### Added

- Add `:value` input property to use a registered `BCDD::Value` to handle the input.
  ```ruby
  attribute :name, value: :name
  ```

- Add `:respond_to` input property to check if the value responds to a given method.
  ```ruby
  attribute :name, respond_to: :strip
  ```

### Changed

- Use `:type` property to check if the normalize should be applied.
  ```ruby
  attribute :name, type: String, normalize: -> { _1.strip }
  ```

## [0.3.1] - 2024-02-03

### Fixed

- Make the input `normalize:` work with Ruby `2.7`.

## [0.3.0] - 2024-02-03

### Added

- Allow the usage of `proc(&)` with the input `normalize:` property.
  ```ruby
  attribute :name, type: String, normalize: proc(&:to_s) >> proc(&:strip)
  ```

### Changed

- **BREAKING**: Remove `validate:` input property and allow the composition of `contract:` + `type:` properties.
  ```ruby
  # Before
  attribute :name, type: String, validate: :is_present

  # After
  attribute :name, type: String, contract: is_present
  ```

## [0.2.0] - 2024-02-01

### Changed

- **BREAKING**: Update gem's dependencies.
  - bcdd-contract >= 0.1.0
  - bcdd-result >= 0.3.0

## [0.1.0] - 2024-02-01

### Added

- Add `BCDD::Process` - Initial/POC release.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcdd-process-0.4.0 CHANGELOG.md