dalliance 0.5.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +107 -0
  3. data/Appraisals +10 -14
  4. data/Gemfile +1 -1
  5. data/README.rdoc +13 -1
  6. data/dalliance.gemspec +4 -4
  7. data/gemfiles/rails_5.0.gemfile +1 -1
  8. data/gemfiles/rails_5.0.gemfile.lock +116 -89
  9. data/gemfiles/rails_5.1.gemfile +1 -1
  10. data/gemfiles/rails_5.1.gemfile.lock +115 -88
  11. data/gemfiles/{rails_4.2.gemfile → rails_5.2.gemfile} +2 -2
  12. data/gemfiles/rails_5.2.gemfile.lock +209 -0
  13. data/gemfiles/{rails_4.0.gemfile → rails_6.0.gemfile} +2 -2
  14. data/gemfiles/rails_6.0.gemfile.lock +225 -0
  15. data/gemfiles/{rails_3.2.gemfile → rails_6.1.gemfile} +2 -2
  16. data/gemfiles/rails_6.1.gemfile.lock +233 -0
  17. data/lib/dalliance.rb +83 -22
  18. data/lib/dalliance/engine.rb +1 -1
  19. data/lib/dalliance/progress_meter.rb +5 -5
  20. data/lib/dalliance/version.rb +2 -2
  21. data/lib/dalliance/workers/delayed_job.rb +20 -9
  22. data/lib/dalliance/workers/resque.rb +17 -9
  23. data/spec/dalliance/asynchronous_delayed_job_spec.rb +42 -0
  24. data/spec/dalliance/asynchronous_resque_spec.rb +54 -0
  25. data/spec/dalliance/dalliance_spec.rb +2 -2
  26. data/spec/dalliance/synchronous_spec.rb +56 -1
  27. data/spec/spec_helper.rb +2 -0
  28. data/spec/support/active_record.rb +7 -1
  29. metadata +60 -21
  30. data/gemfiles/rails_3.1.gemfile +0 -12
  31. data/gemfiles/rails_3.1.gemfile.lock +0 -149
  32. data/gemfiles/rails_3.2.gemfile.lock +0 -146
  33. data/gemfiles/rails_4.0.gemfile.lock +0 -134
  34. data/gemfiles/rails_4.1.gemfile +0 -12
  35. data/gemfiles/rails_4.1.gemfile.lock +0 -140
  36. data/gemfiles/rails_4.2.gemfile.lock +0 -168
@@ -1,6 +1,6 @@
1
1
  # This file was generated by Appraisal
2
2
 
3
- source "http://rubygems.org"
3
+ source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal"
6
6
  gem "rails", "~> 5.1.0"
@@ -1,48 +1,48 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- dalliance (0.4.0)
5
- rails (>= 3.2, <= 5.1.4)
4
+ dalliance (0.8.1)
5
+ rails (>= 5.0, < 6.2)
6
6
  state_machine
7
7
 
8
8
  GEM
9
- remote: http://rubygems.org/
9
+ remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.1.4)
12
- actionpack (= 5.1.4)
11
+ actioncable (5.1.7)
12
+ actionpack (= 5.1.7)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (~> 0.6.1)
15
- actionmailer (5.1.4)
16
- actionpack (= 5.1.4)
17
- actionview (= 5.1.4)
18
- activejob (= 5.1.4)
15
+ actionmailer (5.1.7)
16
+ actionpack (= 5.1.7)
17
+ actionview (= 5.1.7)
18
+ activejob (= 5.1.7)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.1.4)
22
- actionview (= 5.1.4)
23
- activesupport (= 5.1.4)
21
+ actionpack (5.1.7)
22
+ actionview (= 5.1.7)
23
+ activesupport (= 5.1.7)
24
24
  rack (~> 2.0)
25
25
  rack-test (>= 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.1.4)
29
- activesupport (= 5.1.4)
28
+ actionview (5.1.7)
29
+ activesupport (= 5.1.7)
30
30
  builder (~> 3.1)
31
31
  erubi (~> 1.4)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.1.4)
35
- activesupport (= 5.1.4)
34
+ activejob (5.1.7)
35
+ activesupport (= 5.1.7)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.1.4)
38
- activesupport (= 5.1.4)
39
- activerecord (5.1.4)
40
- activemodel (= 5.1.4)
41
- activesupport (= 5.1.4)
37
+ activemodel (5.1.7)
38
+ activesupport (= 5.1.7)
39
+ activerecord (5.1.7)
40
+ activemodel (= 5.1.7)
41
+ activesupport (= 5.1.7)
42
42
  arel (~> 8.0)
