outbox-rails 0.4.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +30 -0
- data/.travis.yml +16 -0
- data/Appraisals +15 -0
- data/Rakefile +1 -1
- data/gemfiles/rails_5.0.gemfile +7 -0
- data/gemfiles/rails_5.0.gemfile.lock +173 -0
- data/gemfiles/rails_5.1.gemfile +7 -0
- data/gemfiles/rails_5.1.gemfile.lock +173 -0
- data/gemfiles/rails_5.2.gemfile +7 -0
- data/gemfiles/rails_5.2.gemfile.lock +181 -0
- data/gemfiles/rails_6.0.gemfile +7 -0
- data/gemfiles/rails_6.0.gemfile.lock +197 -0
- data/lib/outbox-rails.rb +1 -0
- data/lib/outbox/notifier.rb +29 -16
- data/lib/outbox/rails/railtie.rb +4 -3
- data/lib/outbox/rails/version.rb +1 -1
- data/outbox-rails.gemspec +19 -18
- data/spec/internal/app/notifiers/base_notifier.rb +14 -1
- data/spec/internal/app/notifiers/customized_notifier.rb +1 -2
- data/spec/internal/app/views/base_notifier/only_sms_template.text+sms.erb +1 -0
- data/spec/internal/app/views/layouts/notification.text+email.erb +1 -0
- data/spec/internal/app/views/layouts/notification.text+sms.erb +1 -0
- data/spec/outbox/notifier_spec.rb +27 -15
- data/spec/outbox/rails_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +67 -51
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d65a311c6c875177f8f0e77ed219b78b7593a7e7a9b661f652263ceef5a301de
|
4
|
+
data.tar.gz: f88eb5bed33a7f8b54f012d818ef5752b78ce55f72175b7aae4298fea2c21455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55c2ee50e899cd96e4ae5e417eb00742f4449fa7a43929fa44ebada8d50bb90e6cae44d59e05670bd58ae02fed5019c7dc87187df5b7d6072daf7a1ca58d5e7f
|
7
|
+
data.tar.gz: 58bc6d3d794c7cfbe99039ff7c803f0db037330b656829fef18a260105dba33f31a1fd477c64ce660cb456c6d0e7e5b4bd23d2c2c161288df121544dd021b690
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- 'gemfiles/**/*'
|
4
|
+
- 'vendor/**/*'
|
5
|
+
- 'lib/generators/*/notifier/templates/*'
|
6
|
+
DisplayCopNames: true
|
7
|
+
DisplayStyleGuide: true
|
8
|
+
|
9
|
+
Metrics/BlockLength:
|
10
|
+
Exclude:
|
11
|
+
- 'spec/**/*'
|
12
|
+
|
13
|
+
Metrics/ClassLength:
|
14
|
+
Max: 150
|
15
|
+
|
16
|
+
Metrics/LineLength:
|
17
|
+
Exclude:
|
18
|
+
- 'outbox-rails.gemspec'
|
19
|
+
IgnoreCopDirectives: true
|
20
|
+
Max: 100
|
21
|
+
|
22
|
+
Metrics/MethodLength:
|
23
|
+
Max: 15
|
24
|
+
|
25
|
+
Style/Documentation:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Style/FileName:
|
29
|
+
Exclude:
|
30
|
+
- 'Appraisals'
|
data/.travis.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
sudo: false
|
2
|
+
cache: bundler
|
3
|
+
language: ruby
|
4
|
+
rvm:
|
5
|
+
- 2.6.6
|
6
|
+
- 2.7.1
|
7
|
+
gemfile:
|
8
|
+
- gemfiles/rails_5.0.gemfile
|
9
|
+
- gemfiles/rails_5.1.gemfile
|
10
|
+
- gemfiles/rails_5.2.gemfile
|
11
|
+
- gemfiles/rails_6.0.gemfile
|
12
|
+
before_install:
|
13
|
+
- gem install bundler:2.1.4
|
14
|
+
script:
|
15
|
+
- bundle exec rubocop
|
16
|
+
- bundle exec rspec
|
data/Appraisals
ADDED
data/Rakefile
CHANGED
@@ -0,0 +1,173 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
outbox-rails (1.0.0)
|
5
|
+
outbox (~> 0.2.0)
|
6
|
+
rails (>= 5.0, < 7)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actioncable (5.0.7.2)
|
12
|
+
actionpack (= 5.0.7.2)
|
13
|
+
nio4r (>= 1.2, < 3.0)
|
14
|
+
websocket-driver (~> 0.6.1)
|
15
|
+
actionmailer (5.0.7.2)
|
16
|
+
actionpack (= 5.0.7.2)
|
17
|
+
actionview (= 5.0.7.2)
|
18
|
+
activejob (= 5.0.7.2)
|
19
|
+
mail (~> 2.5, >= 2.5.4)
|
20
|
+
rails-dom-testing (~> 2.0)
|
21
|
+
actionpack (5.0.7.2)
|
22
|
+
actionview (= 5.0.7.2)
|
23
|
+
activesupport (= 5.0.7.2)
|
24
|
+
rack (~> 2.0)
|
25
|
+
rack-test (~> 0.6.3)
|
26
|
+
rails-dom-testing (~> 2.0)
|
27
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
+
actionview (5.0.7.2)
|
29
|
+
activesupport (= 5.0.7.2)
|
30
|
+
builder (~> 3.1)
|
31
|
+
erubis (~> 2.7.0)
|
32
|
+
rails-dom-testing (~> 2.0)
|
33
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
+
activejob (5.0.7.2)
|
35
|
+
activesupport (= 5.0.7.2)
|
36
|
+
globalid (>= 0.3.6)
|
37
|
+
activemodel (5.0.7.2)
|
38
|
+
activesupport (= 5.0.7.2)
|
39
|
+
activerecord (5.0.7.2)
|
40
|
+
activemodel (= 5.0.7.2)
|
41
|
+
activesupport (= 5.0.7.2)
|
42
|
+
arel (~> 7.0)
|
43
|
+
activesupport (5.0.7.2)
|
44
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
45
|
+
i18n (>= 0.7, < 2)
|
46
|
+
minitest (~> 5.1)
|
47
|
+
tzinfo (~> 1.1)
|
48
|
+
appraisal (2.3.0)
|
49
|
+
bundler
|
50
|
+
rake
|
51
|
+
thor (>= 0.14.0)
|
52
|
+
arel (7.1.4)
|
53
|
+
ast (2.4.1)
|
54
|
+
builder (3.2.4)
|
55
|
+
combustion (1.3.0)
|
56
|
+
activesupport (>= 3.0.0)
|
57
|
+
railties (>= 3.0.0)
|
58
|
+
thor (>= 0.14.6)
|
59
|
+
concurrent-ruby (1.1.6)
|
60
|
+
crass (1.0.6)
|
61
|
+
diff-lcs (1.3)
|
62
|
+
erubis (2.7.0)
|
63
|
+
globalid (0.4.2)
|
64
|
+
activesupport (>= 4.2.0)
|
65
|
+
i18n (1.8.3)
|
66
|
+
concurrent-ruby (~> 1.0)
|
67
|
+
loofah (2.6.0)
|
68
|
+
crass (~> 1.0.2)
|
69
|
+
nokogiri (>= 1.5.9)
|
70
|
+
mail (2.7.1)
|
71
|
+
mini_mime (>= 0.1.1)
|
72
|
+
method_source (1.0.0)
|
73
|
+
mini_mime (1.0.2)
|
74
|
+
mini_portile2 (2.4.0)
|
75
|
+
minitest (5.14.1)
|
76
|
+
nio4r (2.5.2)
|
77
|
+
nokogiri (1.10.9)
|
78
|
+
mini_portile2 (~> 2.4.0)
|
79
|
+
outbox (0.2.1)
|
80
|
+
mail (~> 2.6)
|
81
|
+
parser (2.7.1.4)
|
82
|
+
ast (~> 2.4.1)
|
83
|
+
powerpack (0.1.2)
|
84
|
+
rack (2.2.3)
|
85
|
+
rack-test (0.6.3)
|
86
|
+
rack (>= 1.0)
|
87
|
+
rails (5.0.7.2)
|
88
|
+
actioncable (= 5.0.7.2)
|
89
|
+
actionmailer (= 5.0.7.2)
|
90
|
+
actionpack (= 5.0.7.2)
|
91
|
+
actionview (= 5.0.7.2)
|
92
|
+
activejob (= 5.0.7.2)
|
93
|
+
activemodel (= 5.0.7.2)
|
94
|
+
activerecord (= 5.0.7.2)
|
95
|
+
activesupport (= 5.0.7.2)
|
96
|
+
bundler (>= 1.3.0)
|
97
|
+
railties (= 5.0.7.2)
|
98
|
+
sprockets-rails (>= 2.0.0)
|
99
|
+
rails-dom-testing (2.0.3)
|
100
|
+
activesupport (>= 4.2.0)
|
101
|
+
nokogiri (>= 1.6)
|
102
|
+
rails-html-sanitizer (1.3.0)
|
103
|
+
loofah (~> 2.3)
|
104
|
+
railties (5.0.7.2)
|
105
|
+
actionpack (= 5.0.7.2)
|
106
|
+
activesupport (= 5.0.7.2)
|
107
|
+
method_source
|
108
|
+
rake (>= 0.8.7)
|
109
|
+
thor (>= 0.18.1, < 2.0)
|
110
|
+
rainbow (2.2.2)
|
111
|
+
rake
|
112
|
+
rake (13.0.1)
|
113
|
+
rspec (3.5.0)
|
114
|
+
rspec-core (~> 3.5.0)
|
115
|
+
rspec-expectations (~> 3.5.0)
|
116
|
+
rspec-mocks (~> 3.5.0)
|
117
|
+
rspec-core (3.5.4)
|
118
|
+
rspec-support (~> 3.5.0)
|
119
|
+
rspec-expectations (3.5.0)
|
120
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
121
|
+
rspec-support (~> 3.5.0)
|
122
|
+
rspec-mocks (3.5.0)
|
123
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
124
|
+
rspec-support (~> 3.5.0)
|
125
|
+
rspec-rails (3.5.2)
|
126
|
+
actionpack (>= 3.0)
|
127
|
+
activesupport (>= 3.0)
|
128
|
+
railties (>= 3.0)
|
129
|
+
rspec-core (~> 3.5.0)
|
130
|
+
rspec-expectations (~> 3.5.0)
|
131
|
+
rspec-mocks (~> 3.5.0)
|
132
|
+
rspec-support (~> 3.5.0)
|
133
|
+
rspec-support (3.5.0)
|
134
|
+
rubocop (0.48.1)
|
135
|
+
parser (>= 2.3.3.1, < 3.0)
|
136
|
+
powerpack (~> 0.1)
|
137
|
+
rainbow (>= 1.99.1, < 3.0)
|
138
|
+
ruby-progressbar (~> 1.7)
|
139
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
140
|
+
ruby-progressbar (1.10.1)
|
141
|
+
sprockets (4.0.2)
|
142
|
+
concurrent-ruby (~> 1.0)
|
143
|
+
rack (> 1, < 3)
|
144
|
+
sprockets-rails (3.2.1)
|
145
|
+
actionpack (>= 4.0)
|
146
|
+
activesupport (>= 4.0)
|
147
|
+
sprockets (>= 3.0.0)
|
148
|
+
sqlite3 (1.4.2)
|
149
|
+
thor (1.0.1)
|
150
|
+
thread_safe (0.3.6)
|
151
|
+
tzinfo (1.2.7)
|
152
|
+
thread_safe (~> 0.1)
|
153
|
+
unicode-display_width (1.7.0)
|
154
|
+
websocket-driver (0.6.5)
|
155
|
+
websocket-extensions (>= 0.1.0)
|
156
|
+
websocket-extensions (0.1.5)
|
157
|
+
|
158
|
+
PLATFORMS
|
159
|
+
ruby
|
160
|
+
|
161
|
+
DEPENDENCIES
|
162
|
+
appraisal (~> 2.3.0)
|
163
|
+
combustion (~> 1.1)
|
164
|
+
outbox-rails!
|
165
|
+
rails (~> 5.0.0)
|
166
|
+
rake (>= 12.3.3)
|
167
|
+
rspec (~> 3.5.0)
|
168
|
+
rspec-rails (~> 3.5.2)
|
169
|
+
rubocop (~> 0.48.1)
|
170
|
+
sqlite3
|
171
|
+
|
172
|
+
BUNDLED WITH
|
173
|
+
2.1.4
|
@@ -0,0 +1,173 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
outbox-rails (1.0.0)
|
5
|
+
outbox (~> 0.2.0)
|
6
|
+
rails (>= 5.0, < 7)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actioncable (5.1.7)
|
12
|
+
actionpack (= 5.1.7)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (~> 0.6.1)
|
15
|
+
actionmailer (5.1.7)
|
16
|
+
actionpack (= 5.1.7)
|
17
|
+
actionview (= 5.1.7)
|
18
|
+
activejob (= 5.1.7)
|
19
|
+
mail (~> 2.5, >= 2.5.4)
|
20
|
+
rails-dom-testing (~> 2.0)
|
21
|
+
actionpack (5.1.7)
|
22
|
+
actionview (= 5.1.7)
|
23
|
+
activesupport (= 5.1.7)
|
24
|
+
rack (~> 2.0)
|
25
|
+
rack-test (>= 0.6.3)
|
26
|
+
rails-dom-testing (~> 2.0)
|
27
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
+
actionview (5.1.7)
|
29
|
+
activesupport (= 5.1.7)
|
30
|
+
builder (~> 3.1)
|
31
|
+
erubi (~> 1.4)
|
32
|
+
rails-dom-testing (~> 2.0)
|
33
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
+
activejob (5.1.7)
|
35
|
+
activesupport (= 5.1.7)
|
36
|
+
globalid (>= 0.3.6)
|
37
|
+
activemodel (5.1.7)
|
38
|
+
activesupport (= 5.1.7)
|
39
|
+
activerecord (5.1.7)
|
40
|
+
activemodel (= 5.1.7)
|
41
|
+
activesupport (= 5.1.7)
|
42
|
+
arel (~> 8.0)
|
43
|
+
activesupport (5.1.7)
|
44
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
45
|
+
i18n (>= 0.7, < 2)
|
46
|
+
minitest (~> 5.1)
|
47
|
+
tzinfo (~> 1.1)
|
48
|
+
appraisal (2.3.0)
|
49
|
+
bundler
|
50
|
+
rake
|
51
|
+
thor (>= 0.14.0)
|
52
|
+
arel (8.0.0)
|
53
|
+
ast (2.4.1)
|
54
|
+
builder (3.2.4)
|
55
|
+
combustion (1.3.0)
|
56
|
+
activesupport (>= 3.0.0)
|
57
|
+
railties (>= 3.0.0)
|
58
|
+
thor (>= 0.14.6)
|
59
|
+
concurrent-ruby (1.1.6)
|
60
|
+
crass (1.0.6)
|
61
|
+
diff-lcs (1.3)
|
62
|
+
erubi (1.9.0)
|
63
|
+
globalid (0.4.2)
|
64
|
+
activesupport (>= 4.2.0)
|
65
|
+
i18n (1.8.3)
|
66
|
+
concurrent-ruby (~> 1.0)
|
67
|
+
loofah (2.6.0)
|
68
|
+
crass (~> 1.0.2)
|
69
|
+
nokogiri (>= 1.5.9)
|
70
|
+
mail (2.7.1)
|
71
|
+
mini_mime (>= 0.1.1)
|
72
|
+
method_source (1.0.0)
|
73
|
+
mini_mime (1.0.2)
|
74
|
+
mini_portile2 (2.4.0)
|
75
|
+
minitest (5.14.1)
|
76
|
+
nio4r (2.5.2)
|
77
|
+
nokogiri (1.10.9)
|
78
|
+
mini_portile2 (~> 2.4.0)
|
79
|
+
outbox (0.2.1)
|
80
|
+
mail (~> 2.6)
|
81
|
+
parser (2.7.1.4)
|
82
|
+
ast (~> 2.4.1)
|
83
|
+
powerpack (0.1.2)
|
84
|
+
rack (2.2.3)
|
85
|
+
rack-test (1.1.0)
|
86
|
+
rack (>= 1.0, < 3)
|
87
|
+
rails (5.1.7)
|
88
|
+
actioncable (= 5.1.7)
|
89
|
+
actionmailer (= 5.1.7)
|
90
|
+
actionpack (= 5.1.7)
|
91
|
+
actionview (= 5.1.7)
|
92
|
+
activejob (= 5.1.7)
|
93
|
+
activemodel (= 5.1.7)
|
94
|
+
activerecord (= 5.1.7)
|
95
|
+
activesupport (= 5.1.7)
|
96
|
+
bundler (>= 1.3.0)
|
97
|
+
railties (= 5.1.7)
|
98
|
+
sprockets-rails (>= 2.0.0)
|
99
|
+
rails-dom-testing (2.0.3)
|
100
|
+
activesupport (>= 4.2.0)
|
101
|
+
nokogiri (>= 1.6)
|
102
|
+
rails-html-sanitizer (1.3.0)
|
103
|
+
loofah (~> 2.3)
|
104
|
+
railties (5.1.7)
|
105
|
+
actionpack (= 5.1.7)
|
106
|
+
activesupport (= 5.1.7)
|
107
|
+
method_source
|
108
|
+
rake (>= 0.8.7)
|
109
|
+
thor (>= 0.18.1, < 2.0)
|
110
|
+
rainbow (2.2.2)
|
111
|
+
rake
|
112
|
+
rake (13.0.1)
|
113
|
+
rspec (3.5.0)
|
114
|
+
rspec-core (~> 3.5.0)
|
115
|
+
rspec-expectations (~> 3.5.0)
|
116
|
+
rspec-mocks (~> 3.5.0)
|
117
|
+
rspec-core (3.5.4)
|
118
|
+
rspec-support (~> 3.5.0)
|
119
|
+
rspec-expectations (3.5.0)
|
120
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
121
|
+
rspec-support (~> 3.5.0)
|
122
|
+
rspec-mocks (3.5.0)
|
123
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
124
|
+
rspec-support (~> 3.5.0)
|
125
|
+
rspec-rails (3.5.2)
|
126
|
+
actionpack (>= 3.0)
|
127
|
+
activesupport (>= 3.0)
|
128
|
+
railties (>= 3.0)
|
129
|
+
rspec-core (~> 3.5.0)
|
130
|
+
rspec-expectations (~> 3.5.0)
|
131
|
+
rspec-mocks (~> 3.5.0)
|
132
|
+
rspec-support (~> 3.5.0)
|
133
|
+
rspec-support (3.5.0)
|
134
|
+
rubocop (0.48.1)
|
135
|
+
parser (>= 2.3.3.1, < 3.0)
|
136
|
+
powerpack (~> 0.1)
|
137
|
+
rainbow (>= 1.99.1, < 3.0)
|
138
|
+
ruby-progressbar (~> 1.7)
|
139
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
140
|
+
ruby-progressbar (1.10.1)
|
141
|
+
sprockets (4.0.2)
|
142
|
+
concurrent-ruby (~> 1.0)
|
143
|
+
rack (> 1, < 3)
|
144
|
+
sprockets-rails (3.2.1)
|
145
|
+
actionpack (>= 4.0)
|
146
|
+
activesupport (>= 4.0)
|
147
|
+
sprockets (>= 3.0.0)
|
148
|
+
sqlite3 (1.4.2)
|
149
|
+
thor (1.0.1)
|
150
|
+
thread_safe (0.3.6)
|
151
|
+
tzinfo (1.2.7)
|
152
|
+
thread_safe (~> 0.1)
|
153
|
+
unicode-display_width (1.7.0)
|
154
|
+
websocket-driver (0.6.5)
|
155
|
+
websocket-extensions (>= 0.1.0)
|
156
|
+
websocket-extensions (0.1.5)
|
157
|
+
|
158
|
+
PLATFORMS
|
159
|
+
ruby
|
160
|
+
|
161
|
+
DEPENDENCIES
|
162
|
+
appraisal (~> 2.3.0)
|
163
|
+
combustion (~> 1.1)
|
164
|
+
outbox-rails!
|
165
|
+
rails (~> 5.1.0)
|
166
|
+
rake (>= 12.3.3)
|
167
|
+
rspec (~> 3.5.0)
|
168
|
+
rspec-rails (~> 3.5.2)
|
169
|
+
rubocop (~> 0.48.1)
|
170
|
+
sqlite3
|
171
|
+
|
172
|
+
BUNDLED WITH
|
173
|
+
2.1.4
|