devise-async 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d6d0d0deedfd6d12ee0a646f1400829c573a715a
4
- data.tar.gz: 60cc9e825af2c55d74f3768c16a0abddc5d618d5
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MzljMDZlODk5ZjdkZTQ5ZjFkNzQzZTRiYmFiZTcxNjJlMmFjMTM4Ng==
5
+ data.tar.gz: !binary |-
6
+ YzY1OGRhYjMyNDMzMjI4MTM3OTM5ZmZkNTc2NzRjOTM2NWViNTk1Mg==
5
7
  SHA512:
6
- metadata.gz: 0003d88b019ccb619dc1e740b609c391d07ec0588fae8f627d03695c524cac6f7083aec9a1517ff20fe8b40933efff023317086170a264164816246ef3620abe
7
- data.tar.gz: bb9717cf00bfe2d5d1330790609ccccb22070dde1855f2907a7e938a12737e56c7b5f37f04ef6ae63b4f17be8672b95c442d91cf1d9bb571d80eaac4a179e76b
8
+ metadata.gz: !binary |-
9
+ NjU2YWU2YTgwMDU5MWZkMDIzMTgxZmVhMDExOTg2MmM3ODNmZWE5NDg1OTFi
10
+ NzQ4ODM1NjkwMTgwMmM0MTUzMzRjNDJiMjQ2NTgzMzg1MTc4MWRlMDU3MmM4
11
+ YmMxZWJjZmM2MjdkZWZjMGVjMWFjMGZiODcyODQwM2U5YjQwZWQ=
12
+ data.tar.gz: !binary |-
13
+ NWVhNTRiZDdhODExMjVhMjgzN2FjMWI3YzIyNjIzYmUyMzg3OGJjNGI3NDNj
14
+ MzE2OTA4Mzk3NGFhMmY5NzdlZjk2MDdhNWUxNDM4YjM1ODE0MTQzOWU3N2Uz
15
+ OGNjMDU1MmY3MWY2MTA2Yjk2ZDNmNjFkOTI5ZGIwZmM1M2RhMDU=
@@ -1,5 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+
4
5
  services:
5
6
  - redis-server
7
+
8
+ before_install:
9
+ - gem install bundler -v 1.12.5
@@ -1,30 +1,40 @@
1
1
  ## Unreleased
2
2
 
3
- ## 0.10.0-alpha
3
+ ## 0.10.2
4
4
 
5
- * Backburner support (jandudulski)
6
- * Sucker Punch support (kmayer)
7
- * Que support (marshall-lee)
8
- * Handle `deliver_now` in preparation for Rails 5 (barelyknown)
9
- * Option to set a priority for DJ and Backburner (mkon)
10
- * The locale is remembered before an asynchronous task is run (baschtl)
11
- * Fixed a usage of `try` that appeared in connection with Rails 4 (baschtl)
5
+ * Explicitly requires Devise to avoid an error if Devise is not explicitly mentioned in your Gemfile (@derekprior)
6
+ * Improvements for running devise-async locally and on CI
7
+ * This will be the last release to support Devise 3.x
8
+
9
+ ## 0.10.1
10
+
11
+ * No code changes compared to `0.10.1-alpha`
12
+
13
+ ## 0.10.1-alpha
14
+
15
+ * Backburner support (@jandudulski)
16
+ * Sucker Punch support (@kmayer)
17
+ * Que support (@marshall-lee)
18
+ * Handle `deliver_now` in preparation for Rails 5 (@barelyknown)
19
+ * Option to set a priority for DJ and Backburner (@mkon)
20
+ * The locale is remembered before an asynchronous task is run (@baschtl)
21
+ * Fixed a usage of `try` that appeared in connection with Rails 4 (@baschtl)
12
22
 
13
23
  ## 0.9.0
14
24
 
15
- * Multiple mailers support (baschtl)
25
+ * Multiple mailers support (@baschtl)
16
26
  * Update devise dependency to ~3.2
17
27
 
18
28
  ## 0.8.0
19
29
 
20
- * Support arbitrary number of arguments to mailer (glebm)
21
- * Added torquebox support (astjohn)
30
+ * Support arbitrary number of arguments to mailer (@glebm)
31
+ * Added torquebox support (@astjohn)
22
32
 
23
33
  ## 0.7.0
24
34
 
25
35
  * make sure options hash has string keys when enqueued and symbol keys when job runs
