isolator 0.1.0.pre → 0.1.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +1 -0
- data/lib/isolator/adapters/background_jobs.rb +4 -2
- data/lib/isolator/adapters/mailers/mail.rb +4 -0
- data/lib/isolator/adapters/mailers.rb +9 -0
- data/lib/isolator/adapters.rb +1 -0
- data/lib/isolator/errors.rb +4 -0
- data/lib/isolator/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d70c61a526af789744667a5ef87f3b396e261102c414f004c874278a3a7af7cd
|
4
|
+
data.tar.gz: 75432a1b9d3ad708269b55cfb675168abb8b2b83efabcb19a709f7da19ade6a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77d6b9bd87e603fd10415e234421ec60852228e50217f2ed37dac5aa837500fbfc6febaaa2aa8442375f6ca52a4e68474eb9d381ea99d19222ae1810eff03efa
|
7
|
+
data.tar.gz: '0782abd5aede38aee2f303738629cc0c4fd4487163555691ad37622f673aa57b99b12ea1112bb609ab10225cf0e027237dac12c60bc213d6fcfbd46076c4f624'
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
ActiveSupport
|
4
|
-
|
3
|
+
if defined?(ActiveSupport)
|
4
|
+
ActiveSupport.on_load(:active_job) do
|
5
|
+
require "isolator/adapters/background_jobs/active_job"
|
6
|
+
end
|
5
7
|
end
|
6
8
|
|
7
9
|
require "isolator/adapters/background_jobs/sidekiq" if defined?(Sidekiq::Client)
|
data/lib/isolator/adapters.rb
CHANGED
data/lib/isolator/errors.rb
CHANGED
@@ -18,4 +18,8 @@ module Isolator # :nodoc: all
|
|
18
18
|
MESSAGE = "You are trying to enqueue background job inside db transaction. " \
|
19
19
|
"In case of transaction failure, this may lead to data inconsistency and unexpected bugs"
|
20
20
|
end
|
21
|
+
|
22
|
+
class MailerError < UnsafeOperationError
|
23
|
+
MESSAGE = "You are trying to send email inside db transaction."
|
24
|
+
end
|
21
25
|
end
|
data/lib/isolator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isolator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sniffer
|
@@ -179,6 +179,8 @@ files:
|
|
179
179
|
- lib/isolator/adapters/background_jobs/sidekiq.rb
|
180
180
|
- lib/isolator/adapters/base.rb
|
181
181
|
- lib/isolator/adapters/http.rb
|
182
|
+
- lib/isolator/adapters/mailers.rb
|
183
|
+
- lib/isolator/adapters/mailers/mail.rb
|
182
184
|
- lib/isolator/callbacks.rb
|
183
185
|
- lib/isolator/configuration.rb
|
184
186
|
- lib/isolator/errors.rb
|