inst-jobs 0.15.6 → 0.15.7

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: 221663b9f3e3a49a829dd63a7f25b6eb8f558e3bdd594daf2e66e2adee996723
4
- data.tar.gz: 14dd96fbad1a13b259761f4822e9f107537b6d16c92a9f1ceb5db0bb1f003e21
3
+ metadata.gz: 4d91c0b59a62c121e9f6439e2ac280828075aa865a91d800303bedda15d2e6be
4
+ data.tar.gz: d5698189dcdb4a275422dc7ec28b128b4f732a4645d5e5c5eab5f207d7fadb4f
5
5
  SHA512:
6
- metadata.gz: 509766d3ede131621c056be6e95939d077dbdcdec2796217d4d53fdf8cb165d0e5a21a21a75b6bd3457d7de2b804b4786fa1b143377430825ddfd3a24fa2124b
7
- data.tar.gz: eb31db5a091c2ff87e3d283a679830a0b77bbf85fc9b592ab988be7ca389e5c84a564d1ce021e7d87db9127d4f9b3885f4a17da24161d7949647e9da9a2dd480
6
+ metadata.gz: b7c88ad384020f9a1ecf44fc65bef4a8668b6584a26bf1a268791f3e2d42c5a693d68e32a7ae395e78eb0b3e06634ecdd952c571fb108aa145f6df1f431e2e97
7
+ data.tar.gz: 58997c5ef5461bb94a7a0732483bac647e4355a2327a91956585cd20b78970bb118aee26fe4c80eb88f81ef3afb758e645dd120ea752be7a1e59a7de9262fe2f
@@ -21,6 +21,40 @@ module Delayed
21
21
  clear_all_connections!
22
22
  end
23
23
 
24
+ class << self
25
+ def create(attributes, &block)
26
+ return super if connection.prepared_statements || Rails.version < '5.2'
27
+
28
+ # modified from ActiveRecord::Persistence.create and ActiveRecord::Persistence#_insert_record
29
+ job = new(attributes, &block)
30
+
31
+ current_time = current_time_from_proper_timezone
32
+
33
+ job.send(:all_timestamp_attributes_in_model).each do |column|
34
+ if !job.attribute_present?(column)
35
+ job._write_attribute(column, current_time)
36
+ end
37
+ end
38
+
39
+ values = job.send(:attributes_with_values_for_create, attribute_names)
40
+ im = arel_table.compile_insert(_substitute_values(values))
41
+ sql, _binds = connection.send(:to_sql_and_binds, im, [])
42
+
43
+ # https://www.postgresql.org/docs/9.5/libpq-exec.html
44
+ sql = "#{sql} RETURNING id"
45
+ # > Multiple queries sent in a single PQexec call are processed in a single transaction,
46
+ # unless there are explicit BEGIN/COMMIT commands included in the query string to divide
47
+ # it into multiple transactions.
48
+ sql = "SELECT pg_advisory_xact_lock(#{connection.quote_table_name('half_md5_as_bigint')}(#{connection.quote(values['strand'])})); #{sql}" if attributes["strand"]
49
+ result = connection.execute(sql, "#{self} Create")
50
+ job.id = result.values.first.first
51
+ result.clear
52
+ job.instance_variable_set(:@new_record, false)
53
+
54
+ job
55
+ end
56
+ end
57
+
24
58
  # be aware that some strand functionality is controlled by triggers on
25
59
  # the database. see
26
60
  # db/migrate/20110831210257_add_delayed_jobs_next_in_strand.rb
@@ -1,3 +1,3 @@
1
1
  module Delayed
2
- VERSION = "0.15.6"
2
+ VERSION = "0.15.7"
3
3
  end
@@ -261,4 +261,17 @@ describe 'Delayed::Backed::ActiveRecord::Job' do
261
261
  Delayed::Job.get_and_lock_next_available('worker', forced_latency: 60.0).should be_nil
