external_services 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +87 -71
- data/external_services.gemspec +1 -1
- data/lib/external_services/version.rb +1 -1
- data/lib/generators/install_generator.rb +7 -1
- data/lib/generators/templates/migrations/create_external_services.rb +1 -1
- data/lib/generators/templates/migrations/create_external_services_api_actions.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6938fe87148bdc3e5c98d4daa7b690e4d91ad9716fff2df713538d18b52deee7
|
4
|
+
data.tar.gz: 51a0ea8c848fff9378699c8c636562e9df8f5dc9bb4d22b2aa3e40b2f463871a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c20e20632ff2eb4e1c66123d0d1497ecab6b8f016a4db63013383c2bcd134c460a4f328e7e5885b1bd638993fc8752e2b5392d5094537e87c0655fe4ebcd969
|
7
|
+
data.tar.gz: 0d3a5973de76cafe378ded0b37ccbb34a347f6943103ffa394def739bead110a3fa55900c90bb74a488102ccee3a3eff9838d03c89cb2795523f209e7f544109
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,67 +1,80 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
external_services (0.4.
|
4
|
+
external_services (0.4.3)
|
5
5
|
faraday (>= 0.9)
|
6
6
|
faraday_middleware (>= 0.10)
|
7
|
-
rails (>= 4.2.5, < 6.
|
7
|
+
rails (>= 4.2.5, < 6.1)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actioncable (
|
13
|
-
actionpack (=
|
12
|
+
actioncable (6.0.3.4)
|
13
|
+
actionpack (= 6.0.3.4)
|
14
14
|
nio4r (~> 2.0)
|
15
15
|
websocket-driver (>= 0.6.1)
|
16
|
-
|
17
|
-
actionpack (=
|
18
|
-
|
19
|
-
|
16
|
+
actionmailbox (6.0.3.4)
|
17
|
+
actionpack (= 6.0.3.4)
|
18
|
+
activejob (= 6.0.3.4)
|
19
|
+
activerecord (= 6.0.3.4)
|
20
|
+
activestorage (= 6.0.3.4)
|
21
|
+
activesupport (= 6.0.3.4)
|
22
|
+
mail (>= 2.7.1)
|
23
|
+
actionmailer (6.0.3.4)
|
24
|
+
actionpack (= 6.0.3.4)
|
25
|
+
actionview (= 6.0.3.4)
|
26
|
+
activejob (= 6.0.3.4)
|
20
27
|
mail (~> 2.5, >= 2.5.4)
|
21
28
|
rails-dom-testing (~> 2.0)
|
22
|
-
actionpack (
|
23
|
-
actionview (=
|
24
|
-
activesupport (=
|
25
|
-
rack (~> 2.0)
|
29
|
+
actionpack (6.0.3.4)
|
30
|
+
actionview (= 6.0.3.4)
|
31
|
+
activesupport (= 6.0.3.4)
|
32
|
+
rack (~> 2.0, >= 2.0.8)
|
26
33
|
rack-test (>= 0.6.3)
|
27
34
|
rails-dom-testing (~> 2.0)
|
28
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
29
|
-
|
30
|
-
|
35
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
36
|
+
actiontext (6.0.3.4)
|
37
|
+
actionpack (= 6.0.3.4)
|
38
|
+
activerecord (= 6.0.3.4)
|
39
|
+
activestorage (= 6.0.3.4)
|
40
|
+
activesupport (= 6.0.3.4)
|
41
|
+
nokogiri (>= 1.8.5)
|
42
|
+
actionview (6.0.3.4)
|
43
|
+
activesupport (= 6.0.3.4)
|
31
44
|
builder (~> 3.1)
|
32
45
|
erubi (~> 1.4)
|
33
46
|
rails-dom-testing (~> 2.0)
|
34
|
-
rails-html-sanitizer (~> 1.
|
35
|
-
activejob (
|
36
|
-
activesupport (=
|
47
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
48
|
+
activejob (6.0.3.4)
|
49
|
+
activesupport (= 6.0.3.4)
|
37
50
|
globalid (>= 0.3.6)
|
38
|
-
activemodel (
|
39
|
-
activesupport (=
|
40
|
-
activerecord (
|
41
|
-
activemodel (=
|
42
|
-
activesupport (=
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
activerecord (=
|
51
|
+
activemodel (6.0.3.4)
|
52
|
+
activesupport (= 6.0.3.4)
|
53
|
+
activerecord (6.0.3.4)
|
54
|
+
activemodel (= 6.0.3.4)
|
55
|
+
activesupport (= 6.0.3.4)
|
56
|
+
activestorage (6.0.3.4)
|
57
|
+
actionpack (= 6.0.3.4)
|
58
|
+
activejob (= 6.0.3.4)
|
59
|
+
activerecord (= 6.0.3.4)
|
47
60
|
marcel (~> 0.3.1)
|
48
|
-
activesupport (
|
61
|
+
activesupport (6.0.3.4)
|
49
62
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
50
63
|
i18n (>= 0.7, < 2)
|
51
64
|
minitest (~> 5.1)
|
52
65
|
tzinfo (~> 1.1)
|
66
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
53
67
|
addressable (2.4.0)
|
54
|
-
arel (9.0.0)
|
55
68
|
ast (2.4.0)
|
56
69
|
backports (3.11.4)
|
57
|
-
builder (3.2.
|
70
|
+
builder (3.2.4)
|
58
71
|
childprocess (0.9.0)
|
59
72
|
ffi (~> 1.0, >= 1.0.11)
|
60
73
|
coderay (1.1.2)
|
61
|
-
concurrent-ruby (1.
|
62
|
-
crass (1.0.
|
74
|
+
concurrent-ruby (1.1.7)
|
75
|
+
crass (1.0.6)
|
63
76
|
diff-lcs (1.3)
|
64
|
-
erubi (1.
|
77
|
+
erubi (1.10.0)
|
65
78
|
ethon (0.11.0)
|
66
79
|
ffi (>= 1.3.0)
|
67
80
|
factory_bot (4.11.1)
|
@@ -81,34 +94,34 @@ GEM
|
|
81
94
|
multi_json (~> 1.0)
|
82
95
|
net-http-persistent (~> 2.9)
|
83
96
|
net-http-pipeline
|
84
|
-
globalid (0.4.
|
97
|
+
globalid (0.4.2)
|
85
98
|
activesupport (>= 4.2.0)
|
86
99
|
highline (1.7.10)
|
87
|
-
i18n (1.
|
100
|
+
i18n (1.8.5)
|
88
101
|
concurrent-ruby (~> 1.0)
|
89
102
|
iniparse (1.4.4)
|
90
103
|
jaro_winkler (1.5.1)
|
91
|
-
json (2.1
|
104
|
+
json (2.3.1)
|
92
105
|
launchy (2.4.3)
|
93
106
|
addressable (~> 2.3)
|
94
|
-
loofah (2.
|
107
|
+
loofah (2.7.0)
|
95
108
|
crass (~> 1.0.2)
|
96
109
|
nokogiri (>= 1.5.9)
|
97
110
|
mail (2.7.1)
|
98
111
|
mini_mime (>= 0.1.1)
|
99
112
|
marcel (0.3.3)
|
100
113
|
mimemagic (~> 0.3.2)
|
101
|
-
method_source (0.9.
|
102
|
-
mimemagic (0.3.
|
103
|
-
mini_mime (1.0.
|
114
|
+
method_source (0.9.2)
|
115
|
+
mimemagic (0.3.5)
|
116
|
+
mini_mime (1.0.2)
|
104
117
|
mini_portile2 (2.4.0)
|
105
|
-
minitest (5.
|
118
|
+
minitest (5.14.2)
|
106
119
|
multi_json (1.13.1)
|
107
120
|
multipart-post (2.0.0)
|
108
121
|
net-http-persistent (2.9.4)
|
109
122
|
net-http-pipeline (1.0.1)
|
110
|
-
nio4r (2.
|
111
|
-
nokogiri (1.
|
123
|
+
nio4r (2.5.4)
|
124
|
+
nokogiri (1.10.10)
|
112
125
|
mini_portile2 (~> 2.4.0)
|
113
126
|
overcommit (0.46.0)
|
114
127
|
childprocess (~> 0.6, >= 0.6.3)
|
@@ -125,35 +138,37 @@ GEM
|
|
125
138
|
pusher-client (0.6.2)
|
126
139
|
json
|
127
140
|
websocket (~> 1.0)
|
128
|
-
rack (2.
|
141
|
+
rack (2.2.3)
|
129
142
|
rack-test (1.1.0)
|
130
143
|
rack (>= 1.0, < 3)
|
131
|
-
rails (
|
132
|
-
actioncable (=
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
144
|
+
rails (6.0.3.4)
|
145
|
+
actioncable (= 6.0.3.4)
|
146
|
+
actionmailbox (= 6.0.3.4)
|
147
|
+
actionmailer (= 6.0.3.4)
|
148
|
+
actionpack (= 6.0.3.4)
|
149
|
+
actiontext (= 6.0.3.4)
|
150
|
+
actionview (= 6.0.3.4)
|
151
|
+
activejob (= 6.0.3.4)
|
152
|
+
activemodel (= 6.0.3.4)
|
153
|
+
activerecord (= 6.0.3.4)
|
154
|
+
activestorage (= 6.0.3.4)
|
155
|
+
activesupport (= 6.0.3.4)
|
141
156
|
bundler (>= 1.3.0)
|
142
|
-
railties (=
|
157
|
+
railties (= 6.0.3.4)
|
143
158
|
sprockets-rails (>= 2.0.0)
|
144
159
|
rails-dom-testing (2.0.3)
|
145
160
|
activesupport (>= 4.2.0)
|
146
161
|
nokogiri (>= 1.6)
|
147
|
-
rails-html-sanitizer (1.0
|
148
|
-
loofah (~> 2.
|
149
|
-
railties (
|
150
|
-
actionpack (=
|
151
|
-
activesupport (=
|
162
|
+
rails-html-sanitizer (1.3.0)
|
163
|
+
loofah (~> 2.3)
|
164
|
+
railties (6.0.3.4)
|
165
|
+
actionpack (= 6.0.3.4)
|
166
|
+
activesupport (= 6.0.3.4)
|
152
167
|
method_source
|
153
168
|
rake (>= 0.8.7)
|
154
|
-
thor (>= 0.
|
169
|
+
thor (>= 0.20.3, < 2.0)
|
155
170
|
rainbow (3.0.0)
|
156
|
-
rake (
|
171
|
+
rake (13.0.1)
|
157
172
|
rspec-core (3.8.0)
|
158
173
|
rspec-support (~> 3.8.0)
|
159
174
|
rspec-expectations (3.8.2)
|
@@ -180,15 +195,15 @@ GEM
|
|
180
195
|
ruby-progressbar (~> 1.7)
|
181
196
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
182
197
|
ruby-progressbar (1.10.0)
|
183
|
-
sprockets (
|
198
|
+
sprockets (4.0.2)
|
184
199
|
concurrent-ruby (~> 1.0)
|
185
200
|
rack (> 1, < 3)
|
186
|
-
sprockets-rails (3.2.
|
201
|
+
sprockets-rails (3.2.2)
|
187
202
|
actionpack (>= 4.0)
|
188
203
|
activesupport (>= 4.0)
|
189
204
|
sprockets (>= 3.0.0)
|
190
|
-
sqlite3 (1.
|
191
|
-
thor (0.
|
205
|
+
sqlite3 (1.4.2)
|
206
|
+
thor (1.0.1)
|
192
207
|
thread_safe (0.3.6)
|
193
208
|
travis (1.8.9)
|
194
209
|
backports
|
@@ -201,13 +216,14 @@ GEM
|
|
201
216
|
typhoeus (~> 0.6, >= 0.6.8)
|
202
217
|
typhoeus (0.8.0)
|
203
218
|
ethon (>= 0.8.0)
|
204
|
-
tzinfo (1.2.
|
219
|
+
tzinfo (1.2.8)
|
205
220
|
thread_safe (~> 0.1)
|
206
221
|
unicode-display_width (1.4.0)
|
207
222
|
websocket (1.2.8)
|
208
|
-
websocket-driver (0.7.
|
223
|
+
websocket-driver (0.7.3)
|
209
224
|
websocket-extensions (>= 0.1.0)
|
210
|
-
websocket-extensions (0.1.
|
225
|
+
websocket-extensions (0.1.5)
|
226
|
+
zeitwerk (2.4.1)
|
211
227
|
|
212
228
|
PLATFORMS
|
213
229
|
ruby
|
@@ -218,11 +234,11 @@ DEPENDENCIES
|
|
218
234
|
factory_bot_rails
|
219
235
|
overcommit
|
220
236
|
pry-rails
|
221
|
-
rake (~>
|
237
|
+
rake (~> 13.0)
|
222
238
|
rspec-rails
|
223
239
|
rubocop (~> 0.48)
|
224
240
|
sqlite3
|
225
241
|
travis (~> 1.8, >= 1.8.2)
|
226
242
|
|
227
243
|
BUNDLED WITH
|
228
|
-
1.17.
|
244
|
+
1.17.3
|
data/external_services.gemspec
CHANGED
@@ -11,6 +11,12 @@ module ExternalServices
|
|
11
11
|
|
12
12
|
desc 'Generates migrations and directories.'
|
13
13
|
|
14
|
+
def migration_version
|
15
|
+
return unless Rails::VERSION::MAJOR >= 5
|
16
|
+
|
17
|
+
"[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
|
18
|
+
end
|
19
|
+
|
14
20
|
def create_migration_files
|
15
21
|
add_migration('create_external_services')
|
16
22
|
add_migration('create_external_services_api_actions')
|
@@ -39,7 +45,7 @@ module ExternalServices
|
|
39
45
|
if self.class.migration_exists?(migration_dir, template)
|
40
46
|
::Kernel.warn "Migration already exists: #{template}"
|
41
47
|
else
|
42
|
-
migration_template "migrations/#{template}.rb", "db/migrate/#{template}.rb"
|
48
|
+
migration_template "migrations/#{template}.rb", "db/migrate/#{template}.rb", migration_version: migration_version
|
43
49
|
end
|
44
50
|
end
|
45
51
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreateExternalServicesApiActions < ActiveRecord::Migration
|
1
|
+
class CreateExternalServicesApiActions < ActiveRecord::Migration<%= migration_version %>
|
2
2
|
def change
|
3
3
|
create_table :external_services_api_actions do |t|
|
4
4
|
t.references :initiator, null: false, polymorphic: true, index: { name: 'esaa_on_initiator_type_and_initiator_id' }
|
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.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Gnuskov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: 4.2.5
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '6.
|
50
|
+
version: '6.1'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: 4.2.5
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '6.
|
60
|
+
version: '6.1'
|
61
61
|
description:
|
62
62
|
email:
|
63
63
|
- sergey.gnuskov@flant.com
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.0.
|
122
|
+
rubygems_version: 3.0.8
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Gem helps syncronizing objects to different external services like Gitlab,
|