external_services 0.5.0 → 0.5.1
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/.github/workflows/gem-push.yml +1 -1
- data/.github/workflows/ruby.yml +3 -3
- data/Gemfile +1 -0
- data/Gemfile.lock +78 -69
- data/README.md +5 -1
- data/app/models/concerns/external_services/action.rb +2 -4
- data/lib/external_services/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 696239dd2a5f6a780daf507059a77dc5542b41bb51d6a9b761694fd8decee742
|
|
4
|
+
data.tar.gz: c38e40e9575e4a1a0ffa2ee6f9b3a9996a5ea29876ce9fa1f5ac7d2d669653f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f9a225769174988072d1853afa51332ec96e75ec8cb8d0c6269d113efeeb7c20d55c68b5fe5b8fcd29b405d697568d708fae4c91ac0bc54b9d8b9da718eb2ce
|
|
7
|
+
data.tar.gz: bca745948cf48325cba15d5edf9e5635346e06af0bfe62e0050a665f2c7128c69bc5256807573b7256b03cf3d98a59d5a8682635a32049de202f9131f7549010
|
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
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
external_services (0.5.
|
|
4
|
+
external_services (0.5.1)
|
|
5
5
|
faraday (>= 1.4, < 2)
|
|
6
6
|
faraday_middleware (>= 1.0, < 2)
|
|
7
7
|
rails (>= 4.2.5, < 7)
|
|
@@ -9,60 +9,60 @@ PATH
|
|
|
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)
|
|
@@ -76,13 +76,14 @@ GEM
|
|
|
76
76
|
concurrent-ruby (1.1.10)
|
|
77
77
|
crass (1.0.6)
|
|
78
78
|
diff-lcs (1.4.4)
|
|
79
|
+
digest (3.1.0)
|
|
79
80
|
erubi (1.10.0)
|
|
80
81
|
factory_bot (4.11.1)
|
|
81
82
|
activesupport (>= 3.0.0)
|
|
82
83
|
factory_bot_rails (4.11.1)
|
|
83
84
|
factory_bot (~> 4.11.1)
|
|
84
85
|
railties (>= 3.0.0)
|
|
85
|
-
faraday (1.10.
|
|
86
|
+
faraday (1.10.2)
|
|
86
87
|
faraday-em_http (~> 1.0)
|
|
87
88
|
faraday-em_synchrony (~> 1.0)
|
|
88
89
|
faraday-excon (~> 1.1)
|
|
@@ -98,8 +99,8 @@ GEM
|
|
|
98
99
|
faraday-em_synchrony (1.0.0)
|
|
99
100
|
faraday-excon (1.1.0)
|
|
100
101
|
faraday-httpclient (1.0.1)
|
|
101
|
-
faraday-multipart (1.0.
|
|
102
|
-
multipart-post (
|
|
102
|
+
faraday-multipart (1.0.4)
|
|
103
|
+
multipart-post (~> 2)
|
|
103
104
|
faraday-net_http (1.0.1)
|
|
104
105
|
faraday-net_http_persistent (1.2.0)
|
|
105
106
|
faraday-patron (1.0.0)
|
|
@@ -107,13 +108,13 @@ GEM
|
|
|
107
108
|
faraday-retry (1.0.3)
|
|
108
109
|
faraday_middleware (1.2.0)
|
|
109
110
|
faraday (~> 1.0)
|
|
110
|
-
ffi (1.
|
|
111
|
+
ffi (1.15.5)
|
|
111
112
|
globalid (1.0.0)
|
|
112
113
|
activesupport (>= 5.0)
|
|
113
|
-
i18n (1.
|
|
114
|
+
i18n (1.11.0)
|
|
114
115
|
concurrent-ruby (~> 1.0)
|
|
115
116
|
iniparse (1.4.4)
|
|
116
|
-
loofah (2.
|
|
117
|
+
loofah (2.18.0)
|
|
117
118
|
crass (~> 1.0.2)
|
|
118
119
|
nokogiri (>= 1.5.9)
|
|
119
120
|
mail (2.7.1)
|
|
@@ -122,10 +123,16 @@ GEM
|
|
|
122
123
|
method_source (0.9.2)
|
|
123
124
|
mini_mime (1.1.2)
|
|
124
125
|
mini_portile2 (2.8.0)
|
|
125
|
-
minitest (5.
|
|
126
|
-
multipart-post (2.
|
|
126
|
+
minitest (5.16.2)
|
|
127
|
+
multipart-post (2.2.3)
|
|
128
|
+
net-protocol (0.1.3)
|
|
129
|
+
timeout
|
|
130
|
+
net-smtp (0.3.1)
|
|
131
|
+
digest
|
|
132
|
+
net-protocol
|
|
133
|
+
timeout
|
|
127
134
|
nio4r (2.5.8)
|
|
128
|
-
nokogiri (1.13.
|
|
135
|
+
nokogiri (1.13.7)
|
|
129
136
|
mini_portile2 (~> 2.8.0)
|
|
130
137
|
racc (~> 1.4)
|
|
131
138
|
overcommit (0.46.0)
|
|
@@ -140,32 +147,32 @@ GEM
|
|
|
140
147
|
pry-rails (0.3.6)
|
|
141
148
|
pry (>= 0.10.4)
|
|
142
149
|
racc (1.6.0)
|
|
143
|
-
rack (2.2.
|
|
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.
|
|
150
|
+
rack (2.2.4)
|
|
151
|
+
rack-test (2.0.2)
|
|
152
|
+
rack (>= 1.3)
|
|
153
|
+
rails (6.1.6.1)
|
|
154
|
+
actioncable (= 6.1.6.1)
|
|
155
|
+
actionmailbox (= 6.1.6.1)
|
|
156
|
+
actionmailer (= 6.1.6.1)
|
|
157
|
+
actionpack (= 6.1.6.1)
|
|
158
|
+
actiontext (= 6.1.6.1)
|
|
159
|
+
actionview (= 6.1.6.1)
|
|
160
|
+
activejob (= 6.1.6.1)
|
|
161
|
+
activemodel (= 6.1.6.1)
|
|
162
|
+
activerecord (= 6.1.6.1)
|
|
163
|
+
activestorage (= 6.1.6.1)
|
|
164
|
+
activesupport (= 6.1.6.1)
|
|
158
165
|
bundler (>= 1.15.0)
|
|
159
|
-
railties (= 6.1.
|
|
166
|
+
railties (= 6.1.6.1)
|
|
160
167
|
sprockets-rails (>= 2.0.0)
|
|
161
168
|
rails-dom-testing (2.0.3)
|
|
162
169
|
activesupport (>= 4.2.0)
|
|
163
170
|
nokogiri (>= 1.6)
|
|
164
|
-
rails-html-sanitizer (1.4.
|
|
171
|
+
rails-html-sanitizer (1.4.3)
|
|
165
172
|
loofah (~> 2.3)
|
|
166
|
-
railties (6.1.
|
|
167
|
-
actionpack (= 6.1.
|
|
168
|
-
activesupport (= 6.1.
|
|
173
|
+
railties (6.1.6.1)
|
|
174
|
+
actionpack (= 6.1.6.1)
|
|
175
|
+
activesupport (= 6.1.6.1)
|
|
169
176
|
method_source
|
|
170
177
|
rake (>= 12.2)
|
|
171
178
|
thor (~> 1.0)
|
|
@@ -205,7 +212,7 @@ GEM
|
|
|
205
212
|
rubocop (>= 0.58.0)
|
|
206
213
|
ruby-progressbar (1.11.0)
|
|
207
214
|
ruby2_keywords (0.0.5)
|
|
208
|
-
sprockets (4.
|
|
215
|
+
sprockets (4.1.1)
|
|
209
216
|
concurrent-ruby (~> 1.0)
|
|
210
217
|
rack (> 1, < 3)
|
|
211
218
|
sprockets-rails (3.4.2)
|
|
@@ -214,13 +221,14 @@ GEM
|
|
|
214
221
|
sprockets (>= 3.0.0)
|
|
215
222
|
sqlite3 (1.4.2)
|
|
216
223
|
thor (1.2.1)
|
|
224
|
+
timeout (0.2.0)
|
|
217
225
|
tzinfo (2.0.4)
|
|
218
226
|
concurrent-ruby (~> 1.0)
|
|
219
227
|
unicode-display_width (2.1.0)
|
|
220
228
|
websocket-driver (0.7.5)
|
|
221
229
|
websocket-extensions (>= 0.1.0)
|
|
222
230
|
websocket-extensions (0.1.5)
|
|
223
|
-
zeitwerk (2.
|
|
231
|
+
zeitwerk (2.6.0)
|
|
224
232
|
|
|
225
233
|
PLATFORMS
|
|
226
234
|
ruby
|
|
@@ -228,6 +236,7 @@ PLATFORMS
|
|
|
228
236
|
DEPENDENCIES
|
|
229
237
|
external_services!
|
|
230
238
|
factory_bot_rails
|
|
239
|
+
net-smtp
|
|
231
240
|
overcommit
|
|
232
241
|
pry-rails
|
|
233
242
|
rake (~> 13.0)
|
data/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
# ExternalServices
|
|
1
|
+
# ExternalServices
|
|
2
|
+
|
|
3
|
+
[](https://github.com/flant/external_services/actions/workflows/ruby.yml) [](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
|
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergey Gnuskov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-05
|
|
11
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|