Skip to content

Releases: drewish/rspec-rails-swagger

v0.2.0: Merge pull request #51 from drewish/remove-rails-dependency

28 Aug 16:01
b7dd4f2
Compare
Choose a tag to compare
  • Changed the path'sswagger_document attribute to swagger_doc so it matches the name used in the configuration file #45
  • Expand examples in README #36

Formatting of responses, support for YAML output

06 May 20:35
5e6127c
Compare
Choose a tag to compare

@ZurgInq provided RSpec::Rails::Swagger::ResponseFormatters to allow control over how the example responses are formatted (#33)

If you use .yaml or .yml as the extension for a Swagger file assigned in config.swagger_docs the contents will be formatted as YAML rather than JSON (#37)

Docs and Tags

17 Mar 05:20
Compare
Choose a tag to compare

I've finally gotten around to documenting the DSL in the README (#31). I've also added some shortcuts for adding tags to paths or RSpec contexts, rather than individually on each operation (#29).

Small fixes

21 Oct 21:27
Compare
Choose a tag to compare
  • Don't require optional parameters to have value #24
  • Allow specs to pass values to request env #25

Added generators

04 Oct 18:15
Compare
Choose a tag to compare

Added a generator to handle the installation process of creating spec/swagger_helper.rb:

rails generate rspec:swagger_install

And, more excitingly, a generator to help create specs for existing controllers:

rails generate rspec:swagger PostsController

Would create a spec/requests/posts_spec.rb with the paths and operations for each action in the controller.

Added a rake task

28 Sep 19:22
Compare
Choose a tag to compare

Try rake swagger and you'll see it output the paths, operations, and response codes as it generates the docs.

First release!

28 Sep 19:21
Compare
Choose a tag to compare
Merge pull request #6 from drewish/rename-rspec-rails-swagger

Rename to rspec-rails-swagger