From 531953006be86823dbcfab5a569587c21f77743e Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Mon, 8 May 2017 09:52:20 -0500 Subject: [PATCH] Release 3.0.0 (#780) * Release 3.0.0 * Add breaking change #768 to changelog. * Add recently merged changes to the changelog. * Add configuration and custom default controller to the changelog. * Add entry to changelog for pull request 720 * Add entry to changelog for Rails 5 API-only support. * Add changelog entry for pull request #795. * Add changelog entry for pull request #796. * Add changelog entry for enumerable optimization. * Update maintainer information in README. * Add pull request #799 to changelog. * Add compatability documentation to readme. --- CHANGELOG.md | 18 ++++++++++++++++++ README.md | 14 ++++---------- lib/draper/version.rb | 2 +- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eaa0118..9d94d08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Draper Changelog +## 3.0.0 - 2017 + +### Breaking Changes +* Rename UninferrableSourceError to UninferrableObjectError [#768](https://github.com/drapergem/draper/pull/768) +* Remove conflicting source aliases: `source`, `to_source`, `source_class` and `source_class?` [#786](https://github.com/drapergem/draper/pull/786) + +### New Features +* Generator for creating `ApplicationDecorator` that other decorators inherit from [#796](https://github.com/drapergem/draper/pull/796) +* Draper configuration with ability to customize the controller Draper uses [#788](https://github.com/drapergem/draper/pull/788) +* Added support for Rails 5 API-only applications [#793](https://github.com/drapergem/draper/pull/793) +* Added support for Rails runner [#739](https://github.com/drapergem/draper/pull/739) + +### Other Changes +* Clear view context when the controller changes [#799](https://github.com/drapergem/draper/pull/799) +* Removed previously deprecated functionality [#785](https://github.com/drapergem/draper/pull/785) +* Only delegate === if other is an instance of a class that inherits from `Decorator` [#720](https://github.com/drapergem/draper/pull/720) +* Always default to `CollectionDecorator` when `NameError` is raised [#795](https://github.com/drapergem/draper/pull/795) +* Fixed issues in order to support Rails 5.1 * Fixed a bug where helpers were used inside a decorator and this decorator was used outside of controller context ## 3.0.0.pre1 - 2016-07-10 diff --git a/README.md b/README.md index c5c2bb3..94bff41 100644 --- a/README.md +++ b/README.md @@ -107,17 +107,10 @@ Decorators are the ideal place to: ## Installation -Add Draper to your Gemfile. If you're using `Rails 5`, use the `3.0.0` version -pre-release +As of version 3.0.0, Draper is only compatible with Rails 5 / Ruby 2.2 and later. Add Draper to your Gemfile. ```ruby - gem 'draper', '3.0.0.pre1' -``` - -Otherwise, use the latest released version - -```ruby -gem 'draper' + gem 'draper' ``` After that, run `bundle install` within your app's directory. @@ -633,7 +626,7 @@ great community of open source ### Current maintainers -* Sean Linsley +* Cliff Braton (cliff.braton@gmail.com) ### Historical maintainers @@ -641,3 +634,4 @@ great community of open source * Steve Klabnik (steve@jumpstartlab.com) * Vasiliy Ermolovich * Andrew Haines +* Sean Linsley diff --git a/lib/draper/version.rb b/lib/draper/version.rb index 6bdb220..8eb20ab 100644 --- a/lib/draper/version.rb +++ b/lib/draper/version.rb @@ -1,3 +1,3 @@ module Draper - VERSION = "3.0.0.pre1" + VERSION = '3.0.0' end