rails_exception_handler 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1f7fe95e0609f50a4e9b019cc4c685aec54d4a9
4
- data.tar.gz: 7cf25f2fd396d8d98ad82f9aeda580a99bcd42a6
3
+ metadata.gz: 3e5280a7c5b375e4b1c02e33f8eed46d630e5c3c
4
+ data.tar.gz: d68d97ed02a27bcbf43a0c32c228fdbbad6289c5
5
5
  SHA512:
6
- metadata.gz: '08740c06d7c7e5de8b75e2dc693d40d6aed88c3f7ee1b2b141f3b4599a719cb9931cc5c47316238f6f0c936967541c0581b6980880ecc55ae2e329e3ea01fd7d'
7
- data.tar.gz: 26b7059fd57c9b393eb50cf04d264b9646c82a819161a5516022321d11b50b4e870d5bedb84f12fac2754c9f2c0b53b71431e931a0a306b33a79540972526fa9
6
+ metadata.gz: 165b7957adfa2d361ca0c843d875d28b61dfbd64751fdf6d3886c9b6540dee6241d1d916565a52993385d5b358dda3d9e42bcf2fb70f2d62f50c3aad09836bee
7
+ data.tar.gz: c58d5960510fb8d0d65acc0327b5c02730f932a67c314d93e3d3a33bb98f8632ffe992533a5aa4b61afa2a165104107c6d88bdb7fe8c59044f884a942b678ee3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_exception_handler (2.4.0)
4
+ rails_exception_handler (2.4.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/HISTORY CHANGED
@@ -1,5 +1,8 @@
1
1
  CHANGELOG
2
2
 
3
+ v2.4.1
4
+ - Fix issue with missing ApplicationMailer
5
+
3
6
  v2.4.0
4
7
  - Email storage strategy, by https://github.com/lethunder
5
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.0
1
+ 2.4.1
@@ -1,4 +1,4 @@
1
- if(RailsExceptionHandler.configuration.activate?)
1
+ if RailsExceptionHandler.configuration.activate? && RailsExceptionHandler.configuration.email?
2
2
  class RailsExceptionHandler::ErrorMailer < ApplicationMailer
3
3
 
4
4
  # Subject can be set in your I18n file at config/locales/en.yml
@@ -23,6 +23,10 @@ class RailsExceptionHandler::Configuration
23
23
  @storage_strategies.include?(:mongoid)
24
24
  end
25
25
 
26
+ def email?
27
+ @storage_strategies.collect{|s| s.is_a?(Hash) ? s.keys : s}.flatten.include?(:email)
28
+ end
29
+
26
30
  def activate?
27
31
  environments.include?(Rails.env.to_sym)
28
32
  end
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: rails_exception_handler 2.4.0 ruby lib
5
+ # stub: rails_exception_handler 2.4.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rails_exception_handler".freeze
9
- s.version = "2.4.0"
9
+ s.version = "2.4.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Sharagoz".freeze]
14
- s.date = "2017-08-29"
14
+ s.date = "2017-09-09"
15
15
  s.description = "".freeze
16
16
  s.email = "contact@sharagoz.com".freeze
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_exception_handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharagoz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2017-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails