ocean-rails 2.16.2 → 2.16.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean/ocean_application_controller.rb +17 -17
- data/lib/ocean/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0abe1ea25a87eacf12ac36147d3f3ed351fd7c0c
|
4
|
+
data.tar.gz: 6a3d4902ad2e035d4f6f695f57a46e3c6c616691
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6efe92ccc4ba14e8388bc9193e1f01147864ec32734fa35ab350304c795aa9b3ca87d9fe2420f0a63f402df773f97e2496560e8c81c3ed26b8490600d7fd7dca
|
7
|
+
data.tar.gz: cd2a64e30ee8da82577fc7e3512e27d16743a62a62828bcff1b8fa6c639b6ea0fd454d8c4083310444600116bf8f7325d2e4aa8be71b557992d09672dafeef7f
|
@@ -80,23 +80,23 @@ module OceanApplicationController
|
|
80
80
|
end
|
81
81
|
|
82
82
|
|
83
|
-
#
|
84
|
-
# Requires the request to be conditional: it must have an +If-None-Match+ and/or an
|
85
|
-
# +If-Modified-Since+ HTTP header. If the request isn't conditional, a 428 error is
|
86
|
-
# returned. The body will be a standard API error message, with two strings:
|
87
|
-
# <tt>"Precondition Required"</tt> and <tt>"If-None-Match and/or If-Modified-Since missing"</tt>.
|
88
|
-
#
|
89
|
-
def require_conditional
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
end
|
83
|
+
# #
|
84
|
+
# # Requires the request to be conditional: it must have an +If-None-Match+ and/or an
|
85
|
+
# # +If-Modified-Since+ HTTP header. If the request isn't conditional, a 428 error is
|
86
|
+
# # returned. The body will be a standard API error message, with two strings:
|
87
|
+
# # <tt>"Precondition Required"</tt> and <tt>"If-None-Match and/or If-Modified-Since missing"</tt>.
|
88
|
+
# #
|
89
|
+
# def require_conditional
|
90
|
+
# if request.headers['If-None-Match'].blank? && request.headers['If-Modified-Since'].blank?
|
91
|
+
# render_api_error 428, "Precondition Required",
|
92
|
+
# "If-None-Match and/or If-Modified-Since missing"
|
93
|
+
# #expires_in 0, must_revalidate: true
|
94
|
+
# expires_now
|
95
|
+
# false
|
96
|
+
# else
|
97
|
+
# true
|
98
|
+
# end
|
99
|
+
# end
|
100
100
|
|
101
101
|
|
102
102
|
#
|
data/lib/ocean/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.16.
|
4
|
+
version: 2.16.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|