recoil 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/lib/recoil/interceptor.rb +6 -4
- data/lib/recoil/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c0ce7ed2f4657a7133fd6254584eb908d8487d6
|
4
|
+
data.tar.gz: 9b8dd7a6a49197fb8f5fb37332c94858dedaa6b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5c5e7ed3dca1a9552660d2cd2257f4edde41e76a0b0d4c638f8fb1432a3b88aa75b1d276ee79f2a2dd421be8cbc173ce3e856d51838c98ba0377bb8de009cac
|
7
|
+
data.tar.gz: f14a9dad38994b6039e9fa03f6e3666ed50aafcf91e551455d861406f528d8af349bf5e9d4d15618554bd36b24e8a85a8ebb983253f2ec32bf701e6a90ef71b9
|
data/.gitignore
CHANGED
data/lib/recoil/interceptor.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
message.
|
1
|
+
module Recoil
|
2
|
+
class Interceptor
|
3
|
+
def self.delivering_email(message)
|
4
|
+
if message.to.any? { |email| Email.blacklisted?(email) }
|
5
|
+
message.perform_deliveries = false
|
6
|
+
end
|
5
7
|
end
|
6
8
|
end
|
7
9
|
end
|
data/lib/recoil/version.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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brightin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|