ocean-rails 5.5.2 → 5.5.3
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3564e9ecab8263f574cc58a50ddb45985435975b
|
|
4
|
+
data.tar.gz: 2361e8081257e8227b6ce525cf590057e5ed21fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23bdc233ec16f45c0d87c383d887f03500ed1de281625b088440d71ee4ccb2648a2b022bb66295a705667cec9322e1433e1b4fd70d8d6980ddee92197c41a786
|
|
7
|
+
data.tar.gz: cf7425b671b3710519cabda52c29483b3014b5bbf8026b4af80189fa48cfe0fb247a5a737f805b7a39a3e6bd08f971f19b22cff64a042c820ffb4e6c87748462
|
|
@@ -46,15 +46,20 @@ class OceanSetupGenerator < Rails::Generators::NamedBase #:nodoc: all
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def install_error_handling_and_specs
|
|
49
|
-
application "#
|
|
49
|
+
application "# Raise exceptions instead of rendering exception templates.
|
|
50
|
+
config.action_dispatch.show_exceptions = false
|
|
51
|
+
|
|
52
|
+
# Handle our own exceptions internally, so we can return JSON error bodies
|
|
50
53
|
config.exceptions_app = ->(env) { ErrorsController.action(:show).call(env) }
|
|
51
54
|
"
|
|
52
55
|
end
|
|
53
56
|
|
|
54
57
|
def turn_off_sessions_and_cookies
|
|
55
|
-
application "# Turn off sessions
|
|
58
|
+
application "# Turn off sessions, cookies and the message flash
|
|
56
59
|
config.session_store :disabled
|
|
57
60
|
config.middleware.delete ActionDispatch::Cookies
|
|
61
|
+
config.middleware.delete ActionDispatch::Session::CookieStore
|
|
62
|
+
config.middleware.delete ActionDispatch::Flash
|
|
58
63
|
"
|
|
59
64
|
end
|
|
60
65
|
|
|
@@ -74,7 +74,7 @@ module Ocean
|
|
|
74
74
|
#
|
|
75
75
|
# +extra_actions+: a hash containing information about extra controller actions
|
|
76
76
|
# apart from the standard Rails ones of +index+, +show+, +create+, +update+, and
|
|
77
|
-
# +destroy+. One entry per extra action is required in order to process
|
|
77
|
+
# +destroy+. One entry per extra action is required in order to process authorisation
|
|
78
78
|
# requests. Here's an example:
|
|
79
79
|
#
|
|
80
80
|
# ocean_resource_controller extra_actions: {'comments' => ['comments', "GET"],
|
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: 5.5.
|
|
4
|
+
version: 5.5.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: 2015-
|
|
11
|
+
date: 2015-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|