<NME> CHANGES.markdown
<BEF> ## Unreleased

* Added a dependency on `responders` gem for Rails 4.2 support

## 1.0.0


## 1.0.2

* Make Roar version requirement stricter: restrict to 1.0.x series.
* Initial support for Rails 5.

## 1.0.1

* Added a dependency on `responders` gem for Rails 4.2 support
* `#render` from `ControllerAdditions::Render` now accepts a status code
* Added support for JSON-API.

## 1.0.0

* Requires Roar >= 1.0.0.
* In `#consume!` roar-rails now finds the correct representer for the `Content-type:` header. In former version the representer name was inferred using the `Accept:` header, which was totally wrong. Thanks to @pgaertig for fixing that.

## 0.1.6

* Added `ControllerAdditions::Render` to support `#render` in controller actions with representers.
* Roar-rails now works properly with rails-api.
* `Roar::Rails::Responder` is a class now.
* Moved `RepresenterComputer` to `Formats`.

## 0.1.5

* Maintenance release, using Uber now and get rid of deprecation warning.

## 0.1.4

* Added a generator to create modules from the command-line. Thanks to Guilherme Cavalcanti <guiocavalcanti> for working on this.
* We always use `request.body.read` now, however, we call `rewind` beforehand.

## 0.1.3

* Fix a bug where `TestCase` wouldn't work in 3.2.

## 0.1.2

* Introducing a check where `request.body.read` is called (as usual) if `request.body.string` isn't present. This is due to some faulty behaviour in Rails and some web servers that don't provide a properly working `#read`, as it's the Rack rule. Should finally fix https://github.com/apotonick/roar-rails/issues/18 and friends.
* `TestCase#process` no longer triggers a deprecation warning for Rails > 3.1.
* Now allows using roar >= 0.11.

## 0.1.1

* Added the `represented_formats: [...]` option to be passed to `#respond_with` for either suppressing roar-rails from extending/decorating models when rendering or to fine-tune so this will only happen on white-listed formats as `:hal`. This can also be set globally using `config.representer.represented_formats`.

## 0.1.0

* `ActiveRecord::Relation` is now detected as a collection and the appropriate representer should be found.
* Entity (singular) representers are now correctly inferred even if you only specified `collection:` in `::represents`. That works by querying the model.
* Entity representers are now *namespaced* when guessed (i.e., when you didn't specify them explicitly in `::represents`) as it works with collection representers already. If you have a namespaced controller and it suddenly doesn't find its entity representer anymore, either namespace the representer or specify its name in `::represents`.

## 0.0.14

* Moved logic to infer representer names from `ControllerAdditions` to `RepresenterComputer` class.
* Representer names passed to `::represents` are now constantized at runtime where they are actually needed, only. This fixes a bug where you were required to provide a `SingersRepresenter` (for collections) everywhere even when you just want to represent singular resources.
* You can now pass strings to `::represents` as representer names.

## 0.0.13

* Allow passing user options to both `#respond_with` and `#consume!`.
* Fixing `#consume!` with decorators.

## 0.0.12

* Bumping representable to 1.4 which allows us using both extend and decorating representers.

## 0.0.11

* Back to `request.body.read` in `#consume!` (again). If anyone is having problems with empty incoming strings this is a Rails issue - update ;-)

## 0.0.10

* Empty resources now work properly in Rails 3.0 and 3.1.

## 0.0.9

* Changed `request.body.string` to `read` to make it work with Unicorn.

## 0.0.8

* Added `#represents` to configure consuming and rendering on controller class layer. This also calls `respond_to`.

## 0.0.7

* Introduce `:represent_with` and `:represent_items_with` for `#respond_with`. In turn, deprecate the old behaviour since it will change in 1.0.

## 0.0.6

* Make roar-rails rely on roar 0.10 and bigger.

## 0.0.4

* Added `#consume!` to infer representer name and parse the incoming document for a model.

## 0.0.3

* Works with Rails 3.0 now, too. Fixed the `mounted_helpers` import.

<MSG> document change to `render`

<DFF> @@ -1,6 +1,7 @@
 ## Unreleased
 
 * Added a dependency on `responders` gem for Rails 4.2 support
+* `#render` from `ControllerAdditions::Render` now accepts a status code
 
 ## 1.0.0
 

