Sha256: c6a232aba200ea64b7d8e6e5c5ee37f3024e7c405beaf114ccfc2b65ac45796a

Contents?: true

Size: 1.9 KB

Versions: 1

Compression:

Stored size: 1.9 KB

Contents

# Changelog

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

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

## [Unreleased]

## [0.4.1] - 2019-04-20
### Changed
- Support `attr_writer` transformations even if there is a void statement at the beginning of the method.

## [0.4.0] - 2019-04-19
### Added
- Replace `def foo=(value); @foo = value; end` with `attr_writer :foo`
- Replace `while false ... end` loops with nothing
- Replace `until false ... end` loops with `loop do ... end` loops
- Replace `until true ... end` loops with nothing

### Changed
- Extracted out the `Preval::Visitors::AttrAccessor` visitor.
- Renamed the `Preval::Visitors::Micro` visitor to `Preval::Visitors::Fasterer`.

## [0.3.0] - 2019-04-19
### Added
- Fold constant for exponentiation if exponent is 0 and value is an integer.
- Replace `.reverse.each` usage with `.reverse_each`.
- Replace `foo ... in` loops with `.each do` loops.
- Replace `.gsub('...', '...')` with `.tr('...', '...')` if the arguments are strings and they are of length 1.
- Replace `def foo; @foo; end` with `attr_reader :foo`.
- Replace `.shuffle.first` with `.sample`.
- Replace `.map { ... }.flatten(1)` with `.flat_map { ... }`.
- Replace `def foo=(value); @foo = value; end` with `attr_writer :foo`.

## [0.2.0] - 2019-04-18
### Added
- Hook into the `bootsnap` gem if it's loaded.

## [0.1.0] - 2019-03-08
### Added
- Initial release. 🎉

[Unreleased]: https://github.com/kddeisz/preval/compare/v0.4.1...HEAD
[0.4.1]: https://github.com/kddeisz/preval/compare/v0.4.0...v0.4.1
[0.4.0]: https://github.com/kddeisz/preval/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/kddeisz/preval/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/kddeisz/preval/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/kddeisz/preval/compare/49c899...v0.1.0

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
preval-0.4.1 CHANGELOG.md