Skip to content

Commit

Permalink
Merge pull request #9 from spree-contrib/release-0-2
Browse files Browse the repository at this point in the history
Release 0.2.0
  • Loading branch information
BenMorganIO committed Oct 14, 2015
2 parents bc2a62e + a3a5d49 commit 9930042
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Changelog

## 0.2.0

* Calling `super` inside fo `#index` and `#show` actions is now deprecated.
Since these are methods that are meant to be called, they have been renamed to `#render_collection` and `#render_instance`.

[Ben A. Morgan](https://github.com/BenMorganIO)

* Added support for [Solidus](https://github.com/solidusio/solidus).

[Ben A. Morgan](https://github.com/BenMorganIO)

* In some instances, you would like to use the helper methods provided by the Spree V2 API, but unable to extend from the controller.
The render methods have been moved to a concern.
If you would like to include them in a controller without having to extend from the `Spree::Api::V2::BaseController`, then:

```ruby
module Api
class MyController < Api::BaseController
# include the concern
include Spree::Api::V2::Renderable

# example usage of rendering all products without calling
# +render_instance+ but providing page detail information that conforms
# to the JSON API spec.
def index
render json: @products, meta: { page: page_details(@products) }
end
end
end
```

[Ben A. Morgan](https://github.com/BenMorganIO)

## 0.1.0

Initial Release
2 changes: 1 addition & 1 deletion solidus_api_v2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'solidus_api_v2'
s.version = '1.1.0'
s.version = '0.2.0'
s.summary = 'The V2 API for Solidus.'
s.description = 'Adds an assortment of new api endpoints that are JSON API compatible.'
s.required_ruby_version = '>= 2.0.0'
Expand Down
2 changes: 1 addition & 1 deletion spree_api_v2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_api_v2'
s.version = '3.0.4'
s.version = '0.2.0'
s.summary = 'The V2 API for Spree.'
s.description = 'Adds an assortment of new api endpoints that are JSON API compatible.'
s.required_ruby_version = '>= 2.0.0'
Expand Down

0 comments on commit 9930042

Please sign in to comment.