pragma 1.2.4 → 1.2.5

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: c2b49020a04f887ed50fcfdd6669dbc77d0e9fb3
4
- data.tar.gz: cfffd99a7d2ca0b26f9c30b65a3dbeb0bf077d1c
3
+ metadata.gz: 762f63614c685f5f04f2fb23ec8422db81005cbe
4
+ data.tar.gz: ff163f93e1a59a62fb8d4fdd8e59cb5072f1e47f
5
5
  SHA512:
6
- metadata.gz: 44f612bbe5eae8c3ed123d0eeb5aac9c2a2826407469cd10690dfc7de91470fcbdb76f30f76bb6b03a441078bd8a5a8d60a17a99339509d17ac2149f334d790f
7
- data.tar.gz: ad6f8857a74414c78b2f2dafd282263995b4de070554fc3eec46aafc4c840208df7e3f3e7c1b96bbacfc7fd09eae76d9916899623aaf48474fcad6f52880a5ad
6
+ metadata.gz: ba723b301dafb8b3a32e7e82a1957f9f4586312ae8713b1e45f6aa16bc45618f8816164d6a3f14bb5eb65373d38bcc42cfd66de647e95b90c627accbde3aaafb
7
+ data.tar.gz: aedd2643aa40f70e5d0734989755cd6effee7c7383005289b46c6f6f08e51a3147cfd29816a74381a87282b0d93560d3d81a927bb5b1778728b561dababc00c8
@@ -23,6 +23,7 @@ module Pragma
23
23
 
24
24
  respond_with(
25
25
  resource: decorate(context.records),
26
+ status: :ok,
26
27
  headers: {
27
28
  'Page' => context.records.current_page.to_i,
28
29
  'Per-Page' => context.records.per_page,
@@ -11,7 +11,7 @@ module Pragma
11
11
  context.record = find_record
12
12
  authorize! context.record
13
13
 
14
- respond_with resource: decorate(context.record)
14
+ respond_with resource: decorate(context.record), status: :ok
15
15
  end
16
16
 
17
17
  protected
@@ -18,7 +18,7 @@ module Pragma
18
18
  context.contract.save
19
19
  context.record.save!
20
20
 
21
- respond_with resource: decorate(context.record)
21
+ respond_with resource: decorate(context.record), status: :ok
22
22
  end
23
23
 
24
24
  protected
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Pragma
3
- VERSION = '1.2.4'
3
+ VERSION = '1.2.5'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pragma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-01 00:00:00.000000000 Z
11
+ date: 2017-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pragma-operation
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
- rubygems_version: 2.6.8
216
+ rubygems_version: 2.6.12
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: A pragmatic architecture for building JSON APIs with Ruby.