mailgun_catcher 1.1.0 → 1.2.0
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 +4 -4
- data/lib/mailgun_catcher/engine.rb +11 -3
- data/lib/mailgun_catcher/version.rb +1 -1
- data/lib/mailgun_catcher.rb +12 -5
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 778aacf24425d606cc021c1d52dc578673e0708277b36de24a9fc978796d722b
|
4
|
+
data.tar.gz: ece5e3a2562b344265c1630a0f50f24781899ce6ea0b4b52a6676e1f07890901
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c5d3ed971de6d1d7dfd058a6f9584ebafa3d968b5dc3ce7cdcc5569aa5a442f8c27cb6f2acb36f3056195aad07b24c536e44b1ed4e9a97e6abff8e63750795e
|
7
|
+
data.tar.gz: 53fd02390af69e4758e5c89883cdd7b42598f81da6c0c73d1ac171c13d4f96c6cde0ae4338f13ec1edf4d14f44e6fb00e6769983aa6d7320f98951b74cb41bc6
|
@@ -1,9 +1,17 @@
|
|
1
1
|
module MailgunCatcher
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
-
|
3
|
+
isolate_namespace MailgunCatcher
|
4
4
|
|
5
|
-
|
5
|
+
def self.config
|
6
|
+
@config ||= Config.new(webhooks_path: 'webhooks')
|
7
|
+
end
|
6
8
|
|
7
|
-
|
9
|
+
class Config
|
10
|
+
attr_accessor :webhooks_path
|
11
|
+
|
12
|
+
def initialize(webhooks_path:)
|
13
|
+
@webhooks_path = webhooks_path
|
14
|
+
end
|
15
|
+
end
|
8
16
|
end
|
9
17
|
end
|
data/lib/mailgun_catcher.rb
CHANGED
@@ -1,14 +1,21 @@
|
|
1
|
-
require 'dry-configurable'
|
2
1
|
require 'mailgun_catcher/engine'
|
3
2
|
require 'mailgun_catcher/event'
|
4
3
|
require 'mailgun_catcher/notifier/bugsnag'
|
5
4
|
|
6
5
|
module MailgunCatcher
|
7
|
-
extend Dry::Configurable
|
8
|
-
|
9
|
-
setting(:notifiers, default: ["MailgunCatcher::Notifier::Bugsnag"])
|
10
|
-
|
11
6
|
def self.setup
|
12
7
|
yield config
|
13
8
|
end
|
9
|
+
|
10
|
+
def self.config
|
11
|
+
@config ||= Config.new(notifiers: ['MailgunCatcher::Notifier::Bugsnag'])
|
12
|
+
end
|
13
|
+
|
14
|
+
class Config
|
15
|
+
attr_accessor :notifiers
|
16
|
+
|
17
|
+
def initialize(notifiers:)
|
18
|
+
@notifiers = notifiers
|
19
|
+
end
|
20
|
+
end
|
14
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailgun_catcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bugsnag
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: dry-configurable
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0.12'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0.12'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rails
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
76
|
- !ruby/object:Gem::Version
|
91
77
|
version: '0'
|
92
78
|
requirements: []
|
93
|
-
rubygems_version: 3.3.
|
79
|
+
rubygems_version: 3.3.7
|
94
80
|
signing_key:
|
95
81
|
specification_version: 4
|
96
82
|
summary: Engine for mailgun hooks
|