openstax_rescue_from 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -1
- data/lib/openstax/rescue_from/default_exceptions.rb +4 -0
- data/lib/openstax/rescue_from/engine.rb +8 -14
- data/lib/openstax/rescue_from/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDA1Mzg0OTJkMDhiMDFmOTk0NDExNGJiZmQ5ZDU4ZWE1NzYyY2E2Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDIyNjBlZmFhNDY3MDNhMGVkYzllMDk1OWZkOGQwNTI0NWMwMTQ0Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmJmODJmNjk5OTg0NTRlNTE1YTVjNzJmNWEwOTczNmNjNDMzYWJhNWUxMDkw
|
10
|
+
ZmI4MjdhMWM4NDkwMzNmNGIxNDgxOWE2ODFiZTg1NDhmNzU1OTlkNDA5Nzcy
|
11
|
+
NTA4ZjUxYTdhYWU2MGUzNzhlNGE3NjI0N2Y2MzFiNjMwYjJiZDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDllNDEzY2FlMTgwMjI1ZjliYTNhNWY1MzU4NzM3NmM2OTJiMjI1Mjg3MmFi
|
14
|
+
MDcxY2QxNmVlZTFmM2YyYmMwMmVhNjVhNjZjZjhiMzFlYmRhOTU3NjA5MjZh
|
15
|
+
ZTk0YTg5MTk0OGM2ZmNmZjJmZGU0MTk2YjQ0YmZiMTM2M2ZjMDk=
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# RescueFrom
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/openstax_rescue_from.svg)](http://badge.fury.io/rb/openstax_rescue_from)
|
4
|
-
[![Build Status](https://travis-ci.org/openstax/
|
4
|
+
[![Build Status](https://travis-ci.org/openstax/rescue_from.svg?branch=master)](https://travis-ci.org/openstax/rescue_from)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/openstax/rescue_from/badges/gpa.svg)](https://codeclimate.com/github/openstax/rescue_from)
|
6
6
|
|
7
7
|
This is the gem that brings together disparate systems within OpenStax and abstracts consistent exception rescuing with html and json responses, and email notifying
|
@@ -3,20 +3,6 @@ require 'openstax/rescue_from/default_exceptions'
|
|
3
3
|
module OpenStax
|
4
4
|
module RescueFrom
|
5
5
|
class Engine < ::Rails::Engine
|
6
|
-
initializer 'openstax.rescue_from.inflection' do
|
7
|
-
ActiveSupport::Inflector.inflections do |inflect|
|
8
|
-
inflect.acronym 'OpenStax'
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
initializer "openstax.rescue_from.action_controller" do
|
13
|
-
ActionController::Base.send :include, Controller
|
14
|
-
end
|
15
|
-
|
16
|
-
initializer "openstax.rescue_from.view_helpers" do
|
17
|
-
ActionView::Base.send :include, ViewHelpers
|
18
|
-
end
|
19
|
-
|
20
6
|
initializer "openstax.rescue_from.use_exception_notification_middleware" do
|
21
7
|
Rails.application.config.middleware.use ExceptionNotification::Rack, email: {
|
22
8
|
email_prefix: RescueFrom.configuration.email_prefix,
|
@@ -31,3 +17,11 @@ module OpenStax
|
|
31
17
|
end
|
32
18
|
end
|
33
19
|
end
|
20
|
+
|
21
|
+
ActionController::Base.send :include, OpenStax::RescueFrom::Controller
|
22
|
+
|
23
|
+
ActiveSupport::Inflector.inflections do |inflect|
|
24
|
+
inflect.acronym 'OpenStax'
|
25
|
+
end
|
26
|
+
|
27
|
+
ActionView::Base.send :include, OpenStax::RescueFrom::ViewHelpers
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstax_rescue_from
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|