json_api_responders 1.0.0 → 1.0.1

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: c661ab2ab937e5f41f6f4447f4223def1f55c8bf
4
- data.tar.gz: 0ffdc9290b732bff8e65f4df240cd5b37a1b2aad
3
+ metadata.gz: bb8b45aff75df955208c3f601062f3cd2faf8a18
4
+ data.tar.gz: 98e6978d0fb25285ff4e146191e4abd09c8bc3c6
5
5
  SHA512:
6
- metadata.gz: 34836428bc2a2633118dade15b90bfb5e3dbbbbb671427b3f7d44b3beea7970a7ba0f1d4c331274e4d1e7bd2e4d5cfcf6ad34bf215073d35365b9144d480441c
7
- data.tar.gz: 5e6b7b3e90442b7de163178ea0b769dc9d0417f60b10e0b2219666eb4401d36f588c55a2528c8352d6e6edd98517316d17b430e853de0a339d1d2306354d5c4d
6
+ metadata.gz: f8d14711303eb91fbfb1b3e1d5783b1faa91e2d16af4b8b09f78414a795e293a571a4fc9bd7db0c0ff6450c10d877ab4d91e9700f2ffcf9d894cbe73db4ca380
7
+ data.tar.gz: bdb9c417fb38d11030f4648bddffda49a4004f6f92e280953012962909be6a567c3320fe7ad7c3d128c58374c90756800ff0ba9467fbf64047abe0001abd4a34
@@ -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]
19
+ self.status = @options[:status] unless @options[:status]
20
20
  @params = @options[:params]
21
21
  @controller = @options[:controller]
22
22
  @namespace = @options[:namespace]
@@ -1,6 +1,6 @@
1
1
  module JsonApiResponders
2
2
  MAJOR = 1
3
3
  MINOR = 0
4
- PATCH = 0
4
+ PATCH = 1
5
5
  VERSION = [MAJOR, MINOR, PATCH].join('.').freeze
6
6
  end
@@ -37,7 +37,6 @@ module JsonApiResponders
37
37
  def respond_with(resource, options = {})
38
38
  options = {
39
39
  namespace: self.class.parent,
40
- status: :ok,
41
40
  params: params,
42
41
  controller: self
43
42
  }.merge(options)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_responders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanko Krtalić Rusendić
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-06 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler