skip-exception-notifying 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/skip_exception_notifying.rb +16 -0
  3. metadata +102 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5e83cd3f75b10ee86918ade84272825dd99f9e68
4
+ data.tar.gz: 5dc0bdbff8a4315c83d46b03bd7295d23617953b
5
+ SHA512:
6
+ metadata.gz: c1616dc3bc38c7ce253d015126fd7cc837b48523689f5a2e9a60cce2d422d84c87075220629187c5f8efb7eb7825d57e43edb5c60029c186a16e0b33a52b8fef
7
+ data.tar.gz: 1ebc217f8508258487e2a933051b02c5513165d56df69adb6d675df22a027b5e0a71127087f6f42de3e16f0750a39a5306fe50e7e4dfb2d143ee16591ac5b07e
@@ -0,0 +1,16 @@
1
+ class Exception
2
+ def skip_notifiyng!
3
+ @skip_notifiyng = true
4
+ end
5
+
6
+ def skip_notifiyng?
7
+ !!@skip_notifiyng
8
+ end
9
+ end
10
+
11
+ begin
12
+ require 'exception_notification'
13
+ ExceptionNotifier.ignore_if { |exception| exception.skip_notifiyng? }
14
+ rescue LoadError => e
15
+ raise(e) unless e['exception_notification']
16
+ end
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: skip-exception-notifying
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alexander Smirnov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: exception_notification
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Adds `skip_notifying!` method to exceptions, which disables exception_notifier
70
+ for it
71
+ email:
72
+ - begdory4@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - lib/skip_exception_notifying.rb
78
+ homepage: https://github.com/JelF/skip-exception-notifying
79
+ licenses: []
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubyforge_project:
97
+ rubygems_version: 2.5.1
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Adds `skip_notifying!` method to exceptions, which disables exception_notifier
101
+ for it
102
+ test_files: []