Skip to content

Commit 9930042

Browse files
committed
Merge pull request #9 from spree-contrib/release-0-2
Release 0.2.0
2 parents bc2a62e + a3a5d49 commit 9930042

3 files changed

Lines changed: 40 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Changelog
2+
3+
## 0.2.0
4+
5+
* Calling `super` inside fo `#index` and `#show` actions is now deprecated.
6+
Since these are methods that are meant to be called, they have been renamed to `#render_collection` and `#render_instance`.
7+
8+
[Ben A. Morgan](https://github.com/BenMorganIO)
9+
10+
* Added support for [Solidus](https://github.com/solidusio/solidus).
11+
12+
[Ben A. Morgan](https://github.com/BenMorganIO)
13+
14+
* In some instances, you would like to use the helper methods provided by the Spree V2 API, but unable to extend from the controller.
15+
The render methods have been moved to a concern.
16+
If you would like to include them in a controller without having to extend from the `Spree::Api::V2::BaseController`, then:
17+
18+
```ruby
19+
module Api
20+
class MyController < Api::BaseController
21+
# include the concern
22+
include Spree::Api::V2::Renderable
23+
24+
# example usage of rendering all products without calling
25+
# +render_instance+ but providing page detail information that conforms
26+
# to the JSON API spec.
27+
def index
28+
render json: @products, meta: { page: page_details(@products) }
29+
end
30+
end
31+
end
32+
```
33+
34+
[Ben A. Morgan](https://github.com/BenMorganIO)
35+
36+
## 0.1.0
37+
38+
Initial Release

solidus_api_v2.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Gem::Specification.new do |s|
33
s.platform = Gem::Platform::RUBY
44
s.name = 'solidus_api_v2'
5-
s.version = '1.1.0'
5+
s.version = '0.2.0'
66
s.summary = 'The V2 API for Solidus.'
77
s.description = 'Adds an assortment of new api endpoints that are JSON API compatible.'
88
s.required_ruby_version = '>= 2.0.0'

spree_api_v2.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Gem::Specification.new do |s|
33
s.platform = Gem::Platform::RUBY
44
s.name = 'spree_api_v2'
5-
s.version = '3.0.4'
5+
s.version = '0.2.0'
66
s.summary = 'The V2 API for Spree.'
77
s.description = 'Adds an assortment of new api endpoints that are JSON API compatible.'
88
s.required_ruby_version = '>= 2.0.0'

0 commit comments

Comments
 (0)