mailgun_webhooks 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +4 -2
- data/lib/mailgun_webhooks/signature.rb +1 -1
- data/lib/mailgun_webhooks/version.rb +1 -1
- metadata +32 -31
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8f3637f9cdf548aeaa766326e126c9cdbd16fa52
|
4
|
+
data.tar.gz: 767ba548635e9fb87fdb99c00ed2dca30afa6ba7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7240788d20e1b57aac4cdd950d7f56ba63eeb226bf5ac76b18b2bad08a7ff91517b7c0dff11d731a4ddb1974514be5256cb582847fcdd6790adb56882b4ac6f6
|
7
|
+
data.tar.gz: b41a7ce5cc20af96fd4ac5f1323d77a842c8a9a34cefcb73f052248b2111a0bb0f157e98780ff11c760414c51f86cf922c9c46ba20d0eaa432233900f9f3de69
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Mailgun Webhooks
|
2
2
|
|
3
|
+
[![Code Climate](https://codeclimate.com/github/mguterl/mailgun_webhooks.png)](https://codeclimate.com/github/mguterl/mailgun_webhooks)
|
4
|
+
|
3
5
|
Add support for acting on Mailgun webhooks to your Rack or Rails application.
|
4
6
|
|
5
7
|
## Rails Installation
|
@@ -15,10 +17,10 @@ MailgunWebhooks.api_host = "yourdomain.com"
|
|
15
17
|
|
16
18
|
## Rack Installation
|
17
19
|
|
18
|
-
If you wish to use MailgunWebhooks outside of Rails, you can leverage the same middleware used to provide Rails integration. Just add `MailgunWebhooks::
|
20
|
+
If you wish to use MailgunWebhooks outside of Rails, you can leverage the same middleware used to provide Rails integration. Just add `MailgunWebhooks::Rack` to your middleware stack.
|
19
21
|
|
20
22
|
```ruby
|
21
|
-
use MailgunWebhooks::
|
23
|
+
use MailgunWebhooks::Rack
|
22
24
|
```
|
23
25
|
|
24
26
|
## Webhooks
|
@@ -11,7 +11,7 @@ module MailgunWebhooks
|
|
11
11
|
api_key = data.fetch('api_key')
|
12
12
|
timestamp = data.fetch('timestamp')
|
13
13
|
token = data.fetch('token')
|
14
|
-
digest = OpenSSL::Digest
|
14
|
+
digest = OpenSSL::Digest.new('sha256')
|
15
15
|
|
16
16
|
signature == OpenSSL::HMAC.hexdigest(digest,
|
17
17
|
api_key,
|
metadata
CHANGED
@@ -1,49 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailgun_webhooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Guterl
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 3.2.3
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.3
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: sqlite3
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rspec-rails
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - ">="
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
description: Easily add Mailgun Webhook integration to your Rails or Rack application.
|
48
56
|
email:
|
49
57
|
- michael@diminishing.org
|
@@ -51,43 +59,36 @@ executables: []
|
|
51
59
|
extensions: []
|
52
60
|
extra_rdoc_files: []
|
53
61
|
files:
|
62
|
+
- MIT-LICENSE
|
63
|
+
- README.md
|
64
|
+
- Rakefile
|
65
|
+
- lib/mailgun_webhooks.rb
|
54
66
|
- lib/mailgun_webhooks/rack.rb
|
55
67
|
- lib/mailgun_webhooks/rails/railtie.rb
|
56
68
|
- lib/mailgun_webhooks/signature.rb
|
57
69
|
- lib/mailgun_webhooks/version.rb
|
58
70
|
- lib/mailgun_webhooks/webhook_registry.rb
|
59
|
-
- lib/mailgun_webhooks.rb
|
60
|
-
- MIT-LICENSE
|
61
|
-
- Rakefile
|
62
|
-
- README.md
|
63
71
|
homepage: http://github.com/mguterl/mailgun_webhooks
|
64
72
|
licenses: []
|
73
|
+
metadata: {}
|
65
74
|
post_install_message:
|
66
75
|
rdoc_options: []
|
67
76
|
require_paths:
|
68
77
|
- lib
|
69
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
79
|
requirements:
|
72
|
-
- -
|
80
|
+
- - ">="
|
73
81
|
- !ruby/object:Gem::Version
|
74
82
|
version: '0'
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
hash: -1053178815736818993
|
78
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
84
|
requirements:
|
81
|
-
- -
|
85
|
+
- - ">="
|
82
86
|
- !ruby/object:Gem::Version
|
83
87
|
version: '0'
|
84
|
-
segments:
|
85
|
-
- 0
|
86
|
-
hash: -1053178815736818993
|
87
88
|
requirements: []
|
88
89
|
rubyforge_project:
|
89
|
-
rubygems_version:
|
90
|
+
rubygems_version: 2.2.2
|
90
91
|
signing_key:
|
91
|
-
specification_version:
|
92
|
+
specification_version: 4
|
92
93
|
summary: Rails and Rack integration for Mailgun Webhooks
|
93
94
|
test_files: []
|