Remove `actions` and `action` methods from controller concern.

These methods return definition actions anyway, so it seems clearer
to have the code follow up the definition object. That is: 
* ```ctrl.actions``` should now be ```ctrl.definition.actions```
* ```ctrl.action(:name)``` should now be ```ctrl.definition.actions[:name]```

This opens the door to define both design and controller in a single file/class
for quick tests.
Adapted the small parts of the code to access the actions the new way.

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>
Merge pull request #40 from rightscale/remove_actions_methods_from_controller

Remove `actions` and `action` methods from controller concern.
Beef up the internal server error class

* Add tests for it
* Ensure we set a Content-Type header (Fixes #42)

Signed-off-by: Alistair Scott <alistair@rightscale.com>
Merge pull request #43 from aliscott/fix_internal_server_error

Beef up the internal server error class
Rework FileGroup to use Pathname.glob instead of Pathname#find.

Should close #13.

Signed-off-by: Dane Jensen <dane@rightscale.com>
Merge pull request #44 from careo/filegroup-optimization

Rework FileGroup to use Pathname.glob instead of Pathname#find.
Make the error for a missing response_template name a bit more useful.

Should help with #29 and #9.

Signed-off-by: Dane Jensen <dane@rightscale.com>
Merge pull request #46 from careo/response_definitions

Make the error for a missing response_template name a bit more useful.
Doc browser and media type collection improvements

* doc browser
** Avoid showing certain internal type options (i.e. reference).
** Fix Type label to detect collections better, and differentiate between attributor ones and higher level ones.
** tweaked example template to be much more collapsed by default.
** enhanced links template to use the re-type-label, and rs-attribute-description directives.
* Mediatypes
* make Links always list its attributes when describe (never shallow)
* refactored media_type_collection to store a member_attribute (instead of a member_type), and report it in describe much like attributor collections do.

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>
Merge pull request #50 from rightscale/doc_browser_improvements

Doc browser and media type collection improvements
Add MediaTypeCollection.member_view.

Signed-off-by: Dane Jensen <dane@rightscale.com>
enable travis-ci bundler cache

Signed-off-by: Dane Jensen <dane@rightscale.com>
update Gemfile to point to unreleased praxis-bluieprints for now

Signed-off-by: Dane Jensen <dane@rightscale.com>
Merge pull request #51 from careo/media_type_collections-collection_view

Add MediaTypeCollection.member_view.
Miscellaneous improvements:

* Small design improvements on the home page of the doc browser for showing routes and verbs more prominently.
* Application.setup now returns the application instance for easy chaining.

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>
Use and test new Attributor::Hash features:
* header definitions are:
** backed by hashes
** are configured to load its keys as case insensitive
* Multipart (as part of being hashes) can now accept extra parts
Merge pull request #52 from rightscale/headers_as_hashes

Use and test new Attributor::Hash features:
Ready for release 0.10

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>
A couple of bug fixes:
* Fix generator to use the new hash header syntax.
* Fix header key conversion to account for “hyphen-to-underscore”

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>
Use __send__ instead of send more, and support decorated Resources

Signed-off-by: Dane Jensen <dane@rightscale.com>