43
- activesupport (5.1.4)
43
+ activesupport (5.1.7)
44
44
  concurrent-ruby (~> 1.0, >= 1.0.2)
45
- i18n (~> 0.7)
45
+ i18n (>= 0.7, < 2)
46
46
  minitest (~> 5.1)
47
47
  tzinfo (~> 1.1)
48
48
  appraisal (2.2.0)
@@ -50,117 +50,142 @@ GEM
50
50
  rake
51
51
  thor (>= 0.14.0)
52
52
  arel (8.0.0)
53
- builder (3.2.3)
54
- byebug (9.1.0)
55
- concurrent-ruby (1.0.5)
56
- crass (1.0.3)
57
- delayed_job (4.1.4)
58
- activesupport (>= 3.0, < 5.2)
59
- delayed_job_active_record (4.1.2)
60
- activerecord (>= 3.0, < 5.2)
53
+ ast (2.4.0)
54
+ builder (3.2.4)
55
+ bundler-audit (0.6.1)
56
+ bundler (>= 1.2.0, < 3)
57
+ thor (~> 0.18)
58
+ byebug (11.1.1)
59
+ concurrent-ruby (1.1.6)
60
+ crass (1.0.6)
61
+ delayed_job (4.1.8)
62
+ activesupport (>= 3.0, < 6.1)
63
+ delayed_job_active_record (4.1.4)
64
+ activerecord (>= 3.0, < 6.1)
61
65
  delayed_job (>= 3.0, < 5)
62
66
  diff-lcs (1.3)
63
- erubi (1.7.0)
64
- globalid (0.4.1)
67
+ erubi (1.9.0)
68
+ globalid (0.4.2)
65
69
  activesupport (>= 4.2.0)
66
- i18n (0.9.1)
70
+ i18n (1.8.2)
67
71
  concurrent-ruby (~> 1.0)
68
- loofah (2.1.1)
72
+ jaro_winkler (1.5.4)
73
+ loofah (2.4.0)
69
74
  crass (~> 1.0.2)
70
75
  nokogiri (>= 1.5.9)
71
- mail (2.7.0)
76
+ mail (2.7.1)
72
77
  mini_mime (>= 0.1.1)
73
- method_source (0.9.0)
74
- mini_mime (1.0.0)
75
- mini_portile2 (2.3.0)
76
- minitest (5.11.1)
78
+ method_source (0.9.2)
79
+ mini_mime (1.0.2)
80
+ mini_portile2 (2.4.0)
81
+ minitest (5.14.0)
77
82
  mono_logger (1.1.0)
78
- multi_json (1.12.2)
79
- mustermann (1.0.1)
80
- nio4r (2.2.0)
81
- nokogiri (1.8.1)
82
- mini_portile2 (~> 2.3.0)
83
- rack (2.0.3)
84
- rack-protection (2.0.0)
83
+ multi_json (1.14.1)
84
+ mustermann (1.1.1)
85
+ ruby2_keywords (~> 0.0.1)
86
+ nio4r (2.5.2)
87
+ nokogiri (1.10.8)
88
+ mini_portile2 (~> 2.4.0)
89
+ parallel (1.19.1)
90
+ parser (2.7.0.3)
91
+ ast (~> 2.4.0)
92
+ rack (2.2.2)
93
+ rack-protection (2.0.8.1)
85
94
  rack
86
- rack-test (0.8.2)
95
+ rack-test (1.1.0)
87
96
  rack (>= 1.0, < 3)
88
- rails (5.1.4)
89
- actioncable (= 5.1.4)
90
- actionmailer (= 5.1.4)
91
- actionpack (= 5.1.4)
92
- actionview (= 5.1.4)
93
- activejob (= 5.1.4)
94
- activemodel (= 5.1.4)
95
- activerecord (= 5.1.4)
96
- activesupport (= 5.1.4)
97
+ rails (5.1.7)
98
+ actioncable (= 5.1.7)
99
+ actionmailer (= 5.1.7)
100
+ actionpack (= 5.1.7)
101
+ actionview (= 5.1.7)
102
+ activejob (= 5.1.7)
103
+ activemodel (= 5.1.7)
104
+ activerecord (= 5.1.7)
105
+ activesupport (= 5.1.7)
97
106
  bundler (>= 1.3.0)
98
- railties (= 5.1.4)
107
+ railties (= 5.1.7)
99
108
  sprockets-rails (>= 2.0.0)
100
109
  rails-dom-testing (2.0.3)
101
110
  activesupport (>= 4.2.0)
102
111
  nokogiri (>= 1.6)