{'commit': 'diff --git a/CHANGES.markdown b/CHANGES.markdown\nindex d0e6212..2b56e8a 100644\n--- a/CHANGES.markdown\n+++ b/CHANGES.markdown\n@@ -1,6 +1,7 @@\n ## Unreleased\n \n * Added a dependency on `responders` gem for Rails 4.2 support\n+* `#render` from `ControllerAdditions::Render` now accepts a status code\n \n ## 1.0.0\n \n', 'commit_subject': 'document change to `render`', 'repo_name': 'apotonick/roar-rails', 'committer': {'name': 'Eric Skogen', 'email': '78f83d69cf540f5453f7dae50073975808af0852@audionerd.com', 'time_sec': '1419999851', 'tz_offset': '-360', 'date': {'seconds': '1419999851'}}, 'commit_tree': '8eafddd9d81ed94818b0b830033a39514cb362e5', 'commit_message': 'document change to `render`\n', 'language_name': 'Ruby', 'license': 'mit', 'hunks': '@@ -1,6 +1,7 @@\n ## Unreleased\n \n * Added a dependency on `responders` gem for Rails 4.2 support\n+* `#render` from `ControllerAdditions::Render` now accepts a status code\n \n ## 1.0.0\n \n', 'addition_count': 1, 'deletion_count': 0, 'src_file': 'a/CHANGES.markdown', 'tgt_file': 'b/CHANGES.markdown', 'file_extension': '.markdown', 'before_file': "## Unreleased\n\n* Added a dependency on `responders` gem for Rails 4.2 support\n\n## 1.0.0\n\n\n## 1.0.2\n\n* Make Roar version requirement stricter: restrict to 1.0.x series.\n* Initial support for Rails 5.\n\n## 1.0.1\n\n* Added a dependency on `responders` gem for Rails 4.2 support\n* `#render` from `ControllerAdditions::Render` now accepts a status code\n* Added support for JSON-API.\n\n## 1.0.0\n\n* Requires Roar >= 1.0.0.\n* In `#consume!` roar-rails now finds the correct representer for the `Content-type:` header. In former version the representer name was inferred using the `Accept:` header, which was totally wrong. Thanks to @pgaertig for fixing that.\n\n## 0.1.6\n\n* Added `ControllerAdditions::Render` to support `#render` in controller actions with representers.\n* Roar-rails now works properly with rails-api.\n* `Roar::Rails::Responder` is a class now.\n* Moved `RepresenterComputer` to `Formats`.\n\n## 0.1.5\n\n* Maintenance release, using Uber now and get rid of deprecation warning.\n\n## 0.1.4\n\n* Added a generator to create modules from the command-line. Thanks to Guilherme Cavalcanti <guiocavalcanti> for working on this.\n* We always use `request.body.read` now, however, we call `rewind` beforehand.\n\n## 0.1.3\n\n* Fix a bug where `TestCase` wouldn't work in 3.2.\n\n## 0.1.2\n\n* Introducing a check where `request.body.read` is called (as usual) if `request.body.string` isn't present. This is due to some faulty behaviour in Rails and some web servers that don't provide a properly working `#read`, as it's the Rack rule. Should finally fix https://github.com/apotonick/roar-rails/issues/18 and friends.\n* `TestCase#process` no longer triggers a deprecation warning for Rails > 3.1.\n* Now allows using roar >= 0.11.\n\n## 0.1.1\n\n* Added the `represented_formats: [...]` option to be passed to `#respond_with` for either suppressing roar-rails from extending/decorating models when rendering or to fine-tune so this will only happen on white-listed formats as `:hal`. This can also be set globally using `config.representer.represented_formats`.\n\n## 0.1.0\n\n* `ActiveRecord::Relation` is now detected as a collection and the appropriate representer should be found.\n* Entity (singular) representers are now correctly inferred even if you only specified `collection:` in `::represents`. That works by querying the model.\n* Entity representers are now *namespaced* when guessed (i.e., when you didn't specify them explicitly in `::represents`) as it works with collection representers already. If you have a namespaced controller and it suddenly doesn't find its entity representer anymore, either namespace the representer or specify its name in `::represents`.\n\n## 0.0.14\n\n* Moved logic to infer representer names from `ControllerAdditions` to `RepresenterComputer` class.\n* Representer names passed to `::represents` are now constantized at runtime where they are actually needed, only. This fixes a bug where you were required to provide a `SingersRepresenter` (for collections) everywhere even when you just want to represent singular resources.\n* You can now pass strings to `::represents` as representer names.\n\n## 0.0.13\n\n* Allow passing user options to both `#respond_with` and `#consume!`.\n* Fixing `#consume!` with decorators.\n\n## 0.0.12\n\n* Bumping representable to 1.4 which allows us using both extend and decorating representers.\n\n## 0.0.11\n\n* Back to `request.body.read` in `#consume!` (again). If anyone is having problems with empty incoming strings this is a Rails issue - update ;-)\n\n## 0.0.10\n\n* Empty resources now work properly in Rails 3.0 and 3.1.\n\n## 0.0.9\n\n* Changed `request.body.string` to `read` to make it work with Unicorn.\n\n## 0.0.8\n\n* Added `#represents` to configure consuming and rendering on controller class layer. This also calls `respond_to`.\n\n## 0.0.7\n\n* Introduce `:represent_with` and `:represent_items_with` for `#respond_with`. In turn, deprecate the old behaviour since it will change in 1.0.\n\n## 0.0.6\n\n* Make roar-rails rely on roar 0.10 and bigger.\n\n## 0.0.4\n\n* Added `#consume!` to infer representer name and parse the incoming document for a model.\n\n## 0.0.3\n\n* Works with Rails 3.0 now, too. Fixed the `mounted_helpers` import.\n", 'message': 'document change to `render`\n', 'author_name': 'Eric Skogen', 'lang': 'markdown'}