pi-resources-rails 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fabead3eca8ab56d2a4b3cd8486a12c2f5ab5564f58054c613d23f815cf22397
4
- data.tar.gz: 33cb7e9077e1125d401ededac3b8017b5d0e6d509028b27c2508362bc09b4067
3
+ metadata.gz: c675ad71f798db8858aef5edb05345329f9d280d637a86b096796f6d56f8752e
4
+ data.tar.gz: ff278e06bd075f51bc3822416642d9d35a47506f0df42f99d9d4019d84898e71
5
5
  SHA512:
6
- metadata.gz: 1d505aab254922595c627a0cd7493d0c8eeddd1508670e097f1c93233d2b072e7bbbbf600a545f881b64b48b3139837f88e3dc1a15bc1767cad79c961df58c3d
7
- data.tar.gz: da47aee832151d7e2b6e4d23ed4522ebc46024def21594133dbdd1951c586d97c8f0f6b3ae8a4c66da65a6b0de7bde8483b736907c07770649725c68faa057ec
6
+ metadata.gz: c622392121ccab047455c57bab30787456d0fc1ade926a39874f68354aa8985842d6da536506e5ea17dcd2ac801ef899f44c931b4e02cae2814cdff57bb4bedb
7
+ data.tar.gz: 487a6b0718140beeb4794b856a679c0cefb1ea805563655ca2e2c52a322a16b4e731b3820f7a2fc52e8612b6e3b17c0411e06ade41d92a07602d47acadc1c446
@@ -34,9 +34,10 @@ module PiResources
34
34
  context: context,
35
35
  meta: meta,
36
36
  message: create_message,
37
- location: resource_location
37
+ location: resource_location,
38
+ status: :created
38
39
  else
39
- render resource_errors: @resource.errors
40
+ render resource_errors: @resource.errors, status: :unprocessable_entity
40
41
  end
41
42
  end
42
43
 
@@ -51,7 +52,7 @@ module PiResources
51
52
  message: update_message,
52
53
  location: resource_location
53
54
  else
54
- render resource_errors: @resource.errors
55
+ render resource_errors: @resource.errors, status: :unprocessable_entity
55
56
  end
56
57
  end
57
58
 
@@ -66,7 +67,7 @@ module PiResources
66
67
  message: destroy_message,
67
68
  location: resource_location
68
69
  else
69
- render resource_errors: @resource.errors
70
+ render resource_errors: @resource.errors, status: :unprocessable_entity
70
71
  end
71
72
  end
72
73
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PiResources
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pi-resources-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umberto Peserico
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-08-29 00:00:00.000000000 Z
12
+ date: 2023-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: money