262
262
  Delayed::Job.get_and_lock_next_available('worker').should eq job
263
263
  end
264
+
265
+ context "non-transactional", non_transactional: true do
266
+ it "creates a stranded job in a single statement" do
267
+ skip "Requires Rails 5.2 or greater" unless Rails.version >= '5.2'
268
+
269
+ allow(Delayed::Job.connection).to receive(:prepared_statements).and_return(false)
270
+ allow(Delayed::Job.connection).to receive(:execute).and_call_original.once
271
+ allow(Delayed::Job.connection).to receive(:insert).never
272
+ j = create_job(strand: "test1")
273
+ allow(Delayed::Job.connection).to receive(:execute).and_call_original
274
+ expect(Delayed::Job.find(j.id)).to eq j
275
+ end
276
+ end
264
277
  end
@@ -0,0 +1,192 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ inst-jobs (0.15.1)
5
+ activerecord (>= 4.2)
6
+ activesupport (>= 4.2)
7
+ after_transaction_commit (>= 1.0, < 3)
8
+ railties (>= 4.2)
9
+ redis (> 3.0)
10
+ redis-scripting (~> 1.0.1)
11
+ rufus-scheduler (~> 3.4, < 3.5)
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ actionmailer (4.2.9)
17
+ actionpack (= 4.2.9)
18
+ actionview (= 4.2.9)
19
+ activejob (= 4.2.9)
20
+ mail (~> 2.5, >= 2.5.4)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ actionpack (4.2.9)
23
+ actionview (= 4.2.9)
24
+ activesupport (= 4.2.9)
25
+ rack (~> 1.6)
26
+ rack-test (~> 0.6.2)
27
+ rails-dom-testing (~> 1.0, >= 1.0.5)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
+ actionview (4.2.9)
30
+ activesupport (= 4.2.9)
31
+ builder (~> 3.1)
32
+ erubis (~> 2.7.0)
33
+ rails-dom-testing (~> 1.0, >= 1.0.5)
34
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
+ activejob (4.2.9)
36
+ activesupport (= 4.2.9)
37
+ globalid (>= 0.3.0)
38
+ activemodel (4.2.9)
39
+ activesupport (= 4.2.9)
40
+ builder (~> 3.1)
41
+ activerecord (4.2.9)
42
+ activemodel (= 4.2.9)
43
+ activesupport (= 4.2.9)
44
+ arel (~> 6.0)
45
+ activesupport (4.2.9)
46
+ i18n (~> 0.7)
47
+ minitest (~> 5.1)
48
+ thread_safe (~> 0.3, >= 0.3.4)
49
+ tzinfo (~> 1.1)
50
+ addressable (2.5.2)
51
+ public_suffix (>= 2.0.2, < 4.0)
52
+ after_transaction_commit (1.1.2)
53
+ activerecord (>= 4.0)
54
+ arel (6.0.4)
55
+ backports (3.8.0)
56
+ builder (3.2.3)
57
+ bump (0.5.4)
58
+ byebug (9.0.6)
59
+ coderay (1.1.1)
60
+ concurrent-ruby (1.0.5)
61
+ database_cleaner (1.6.1)
62
+ diff-lcs (1.3)
63
+ erubis (2.7.0)
64
+ et-orbi (1.1.4)
65
+ tzinfo
66
+ globalid (0.4.0)
67
+ activesupport (>= 4.2.0)
68
+ httpclient (2.8.3)
69
+ i18n (0.8.6)
70
+ imperium (0.3.0)
71
+ addressable (~> 2.5.0)
72
+ httpclient (~> 2.8)
73
+ loofah (2.0.3)
74
+ nokogiri (>= 1.5.9)
75
+ mail (2.6.6)
76
+ mime-types (>= 1.16, < 4)
77
+ method_source (0.8.2)
78
+ mime-types (3.1)
79
+ mime-types-data (~> 3.2015)
80
+ mime-types-data (3.2016.0521)
81
+ mini_portile2 (2.2.0)
82
+ minitest (5.10.3)
83
+ multi_json (1.12.1)
84
+ nokogiri (1.8.0)
85
+ mini_portile2 (~> 2.2.0)
86
+ pg (0.21.0)
87
+ pry (0.10.4)
88
+ coderay (~> 1.1.0)
89
+ method_source (~> 0.8.1)
90
+ slop (~> 3.4)
91
+ public_suffix (3.0.2)
92
+ rack (1.6.8)
93
+ rack-protection (1.5.3)
94
+ rack
95
+ rack-test (0.6.3)
96
+ rack (>= 1.0)
97
+ rails (4.2.9)
98
+ actionmailer (= 4.2.9)
99
+ actionpack (= 4.2.9)
100
+ actionview (= 4.2.9)
101
+ activejob (= 4.2.9)
102
+ activemodel (= 4.2.9)
103
+ activerecord (= 4.2.9)
104
+ activesupport (= 4.2.9)
105
+ bundler (>= 1.3.0, < 2.0)
106
+ railties (= 4.2.9)
107
+ sprockets-rails
108
+ rails-deprecated_sanitizer (1.0.3)
109
+ activesupport (>= 4.2.0.alpha)
110
+ rails-dom-testing (1.0.8)
111
+ activesupport (>= 4.2.0.beta, < 5.0)
112
+ nokogiri (~> 1.6)
113
+ rails-deprecated_sanitizer (>= 1.0.1)
114
+ rails-html-sanitizer (1.0.3)
115
+ loofah (~> 2.0)
116
+ railties (4.2.9)
117
+ actionpack (= 4.2.9)
118
+ activesupport (= 4.2.9)
119
+ rake (>= 0.8.7)
120
+ thor (>= 0.18.1, < 2.0)
121
+ rake (12.0.0)
122
+ redis (4.0.2)
123
+ redis-scripting (1.0.1)
124
+ redis (>= 3.0)
125
+ rspec (3.4.0)
126
+ rspec-core (~> 3.4.0)
127
+ rspec-expectations (~> 3.4.0)
128
+ rspec-mocks (~> 3.4.0)
129
+ rspec-core (3.4.4)
130
+ rspec-support (~> 3.4.0)
131
+ rspec-expectations (3.4.0)
132
+ diff-lcs (>= 1.2.0, < 2.0)
133
+ rspec-support (~> 3.4.0)
134
+ rspec-mocks (3.4.1)
135
+ diff-lcs (>= 1.2.0, < 2.0)
136
+ rspec-support (~> 3.4.0)
137
+ rspec-support (3.4.1)
138
+ rufus-scheduler (3.4.2)
139
+ et-orbi (~> 1.0)
140
+ sinatra (1.4.8)
141
+ rack (~> 1.5)
142
+ rack-protection (~> 1.4)
143
+ tilt (>= 1.3, < 3)
144
+ sinatra-contrib (1.4.7)
145
+ backports (>= 2.0)
146
+ multi_json
147
+ rack-protection
148
+ rack-test
149
+ sinatra (~> 1.4.0)
150
+ tilt (>= 1.3, < 3)
151
+ slop (3.6.0)
152
+ sprockets (3.7.1)
153
+ concurrent-ruby (~> 1.0)
154
+ rack (> 1, < 3)
155
+ sprockets-rails (3.2.0)
156
+ actionpack (>= 4.0)
157
+ activesupport (>= 4.0)
158
+ sprockets (>= 3.0.0)
159
+ test_after_commit (0.4.1)
160
+ activerecord (>= 3.2)
161
+ thor (0.19.4)
162
+ thread_safe (0.3.6)
163
+ tilt (2.0.8)
164
+ timecop (0.7.1)
165
+ tzinfo (1.2.3)
166
+ thread_safe (~> 0.1)
167
+ wwtd (1.3.0)
168
+
169
+ PLATFORMS
170
+ ruby
171
+
172
+ DEPENDENCIES
173
+ after_transaction_commit (< 2)
174
+ bump
175
+ byebug
176
+ database_cleaner (= 1.6.1)
177
+ imperium (>= 0.2.3)
178
+ inst-jobs!
179
+ pg (< 1.0)
180
+ pry
181
+ rack-test
182
+ rails (~> 4.2.5)
183
+ rake
184
+ rspec (= 3.4.0)
185
+ sinatra
186
+ sinatra-contrib
187
+ test_after_commit (= 0.4.1)
188
+ timecop (= 0.7.1)
189
+ wwtd (~> 1.3.0)
190
+
191
+ BUNDLED WITH
192
+ 1.16.1
@@ -0,0 +1,187 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ inst-jobs (0.13.4)
5
+ after_transaction_commit (>= 1.0, < 3)
6
+ rails (>= 4.2)
7
+ redis (> 3.0)
8
+ redis-scripting (~> 1.0.1)
9
+ rufus-scheduler (~> 3.4)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actioncable (5.0.5)
15
+ actionpack (= 5.0.5)
16
+ nio4r (>= 1.2, < 3.0)
17
+ websocket-driver (~> 0.6.1)
18
+ actionmailer (5.0.5)
19
+ actionpack (= 5.0.5)
20
+ actionview (= 5.0.5)
21
+ activejob (= 5.0.5)
22
+ mail (~> 2.5, >= 2.5.4)
23
+ rails-dom-testing (~> 2.0)
24
+ actionpack (5.0.5)
25
+ actionview (= 5.0.5)
26
+ activesupport (= 5.0.5)
27
+ rack (~> 2.0)
28
+ rack-test (~> 0.6.3)
29
+ rails-dom-testing (~> 2.0)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
+ actionview (5.0.5)
32
+ activesupport (= 5.0.5)
33
+ builder (~> 3.1)
34
+ erubis (~> 2.7.0)
35
+ rails-dom-testing (~> 2.0)
36
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
37
+ activejob (5.0.5)
38
+ activesupport (= 5.0.5)
39
+ globalid (>= 0.3.6)
40
+ activemodel (5.0.5)
41
+ activesupport (= 5.0.5)
42
+ activerecord (5.0.5)
43
+ activemodel (= 5.0.5)
44
+ activesupport (= 5.0.5)
45
+ arel (~> 7.0)
46
+ activesupport (5.0.5)
47
+ concurrent-ruby (~> 1.0, >= 1.0.2)
48
+ i18n (~> 0.7)
49
+ minitest (~> 5.1)
50
+ tzinfo (~> 1.1)
51
+ after_transaction_commit (2.0.0)
52
+ activerecord (>= 5.0)
53
+ arel (7.1.4)
54
+ backports (3.8.0)
55
+ builder (3.2.3)
56
+ bump (0.5.4)
57
+ byebug (9.0.6)
58
+ coderay (1.1.1)
59
+ concurrent-ruby (1.0.5)
60
+ database_cleaner (1.6.1)
61
+ diff-lcs (1.3)
62
+ erubis (2.7.0)
63
+ et-orbi (1.0.5)
64
+ tzinfo
65
+ globalid (0.4.0)
66
+ activesupport (>= 4.2.0)
67
+ i18n (0.8.6)
68
+ loofah (2.0.3)
69
+ nokogiri (>= 1.5.9)
70
+ mail (2.6.6)
71
+ mime-types (>= 1.16, < 4)
72
+ method_source (0.8.2)
73
+ mime-types (3.1)
74
+ mime-types-data (~> 3.2015)
75
+ mime-types-data (3.2016.0521)
76
+ mini_portile2 (2.2.0)
77
+ minitest (5.10.3)
78
+ multi_json (1.12.1)
79
+ mustermann (1.0.0.beta2)
80
+ nio4r (2.1.0)
81
+ nokogiri (1.8.0)
82
+ mini_portile2 (~> 2.2.0)
83
+ pg (0.21.0)
84
+ pry (0.10.4)
85
+ coderay (~> 1.1.0)
86
+ method_source (~> 0.8.1)
87
+ slop (~> 3.4)
88
+ rack (2.0.3)
89
+ rack-protection (2.0.0.beta2)
90
+ rack
91
+ rack-test (0.6.3)
92
+ rack (>= 1.0)
93
+ rails (5.0.5)
94
+ actioncable (= 5.0.5)
95
+ actionmailer (= 5.0.5)
96
+ actionpack (= 5.0.5)
97
+ actionview (= 5.0.5)
98
+ activejob (= 5.0.5)
99
+ activemodel (= 5.0.5)
100
+ activerecord (= 5.0.5)
101
+ activesupport (= 5.0.5)
102
+ bundler (>= 1.3.0)
103
+ railties (= 5.0.5)
104
+ sprockets-rails (>= 2.0.0)
105
+ rails-dom-testing (2.0.3)
106
+ activesupport (>= 4.2.0)
107
+ nokogiri (>= 1.6)
108
+ rails-html-sanitizer (1.0.3)
109
+ loofah (~> 2.0)
110
+ railties (5.0.5)
111
+ actionpack (= 5.0.5)
112
+ activesupport (= 5.0.5)
113
+ method_source
114
+ rake (>= 0.8.7)
115
+ thor (>= 0.18.1, < 2.0)
116
+ rake (12.0.0)
117
+ redis (3.3.3)
118
+ redis-scripting (1.0.1)
119
+ redis (>= 3.0)
120
+ rspec (3.4.0)
121
+ rspec-core (~> 3.4.0)
122
+ rspec-expectations (~> 3.4.0)
123
+ rspec-mocks (~> 3.4.0)
124
+ rspec-core (3.4.4)
125
+ rspec-support (~> 3.4.0)
126
+ rspec-expectations (3.4.0)
127
+ diff-lcs (>= 1.2.0, < 2.0)
128
+ rspec-support (~> 3.4.0)
129
+ rspec-mocks (3.4.1)
130
+ diff-lcs (>= 1.2.0, < 2.0)
131
+ rspec-support (~> 3.4.0)
132
+ rspec-support (3.4.1)
133
+ rufus-scheduler (3.4.2)
134
+ et-orbi (~> 1.0)
135
+ sinatra (2.0.0.beta2)
136
+ mustermann (= 1.0.0.beta2)
137
+ rack (~> 2.0)
138
+ rack-protection (= 2.0.0.beta2)
139
+ tilt (~> 2.0)
140
+ sinatra-contrib (2.0.0.beta2)
141
+ backports (>= 2.0)
142
+ multi_json
143
+ mustermann (= 1.0.0.beta2)
144
+ rack-protection (= 2.0.0.beta2)
145
+ rack-test
146
+ sinatra (= 2.0.0.beta2)
147
+ tilt (>= 1.3, < 3)
148
+ slop (3.6.0)
149
+ sprockets (3.7.1)
150
+ concurrent-ruby (~> 1.0)
151
+ rack (> 1, < 3)
152
+ sprockets-rails (3.2.0)
153
+ actionpack (>= 4.0)
154
+ activesupport (>= 4.0)
155
+ sprockets (>= 3.0.0)
156
+ thor (0.19.4)
157
+ thread_safe (0.3.6)
158
+ tilt (2.0.8)
159
+ timecop (0.7.1)
160
+ tzinfo (1.2.3)
161
+ thread_safe (~> 0.1)
162
+ websocket-driver (0.6.5)
163
+ websocket-extensions (>= 0.1.0)
164
+ websocket-extensions (0.1.2)
165
+ wwtd (1.3.0)
166
+
167
+ PLATFORMS
168
+ ruby
169
+
170
+ DEPENDENCIES
171
+ bump
172
+ byebug
173
+ database_cleaner (= 1.6.1)
174
+ inst-jobs!
175
+ pg
176
+ pry
177
+ rack-test
178
+ rails (~> 5.0.0)
179
+ rake
180
+ rspec (= 3.4.0)
181
+ sinatra (= 2.0.0.beta2)
182
+ sinatra-contrib (= 2.0.0.beta2)
183
+ timecop (= 0.7.1)
184
+ wwtd (~> 1.3.0)
185
+
186
+ BUNDLED WITH
187
+ 1.15.3
@@ -0,0 +1,196 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ inst-jobs (0.15.1)
5
+ activerecord (>= 4.2)
6
+ activesupport (>= 4.2)
7
+ after_transaction_commit (>= 1.0, < 3)
8
+ railties (>= 4.2)
9
+ redis (> 3.0)
10
+ redis-scripting (~> 1.0.1)
11
+ rufus-scheduler (~> 3.4, < 3.5)
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ actioncable (5.1.6)
17
+ actionpack (= 5.1.6)
18
+ nio4r (~> 2.0)
19
+ websocket-driver (~> 0.6.1)
20
+ actionmailer (5.1.6)
21
+ actionpack (= 5.1.6)
22
+ actionview (= 5.1.6)
23
+ activejob (= 5.1.6)
24
+ mail (~> 2.5, >= 2.5.4)
25
+ rails-dom-testing (~> 2.0)
26
+ actionpack (5.1.6)
27
+ actionview (= 5.1.6)
28
+ activesupport (= 5.1.6)
29
+ rack (~> 2.0)
30
+ rack-test (>= 0.6.3)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
33
+ actionview (5.1.6)
34
+ activesupport (= 5.1.6)
35
+ builder (~> 3.1)
36
+ erubi (~> 1.4)
37
+ rails-dom-testing (~> 2.0)
38
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
39
+ activejob (5.1.6)
40
+ activesupport (= 5.1.6)
41
+ globalid (>= 0.3.6)
42
+ activemodel (5.1.6)
43
+ activesupport (= 5.1.6)
44
+ activerecord (5.1.6)
45
+ activemodel (= 5.1.6)
46
+ activesupport (= 5.1.6)
47
+ arel (~> 8.0)
48
+ activesupport (5.1.6)
49
+ concurrent-ruby (~> 1.0, >= 1.0.2)
50
+ i18n (>= 0.7, < 2)
51
+ minitest (~> 5.1)
52
+ tzinfo (~> 1.1)
53
+ addressable (2.5.2)
54
+ public_suffix (>= 2.0.2, < 4.0)
55
+ after_transaction_commit (2.0.0)
56
+ activerecord (>= 5.0)
57
+ arel (8.0.0)
58
+ backports (3.11.3)
59
+ builder (3.2.3)
60
+ bump (0.6.1)
61
+ byebug (10.0.2)
62
+ coderay (1.1.2)
63
+ concurrent-ruby (1.0.5)
64
+ crass (1.0.4)
65
+ database_cleaner (1.6.1)
66
+ diff-lcs (1.3)
67
+ erubi (1.7.1)
68
+ et-orbi (1.1.4)
69
+ tzinfo
70
+ globalid (0.4.1)
71
+ activesupport (>= 4.2.0)
72
+ httpclient (2.8.3)
73
+ i18n (1.1.0)
74
+ concurrent-ruby (~> 1.0)
75
+ imperium (0.5.0)
76
+ addressable (~> 2.5.0)
77
+ httpclient (~> 2.8)
78
+ loofah (2.2.2)
79
+ crass (~> 1.0.2)
80
+ nokogiri (>= 1.5.9)
81
+ mail (2.7.0)
82
+ mini_mime (>= 0.1.1)
83
+ method_source (0.9.0)
84
+ mini_mime (1.0.1)
85
+ mini_portile2 (2.3.0)
86
+ minitest (5.11.3)
87
+ multi_json (1.13.1)
88
+ mustermann (1.0.0.beta2)
89
+ nio4r (2.3.1)
90
+ nokogiri (1.8.4)
91
+ mini_portile2 (~> 2.3.0)
92
+ pg (0.21.0)
93
+ pry (0.11.3)
94
+ coderay (~> 1.1.0)
95
+ method_source (~> 0.9.0)
96
+ public_suffix (3.0.3)
97
+ rack (2.0.5)
98
+ rack-protection (2.0.0.beta2)
99
+ rack
100
+ rack-test (1.1.0)
101
+ rack (>= 1.0, < 3)
102
+ rails (5.1.6)
103
+ actioncable (= 5.1.6)
104
+ actionmailer (= 5.1.6)
105
+ actionpack (= 5.1.6)
106
+ actionview (= 5.1.6)
107
+ activejob (= 5.1.6)
108
+ activemodel (= 5.1.6)
109
+ activerecord (= 5.1.6)
110
+ activesupport (= 5.1.6)
111
+ bundler (>= 1.3.0)
112
+ railties (= 5.1.6)
113
+ sprockets-rails (>= 2.0.0)
114
+ rails-dom-testing (2.0.3)
115
+ activesupport (>= 4.2.0)
116
+ nokogiri (>= 1.6)
117
+ rails-html-sanitizer (1.0.4)
118
+ loofah (~> 2.2, >= 2.2.2)
119
+ railties (5.1.6)
120
+ actionpack (= 5.1.6)
121
+ activesupport (= 5.1.6)
122
+ method_source
123
+ rake (>= 0.8.7)
124
+ thor (>= 0.18.1, < 2.0)
125
+ rake (12.3.1)
126
+ redis (4.0.2)
127
+ redis-scripting (1.0.1)
128
+ redis (>= 3.0)
129
+ rspec (3.4.0)
130
+ rspec-core (~> 3.4.0)
131
+ rspec-expectations (~> 3.4.0)
132
+ rspec-mocks (~> 3.4.0)
133
+ rspec-core (3.4.4)
134
+ rspec-support (~> 3.4.0)
135
+ rspec-expectations (3.4.0)
136
+ diff-lcs (>= 1.2.0, < 2.0)
137
+ rspec-support (~> 3.4.0)
138
+ rspec-mocks (3.4.1)
139
+ diff-lcs (>= 1.2.0, < 2.0)
140
+ rspec-support (~> 3.4.0)
141
+ rspec-support (3.4.1)
142
+ rufus-scheduler (3.4.2)
143
+ et-orbi (~> 1.0)
144
+ sinatra (2.0.0.beta2)
145
+ mustermann (= 1.0.0.beta2)
146
+ rack (~> 2.0)
147
+ rack-protection (= 2.0.0.beta2)
148
+ tilt (~> 2.0)
149
+ sinatra-contrib (2.0.0.beta2)
150
+ backports (>= 2.0)
151
+ multi_json
152
+ mustermann (= 1.0.0.beta2)
153
+ rack-protection (= 2.0.0.beta2)
154
+ rack-test
155
+ sinatra (= 2.0.0.beta2)
156
+ tilt (>= 1.3, < 3)
157
+ sprockets (3.7.2)
158
+ concurrent-ruby (~> 1.0)
159
+ rack (> 1, < 3)
160
+ sprockets-rails (3.2.1)
161
+ actionpack (>= 4.0)
162
+ activesupport (>= 4.0)
163
+ sprockets (>= 3.0.0)
164
+ thor (0.20.0)
165
+ thread_safe (0.3.6)
166
+ tilt (2.0.8)
167
+ timecop (0.7.1)
168
+ tzinfo (1.2.5)
169
+ thread_safe (~> 0.1)
170
+ websocket-driver (0.6.5)
171
+ websocket-extensions (>= 0.1.0)
172
+ websocket-extensions (0.1.3)
173
+ wwtd (1.3.0)
174
+
175
+ PLATFORMS
176
+ ruby
177
+
178
+ DEPENDENCIES
179
+ bump
180
+ byebug
181
+ database_cleaner (= 1.6.1)
182
+ imperium (>= 0.2.3)
183
+ inst-jobs!
184
+ pg (< 1.0)
185
+ pry
186
+ rack-test
187
+ rails (~> 5.1.0)
188
+ rake
189
+ rspec (= 3.4.0)
190
+ sinatra (= 2.0.0.beta2)
191
+ sinatra-contrib (= 2.0.0.beta2)
192
+ timecop (= 0.7.1)
193
+ wwtd (~> 1.3.0)
194
+
195
+ BUNDLED WITH
196
+ 1.16.1
@@ -23,7 +23,8 @@ RSpec.configure do |config|
23
23
  if Delayed::Backend::Redis::Job.redis
