Sha256: 11a4cef36888bfe6007e1ca6aa9366396e19ff790810454f520471356e4148c6

Contents?: true

Size: 1.8 KB

Versions: 1

Compression:

Stored size: 1.8 KB

Contents

# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.1.1] - [2017-08-04]

### Added
- Support for options in errors.merge (@nepalez)

    # adds `field: "user"` to every merged error
    errors.merge other_policy.errors, field: "user"

## [0.1.0] - [2017-05-31]
Contains backward-incompatible change.

### Migration
You should add the namespace to gem-related I18n translations.

```yaml
# config/locales/tram-policy.en.yml
---
en:
  tram-policy: # The namespace to be added
    my_policy:
      error_key: Error message
```

### Changed
- [BREAKING] a namespace added to scopes for policy error translations (@nepalez)

## [0.0.3] - [2017-05-24]

### Fixed
- bug in `errors.empty?` with a block (@nepalez with thanks to @gzigzigzeo)

## [0.0.2] - [2017-04-25]
The gem is battle-tested for production (in a real commertial project).

### Removed
- `.validate` with several keys for several validators at once (@nepalez)

  Use a multiline version instead of `validate :foo, :bar`:

  ```
  validate :foo
  validate :bar
  ```

### Added
- `.validate` supports option `stop_on_failure` (@nepalez)

### Fixed
- Minor bugs in generators (@nepalez)

## [0.0.1] - [2017-04-18]
This is a first public release (@nepalez, @charlie-wasp, @JewelSam, @sergey-chechaev)

[Unreleased]: https://github.com/tram-rb/tram-policy
[0.0.1]: https://github.com/tram-rb/tram-policy/releases/tag/v0.0.1
[0.0.2]: https://github.com/tram-rb/tram-policy/compare/v0.0.1...v0.0.2
[0.0.3]: https://github.com/tram-rb/tram-policy/compare/v0.0.2...v0.0.3
[0.1.0]: https://github.com/tram-rb/tram-policy/compare/v0.0.3...v0.1.0
[0.1.1]: https://github.com/tram-rb/tram-policy/compare/v0.1.0...v0.1.1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tram-policy-0.1.1 CHANGELOG.md