external_services 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +1 -1
- data/.github/workflows/ruby.yml +3 -3
- data/Gemfile +3 -1
- data/Gemfile.lock +101 -82
- data/README.md +5 -1
- data/app/models/concerns/external_services/action.rb +2 -4
- data/external_services.gemspec +1 -1
- data/lib/external_services/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 775d9bffa419443c5e619e42251efc2f4630c38dab5cc529bc32ddc9e0b5a31b
|
4
|
+
data.tar.gz: 5523b20fe8762beaa1ad171af70813bb6121a85a0e084d6bc7ffcb8ea21954bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18324cc039c27f5d40e2a1c495d6f16aba12796a0aecfb0de24aaffe7cd6c29cba8df075bb9287441dbd826ef51b6b47307aafef937ad267dcee9afbfa987e16
|
7
|
+
data.tar.gz: 716d55932c3091c8f47df1e2643485d53da409e39f5d22b729be535b51da20dd08ebbc8fb7a53bc7ac05a80bc4c71e8e02e02076ae91abcefc2bca9db1c7de98
|
data/.github/workflows/ruby.yml
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
6
|
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
7
|
|
8
|
-
name:
|
8
|
+
name: Test
|
9
9
|
|
10
10
|
on:
|
11
11
|
push:
|
@@ -19,8 +19,8 @@ jobs:
|
|
19
19
|
runs-on: ${{ matrix.os }}-latest
|
20
20
|
strategy:
|
21
21
|
matrix:
|
22
|
-
os: [ubuntu]
|
23
|
-
ruby-version: ['2.6', '2.7', '3.0']
|
22
|
+
os: [ubuntu, macos]
|
23
|
+
ruby-version: ['2.6', '2.7', '3.0', '3.1']
|
24
24
|
|
25
25
|
steps:
|
26
26
|
- uses: actions/checkout@v3
|
data/Gemfile
CHANGED
@@ -9,8 +9,10 @@ gem 'sqlite3'
|
|
9
9
|
gem 'overcommit'
|
10
10
|
gem 'rubocop', '~> 1.0', require: false
|
11
11
|
gem 'rubocop-rspec'
|
12
|
+
gem 'net-smtp', require: false # hack for pre 7.0.1 rails and 3.1 ruby
|
12
13
|
|
13
|
-
gem 'pry
|
14
|
+
gem 'pry', '>= 0.14'
|
15
|
+
gem 'pry-rails', '~> 0.3.9'
|
14
16
|
|
15
17
|
gem 'factory_bot_rails'
|
16
18
|
gem 'rspec-rails'
|
data/Gemfile.lock
CHANGED
@@ -1,68 +1,68 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
external_services (0.5.
|
4
|
+
external_services (0.5.2)
|
5
5
|
faraday (>= 1.4, < 2)
|
6
6
|
faraday_middleware (>= 1.0, < 2)
|
7
|
-
rails (>= 4.2.5, < 7)
|
7
|
+
rails (>= 4.2.5, < 7.1)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actioncable (6.1.
|
13
|
-
actionpack (= 6.1.
|
14
|
-
activesupport (= 6.1.
|
12
|
+
actioncable (6.1.6.1)
|
13
|
+
actionpack (= 6.1.6.1)
|
14
|
+
activesupport (= 6.1.6.1)
|
15
15
|
nio4r (~> 2.0)
|
16
16
|
websocket-driver (>= 0.6.1)
|
17
|
-
actionmailbox (6.1.
|
18
|
-
actionpack (= 6.1.
|
19
|
-
activejob (= 6.1.
|
20
|
-
activerecord (= 6.1.
|
21
|
-
activestorage (= 6.1.
|
22
|
-
activesupport (= 6.1.
|
17
|
+
actionmailbox (6.1.6.1)
|
18
|
+
actionpack (= 6.1.6.1)
|
19
|
+
activejob (= 6.1.6.1)
|
20
|
+
activerecord (= 6.1.6.1)
|
21
|
+
activestorage (= 6.1.6.1)
|
22
|
+
activesupport (= 6.1.6.1)
|
23
23
|
mail (>= 2.7.1)
|
24
|
-
actionmailer (6.1.
|
25
|
-
actionpack (= 6.1.
|
26
|
-
actionview (= 6.1.
|
27
|
-
activejob (= 6.1.
|
28
|
-
activesupport (= 6.1.
|
24
|
+
actionmailer (6.1.6.1)
|
25
|
+
actionpack (= 6.1.6.1)
|
26
|
+
actionview (= 6.1.6.1)
|
27
|
+
activejob (= 6.1.6.1)
|
28
|
+
activesupport (= 6.1.6.1)
|
29
29
|
mail (~> 2.5, >= 2.5.4)
|
30
30
|
rails-dom-testing (~> 2.0)
|
31
|
-
actionpack (6.1.
|
32
|
-
actionview (= 6.1.
|
33
|
-
activesupport (= 6.1.
|
31
|
+
actionpack (6.1.6.1)
|
32
|
+
actionview (= 6.1.6.1)
|
33
|
+
activesupport (= 6.1.6.1)
|
34
34
|
rack (~> 2.0, >= 2.0.9)
|
35
35
|
rack-test (>= 0.6.3)
|
36
36
|
rails-dom-testing (~> 2.0)
|
37
37
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
38
|
-
actiontext (6.1.
|
39
|
-
actionpack (= 6.1.
|
40
|
-
activerecord (= 6.1.
|
41
|
-
activestorage (= 6.1.
|
42
|
-
activesupport (= 6.1.
|
38
|
+
actiontext (6.1.6.1)
|
39
|
+
actionpack (= 6.1.6.1)
|
40
|
+
activerecord (= 6.1.6.1)
|
41
|
+
activestorage (= 6.1.6.1)
|
42
|
+
activesupport (= 6.1.6.1)
|
43
43
|
nokogiri (>= 1.8.5)
|
44
|
-
actionview (6.1.
|
45
|
-
activesupport (= 6.1.
|
44
|
+
actionview (6.1.6.1)
|
45
|
+
activesupport (= 6.1.6.1)
|
46
46
|
builder (~> 3.1)
|
47
47
|
erubi (~> 1.4)
|
48
48
|
rails-dom-testing (~> 2.0)
|
49
49
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
50
|
-
activejob (6.1.
|
51
|
-
activesupport (= 6.1.
|
50
|
+
activejob (6.1.6.1)
|
51
|
+
activesupport (= 6.1.6.1)
|
52
52
|
globalid (>= 0.3.6)
|
53
|
-
activemodel (6.1.
|
54
|
-
activesupport (= 6.1.
|
55
|
-
activerecord (6.1.
|
56
|
-
activemodel (= 6.1.
|
57
|
-
activesupport (= 6.1.
|
58
|
-
activestorage (6.1.
|
59
|
-
actionpack (= 6.1.
|
60
|
-
activejob (= 6.1.
|
61
|
-
activerecord (= 6.1.
|
62
|
-
activesupport (= 6.1.
|
53
|
+
activemodel (6.1.6.1)
|
54
|
+
activesupport (= 6.1.6.1)
|
55
|
+
activerecord (6.1.6.1)
|
56
|
+
activemodel (= 6.1.6.1)
|
57
|
+
activesupport (= 6.1.6.1)
|
58
|
+
activestorage (6.1.6.1)
|
59
|
+
actionpack (= 6.1.6.1)
|
60
|
+
activejob (= 6.1.6.1)
|
61
|
+
activerecord (= 6.1.6.1)
|
62
|
+
activesupport (= 6.1.6.1)
|
63
63
|
marcel (~> 1.0)
|
64
64
|
mini_mime (>= 1.1.0)
|
65
|
-
activesupport (6.1.
|
65
|
+
activesupport (6.1.6.1)
|
66
66
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
67
67
|
i18n (>= 1.6, < 2)
|
68
68
|
minitest (>= 5.1)
|
@@ -72,17 +72,19 @@ GEM
|
|
72
72
|
builder (3.2.4)
|
73
73
|
childprocess (0.9.0)
|
74
74
|
ffi (~> 1.0, >= 1.0.11)
|
75
|
-
coderay (1.1.
|
75
|
+
coderay (1.1.3)
|
76
76
|
concurrent-ruby (1.1.10)
|
77
77
|
crass (1.0.6)
|
78
|
+
date (3.3.3)
|
78
79
|
diff-lcs (1.4.4)
|
80
|
+
digest (3.1.0)
|
79
81
|
erubi (1.10.0)
|
80
82
|
factory_bot (4.11.1)
|
81
83
|
activesupport (>= 3.0.0)
|
82
84
|
factory_bot_rails (4.11.1)
|
83
85
|
factory_bot (~> 4.11.1)
|
84
86
|
railties (>= 3.0.0)
|
85
|
-
faraday (1.10.
|
87
|
+
faraday (1.10.3)
|
86
88
|
faraday-em_http (~> 1.0)
|
87
89
|
faraday-em_synchrony (~> 1.0)
|
88
90
|
faraday-excon (~> 1.1)
|
@@ -98,8 +100,8 @@ GEM
|
|
98
100
|
faraday-em_synchrony (1.0.0)
|
99
101
|
faraday-excon (1.1.0)
|
100
102
|
faraday-httpclient (1.0.1)
|
101
|
-
faraday-multipart (1.0.
|
102
|
-
multipart-post (
|
103
|
+
faraday-multipart (1.0.4)
|
104
|
+
multipart-post (~> 2)
|
103
105
|
faraday-net_http (1.0.1)
|
104
106
|
faraday-net_http_persistent (1.2.0)
|
105
107
|
faraday-patron (1.0.0)
|
@@ -107,25 +109,39 @@ GEM
|
|
107
109
|
faraday-retry (1.0.3)
|
108
110
|
faraday_middleware (1.2.0)
|
109
111
|
faraday (~> 1.0)
|
110
|
-
ffi (1.
|
111
|
-
globalid (1.
|
112
|
+
ffi (1.15.5)
|
113
|
+
globalid (1.1.0)
|
112
114
|
activesupport (>= 5.0)
|
113
|
-
i18n (1.
|
115
|
+
i18n (1.11.0)
|
114
116
|
concurrent-ruby (~> 1.0)
|
115
117
|
iniparse (1.4.4)
|
116
|
-
loofah (2.
|
118
|
+
loofah (2.18.0)
|
117
119
|
crass (~> 1.0.2)
|
118
120
|
nokogiri (>= 1.5.9)
|
119
|
-
mail (2.
|
121
|
+
mail (2.8.1)
|
120
122
|
mini_mime (>= 0.1.1)
|
123
|
+
net-imap
|
124
|
+
net-pop
|
125
|
+
net-smtp
|
121
126
|
marcel (1.0.2)
|
122
|
-
method_source (0.
|
127
|
+
method_source (1.0.0)
|
123
128
|
mini_mime (1.1.2)
|
124
129
|
mini_portile2 (2.8.0)
|
125
|
-
minitest (5.
|
126
|
-
multipart-post (2.
|
127
|
-
|
128
|
-
|
130
|
+
minitest (5.16.2)
|
131
|
+
multipart-post (2.3.0)
|
132
|
+
net-imap (0.3.7)
|
133
|
+
date
|
134
|
+
net-protocol
|
135
|
+
net-pop (0.1.2)
|
136
|
+
net-protocol
|
137
|
+
net-protocol (0.1.3)
|
138
|
+
timeout
|
139
|
+
net-smtp (0.3.1)
|
140
|
+
digest
|
141
|
+
net-protocol
|
142
|
+
timeout
|
143
|
+
nio4r (2.5.9)
|
144
|
+
nokogiri (1.13.7)
|
129
145
|
mini_portile2 (~> 2.8.0)
|
130
146
|
racc (~> 1.4)
|
131
147
|
overcommit (0.46.0)
|
@@ -134,38 +150,38 @@ GEM
|
|
134
150
|
parallel (1.22.1)
|
135
151
|
parser (3.1.2.0)
|
136
152
|
ast (~> 2.4.1)
|
137
|
-
pry (0.
|
138
|
-
coderay (~> 1.1
|
139
|
-
method_source (~>
|
140
|
-
pry-rails (0.3.
|
153
|
+
pry (0.14.2)
|
154
|
+
coderay (~> 1.1)
|
155
|
+
method_source (~> 1.0)
|
156
|
+
pry-rails (0.3.9)
|
141
157
|
pry (>= 0.10.4)
|
142
158
|
racc (1.6.0)
|
143
|
-
rack (2.2.3)
|
144
|
-
rack-test (
|
145
|
-
rack (>= 1.
|
146
|
-
rails (6.1.
|
147
|
-
actioncable (= 6.1.
|
148
|
-
actionmailbox (= 6.1.
|
149
|
-
actionmailer (= 6.1.
|
150
|
-
actionpack (= 6.1.
|
151
|
-
actiontext (= 6.1.
|
152
|
-
actionview (= 6.1.
|
153
|
-
activejob (= 6.1.
|
154
|
-
activemodel (= 6.1.
|
155
|
-
activerecord (= 6.1.
|
156
|
-
activestorage (= 6.1.
|
157
|
-
activesupport (= 6.1.
|
159
|
+
rack (2.2.6.3)
|
160
|
+
rack-test (2.0.2)
|
161
|
+
rack (>= 1.3)
|
162
|
+
rails (6.1.6.1)
|
163
|
+
actioncable (= 6.1.6.1)
|
164
|
+
actionmailbox (= 6.1.6.1)
|
165
|
+
actionmailer (= 6.1.6.1)
|
166
|
+
actionpack (= 6.1.6.1)
|
167
|
+
actiontext (= 6.1.6.1)
|
168
|
+
actionview (= 6.1.6.1)
|
169
|
+
activejob (= 6.1.6.1)
|
170
|
+
activemodel (= 6.1.6.1)
|
171
|
+
activerecord (= 6.1.6.1)
|
172
|
+
activestorage (= 6.1.6.1)
|
173
|
+
activesupport (= 6.1.6.1)
|
158
174
|
bundler (>= 1.15.0)
|
159
|
-
railties (= 6.1.
|
175
|
+
railties (= 6.1.6.1)
|
160
176
|
sprockets-rails (>= 2.0.0)
|
161
177
|
rails-dom-testing (2.0.3)
|
162
178
|
activesupport (>= 4.2.0)
|
163
179
|
nokogiri (>= 1.6)
|
164
|
-
rails-html-sanitizer (1.4.
|
180
|
+
rails-html-sanitizer (1.4.3)
|
165
181
|
loofah (~> 2.3)
|
166
|
-
railties (6.1.
|
167
|
-
actionpack (= 6.1.
|
168
|
-
activesupport (= 6.1.
|
182
|
+
railties (6.1.6.1)
|
183
|
+
actionpack (= 6.1.6.1)
|
184
|
+
activesupport (= 6.1.6.1)
|
169
185
|
method_source
|
170
186
|
rake (>= 12.2)
|
171
187
|
thor (~> 1.0)
|
@@ -205,22 +221,23 @@ GEM
|
|
205
221
|
rubocop (>= 0.58.0)
|
206
222
|
ruby-progressbar (1.11.0)
|
207
223
|
ruby2_keywords (0.0.5)
|
208
|
-
sprockets (4.0
|
224
|
+
sprockets (4.2.0)
|
209
225
|
concurrent-ruby (~> 1.0)
|
210
|
-
rack (
|
226
|
+
rack (>= 2.2.4, < 4)
|
211
227
|
sprockets-rails (3.4.2)
|
212
228
|
actionpack (>= 5.2)
|
213
229
|
activesupport (>= 5.2)
|
214
230
|
sprockets (>= 3.0.0)
|
215
231
|
sqlite3 (1.4.2)
|
216
232
|
thor (1.2.1)
|
233
|
+
timeout (0.2.0)
|
217
234
|
tzinfo (2.0.4)
|
218
235
|
concurrent-ruby (~> 1.0)
|
219
236
|
unicode-display_width (2.1.0)
|
220
|
-
websocket-driver (0.7.
|
237
|
+
websocket-driver (0.7.6)
|
221
238
|
websocket-extensions (>= 0.1.0)
|
222
239
|
websocket-extensions (0.1.5)
|
223
|
-
zeitwerk (2.
|
240
|
+
zeitwerk (2.6.0)
|
224
241
|
|
225
242
|
PLATFORMS
|
226
243
|
ruby
|
@@ -228,8 +245,10 @@ PLATFORMS
|
|
228
245
|
DEPENDENCIES
|
229
246
|
external_services!
|
230
247
|
factory_bot_rails
|
248
|
+
net-smtp
|
231
249
|
overcommit
|
232
|
-
pry
|
250
|
+
pry (>= 0.14)
|
251
|
+
pry-rails (~> 0.3.9)
|
233
252
|
rake (~> 13.0)
|
234
253
|
rspec-rails
|
235
254
|
rubocop (~> 1.0)
|
data/README.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
-
# ExternalServices
|
1
|
+
# ExternalServices
|
2
|
+
|
3
|
+
[![Test](https://github.com/flant/external_services/actions/workflows/ruby.yml/badge.svg)](https://github.com/flant/external_services/actions/workflows/ruby.yml) [![Gem Version](https://badge.fury.io/rb/external_services.svg)](https://badge.fury.io/rb/external_services)
|
4
|
+
|
2
5
|
|
3
6
|
Gem helps syncronizing objects to different external services like Gitlab, Redmine and any other.
|
4
7
|
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
Add this line to your application's Gemfile:
|
@@ -36,10 +36,8 @@ module ExternalServices
|
|
36
36
|
|
37
37
|
module ClassMethods
|
38
38
|
def clear_sidekiq_queues
|
39
|
-
Sidekiq.
|
40
|
-
|
41
|
-
conn.del k
|
42
|
-
end
|
39
|
+
Sidekiq::Queue.all.each do |queue|
|
40
|
+
queue.clear if queue.name.include?(QUEUE_PREFIX)
|
43
41
|
end
|
44
42
|
end
|
45
43
|
|
data/external_services.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: external_services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Gnuskov
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
version: 4.2.5
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '7'
|
62
|
+
version: '7.1'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -69,8 +69,8 @@ dependencies:
|
|
69
69
|
version: 4.2.5
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '7'
|
73
|
-
description:
|
72
|
+
version: '7.1'
|
73
|
+
description:
|
74
74
|
email:
|
75
75
|
- sergey.gnuskov@flant.com
|
76
76
|
executables: []
|
@@ -132,8 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
rubygems_version: 3.
|
136
|
-
signing_key:
|
135
|
+
rubygems_version: 3.4.10
|
136
|
+
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Gem helps syncronizing objects to different external services like Gitlab,
|
139
139
|
Redmine and any other.
|