delayed_job_groups_plugin 0.3.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,17 @@
1
- # encoding: UTF-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  require 'simplecov'
4
4
  require 'coveralls'
5
5
 
6
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
7
- SimpleCov::Formatter::HTMLFormatter,
8
- Coveralls::SimpleCov::Formatter
9
- ]
6
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
7
+ [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
8
+ )
9
+
10
10
  SimpleCov.start do
11
- add_filter 'spec'
11
+ add_filter 'spec'
12
12
  end
13
13
 
14
+ require 'rspec/its'
14
15
  require 'database_cleaner'
15
16
  require 'delayed_job_groups_plugin'
16
17
  require 'yaml'
@@ -30,27 +31,26 @@ ActiveRecord::Base.logger = Delayed::Worker.logger
30
31
  ActiveRecord::Migration.verbose = false
31
32
 
32
33
  db_adapter = ENV.fetch('ADAPTER', 'sqlite3')
33
- config = YAML.load(File.read('spec/db/database.yml'))
34
- ActiveRecord::Base.establish_connection(config[db_adapter])
34
+ db_config = YAML.safe_load(File.read('spec/db/database.yml'))
35
+ ActiveRecord::Base.establish_connection(db_config[db_adapter])
35
36
  require 'db/schema'
36
37
 
37
38
  RSpec.configure do |config|
38
- config.treat_symbols_as_metadata_keys_with_true_values = true
39
39
  config.order = 'random'
40
40
 
41
41
  config.before(:suite) do
42
42
  DatabaseCleaner.clean_with(:truncation)
43
43
  end
44
44
 
45
- config.before(:each) do
45
+ config.before do
46
46
  DatabaseCleaner.strategy = :transaction
47
47
  end
48
48
 
49
- config.before(:each) do
49
+ config.before do
50
50
  DatabaseCleaner.start
51
51
  end
52
52
 
53
- config.after(:each) do
53
+ config.after do
54
54
  DatabaseCleaner.clean
55
55
  end
56
56
  end
@@ -1,4 +1,4 @@
1
- # encoding: UTF-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  RSpec::Matchers.define :have_been_destroyed do
4
4
  match do |actual|
@@ -6,10 +6,10 @@ RSpec::Matchers.define :have_been_destroyed do
6
6
  end
7
7
 
8
8
  description do
9
- "model should have been destroyed"
9
+ 'model should have been destroyed'
10
10
  end
11
11
 
12
- failure_message_for_should do |actual|
12
+ failure_message do |actual|
13
13
  "expected #{actual.class}(id: #{actual.id}) to have been destroyed"
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_groups_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Turkel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-03 00:00:00.000000000 Z
12
+ date: 2019-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: delayed_job
@@ -31,34 +31,48 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '0.4'
34
+ version: '4.1'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '0.4'
41
+ version: '4.1'
42
+ - !ruby/object:Gem::Dependency
43
+ name: appraisal
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: activerecord
44
58
  requirement: !ruby/object:Gem::Requirement
45
59
  requirements:
46
60
  - - ">="
47
61
  - !ruby/object:Gem::Version
48
- version: '3.2'
62
+ version: '4.2'
49
63
  - - "<"
50
64
  - !ruby/object:Gem::Version
51
- version: '5.2'
52
- type: :development
65
+ version: '5.3'
66
+ type: :runtime
53
67
  prerelease: false
54
68
  version_requirements: !ruby/object:Gem::Requirement
55
69
  requirements:
56
70
  - - ">="
57
71
  - !ruby/object:Gem::Version
58
- version: '3.2'
72
+ version: '4.2'
59
73
  - - "<"
60
74
  - !ruby/object:Gem::Version
61
- version: '5.2'
75
+ version: '5.3'
62
76
  - !ruby/object:Gem::Dependency
63
77
  name: coveralls
64
78
  requirement: !ruby/object:Gem::Requirement
@@ -88,55 +102,49 @@ dependencies:
88
102
  - !ruby/object:Gem::Version
89
103
  version: '1.2'
90
104
  - !ruby/object:Gem::Dependency
91
- name: rake
105
+ name: mime-types
92
106
  requirement: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "<"
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '11.0'
110
+ version: '0'
97
111
  type: :development
98
112
  prerelease: false
99
113
  version_requirements: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "<"
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
- version: '11.0'
117
+ version: '0'
104
118
  - !ruby/object:Gem::Dependency
105
- name: rspec
119
+ name: rake
106
120
  requirement: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: '2.14'
111
- - - "<"
112
- - !ruby/object:Gem::Version
113
- version: '2.99'
124
+ version: '0'
114
125
  type: :development
115
126
  prerelease: false
116
127
  version_requirements: !ruby/object:Gem::Requirement
117
128
  requirements:
118
129
  - - ">="
119
130
  - !ruby/object:Gem::Version
120
- version: '2.14'
121
- - - "<"
122
- - !ruby/object:Gem::Version
123
- version: '2.99'
131
+ version: '0'
124
132
  - !ruby/object:Gem::Dependency
125
- name: simplecov
133
+ name: rspec
126
134
  requirement: !ruby/object:Gem::Requirement
127
135
  requirements:
128
136
  - - "~>"
129
137
  - !ruby/object:Gem::Version
