ocean-rails 1.17.0 → 1.17.1
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 +4 -4
- data/lib/ocean/ocean_application_controller.rb +3 -0
- data/lib/ocean/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f4c9f1d0cf3130fbe82b956e01e7282f05a745c
|
4
|
+
data.tar.gz: 012d4bb1419a3c9b8c03797458f693b73bd5ab2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4987a49ded6766c8f9544976bc3c59bec852f54a4ed719de68964001db72fcda1ecf7e877e9b45dc6b080a444b09b01fa931543b748604380b16e9d0165940c
|
7
|
+
data.tar.gz: 821fbd0ca06f22ab1ca12314a9a6c75bc00e2afee92dc58dddd47aa8a65f9c7e50b2bc3e527739144a4bafe09c7a8ddb8e5da08752854a30949740d1a22c8e1a
|
@@ -33,6 +33,7 @@ module OceanApplicationController
|
|
33
33
|
return true if @x_api_token.present?
|
34
34
|
logger.info "X-API-Token missing"
|
35
35
|
render_api_error 400, "X-API-Token missing"
|
36
|
+
expires_in 0, must_revalidate: true
|
36
37
|
false
|
37
38
|
end
|
38
39
|
|
@@ -68,6 +69,7 @@ module OceanApplicationController
|
|
68
69
|
end
|
69
70
|
error_messages = response.body['_api_error']
|
70
71
|
render_api_error response.status, *error_messages
|
72
|
+
expires_in 0, must_revalidate: true
|
71
73
|
false
|
72
74
|
end
|
73
75
|
|
@@ -82,6 +84,7 @@ module OceanApplicationController
|
|
82
84
|
if request.headers['If-None-Match'].blank? && request.headers['If-Modified-Since'].blank?
|
83
85
|
render_api_error 428, "Precondition Required",
|
84
86
|
"If-None-Match and/or If-Modified-Since missing"
|
87
|
+
expires_in 0, must_revalidate: true
|
85
88
|
false
|
86
89
|
else
|
87
90
|
true
|
data/lib/ocean/version.rb
CHANGED