26
- * stringfy options keys before enqueueing to make queue_classic happy (nickw)
27
- * Added `Devise::Async.enabled=` options to make it easier to skip async processing during tests (mohamedmagdy)
36
+ * stringfy options keys before enqueueing to make queue_classic happy (@nickw)
37
+ * Added `Devise::Async.enabled=` options to make it easier to skip async processing during tests (@mohamedmagdy)
28
38
 
29
39
  ## 0.6.0
30
40
 
@@ -39,7 +49,7 @@
39
49
 
40
50
  ## 0.5.0
41
51
 
42
- * Added support for QueueClassic (jperville)
52
+ * Added support for QueueClassic (@jperville)
43
53
  * Remove deprecated `DeviseAsync::Proxy` and `DeviseAsync.backend=`
44
54
  * Improved comments throughout code
45
55
 
data/README.md CHANGED
@@ -91,7 +91,7 @@ Devise::Async.priority = 10
91
91
  ### Setup via block
92
92
 
93
93
  To avoid repeating `Devise::Async` in the initializer file you can use the block syntax
94
- similar do what `Devise` offers.
94
+ similar to what `Devise` offers.
95
95
 
96
96
  ```ruby
97
97
  # config/initializers/devise_async.rb
data/Rakefile CHANGED
@@ -10,4 +10,5 @@ Rake::TestTask.new do |t|
10
10
  t.libs << "test"
11
11
  t.test_files = FileList["test/**/*_test.rb"]
12
12
  t.verbose = true
13
+ t.warning = false
13
14
  end
@@ -19,8 +19,9 @@ Gem::Specification.new do |gem|
19
19
  gem.require_paths = ["lib"]
20
20
 
21
21
 
22
- gem.add_dependency "devise", "~> 3.2"
22
+ gem.add_dependency "devise", ">= 3.2", "< 4.0"
23
23
 
24
+ gem.add_development_dependency "minitest"
24
25
  gem.add_development_dependency "activerecord", ">= 3.2"
25
26
  gem.add_development_dependency "actionpack", ">= 3.2"
26
27
  gem.add_development_dependency "actionmailer", ">= 3.2"
@@ -31,7 +32,6 @@ Gem::Specification.new do |gem|
31
32
  gem.add_development_dependency "queue_classic", "~> 2.0"
32
33
  gem.add_development_dependency "backburner", "~> 0.4"
33
34
  gem.add_development_dependency "mocha", "~> 0.11"
34
- gem.add_development_dependency "minitest", "~> 3.0"
35
35
  gem.add_development_dependency "torquebox-no-op", "~> 2.3"
36
36
  gem.add_development_dependency "sucker_punch", "~> 1.0.5"
37
37
  gem.add_development_dependency "que", "~> 0.8"
@@ -1,3 +1,4 @@
1
+ require "devise"
1
2
  require "active_support/dependencies"
2
3
  require "devise/async/version"
3
4
 
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Async
3
- VERSION = "0.10.1"
3
+ VERSION = "0.10.2"
4
4
  end
5
5
  end
@@ -3,33 +3,33 @@ module Devise
3
3
  class Worker
4
4
  class << self
5
5
 
6
- # Used is the internal interface for devise-async to enqueue notifications
7
- # to the desired backend.
8
- def enqueue(method, resource_class, resource_id, *args)
9
- # convert args to strings and hashes with string keys before passing to backend
10
- args = stringify_args args
11
- backend_class.enqueue(method, resource_class, resource_id, *args)
12
- end
13
-
14
- private
6
+ # Used is the internal interface for devise-async to enqueue notifications
7
+ # to the desired backend.
8
+ def enqueue(method, resource_class, resource_id, *args)
9
+ # convert args to strings and hashes with string keys before passing to backend
10
+ args = stringify_args args
11
+ backend_class.enqueue(method, resource_class, resource_id, *args)
12
+ end
15
13
 
16
- def stringify_args(args)
17
- args.map do |a|
18
- case a
19
- when Hash
20
- a.stringify_keys
21
- when Symbol
22
- a.to_s
23
- else
24
- a
14
+ private
15
+
16
+ def stringify_args(args)
17
+ args.map do |a|
18
+ case a
19
+ when Hash
20
+ a.stringify_keys
21
+ when Symbol
22
+ a.to_s
23
+ else
24
+ a
25
+ end
25
26
  end
26
27
  end
27
- end
28
-
29
- def backend_class
30
- Backend.for(Devise::Async.backend)
31
- end
28
+
29
+ def backend_class
30
+ Backend.for(Devise::Async.backend)
32
31
  end
32
+ end
33
33
  end
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,223 +1,229 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-async
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Silveira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-21 00:00:00.000000000 Z
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.2'
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: '4.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.2'
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: '4.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: minitest
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: activerecord
29
49
  requirement: !ruby/object:Gem::Requirement
30
50
  requirements:
31
- - - ">="
51
+ - - ! '>='
32
52
  - !ruby/object:Gem::Version
33
53
  version: '3.2'
34
54
  type: :development
35
55
  prerelease: false
36
56
  version_requirements: !ruby/object:Gem::Requirement
37
57
  requirements:
38
- - - ">="
58
+ - - ! '>='
39
59
  - !ruby/object:Gem::Version
40
60
  version: '3.2'
41
61
  - !ruby/object:Gem::Dependency
42
62
  name: actionpack
43
63
  requirement: !ruby/object:Gem::Requirement
44
64
  requirements:
45
- - - ">="
65
+ - - ! '>='
46
66
  - !ruby/object:Gem::Version
47
67
  version: '3.2'
48
68
  type: :development
49
69
  prerelease: false
50
70
  version_requirements: !ruby/object:Gem::Requirement
51
71
  requirements:
52
- - - ">="
72
+ - - ! '>='
53
73
  - !ruby/object:Gem::Version
54
74
  version: '3.2'
55
75
  - !ruby/object:Gem::Dependency
56
76
  name: actionmailer
57
77
  requirement: !ruby/object:Gem::Requirement
58
78
  requirements:
59
- - - ">="
79
+ - - ! '>='
60
80
  - !ruby/object:Gem::Version
61
81
  version: '3.2'
62
82
  type: :development
63
83
  prerelease: false
64
84
  version_requirements: !ruby/object:Gem::Requirement
65
85
  requirements:
66
- - - ">="
86
+ - - ! '>='
67
87
  - !ruby/object:Gem::Version
68
88
  version: '3.2'
69
89
  - !ruby/object:Gem::Dependency
70
90
  name: sqlite3
71
91
  requirement: !ruby/object:Gem::Requirement
72
92
  requirements:
73
- - - "~>"
93
+ - - ~>
74
94
  - !ruby/object:Gem::Version
75
95
  version: '1.3'
76
96
  type: :development
77
97
  prerelease: false
78
98
  version_requirements: !ruby/object:Gem::Requirement
79
99
  requirements:
80
- - - "~>"
100
+ - - ~>
81
101
  - !ruby/object:Gem::Version
82
102
  version: '1.3'
83
103
  - !ruby/object:Gem::Dependency
84
104
  name: resque
85
105
  requirement: !ruby/object:Gem::Requirement
86
106
  requirements:
87
- - - "~>"
107
+ - - ~>
88
108
  - !ruby/object:Gem::Version
89
109
  version: '1.20'
90
110
  type: :development
91
111
  prerelease: false
92
112
  version_requirements: !ruby/object:Gem::Requirement
93
113
  requirements:
94
- - - "~>"
114
+ - - ~>
95
115
  - !ruby/object:Gem::Version
96
116
  version: '1.20'
97
117
  - !ruby/object:Gem::Dependency
98
118
  name: sidekiq
99
119
  requirement: !ruby/object:Gem::Requirement
100
120
  requirements:
101
- - - "~>"
121
+ - - ~>
102
122
  - !ruby/object:Gem::Version
103
123
  version: '2.17'
104
124
  type: :development
105
125
  prerelease: false
106
126
  version_requirements: !ruby/object:Gem::Requirement
107
127
  requirements:
108
- - - "~>"
128
+ - - ~>
109
129
  - !ruby/object:Gem::Version
110
130
  version: '2.17'
111
131
  - !ruby/object:Gem::Dependency
112
132
  name: delayed_job_active_record
113
133
  requirement: !ruby/object:Gem::Requirement
114
134
  requirements:
115
- - - "~>"
135
+ - - ~>
116
136
  - !ruby/object:Gem::Version
117
137
  version: '0.3'
118
138
  type: :development
119
139
  prerelease: false
120
140
  version_requirements: !ruby/object:Gem::Requirement
121
141
  requirements:
122
- - - "~>"
142
+ - - ~>
123
143
  - !ruby/object:Gem::Version
124
144
  version: '0.3'
125
145
  - !ruby/object:Gem::Dependency
126
146
  name: queue_classic
127
147
  requirement: !ruby/object:Gem::Requirement
128
148
  requirements:
129
- - - "~>"
149
+ - - ~>
130
150
  - !ruby/object:Gem::Version
131
151
  version: '2.0'
132
152
  type: :development
133
153
  prerelease: false
134
154
  version_requirements: !ruby/object:Gem::Requirement
135
155
  requirements:
136
- - - "~>"
156
+ - - ~>
137
157
  - !ruby/object:Gem::Version
138
158
  version: '2.0'
139
159
  - !ruby/object:Gem::Dependency
140
160
  name: backburner
141
161
  requirement: !ruby/object:Gem::Requirement
142
162
  requirements:
143
- - - "~>"
163
+ - - ~>
144
164
  - !ruby/object:Gem::Version
145
165
  version: '0.4'
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
149
169
  requirements:
150
- - - "~>"
170
+ - - ~>
151
171
  - !ruby/object:Gem::Version
152
172
  version: '0.4'
153
173
  - !ruby/object:Gem::Dependency
154
174
  name: mocha
155
175
  requirement: !ruby/object:Gem::Requirement
156
176
  requirements:
157
- - - "~>"
177
+ - - ~>
158
178
  - !ruby/object:Gem::Version
159
179
  version: '0.11'
160
180
  type: :development
161
181
  prerelease: false
162
182
  version_requirements: !ruby/object:Gem::Requirement
163
183
  requirements:
164
- - - "~>"
184
+ - - ~>
165
185
  - !ruby/object:Gem::Version
166
186
  version: '0.11'
167
- - !ruby/object:Gem::Dependency
168
- name: minitest
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '3.0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '3.0'
181
187
  - !ruby/object:Gem::Dependency
182
188
  name: torquebox-no-op
183
189
  requirement: !ruby/object:Gem::Requirement
184
190
  requirements:
185
- - - "~>"
191
+ - - ~>
186
192
  - !ruby/object:Gem::Version
187
193
  version: '2.3'
188
194
  type: :development
189
195
  prerelease: false
190
196
  version_requirements: !ruby/object:Gem::Requirement
191
197
  requirements:
192
- - - "~>"
198
+ - - ~>
193
199
  - !ruby/object:Gem::Version
194
200
  version: '2.3'
195
201
  - !ruby/object:Gem::Dependency
196
202
  name: sucker_punch
197
203
  requirement: !ruby/object:Gem::Requirement
198
204
  requirements:
199
- - - "~>"
205
+ - - ~>
200
206
  - !ruby/object:Gem::Version
201
207
  version: 1.0.5
202
208
  type: :development
203
209
  prerelease: false
204
210
  version_requirements: !ruby/object:Gem::Requirement
205
211
  requirements:
206
- - - "~>"
212
+ - - ~>
207
213
  - !ruby/object:Gem::Version
208
214
  version: 1.0.5
209
215
  - !ruby/object:Gem::Dependency
210
216
  name: que
211
217
  requirement: !ruby/object:Gem::Requirement
212
218
  requirements:
213
- - - "~>"
219
+ - - ~>
214
220
  - !ruby/object:Gem::Version
215
221
  version: '0.8'
216
222
  type: :development
217
223
  prerelease: false
218
224
  version_requirements: !ruby/object:Gem::Requirement
219
225
  requirements:
220
- - - "~>"
226
+ - - ~>
221
227
  - !ruby/object:Gem::Version
222
228
  version: '0.8'
223
229
  description: Send Devise's emails in background. Supports Backburner, Resque, Sidekiq,
@@ -228,8 +234,8 @@ executables: []
228
234
  extensions: []
229
235
  extra_rdoc_files: []
230
236
  files:
231
- - ".gitignore"
232
- - ".travis.yml"
237
+ - .gitignore
238
+ - .travis.yml
233
239
  - CHANGELOG.md
234
240
  - Gemfile
235
241
  - LICENSE
@@ -287,17 +293,17 @@ require_paths:
287
293
  - lib
288
294
  required_ruby_version: !ruby/object:Gem::Requirement
289
295
  requirements:
290
- - - ">="
296
+ - - ! '>='
291
297
  - !ruby/object:Gem::Version
292
298
  version: '0'
293
299
  required_rubygems_version: !ruby/object:Gem::Requirement
294
300
  requirements:
295
- - - ">="
301
+ - - ! '>='
296
302
  - !ruby/object:Gem::Version
297
303
  version: '0'
298
304
  requirements: []
299
305
  rubyforge_project:
300
- rubygems_version: 2.2.2
306
+ rubygems_version: 2.6.4
301
307
  signing_key:
302
308
  specification_version: 4
303
309
  summary: Devise Async provides an easy way to configure Devise to send its emails