recoil 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +4 -2
- data/bin/rspec +0 -0
- data/lib/recoil/engine.rb +0 -6
- data/lib/recoil/interceptor.rb +7 -0
- data/lib/recoil/version.rb +1 -1
- data/lib/recoil.rb +2 -2
- metadata +3 -5
- data/lib/recoil/delivery_method.rb +0 -16
- data/spec/dummy/db/test.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc693767bb6d5351fe42011c2670e2301e188cc
|
4
|
+
data.tar.gz: 6c5ea9acc1b0944fb71684b775e2ba91f056c50a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe4447797fa1192c2de8ca8761d1824120bff09733f395c55f2a4751127cbd3e3771a9fbf6c76ddaf9212c14e0f696c0890ed311e3544ad3e4659a799c6f6c45
|
7
|
+
data.tar.gz: 3f479a2893fee944f8b7dd61766e4449d9a4ff34f8bada9ee0d509ba159063c06f68b7ce3c2f5217997a1d72744a1f66f2ef9ac77112a328cbe56ab2d1e50e39
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# Recoil
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/recoil.svg)](http://badge.fury.io/rb/recoil)
|
3
|
+
|
2
4
|
![Recoil](http://nowthatsgangsta.com/wp-content/uploads/Sniper-Rrifle-Recoil.gif)
|
3
5
|
|
4
6
|
Rails delivery method. Send via Amazon SES, but with local blacklist.
|
@@ -19,9 +21,9 @@ rake recoil:install:migrations
|
|
19
21
|
rake db:migrate
|
20
22
|
```
|
21
23
|
|
22
|
-
|
24
|
+
Add an initializer: `config/initializers/recoil.rb` with the following content:
|
23
25
|
```ruby
|
24
|
-
|
26
|
+
ActionMailer::Base.register_interceptor(Recoil::Interceptor)
|
25
27
|
```
|
26
28
|
|
27
29
|
Add endpoint to routes:
|
data/bin/rspec
CHANGED
File without changes
|
data/lib/recoil/engine.rb
CHANGED
data/lib/recoil/version.rb
CHANGED
data/lib/recoil.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recoil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brightin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -130,9 +130,9 @@ files:
|
|
130
130
|
- config/routes.rb
|
131
131
|
- db/migrate/20150305152728_add_emails_table.rb
|
132
132
|
- lib/recoil.rb
|
133
|
-
- lib/recoil/delivery_method.rb
|
134
133
|
- lib/recoil/email.rb
|
135
134
|
- lib/recoil/engine.rb
|
135
|
+
- lib/recoil/interceptor.rb
|
136
136
|
- lib/recoil/message.rb
|
137
137
|
- lib/recoil/message/abstract.rb
|
138
138
|
- lib/recoil/message/notification.rb
|
@@ -177,7 +177,6 @@ files:
|
|
177
177
|
- spec/dummy/config/secrets.yml
|
178
178
|
- spec/dummy/db/development.sqlite3
|
179
179
|
- spec/dummy/db/schema.rb
|
180
|
-
- spec/dummy/db/test.sqlite3
|
181
180
|
- spec/dummy/lib/assets/.keep
|
182
181
|
- spec/dummy/public/404.html
|
183
182
|
- spec/dummy/public/422.html
|
@@ -253,7 +252,6 @@ test_files:
|
|
253
252
|
- spec/dummy/config/secrets.yml
|
254
253
|
- spec/dummy/db/development.sqlite3
|
255
254
|
- spec/dummy/db/schema.rb
|
256
|
-
- spec/dummy/db/test.sqlite3
|
257
255
|
- spec/dummy/lib/assets/.keep
|
258
256
|
- spec/dummy/public/404.html
|
259
257
|
- spec/dummy/public/422.html
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'aws-sdk'
|
2
|
-
|
3
|
-
module Recoil
|
4
|
-
class DeliveryMethod
|
5
|
-
attr_accessor :settings
|
6
|
-
|
7
|
-
def initialize(options = {})
|
8
|
-
@settings = options
|
9
|
-
end
|
10
|
-
|
11
|
-
def deliver!(email)
|
12
|
-
return if Email.blacklisted?(email['to'])
|
13
|
-
AWS::SimpleEmailService.new.send_raw_email(email)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
data/spec/dummy/db/test.sqlite3
DELETED
Binary file
|