agilibox 1.10.5 → 1.11.0

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
  SHA256:
3
- metadata.gz: '099effdf6498e39ccfe893143dabb321eac11de3ffd0bf58c668aa2d2478c19b'
4
- data.tar.gz: 39df78a37082ec5bd827bbbbf94efa7f26376736e92ecc1cd1858d2ed60cf6d1
3
+ metadata.gz: 73e2e45e1fed7a2e0cec02d337dc0afa3bf0112e4b26ec3168d8b62e0f64c961
4
+ data.tar.gz: 9a79efe0583a84370cc71d57468e6083b77032053c59ae702c9c557a3cac3dd4
5
5
  SHA512:
6
- metadata.gz: '08ba38eec7f7fe4ccfe22b5d1ff26c4049f733ab2a455a86147af882ed909aee32a80cbeecc354b1efbf77867a4610992bbf9e126325e772ab34f64e14726501'
7
- data.tar.gz: d81c0baa5c0ec86b83d49202a4170d9de287028f195ba3aa6d755cda73f0058581ffd7ae3fb590567ad9c77b36ef1b4bf5b6eb2985fe96c22f00d389eee291e9
6
+ metadata.gz: 80764451b386701e1e0033ed885589c1e95bff2bd973cc022dc706ce828fc86f1ac8c947c8bbe5b6f394e395fa5c1e9f933b45fb0173fe03d7ef3c088bc2eed2
7
+ data.tar.gz: 727f23e415b4aa280e2d96bc91d3016636e2e8f76a8a197218b9a8ef93797e638fb9637f880603293476c0ad6960fcd6d1974f74a1669184f20624f4b8169222
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v1.11.0
6
+ - Add ActionDispatch::Http::MimeNegotiation::InvalidType to errors middleware
7
+ - Fix inverted forbidden/unauthorized
8
+
5
9
  ## v1.10.5
6
10
  - Fix hidden_inputs_for_get_form again
7
11
 
@@ -54,7 +54,7 @@ module Agilibox::ApiControllerConcern
54
54
  end
55
55
 
56
56
  def render_forbidden_or_unauthorized
57
- current_user ? render_unauthorized : render_forbidden
57
+ current_user ? render_forbidden : render_unauthorized
58
58
  end
59
59
 
60
60
  included do |controller|
@@ -10,6 +10,7 @@ class Agilibox::ErrorsMiddleware
10
10
  "ActionController::UnknownFormat",
11
11
  "ActionController::UnknownHttpMethod",
12
12
  "ActionDispatch::Cookies::CookieOverflow",
13
+ "ActionDispatch::Http::MimeNegotiation::InvalidType",
13
14
  "ActionView::MissingTemplate",
14
15
  "Mime::Type::InvalidMimeType",
15
16
  ]
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.10.5"
2
+ VERSION = "1.11.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.5
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-20 00:00:00.000000000 Z
11
+ date: 2021-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n