24
24
  Delayed::Backend::Redis::Job.redis.flushdb
25
25
  end
26
- DatabaseCleaner.strategy = (example.metadata[:sinatra] ? :truncation : :transaction)
26
+ DatabaseCleaner.strategy = (example.metadata[:sinatra] || example.metadata[:non_transactional]) ?
27
+ :truncation : :transaction
27
28
  DatabaseCleaner.start
28
29
  end
29
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inst-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.6
4
+ version: 0.15.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-06-26 00:00:00.000000000 Z
12
+ date: 2019-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -251,16 +251,16 @@ dependencies:
251
251
  name: rspec
252
252
  requirement: !ruby/object:Gem::Requirement
253
253
  requirements:
254
- - - '='
254
+ - - "~>"
255
255
  - !ruby/object:Gem::Version
256
- version: 3.4.0
256
+ version: 3.8.0
257
257
  type: :development
258
258
  prerelease: false
259
259
  version_requirements: !ruby/object:Gem::Requirement
260
260
  requirements:
261
- - - '='
261
+ - - "~>"
262
262
  - !ruby/object:Gem::Version
263
- version: 3.4.0
263
+ version: 3.8.0
264
264
  - !ruby/object:Gem::Dependency
265
265
  name: sinatra
266
266
  requirement: !ruby/object:Gem::Requirement
