gitlab-mail_room 0.0.10 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitlab/issue_templates/Release.md +1 -0
- data/.gitlab-ci.yml +11 -21
- data/.rubocop.yml +5 -0
- data/.rubocop_todo.yml +501 -0
- data/.ruby-version +1 -1
- data/.travis.yml +9 -3
- data/CHANGELOG.md +4 -0
- data/CONTRIBUTING.md +40 -0
- data/README.md +99 -9
- data/Rakefile +1 -1
- data/lib/mail_room/arbitration/redis.rb +1 -1
- data/lib/mail_room/connection.rb +6 -1
- data/lib/mail_room/delivery/letter_opener.rb +1 -1
- data/lib/mail_room/delivery/postback.rb +36 -4
- data/lib/mail_room/delivery/sidekiq.rb +4 -3
- data/lib/mail_room/jwt.rb +39 -0
- data/lib/mail_room/mailbox.rb +56 -17
- data/lib/mail_room/mailbox_watcher.rb +7 -1
- data/lib/mail_room/microsoft_graph/connection.rb +232 -0
- data/lib/mail_room/microsoft_graph.rb +7 -0
- data/lib/mail_room/version.rb +1 -1
- data/mail_room.gemspec +8 -1
- data/spec/fixtures/jwt_secret +1 -0
- data/spec/lib/arbitration/redis_spec.rb +6 -5
- data/spec/lib/cli_spec.rb +3 -3
- data/spec/lib/configuration_spec.rb +1 -1
- data/spec/lib/delivery/letter_opener_spec.rb +2 -2
- data/spec/lib/delivery/logger_spec.rb +1 -1
- data/spec/lib/delivery/postback_spec.rb +62 -14
- data/spec/lib/delivery/sidekiq_spec.rb +34 -11
- data/spec/lib/jwt_spec.rb +80 -0
- data/spec/lib/mailbox_spec.rb +65 -17
- data/spec/lib/mailbox_watcher_spec.rb +54 -38
- data/spec/lib/microsoft_graph/connection_spec.rb +221 -0
- data/spec/spec_helper.rb +13 -3
- metadata +87 -5
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-mail_room
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Pitale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-imap
|
@@ -24,6 +24,48 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.2.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: oauth2
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.4.4
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.4.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jwt
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: io-wait
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.1.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.1.0
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
70
|
name: rake
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +94,20 @@ dependencies:
|
|
52
94
|
- - "~>"
|
53
95
|
- !ruby/object:Gem::Version
|
54
96
|
version: '3.9'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.11'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.11'
|
55
111
|
- !ruby/object:Gem::Dependency
|
56
112
|
name: mocha
|
57
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +198,14 @@ dependencies:
|
|
142
198
|
requirements:
|
143
199
|
- - "~>"
|
144
200
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
201
|
+
version: '4'
|
146
202
|
type: :development
|
147
203
|
prerelease: false
|
148
204
|
version_requirements: !ruby/object:Gem::Requirement
|
149
205
|
requirements:
|
150
206
|
- - "~>"
|
151
207
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
208
|
+
version: '4'
|
153
209
|
- !ruby/object:Gem::Dependency
|
154
210
|
name: redis-namespace
|
155
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,6 +248,20 @@ dependencies:
|
|
192
248
|
- - ">="
|
193
249
|
- !ruby/object:Gem::Version
|
194
250
|
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: webmock
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
195
265
|
description: mail_room will proxy email (gmail) from IMAP to a delivery method
|
196
266
|
email:
|
197
267
|
- tpitale@gmail.com
|
@@ -203,10 +273,13 @@ files:
|
|
203
273
|
- ".gitignore"
|
204
274
|
- ".gitlab-ci.yml"
|
205
275
|
- ".gitlab/issue_templates/Release.md"
|
276
|
+
- ".rubocop.yml"
|
277
|
+
- ".rubocop_todo.yml"
|
206
278
|
- ".ruby-version"
|
207
279
|
- ".travis.yml"
|
208
280
|
- CHANGELOG.md
|
209
281
|
- CODE_OF_CONDUCT.md
|
282
|
+
- CONTRIBUTING.md
|
210
283
|
- Gemfile
|
211
284
|
- LICENSE.txt
|
212
285
|
- README.md
|
@@ -232,13 +305,17 @@ files:
|
|
232
305
|
- lib/mail_room/imap.rb
|
233
306
|
- lib/mail_room/imap/connection.rb
|
234
307
|
- lib/mail_room/imap/message.rb
|
308
|
+
- lib/mail_room/jwt.rb
|
235
309
|
- lib/mail_room/logger/structured.rb
|
236
310
|
- lib/mail_room/mailbox.rb
|
237
311
|
- lib/mail_room/mailbox_watcher.rb
|
238
312
|
- lib/mail_room/message.rb
|
313
|
+
- lib/mail_room/microsoft_graph.rb
|
314
|
+
- lib/mail_room/microsoft_graph/connection.rb
|
239
315
|
- lib/mail_room/version.rb
|
240
316
|
- logfile.log
|
241
317
|
- mail_room.gemspec
|
318
|
+
- spec/fixtures/jwt_secret
|
242
319
|
- spec/fixtures/test_config.yml
|
243
320
|
- spec/lib/arbitration/redis_spec.rb
|
244
321
|
- spec/lib/cli_spec.rb
|
@@ -253,10 +330,12 @@ files:
|
|
253
330
|
- spec/lib/health_check_spec.rb
|
254
331
|
- spec/lib/imap/connection_spec.rb
|
255
332
|
- spec/lib/imap/message_spec.rb
|
333
|
+
- spec/lib/jwt_spec.rb
|
256
334
|
- spec/lib/logger/structured_spec.rb
|
257
335
|
- spec/lib/mailbox_spec.rb
|
258
336
|
- spec/lib/mailbox_watcher_spec.rb
|
259
337
|
- spec/lib/message_spec.rb
|
338
|
+
- spec/lib/microsoft_graph/connection_spec.rb
|
260
339
|
- spec/spec_helper.rb
|
261
340
|
homepage: http://github.com/tpitale/mail_room
|
262
341
|
licenses: []
|
@@ -276,12 +355,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
355
|
- !ruby/object:Gem::Version
|
277
356
|
version: '0'
|
278
357
|
requirements: []
|
279
|
-
rubygems_version: 3.
|
358
|
+
rubygems_version: 3.3.5
|
280
359
|
signing_key:
|
281
360
|
specification_version: 4
|
282
361
|
summary: mail_room will proxy email (gmail) from IMAP to a callback URL, logger, or
|
283
362
|
letter_opener
|
284
363
|
test_files:
|
364
|
+
- spec/fixtures/jwt_secret
|
285
365
|
- spec/fixtures/test_config.yml
|
286
366
|
- spec/lib/arbitration/redis_spec.rb
|
287
367
|
- spec/lib/cli_spec.rb
|
@@ -296,8 +376,10 @@ test_files:
|
|
296
376
|
- spec/lib/health_check_spec.rb
|
297
377
|
- spec/lib/imap/connection_spec.rb
|
298
378
|
- spec/lib/imap/message_spec.rb
|
379
|
+
- spec/lib/jwt_spec.rb
|
299
380
|
- spec/lib/logger/structured_spec.rb
|
300
381
|
- spec/lib/mailbox_spec.rb
|
301
382
|
- spec/lib/mailbox_watcher_spec.rb
|
302
383
|
- spec/lib/message_spec.rb
|
384
|
+
- spec/lib/microsoft_graph/connection_spec.rb
|
303
385
|
- spec/spec_helper.rb
|