103
- rails-html-sanitizer (1.0.3)
104
- loofah (~> 2.0)
105
- railties (5.1.4)
106
- actionpack (= 5.1.4)
107
- activesupport (= 5.1.4)
112
+ rails-html-sanitizer (1.3.0)
113
+ loofah (~> 2.3)
114
+ railties (5.1.7)
115
+ actionpack (= 5.1.7)
116
+ activesupport (= 5.1.7)
108
117
  method_source
109
118
  rake (>= 0.8.7)
110
119
  thor (>= 0.18.1, < 2.0)
111
- rake (12.3.0)
112
- redis (4.0.1)
113
- redis-namespace (1.6.0)
120
+ rainbow (3.0.0)
121
+ rake (13.0.1)
122
+ redis (4.1.3)
123
+ redis-namespace (1.7.0)
114
124
  redis (>= 3.0.4)
115
- resque (1.27.4)
125
+ resque (2.0.0)
116
126
  mono_logger (~> 1.0)
117
127
  multi_json (~> 1.0)
118
- redis-namespace (~> 1.3)
128
+ redis-namespace (~> 1.6)
119
129
  sinatra (>= 0.9.2)
120
130
  vegas (~> 0.1.2)
121
- rspec (3.7.0)
122
- rspec-core (~> 3.7.0)
123
- rspec-expectations (~> 3.7.0)
124
- rspec-mocks (~> 3.7.0)
125
- rspec-core (3.7.1)
126
- rspec-support (~> 3.7.0)
127
- rspec-expectations (3.7.0)
131
+ rexml (3.2.4)
132
+ rspec (3.9.0)
133
+ rspec-core (~> 3.9.0)
134
+ rspec-expectations (~> 3.9.0)
135
+ rspec-mocks (~> 3.9.0)
136
+ rspec-core (3.9.1)
137
+ rspec-support (~> 3.9.1)
138
+ rspec-expectations (3.9.0)
128
139
  diff-lcs (>= 1.2.0, < 2.0)
129
- rspec-support (~> 3.7.0)
130
- rspec-mocks (3.7.0)
140
+ rspec-support (~> 3.9.0)
141
+ rspec-mocks (3.9.1)
131
142
  diff-lcs (>= 1.2.0, < 2.0)
132
- rspec-support (~> 3.7.0)
133
- rspec-support (3.7.0)
134
- sinatra (2.0.0)
143
+ rspec-support (~> 3.9.0)
144
+ rspec-support (3.9.2)
145
+ rspec_junit_formatter (0.4.1)
146
+ rspec-core (>= 2, < 4, != 2.12.0)
147
+ rubocop (0.80.0)
148
+ jaro_winkler (~> 1.5.1)
149
+ parallel (~> 1.10)
150
+ parser (>= 2.7.0.1)
151
+ rainbow (>= 2.2.2, < 4.0)
152
+ rexml
153
+ ruby-progressbar (~> 1.7)
154
+ unicode-display_width (>= 1.4.0, < 1.7)
155
+ ruby-progressbar (1.10.1)
156
+ ruby2_keywords (0.0.2)
157
+ sinatra (2.0.8.1)
135
158
  mustermann (~> 1.0)
136
159
  rack (~> 2.0)
137
- rack-protection (= 2.0.0)
160
+ rack-protection (= 2.0.8.1)
138
161
  tilt (~> 2.0)
139
- sprockets (3.7.1)
162
+ sprockets (4.0.0)
140
163
  concurrent-ruby (~> 1.0)
141
164
  rack (> 1, < 3)
142
165
  sprockets-rails (3.2.1)
143
166
  actionpack (>= 4.0)
144
167
  activesupport (>= 4.0)
145
168
  sprockets (>= 3.0.0)
146
- sqlite3 (1.3.13)
169
+ sqlite3 (1.4.2)
147
170
  state_machine (1.2.0)
148
- thor (0.20.0)
171
+ thor (0.20.3)
149
172
  thread_safe (0.3.6)
150
- tilt (2.0.8)
151
- tzinfo (1.2.4)
173
+ tilt (2.0.10)
174
+ tzinfo (1.2.6)
152
175
  thread_safe (~> 0.1)
176
+ unicode-display_width (1.6.1)
153
177
  vegas (0.1.11)
154
178
  rack (>= 1.0.0)
155
179
  websocket-driver (0.6.5)
156
180
  websocket-extensions (>= 0.1.0)
157
- websocket-extensions (0.1.3)
181
+ websocket-extensions (0.1.4)
158
182
 
159
183
  PLATFORMS