@@ -408,8 +408,11 @@ files:
408
408
  - spec/delayed/worker/health_check_spec.rb
409
409
  - spec/delayed/worker_spec.rb
410
410
  - spec/gemfiles/42.gemfile
411
+ - spec/gemfiles/42.gemfile.lock
411
412
  - spec/gemfiles/50.gemfile
413
+ - spec/gemfiles/50.gemfile.lock
412
414
  - spec/gemfiles/51.gemfile
415
+ - spec/gemfiles/51.gemfile.lock
413
416
  - spec/gemfiles/52.gemfile
414
417
  - spec/migrate/20140924140513_add_story_table.rb
415
418
  - spec/redis_job_spec.rb
@@ -440,8 +443,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
440
443
  - !ruby/object:Gem::Version
441
444
  version: '0'
442
445
  requirements: []
443
- rubyforge_project:
444
- rubygems_version: 2.7.6
446
+ rubygems_version: 3.0.3
445
447
  signing_key:
446
448
  specification_version: 4
447
449
  summary: Instructure-maintained fork of delayed_job
@@ -449,6 +451,9 @@ test_files:
449
451
  - spec/sample_jobs.rb
450
452
  - spec/spec_helper.rb
451
453
  - spec/redis_job_spec.rb
454
+ - spec/gemfiles/51.gemfile.lock
455
+ - spec/gemfiles/42.gemfile.lock
456
+ - spec/gemfiles/50.gemfile.lock
452
457
  - spec/gemfiles/42.gemfile
453
458
  - spec/gemfiles/52.gemfile
454
459
  - spec/gemfiles/50.gemfile