json_api_responders 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 034317e7b65c9c2f185a1452f0bdf25c7379db0f
4
- data.tar.gz: 696692609aec276496e651bdc3f3ff258d01b5de
3
+ metadata.gz: 988a16997eaa202652602524f3f69ba649b38ab0
4
+ data.tar.gz: 01af27b3c0cfa960f93b664424a2e0f377fa710d
5
5
  SHA512:
6
- metadata.gz: 2cf62a2387d824dae45d27c9d68aac4e061d6536149339ebcfa581bee260d672af8e80df7e343caff28b84a8d5b10002ef98714fa0ff7278cc024348deda15eb
7
- data.tar.gz: db92a7c5d0812ea1222edcb2ef87e90b046eb4b152b14f7d74e24ae41901a5e64eb435cfd007f0751dcdda68fd8dde5d07c4500ff8e35c04087a724758bbde1d
6
+ metadata.gz: ced7e86b6f9deaae06d1e68524ded7dbee817d49c2c1f9d6b8b7269af258f26b960b82ae668882340e0a15ea949faf466b576c824ea13a3715c60b4aa4bab011
7
+ data.tar.gz: 0431f786416bc5d90c0c1106386c0255cf733000bf271c8979f1bb7cebbbd63937485777b54bcb8d0d0c26fce55dc6e6dfd18bc12aec97daec54a6fa8bee5289
@@ -16,7 +16,7 @@ module JsonApiResponders
16
16
  def initialize(resource, options = {})
17
17
  @resource = resource
18
18
  @options = options
19
- self.status = @options[:status] unless @options[:status]
19
+ self.status = @options[:status] if @options[:status]
20
20
  @params = @options[:params]
21
21
  @controller = @options[:controller]
22
22
  @namespace = @options[:namespace]
@@ -56,7 +56,7 @@ module JsonApiResponders
56
56
 
57
57
  def render_response
58
58
  return send("respond_to_#{action}_action") if action.in?(ACTIONS)
59
- raise(JsonApi::Errors::UnknownAction, action)
59
+ raise(JsonApiResponders::Errors::UnknownAction, action)
60
60
  end
61
61
 
62
62
  def render_error
@@ -1,6 +1,6 @@
1
1
  module JsonApiResponders
2
2
  MAJOR = 1
3
3
  MINOR = 0
4
- PATCH = 2
4
+ PATCH = 3
5
5
  VERSION = [MAJOR, MINOR, PATCH].join('.').freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_responders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanko Krtalić Rusendić