160
184
  ruby
161
185
 
162
186
  DEPENDENCIES
163
187
  appraisal
188
+ bundler-audit
164
189
  byebug
165
190
  dalliance!
166
191
  delayed_job (>= 3.0.0)
@@ -168,7 +193,9 @@ DEPENDENCIES
168
193
  rails (~> 5.1.0)
169
194
  resque
170
195
  rspec (>= 3.0.0)
196
+ rspec_junit_formatter
197
+ rubocop (~> 0.78)
171
198
  sqlite3
172
199
 
173
200
  BUNDLED WITH
174
- 1.16.0
201
+ 1.17.3
@@ -1,9 +1,9 @@
1
1
  # This file was generated by Appraisal
2
2
 
3
- source "http://rubygems.org"
3
+ source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal"
6
- gem "rails", "~> 4.2.0"
6
+ gem "rails", "~> 5.2.2"
7
7
 
8
8
  group :development, :test do
9
9
  gem "byebug"
@@ -0,0 +1,209 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ dalliance (0.8.1)
5
+ rails (>= 5.0, < 6.2)
6
+ state_machine
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.2.4.1)
12
+ actionpack (= 5.2.4.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailer (5.2.4.1)
16
+ actionpack (= 5.2.4.1)
17
+ actionview (= 5.2.4.1)
18
+ activejob (= 5.2.4.1)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.2.4.1)
22
+ actionview (= 5.2.4.1)
23
+ activesupport (= 5.2.4.1)
24
+ rack (~> 2.0, >= 2.0.8)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.2.4.1)
29
+ activesupport (= 5.2.4.1)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.2.4.1)
35
+ activesupport (= 5.2.4.1)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.2.4.1)
38
+ activesupport (= 5.2.4.1)
39
+ activerecord (5.2.4.1)
40
+ activemodel (= 5.2.4.1)
41
+ activesupport (= 5.2.4.1)
42
+ arel (>= 9.0)
43
+ activestorage (5.2.4.1)
44
+ actionpack (= 5.2.4.1)
45
+ activerecord (= 5.2.4.1)
46
+ marcel (~> 0.3.1)
47
+ activesupport (5.2.4.1)
48
+ concurrent-ruby (~> 1.0, >= 1.0.2)
49
+ i18n (>= 0.7, < 2)
50
+ minitest (~> 5.1)
51
+ tzinfo (~> 1.1)
52
+ appraisal (2.2.0)
53
+ bundler
54
+ rake
55
+ thor (>= 0.14.0)
56
+ arel (9.0.0)
57
+ ast (2.4.0)
58
+ builder (3.2.4)
59
+ bundler-audit (0.6.1)
60
+ bundler (>= 1.2.0, < 3)
61
+ thor (~> 0.18)
62
+ byebug (11.1.1)
63
+ concurrent-ruby (1.1.6)
64
+ crass (1.0.6)
65
+ delayed_job (4.1.8)
66
+ activesupport (>= 3.0, < 6.1)
67
+ delayed_job_active_record (4.1.4)
68
+ activerecord (>= 3.0, < 6.1)
69
+ delayed_job (>= 3.0, < 5)
70
+ diff-lcs (1.3)
71
+ erubi (1.9.0)
72
+ globalid (0.4.2)
73
+ activesupport (>= 4.2.0)
74
+ i18n (1.8.2)
75
+ concurrent-ruby (~> 1.0)
76
+ jaro_winkler (1.5.4)
77
+ loofah (2.4.0)
78
+ crass (~> 1.0.2)
79
+ nokogiri (>= 1.5.9)
80
+ mail (2.7.1)
81
+ mini_mime (>= 0.1.1)
82
+ marcel (0.3.3)
83
+ mimemagic (~> 0.3.2)
84
+ method_source (0.9.2)
85
+ mimemagic (0.3.4)
86
+ mini_mime (1.0.2)
87
+ mini_portile2 (2.4.0)
88
+ minitest (5.14.0)
89
+ mono_logger (1.1.0)
90
+ multi_json (1.14.1)
91
+ mustermann (1.1.1)
92
+ ruby2_keywords (~> 0.0.1)
93
+ nio4r (2.5.2)
94
+ nokogiri (1.10.8)
95
+ mini_portile2 (~> 2.4.0)
96
+ parallel (1.19.1)
97
+ parser (2.7.0.3)
98
+ ast (~> 2.4.0)
99
+ rack (2.2.2)
100
+ rack-protection (2.0.8.1)
101
+ rack
102
+ rack-test (1.1.0)
103
+ rack (>= 1.0, < 3)
104
+ rails (5.2.4.1)
105
+ actioncable (= 5.2.4.1)
106
+ actionmailer (= 5.2.4.1)
107
+ actionpack (= 5.2.4.1)
108
+ actionview (= 5.2.4.1)
109
+ activejob (= 5.2.4.1)
110
+ activemodel (= 5.2.4.1)
111
+ activerecord (= 5.2.4.1)
112
+ activestorage (= 5.2.4.1)
113
+ activesupport (= 5.2.4.1)
114
+ bundler (>= 1.3.0)
115
+ railties (= 5.2.4.1)
116
+ sprockets-rails (>= 2.0.0)
117
+ rails-dom-testing (2.0.3)
118
+ activesupport (>= 4.2.0)
119
+ nokogiri (>= 1.6)
120
+ rails-html-sanitizer (1.3.0)
121
+ loofah (~> 2.3)
122
+ railties (5.2.4.1)
123
+ actionpack (= 5.2.4.1)
124
+ activesupport (= 5.2.4.1)
125
+ method_source
126
+ rake (>= 0.8.7)
127
+ thor (>= 0.19.0, < 2.0)
128
+ rainbow (3.0.0)
129
+ rake (13.0.1)
130
+ redis (4.1.3)
131
+ redis-namespace (1.7.0)
132
+ redis (>= 3.0.4)
133
+ resque (2.0.0)
134
+ mono_logger (~> 1.0)
135
+ multi_json (~> 1.0)
136
+ redis-namespace (~> 1.6)
137
+ sinatra (>= 0.9.2)
138
+ vegas (~> 0.1.2)
139
+ rexml (3.2.4)
140
+ rspec (3.9.0)
141
+ rspec-core (~> 3.9.0)
142
+ rspec-expectations (~> 3.9.0)
143
+ rspec-mocks (~> 3.9.0)
144
+ rspec-core (3.9.1)
145
+ rspec-support (~> 3.9.1)
146
+ rspec-expectations (3.9.0)
147
+ diff-lcs (>= 1.2.0, < 2.0)
148
+ rspec-support (~> 3.9.0)
149
+ rspec-mocks (3.9.1)
150
+ diff-lcs (>= 1.2.0, < 2.0)
151
+ rspec-support (~> 3.9.0)
152
+ rspec-support (3.9.2)
153
+ rspec_junit_formatter (0.4.1)
154
+ rspec-core (>= 2, < 4, != 2.12.0)
155
+ rubocop (0.80.0)
156
+ jaro_winkler (~> 1.5.1)
157
+ parallel (~> 1.10)
158
+ parser (>= 2.7.0.1)
159
+ rainbow (>= 2.2.2, < 4.0)
160
+ rexml
161
+ ruby-progressbar (~> 1.7)
162
+ unicode-display_width (>= 1.4.0, < 1.7)
163
+ ruby-progressbar (1.10.1)
164
+ ruby2_keywords (0.0.2)
165
+ sinatra (2.0.8.1)
166
+ mustermann (~> 1.0)
167
+ rack (~> 2.0)
168
+ rack-protection (= 2.0.8.1)
169
+ tilt (~> 2.0)
170
+ sprockets (4.0.0)
171
+ concurrent-ruby (~> 1.0)
172
+ rack (> 1, < 3)
173
+ sprockets-rails (3.2.1)
174
+ actionpack (>= 4.0)
175
+ activesupport (>= 4.0)
176
+ sprockets (>= 3.0.0)
177
+ sqlite3 (1.4.2)
178
+ state_machine (1.2.0)
179
+ thor (0.20.3)
180
+ thread_safe (0.3.6)
181
+ tilt (2.0.10)
182
+ tzinfo (1.2.6)
183
+ thread_safe (~> 0.1)
184
+ unicode-display_width (1.6.1)
185
+ vegas (0.1.11)
186
+ rack (>= 1.0.0)
187
+ websocket-driver (0.7.1)
188
+ websocket-extensions (>= 0.1.0)
189
+ websocket-extensions (0.1.4)
190
+
191
+ PLATFORMS
192
+ ruby
193
+
194
+ DEPENDENCIES
195
+ appraisal
196
+ bundler-audit
197
+ byebug
198
+ dalliance!
199
+ delayed_job (>= 3.0.0)
200
+ delayed_job_active_record
201
+ rails (~> 5.2.2)
202
+ resque
203
+ rspec (>= 3.0.0)
204
+ rspec_junit_formatter
205
+ rubocop (~> 0.78)
206
+ sqlite3
207
+
208
+ BUNDLED WITH
209
+ 1.17.3