ocean-rails 5.5.2 → 5.5.3

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: 8ccb8b6fa4efe74750a87b9afc08bc60b7d611e5
4
- data.tar.gz: c00fe597ed809aa8d4217fc2ab8fb700f6aaeda6
3
+ metadata.gz: 3564e9ecab8263f574cc58a50ddb45985435975b
4
+ data.tar.gz: 2361e8081257e8227b6ce525cf590057e5ed21fe
5
5
  SHA512:
6
- metadata.gz: 984c4b6964e895c59d10e3643208de0331a0110b705ed6607892f33ca09cd489f19a5ee566a6920ef557a970914c83053e24abfd239373e3c0e19844e27ad69a
7
- data.tar.gz: 1307c4f134bd537a6f7449e820dc72fb12f784ef0451791696c3d4ab81b15a5933d9907d54865194096fbe48413dfcd4c5600e16bb613d9104a0be31c7dfb049
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 "# Handle our own exceptions internally, so we can return JSON error bodies
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 authentication
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"],
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "5.5.2"
2
+ VERSION = "5.5.3"
3
3
  end
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.2
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-26 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus