releaf-core 2.1.1 → 2.1.2

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: 3e433968eea67f1a5bf1a38732598a5a75564bd8a0175acb24ff2b6f2b7bbca6
4
- data.tar.gz: a812e881410e8de7d927c99512c46b22174e4689967daf9b7ee0b29a4b8af934
3
+ metadata.gz: 682a49cfe8ce543d290aa1adb1ed44ccffb2bee92d4aa8fc96860ed9f4e13bf1
4
+ data.tar.gz: 3c432539dff5918c336d99cda6b4daedfb79f7ab0bd8a5e965a7fd282cf0ef9b
5
5
  SHA512:
6
- metadata.gz: 76f9fa3b888da36b90f5098ed43728979414f4762823d7d3e1c09113e5ae9e0d7ea0b641e1fd1fc1b20f908be3017866e351d8643b775b22d953a523141cf32b
7
- data.tar.gz: 3c6e17e2949ab440c275d73e92b054a8b40106fd24fec896782c713f1c63c2ff629727c104cc096275f8eaa018f8c3e61c27aac07f1bbe1cb02eaa7e002f0203
6
+ metadata.gz: d58c6ead24e86e9e7b07aba858d727288032d5901628d869e6930d6e57a89b655648083ef2cf7ee5c87acde18e60b44fd5bdc307b711b7152e1a60deafea624d
7
+ data.tar.gz: 69271b23142584ca4b004f6be2d486e39101e7e3dd104717190441e741afa3afab0e7d130b2e55be901dbc8ddf28b05a8a1971d7ddfe06387180a2188f9cb661
@@ -7,10 +7,10 @@ module Releaf::ActionController::Exceptions
7
7
  end
8
8
 
9
9
  def page_not_found
10
- respond_with(nil, responder: action_responder(:page_not_found))
10
+ render "releaf/error_pages/page_not_found", status: :not_found, formats: :html
11
11
  end
12
12
 
13
13
  def access_denied
14
- respond_with(nil, responder: action_responder(:access_denied))
14
+ render "releaf/error_pages/forbidden", status: :forbidden, formats: :html
15
15
  end
16
16
  end
@@ -11,8 +11,6 @@ module Releaf::Responders
11
11
  update: Releaf::Responders::AfterSaveResponder,
12
12
  confirm_destroy: Releaf::Responders::ConfirmDestroyResponder,
13
13
  destroy: Releaf::Responders::DestroyResponder,
14
- access_denied: Releaf::Responders::AccessDeniedResponder,
15
- page_not_found: Releaf::Responders::PageNotFoundResponder,
16
14
  }
17
15
  end
18
16
 
@@ -0,0 +1,3 @@
1
+ ---
2
+ # Custom Releaf settings should be added here
3
+ {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: releaf-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - CubeSystems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-25 00:00:00.000000000 Z
11
+ date: 2021-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -801,12 +801,9 @@ files:
801
801
  - app/lib/releaf/resource_table_fields.rb
802
802
  - app/lib/releaf/resource_utilities.rb
803
803
  - app/lib/releaf/responders.rb
804
- - app/lib/releaf/responders/access_denied_responder.rb
805
804
  - app/lib/releaf/responders/after_save_responder.rb
806
805
  - app/lib/releaf/responders/confirm_destroy_responder.rb
807
806
  - app/lib/releaf/responders/destroy_responder.rb
808
- - app/lib/releaf/responders/error_responder.rb
809
- - app/lib/releaf/responders/page_not_found_responder.rb
810
807
  - app/lib/releaf/search.rb
811
808
  - app/lib/releaf/settings/normalize_value.rb
812
809
  - app/lib/releaf/settings/register.rb
@@ -823,7 +820,7 @@ files:
823
820
  - app/views/releaf/action/show.ruby
824
821
  - app/views/releaf/action/toolbox.ruby
825
822
  - app/views/releaf/error_pages/_error.html.haml
826
- - app/views/releaf/error_pages/access_denied.html.haml
823
+ - app/views/releaf/error_pages/forbidden.html.haml
827
824
  - app/views/releaf/error_pages/page_not_found.html.haml
828
825
  - lib/generators/dummy/install_generator.rb
829
826
  - lib/generators/dummy/templates/assets/config/manifest.js
@@ -883,6 +880,7 @@ files:
883
880
  - lib/generators/dummy/templates/views/layouts/application.html.haml
884
881
  - lib/generators/dummy/templates/views/text_pages/show.haml
885
882
  - lib/generators/releaf/install_generator.rb
883
+ - lib/generators/releaf/templates/config/app.yml
886
884
  - lib/generators/releaf/templates/initializers/haml.rb
887
885
  - lib/generators/releaf/templates/initializers/releaf.rb
888
886
  - lib/generators/releaf/templates/migrations/create_releaf_nodes.rb
@@ -1,9 +0,0 @@
1
- module Releaf::Responders
2
- class AccessDeniedResponder < ActionController::Responder
3
- include Releaf::Responders::ErrorResponder
4
-
5
- def status_code
6
- 403
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module Releaf::Responders::ErrorResponder
2
- def template
3
- self.class.name.split("::").last.gsub(/Responder$/, "").underscore
4
- end
5
-
6
- def to_html
7
- render "releaf/error_pages/#{template}", status: status_code
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module Releaf::Responders
2
- class PageNotFoundResponder < ActionController::Responder
3
- include Releaf::Responders::ErrorResponder
4
-
5
- def status_code
6
- 404
7
- end
8
- end
9
- end