From 573a2e6c90f105578c8308ca7f0e1f36bf141cf8 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Fri, 24 Mar 2017 09:17:22 -0500 Subject: [PATCH 01/12] Release 3.0.0 --- CHANGELOG.md | 4 ++++ README.md | 11 ++--------- lib/draper/version.rb | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eaa0118d..586075ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ * Fixed a bug where helpers were used inside a decorator and this decorator was used outside of controller context +## 3.0.0 - 2017-03-24 + +* Added support for Rails 5.1 + ## 3.0.0.pre1 - 2016-07-10 * Added support for Rails 5, dropped 4.0 - 4.2 diff --git a/README.md b/README.md index a98c3259..c94f7974 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 +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. diff --git a/lib/draper/version.rb b/lib/draper/version.rb index 6bdb220f..8eb20ab2 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 From 0fa43e7e77ee88146f2a9943341c77b9d3ddd8e6 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Tue, 28 Mar 2017 13:00:27 -0500 Subject: [PATCH 02/12] Add breaking change #768 to changelog. --- CHANGELOG.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 586075ae..097c6621 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,13 @@ # Draper Changelog -* Fixed a bug where helpers were used inside a decorator and this decorator was used outside of controller context +## 3.0.0 - 2017 -## 3.0.0 - 2017-03-24 +### Breaking Changes +* Rename UninferrableSourceError to UninferrableObjectError [#768](https://github.com/drapergem/draper/pull/768/files) +### Other Changes * Added support for 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 From 32cd57a39906875d489e1a6184c365bcc411587f Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Wed, 29 Mar 2017 10:31:51 -0500 Subject: [PATCH 03/12] Add recently merged changes to the changelog. --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 097c6621..8c7a4c01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,14 @@ ## 3.0.0 - 2017 ### Breaking Changes -* Rename UninferrableSourceError to UninferrableObjectError [#768](https://github.com/drapergem/draper/pull/768/files) +* 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) ### Other Changes * Added support for Rails 5.1 +* Added support for Rails runner [#739](https://github.com/drapergem/draper/pull/739) * Fixed a bug where helpers were used inside a decorator and this decorator was used outside of controller context +* Removed previously deprecated functionality [#785](https://github.com/drapergem/draper/pull/785) ## 3.0.0.pre1 - 2016-07-10 From 5371c56a4ccde40e63b039c44f29ef8ef485e446 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Fri, 31 Mar 2017 09:07:12 -0500 Subject: [PATCH 04/12] Add configuration and custom default controller to the changelog. --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c7a4c01..b11d9f5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ * 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 +* Draper configuration with ability to customize the controller Draper uses [#788](https://github.com/drapergem/draper/pull/788) + ### Other Changes * Added support for Rails 5.1 * Added support for Rails runner [#739](https://github.com/drapergem/draper/pull/739) From e48a7954d098d857dc1335345e84b07799e24111 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Fri, 31 Mar 2017 14:55:46 -0500 Subject: [PATCH 05/12] Add entry to changelog for pull request 720 --- CHANGELOG.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b11d9f5d..6702aa17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,12 +8,13 @@ ### New Features * Draper configuration with ability to customize the controller Draper uses [#788](https://github.com/drapergem/draper/pull/788) +* Added support for Rails runner [#739](https://github.com/drapergem/draper/pull/739) ### Other Changes -* Added support for Rails 5.1 -* Added support for Rails runner [#739](https://github.com/drapergem/draper/pull/739) -* Fixed a bug where helpers were used inside a decorator and this decorator was used outside of controller context * 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) +* 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 From 15d0a824fde98df927cdbe0296f0fee21192f649 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Mon, 3 Apr 2017 08:20:52 -0500 Subject: [PATCH 06/12] Add entry to changelog for Rails 5 API-only support. --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6702aa17..ed8a04bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,10 @@ ### New Features * 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 * 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) From fc377b6a591e08d0a1d7a031db7b8d58ed2436a3 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Mon, 3 Apr 2017 22:27:05 -0500 Subject: [PATCH 07/12] Add changelog entry for pull request #795. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed8a04bf..85d5f7ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ### Other Changes * 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 From 3a699210a0248fe1f08e994e8a4ba86a0fe4f220 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Wed, 5 Apr 2017 13:46:04 -0500 Subject: [PATCH 08/12] Add changelog entry for pull request #796. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85d5f7ad..6fa6124b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * 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) From cb6c718accdaff3968341a569e49c67f4b4615f9 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Tue, 11 Apr 2017 20:37:36 -0500 Subject: [PATCH 09/12] Add changelog entry for enumerable optimization. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fa6124b..892b0463 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,13 +12,13 @@ * 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 * 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 +* Optimize CollectionDecorator Enumerable behavior and performance [#707](https://github.com/drapergem/draper/pull/707) ## 3.0.0.pre1 - 2016-07-10 From ac6482b0c19dd683b5bce1b4497d8db6b13eda79 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Tue, 25 Apr 2017 17:51:41 -0700 Subject: [PATCH 10/12] Update maintainer information in README. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c94f7974..852eba17 100644 --- a/README.md +++ b/README.md @@ -605,7 +605,7 @@ great community of open source ### Current maintainers -* Sean Linsley +* Cliff Braton (cliff.braton@gmail.com) ### Historical maintainers @@ -613,3 +613,4 @@ great community of open source * Steve Klabnik (steve@jumpstartlab.com) * Vasiliy Ermolovich * Andrew Haines +* Sean Linsley From a7a0925342ccafbdccaddd112f69ecb7acf68340 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Mon, 8 May 2017 09:25:29 -0500 Subject: [PATCH 11/12] Add pull request #799 to changelog. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 892b0463..9d94d08e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,12 +13,12 @@ * 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 -* Optimize CollectionDecorator Enumerable behavior and performance [#707](https://github.com/drapergem/draper/pull/707) ## 3.0.0.pre1 - 2016-07-10 From 33216b1e6bdec1bd68f3956a7f3c540783fd19a5 Mon Sep 17 00:00:00 2001 From: Cliff Braton Date: Mon, 8 May 2017 09:39:49 -0500 Subject: [PATCH 12/12] Add compatability documentation to readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 852eba17..5a63c2cc 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ Decorators are the ideal place to: ## Installation -Add Draper to your Gemfile. +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'