130
- version: 0.7.1
138
+ version: '3'
131
139
  type: :development
132
140
  prerelease: false
133
141
  version_requirements: !ruby/object:Gem::Requirement
134
142
  requirements:
135
143
  - - "~>"
136
144
  - !ruby/object:Gem::Version
137
- version: 0.7.1
145
+ version: '3'
138
146
  - !ruby/object:Gem::Dependency
139
- name: timecop
147
+ name: rspec-its
140
148
  requirement: !ruby/object:Gem::Requirement
141
149
  requirements:
142
150
  - - ">="
@@ -150,19 +158,33 @@ dependencies:
150
158
  - !ruby/object:Gem::Version
151
159
  version: '0'
152
160
  - !ruby/object:Gem::Dependency
153
- name: mime-types
161
+ name: salsify_rubocop
154
162
  requirement: !ruby/object:Gem::Requirement
155
163
  requirements:
156
- - - "~>"
164
+ - - '='
157
165
  - !ruby/object:Gem::Version
158
- version: '2'
166
+ version: 0.52.1.1
159
167
  type: :development
160
168
  prerelease: false
161
169
  version_requirements: !ruby/object:Gem::Requirement
162
170
  requirements:
163
- - - "~>"
171
+ - - '='
164
172
  - !ruby/object:Gem::Version
165
- version: '2'
173
+ version: 0.52.1.1
174
+ - !ruby/object:Gem::Dependency
175
+ name: simplecov
176
+ requirement: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ type: :development
182
+ prerelease: false
183
+ version_requirements: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
166
188
  - !ruby/object:Gem::Dependency
167
189
  name: sqlite3
168
190
  requirement: !ruby/object:Gem::Requirement
@@ -177,6 +199,20 @@ dependencies:
177
199
  - - ">="
178
200
  - !ruby/object:Gem::Version
179
201
  version: '0'
202
+ - !ruby/object:Gem::Dependency
203
+ name: timecop
204
+ requirement: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ type: :development
210
+ prerelease: false
211
+ version_requirements: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
180
216
  description: Aggregates Delayed::Job jobs into groups with group level management
181
217
  and lifecycle callbacks
182
218
  email:
@@ -188,18 +224,25 @@ extra_rdoc_files: []
188
224
  files:
189
225
  - ".gitignore"
190
226
  - ".rspec"
227
+ - ".rubocop.yml"
191
228
  - ".travis.yml"
229
+ - Appraisals
192
230
  - CHANGELOG.md
193
231
  - Gemfile
194
232
  - LICENSE.txt
195
233
  - README.md
196
234
  - Rakefile
197
235
  - delayed_job_groups.gemspec
236
+ - gemfiles/rails_4.2.gemfile
237
+ - gemfiles/rails_5.0.gemfile
238
+ - gemfiles/rails_5.1.gemfile
239
+ - gemfiles/rails_5.2.gemfile
198
240
  - lib/delayed/job_groups/compatibility.rb
199
241
  - lib/delayed/job_groups/job_extensions.rb
200
242
  - lib/delayed/job_groups/job_group.rb
201
243
  - lib/delayed/job_groups/plugin.rb
202
244
  - lib/delayed/job_groups/version.rb
245
+ - lib/delayed/job_groups/yaml_loader.rb
203
246
  - lib/delayed_job_groups_plugin.rb
204
247
  - lib/generators/delayed_job_groups_plugin/install_generator.rb
205
248
  - lib/generators/delayed_job_groups_plugin/templates/migration.rb
@@ -207,6 +250,7 @@ files:
207
250
  - spec/db/schema.rb
208
251
  - spec/delayed/job_groups/job_group_spec.rb
209
252
  - spec/delayed/job_groups/plugin_spec.rb
253
+ - spec/delayed/job_groups/yaml_loader_spec.rb
210
254
  - spec/spec_helper.rb
211
255
  - spec/support/destroyed_model.rb
212
256
  homepage: https://github.com/salsify/delayed_job_groups_plugin
@@ -222,7 +266,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
266
  requirements:
223
267
  - - ">="
224
268
  - !ruby/object:Gem::Version
225
- version: '2.1'
269
+ version: '2.3'
226
270
  required_rubygems_version: !ruby/object:Gem::Requirement
227
271
  requirements:
228
272
  - - ">="
@@ -230,14 +274,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
274
  version: '0'
231
275
  requirements: []
232
276
  rubyforge_project:
233
- rubygems_version: 2.6.12
277
+ rubygems_version: 2.7.7
234
278
  signing_key:
235
279
  specification_version: 4
236
280
  summary: Delayed::Job job groups plugin
237
281
  test_files:
238
- - spec/db/database.yml
239
- - spec/db/schema.rb
240
- - spec/delayed/job_groups/job_group_spec.rb
241
- - spec/delayed/job_groups/plugin_spec.rb
242
282
  - spec/spec_helper.rb
243
283
  - spec/support/destroyed_model.rb
284
+ - spec/delayed/job_groups/plugin_spec.rb
285
+ - spec/delayed/job_groups/job_group_spec.rb
286
+ - spec/delayed/job_groups/yaml_loader_spec.rb
287
+ - spec/db/schema.rb
288
+ - spec/db/database.yml