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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmYzYTBkNmE2YWI2MzU1ODAzMjU0ZGYwNWEyMzE5OWMxZTVhMTBmZg==
4
+ MDA1Mzg0OTJkMDhiMDFmOTk0NDExNGJiZmQ5ZDU4ZWE1NzYyY2E2Yw==
5
5
  data.tar.gz: !binary |-
6
- MDMxMWIyMTk2ZWQyOTI3YzM2M2M5YjFkNjI1ZDBjZTgxODQzNTI2Ng==
6
+ ZDIyNjBlZmFhNDY3MDNhMGVkYzllMDk1OWZkOGQwNTI0NWMwMTQ0Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzMwMzhkZDJhMDFmMmM4ZDQ4NzlkODlmYTlmZGFkZDE2OTZmMzE5ZGRlY2Qx
10
- NWM0MjA1YzIyNDdkYTI0MjA4ODI1NWYwMjE1M2Q0ZDliMTc2YTExOTc5NDVk
11
- ZTEzNGQ0NWRmNDNmODI4OGUwNmI2NTY0NzI2ZGYxNjdiYmUyMDU=
9
+ MmJmODJmNjk5OTg0NTRlNTE1YTVjNzJmNWEwOTczNmNjNDMzYWJhNWUxMDkw
10
+ ZmI4MjdhMWM4NDkwMzNmNGIxNDgxOWE2ODFiZTg1NDhmNzU1OTlkNDA5Nzcy
11
+ NTA4ZjUxYTdhYWU2MGUzNzhlNGE3NjI0N2Y2MzFiNjMwYjJiZDI=
12
12
  data.tar.gz: !binary |-
13
- Y2YzNGFiNTRjZTJiYmM4NzA2NDI3ZjI3ZjBmZThiZjRiOTE4Mzk4NmFmZTk3
14
- MGQ5NzIwN2NlMWI2NzI3Y2Y1MGFlYzExZGZmYjg2Yjc5ZDc2MTJkOWVhMDMz
15
- YjQxMWRmYzE1NzY5MmQwMjY3NTQ4ODZmYWRmZmU4OWVmODU5Mzc=
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/rescue-from.svg?branch=master)](https://travis-ci.org/openstax/rescue_from)
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
@@ -36,6 +36,10 @@ module OpenStax
36
36
  status: ex.response.status,
37
37
  body: ex.response.body }
38
38
  })
39
+
40
+ RescueFrom.register_exception('Apipie::ParamMissing',
41
+ notify: false,
42
+ status: :unprocessable_entity)
39
43
  end
40
44
  end
41
45
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module RescueFrom
3
- VERSION = "1.1.2"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
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.1.2
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-05 00:00:00.000000000 Z
12
+ date: 2015-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails