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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 000ec62c8b8318b69975c5e4c8600cff9a460ba3402b61909c4f6af758f42413
4
- data.tar.gz: 141438139448913023b2ac912f667f13d71d6feb85bb0cd2899b71fbd632208a
3
+ metadata.gz: 6938fe87148bdc3e5c98d4daa7b690e4d91ad9716fff2df713538d18b52deee7
4
+ data.tar.gz: 51a0ea8c848fff9378699c8c636562e9df8f5dc9bb4d22b2aa3e40b2f463871a
5
5
  SHA512:
6
- metadata.gz: d8ff01f8165ea8de23927f814ce080f0fac822cd426f8f474e2d46d8d7dddbf6ed03c875367bb67f9b4ae1f5e5da260d80ac895ccab5b17c657e083522c7902d
7
- data.tar.gz: 1ad30ff513c222a69f28593bbb0b601be2b78465bf2cc4df026f37af4d9f2b9e80ca1dc12c48183d78e51899dd046400251cf490434d99c8ea9f7a90039f82e2
6
+ metadata.gz: 2c20e20632ff2eb4e1c66123d0d1497ecab6b8f016a4db63013383c2bcd134c460a4f328e7e5885b1bd638993fc8752e2b5392d5094537e87c0655fe4ebcd969
7
+ data.tar.gz: 0d3a5973de76cafe378ded0b37ccbb34a347f6943103ffa394def739bead110a3fa55900c90bb74a488102ccee3a3eff9838d03c89cb2795523f209e7f544109
@@ -1,9 +1,9 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.4
5
4
  - 2.5.1
6
- before_install: gem install bundler -v 1.16.2
5
+ - 2.7.1
6
+ before_install: gem install bundler -v 1.17.3
7
7
  env:
8
8
  - RAILS_ENV=test
9
9
  script:
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'bundler', '~> 1.12'
7
- gem 'rake', '~> 10.0'
7
+ gem 'rake', '~> 13.0'
8
8
  gem 'sqlite3'
9
9
  gem 'travis', '~> 1.8', '>= 1.8.2'
10
10
 
@@ -1,67 +1,80 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- external_services (0.4.2)
4
+ external_services (0.4.3)
5
5
  faraday (>= 0.9)
6
6
  faraday_middleware (>= 0.10)
7
- rails (>= 4.2.5, < 6.0)
7
+ rails (>= 4.2.5, < 6.1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (5.2.1)
13
- actionpack (= 5.2.1)
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
- actionmailer (5.2.1)
17
- actionpack (= 5.2.1)
18
- actionview (= 5.2.1)
19
- activejob (= 5.2.1)
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 (5.2.1)
23
- actionview (= 5.2.1)
24
- activesupport (= 5.2.1)
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.2)
29
- actionview (5.2.1)
30
- activesupport (= 5.2.1)
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.0, >= 1.0.3)
35
- activejob (5.2.1)
36
- activesupport (= 5.2.1)
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 (5.2.1)
39
- activesupport (= 5.2.1)
40
- activerecord (5.2.1)
41
- activemodel (= 5.2.1)
42
- activesupport (= 5.2.1)
43
- arel (>= 9.0)
44
- activestorage (5.2.1)
45
- actionpack (= 5.2.1)
46
- activerecord (= 5.2.1)
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 (5.2.1)
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.3)
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.0.5)
62
- crass (1.0.4)
74
+ concurrent-ruby (1.1.7)
75
+ crass (1.0.6)
63
76
  diff-lcs (1.3)
64
- erubi (1.7.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.1)
97
+ globalid (0.4.2)
85
98
  activesupport (>= 4.2.0)
86
99
  highline (1.7.10)
87
- i18n (1.1.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.0)
104
+ json (2.3.1)
92
105
  launchy (2.4.3)
93
106
  addressable (~> 2.3)
94
- loofah (2.2.3)
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.0)
102
- mimemagic (0.3.3)
103
- mini_mime (1.0.1)
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.11.3)
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.3.1)
111
- nokogiri (1.9.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.0.6)
141
+ rack (2.2.3)
129
142
  rack-test (1.1.0)
130
143
  rack (>= 1.0, < 3)
131
- rails (5.2.1)
132
- actioncable (= 5.2.1)
133
- actionmailer (= 5.2.1)
134
- actionpack (= 5.2.1)
135
- actionview (= 5.2.1)
136
- activejob (= 5.2.1)
137
- activemodel (= 5.2.1)
138
- activerecord (= 5.2.1)
139
- activestorage (= 5.2.1)
140
- activesupport (= 5.2.1)
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 (= 5.2.1)
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.4)
148
- loofah (~> 2.2, >= 2.2.2)
149
- railties (5.2.1)
150
- actionpack (= 5.2.1)
151
- activesupport (= 5.2.1)
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.19.0, < 2.0)
169
+ thor (>= 0.20.3, < 2.0)
155
170
  rainbow (3.0.0)
156
- rake (10.5.0)
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 (3.7.2)
198
+ sprockets (4.0.2)
184
199
  concurrent-ruby (~> 1.0)
185
200
  rack (> 1, < 3)
186
- sprockets-rails (3.2.1)
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.3.13)
191
- thor (0.20.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.5)
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.0)
223
+ websocket-driver (0.7.3)
209
224
  websocket-extensions (>= 0.1.0)
210
- websocket-extensions (0.1.3)
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 (~> 10.0)
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.2
244
+ 1.17.3
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_dependency 'faraday', '>= 0.9'
27
27
  spec.add_dependency 'faraday_middleware', '>= 0.10'
28
- spec.add_dependency 'rails', ['>= 4.2.5', '< 6.0']
28
+ spec.add_dependency 'rails', ['>= 4.2.5', '< 6.1']
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module ExternalServices
2
- VERSION = '0.4.2'.freeze
2
+ VERSION = '0.4.3'.freeze
3
3
  end
@@ -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 CreateExternalServices < ActiveRecord::Migration
1
+ class CreateExternalServices < ActiveRecord::Migration<%= migration_version %>
2
2
  def change
3
3
  create_table :external_services do |t|
4
4
  t.references :subject, null: false, polymorphic: true, index: true
@@ -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.2
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: 2018-12-27 00:00:00.000000000 Z
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.0'
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.0'
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.1
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,