sidekiq-encryptor 0.1.3 → 0.2.0

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
  SHA1:
3
- metadata.gz: 10e45f3ced87df73f91cd3910c9b708d7a446589
4
- data.tar.gz: f1bcdb7fd64e349d47fda04270b41e5336497f9e
3
+ metadata.gz: f2586b3077a29891e7d7a930d9002e59f05780a0
4
+ data.tar.gz: 50712ce2d668151eeffd745c32e682b775acf783
5
5
  SHA512:
6
- metadata.gz: b31a1bd96e7c6b85059707ec7ec8ba242a3d7d3e2a2639eb9695b239ed606696f6393896bb784288ada3dff621d46d5343e5b4f8ba19df8e6bde4774ded47a9a
7
- data.tar.gz: a1eff9fe3da62c86c4ac1fd55226db203ff294c59106d099c0aeb1cc9a765c3462a7dcf33612ace0a2b7c27dcc68623a871b205422570116911b0fd8263e4415
6
+ metadata.gz: 2cb01a980968fd744df61e2bedb3e58fa74d99a195cd928049c9af971e96cde364c4e700096e60e0f97e2740bcd605ddc61d9bda6533510f2d2e94b5a306b1b9
7
+ data.tar.gz: 7e2ac32463f246f9cf85f7629cf93e6cfa07a4e68825e650be0d397a641bbdbcc286013a5cfa91e3c2e42c0ab2e8b58dd7dd71b41ac65f85fb3f804098998212
@@ -3,7 +3,7 @@ rvm:
3
3
  - 2.0.0
4
4
  - 1.9.3
5
5
  - jruby-19mode
6
- - rbx-19mode
6
+ - rbx
7
7
  branches:
8
8
  only:
9
9
  - master
@@ -11,5 +11,4 @@ notifications:
11
11
  email: false
12
12
  matrix:
13
13
  allow_failures:
14
- - rvm: jruby-19mode
15
- - rvm: rbx-19mode
14
+ - rvm: rbx
@@ -1,5 +1,12 @@
1
1
  # sidekiq-encryptor changelog
2
2
 
3
+ ## 0.2.0
4
+
5
+ Upgrade to Sidekiq 3 API and require Sidekiq 3.
6
+
7
+ Sidekiq 2 compatibility is not maintained at this time. Users of Sidekiq
8
+ 2 can use prior versions of the gem.
9
+
3
10
  ## 0.1.3
4
11
 
5
12
  Fix bug with Ruby 1.9 compatibility.
@@ -76,7 +76,7 @@ module Sidekiq
76
76
  end
77
77
 
78
78
  class Client < Base
79
- def call(worker, msg, queue)
79
+ def call(worker, msg, queue, redis_pool)
80
80
  return yield unless enabled?
81
81
  msg['args'] = payload(msg['args'])
82
82
  yield
@@ -3,8 +3,8 @@ module Sidekiq
3
3
 
4
4
  module Version
5
5
  MAJOR = 0
6
- MINOR = 1
7
- PATCH = 3
6
+ MINOR = 2
7
+ PATCH = 0
8
8
  SUFFIX = ""
9
9
  end
10
10
 
@@ -18,13 +18,13 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ['lib']
20
20
 
21
- gem.add_dependency 'fernet', '>= 2.0rc2', '< 3.0'
22
- gem.add_dependency 'sidekiq', '>= 2.5', '< 3.0'
21
+ gem.add_dependency 'fernet', '~> 2.0'
22
+ gem.add_dependency 'sidekiq', '~> 3.0'
23
23
 
24
24
  gem.add_development_dependency 'rake'
25
25
  gem.add_development_dependency 'pry'
26
26
  gem.add_development_dependency 'yard'
27
- gem.add_development_dependency 'redcarpet'
27
+ gem.add_development_dependency 'kramdown'
28
28
 
29
29
  gem.add_development_dependency 'rspec'
30
30
  gem.add_development_dependency 'rspec-redis_helper'
@@ -39,19 +39,28 @@ require 'securerandom'
39
39
  end
40
40
 
41
41
  let(:message) do
42
- { 'args' => args[klass] }
42
+ { 'args' => args[described_class] }
43
43
  end
44
44
 
45
45
  let(:queue) do
46
46
  'default'
47
47
  end
48
48
 
49
+ let(:redis_pool) do
50
+ nil
51
+ end
52
+
49
53
  it { should be_enabled }
50
54
 
51
55
  describe '#call' do
52
56
 
53
57
  it 'yields' do
54
- expect { |b| middleware.call(worker, message, queue, &b) }.to yield_with_no_args
58
+ case described_class
59
+ when Sidekiq::Encryptor::Client
60
+ expect { |b| middleware.call(worker, message, queue, redis_pool, &b) }.to yield_with_no_args
61
+ when Sidekiq::Encryptor::Server
62
+ expect { |b| middleware.call(worker, message, queue, &b) }.to yield_with_no_args
63
+ end
55
64
  end
56
65
  end
57
66
  end
metadata CHANGED
@@ -1,263 +1,251 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-encryptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Dance
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-16 00:00:00.000000000 Z
11
+ date: 2014-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fernet
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0rc2
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: '3.0'
19
+ version: '2.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - '>='
28
- - !ruby/object:Gem::Version
29
- version: 2.0rc2
30
- - - <
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '3.0'
26
+ version: '2.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: sidekiq
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - '>='
38
- - !ruby/object:Gem::Version
39
- version: '2.5'
40
- - - <
31
+ - - "~>"
41
32
  - !ruby/object:Gem::Version
42
33
  version: '3.0'
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
- - - '>='
48
- - !ruby/object:Gem::Version
49
- version: '2.5'
50
- - - <
38
+ - - "~>"
51
39
  - !ruby/object:Gem::Version
52
40
  version: '3.0'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: rake
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
- - - '>='
45
+ - - ">="
58
46
  - !ruby/object:Gem::Version
59
47
  version: '0'
60
48
  type: :development
61
49
  prerelease: false
62
50
  version_requirements: !ruby/object:Gem::Requirement
63
51
  requirements:
64
- - - '>='
52
+ - - ">="
65
53
  - !ruby/object:Gem::Version
66
54
  version: '0'
67
55
  - !ruby/object:Gem::Dependency
68
56
  name: pry
69
57
  requirement: !ruby/object:Gem::Requirement
70
58
  requirements:
71
- - - '>='
59
+ - - ">="
72
60
  - !ruby/object:Gem::Version
73
61
  version: '0'
74
62
  type: :development
75
63
  prerelease: false
76
64
  version_requirements: !ruby/object:Gem::Requirement
77
65
  requirements:
78
- - - '>='
66
+ - - ">="
79
67
  - !ruby/object:Gem::Version
80
68
  version: '0'
81
69
  - !ruby/object:Gem::Dependency
82
70
  name: yard
83
71
  requirement: !ruby/object:Gem::Requirement
84
72
  requirements:
85
- - - '>='
73
+ - - ">="
86
74
  - !ruby/object:Gem::Version
87
75
  version: '0'
88
76
  type: :development
89
77
  prerelease: false
90
78
  version_requirements: !ruby/object:Gem::Requirement
91
79
  requirements:
92
- - - '>='
80
+ - - ">="
93
81
  - !ruby/object:Gem::Version
94
82
  version: '0'
95
83
  - !ruby/object:Gem::Dependency
96
- name: redcarpet
84
+ name: kramdown
97
85
  requirement: !ruby/object:Gem::Requirement
98
86
  requirements:
99
- - - '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
93
  requirements:
106
- - - '>='
94
+ - - ">="
107
95
  - !ruby/object:Gem::Version
108
96
  version: '0'
109
97
  - !ruby/object:Gem::Dependency
110
98
  name: rspec
111
99
  requirement: !ruby/object:Gem::Requirement
112
100
  requirements:
113
- - - '>='
101
+ - - ">="
114
102
  - !ruby/object:Gem::Version
115
103
  version: '0'
116
104
  type: :development
117
105
  prerelease: false
118
106
  version_requirements: !ruby/object:Gem::Requirement
119
107
  requirements:
120
- - - '>='
108
+ - - ">="
121
109
  - !ruby/object:Gem::Version
122
110
  version: '0'
123
111
  - !ruby/object:Gem::Dependency
124
112
  name: rspec-redis_helper
125
113
  requirement: !ruby/object:Gem::Requirement
126
114
  requirements:
127
- - - '>='
115
+ - - ">="
128
116
  - !ruby/object:Gem::Version
129
117
  version: '0'
130
118
  type: :development
131
119
  prerelease: false
132
120
  version_requirements: !ruby/object:Gem::Requirement
133
121
  requirements:
134
- - - '>='
122
+ - - ">="
135
123
  - !ruby/object:Gem::Version
136
124
  version: '0'
137
125
  - !ruby/object:Gem::Dependency
138
126
  name: timecop
139
127
  requirement: !ruby/object:Gem::Requirement
140
128
  requirements:
141
- - - '>='
129
+ - - ">="
142
130
  - !ruby/object:Gem::Version
143
131
  version: '0'
144
132
  type: :development
145
133
  prerelease: false
146
134
  version_requirements: !ruby/object:Gem::Requirement
147
135
  requirements:
148
- - - '>='
136
+ - - ">="
149
137
  - !ruby/object:Gem::Version
150
138
  version: '0'
151
139
  - !ruby/object:Gem::Dependency
152
140
  name: simplecov
153
141
  requirement: !ruby/object:Gem::Requirement
154
142
  requirements:
155
- - - '>='
143
+ - - ">="
156
144
  - !ruby/object:Gem::Version
157
145
  version: '0'
158
146
  type: :development
159
147
  prerelease: false
160
148
  version_requirements: !ruby/object:Gem::Requirement
161
149
  requirements:
162
- - - '>='
150
+ - - ">="
163
151
  - !ruby/object:Gem::Version
164
152
  version: '0'
165
153
  - !ruby/object:Gem::Dependency
166
154
  name: guard
167
155
  requirement: !ruby/object:Gem::Requirement
168
156
  requirements:
169
- - - '>='
157
+ - - ">="
170
158
  - !ruby/object:Gem::Version
171
159
  version: '0'
172
160
  type: :development
173
161
  prerelease: false
174
162
  version_requirements: !ruby/object:Gem::Requirement
175
163
  requirements:
176
- - - '>='
164
+ - - ">="
177
165
  - !ruby/object:Gem::Version
178
166
  version: '0'
179
167
  - !ruby/object:Gem::Dependency
180
168
  name: guard-bundler
181
169
  requirement: !ruby/object:Gem::Requirement
182
170
  requirements:
183
- - - '>='
171
+ - - ">="
184
172
  - !ruby/object:Gem::Version
185
173
  version: '0'
186
174
  type: :development
187
175
  prerelease: false
188
176
  version_requirements: !ruby/object:Gem::Requirement
189
177
  requirements:
190
- - - '>='
178
+ - - ">="
191
179
  - !ruby/object:Gem::Version
192
180
  version: '0'
193
181
  - !ruby/object:Gem::Dependency
194
182
  name: guard-rspec
195
183
  requirement: !ruby/object:Gem::Requirement
196
184
  requirements:
197
- - - '>='
185
+ - - ">="
198
186
  - !ruby/object:Gem::Version
199
187
  version: '0'
200
188
  type: :development
201
189
  prerelease: false
202
190
  version_requirements: !ruby/object:Gem::Requirement
203
191
  requirements:
204
- - - '>='
192
+ - - ">="
205
193
  - !ruby/object:Gem::Version
206
194
  version: '0'
207
195
  - !ruby/object:Gem::Dependency
208
196
  name: guard-yard
209
197
  requirement: !ruby/object:Gem::Requirement
210
198
  requirements:
211
- - - '>='
199
+ - - ">="
212
200
  - !ruby/object:Gem::Version
213
201
  version: '0'
214
202
  type: :development
215
203
  prerelease: false
216
204
  version_requirements: !ruby/object:Gem::Requirement
217
205
  requirements:
218
- - - '>='
206
+ - - ">="
219
207
  - !ruby/object:Gem::Version
220
208
  version: '0'
221
209
  - !ruby/object:Gem::Dependency
222
210
  name: rb-fsevent
223
211
  requirement: !ruby/object:Gem::Requirement
224
212
  requirements:
225
- - - '>='
213
+ - - ">="
226
214
  - !ruby/object:Gem::Version
227
215
  version: '0'
228
216
  type: :development
229
217
  prerelease: false
230
218
  version_requirements: !ruby/object:Gem::Requirement
231
219
  requirements:
232
- - - '>='
220
+ - - ">="
233
221
  - !ruby/object:Gem::Version
234
222
  version: '0'
235
223
  - !ruby/object:Gem::Dependency
236
224
  name: rb-inotify
237
225
  requirement: !ruby/object:Gem::Requirement
238
226
  requirements:
239
- - - '>='
227
+ - - ">="
240
228
  - !ruby/object:Gem::Version
241
229
  version: '0'
242
230
  type: :development
243
231
  prerelease: false
244
232
  version_requirements: !ruby/object:Gem::Requirement
245
233
  requirements:
246
- - - '>='
234
+ - - ">="
247
235
  - !ruby/object:Gem::Version
248
236
  version: '0'
249
237
  - !ruby/object:Gem::Dependency
250
238
  name: growl
251
239
  requirement: !ruby/object:Gem::Requirement
252
240
  requirements:
253
- - - '>='
241
+ - - ">="
254
242
  - !ruby/object:Gem::Version
255
243
  version: '0'
256
244
  type: :development
257
245
  prerelease: false
258
246
  version_requirements: !ruby/object:Gem::Requirement
259
247
  requirements:
260
- - - '>='
248
+ - - ">="
261
249
  - !ruby/object:Gem::Version
262
250
  version: '0'
263
251
  description: Sidekiq middleware that encrypts your job data into and out of Redis.
@@ -267,10 +255,10 @@ executables: []
267
255
  extensions: []
268
256
  extra_rdoc_files: []
269
257
  files:
270
- - .gitignore
271
- - .pryrc
272
- - .travis.yml
273
- - .yardopts
258
+ - ".gitignore"
259
+ - ".pryrc"
260
+ - ".travis.yml"
261
+ - ".yardopts"
274
262
  - CHANGELOG.md
275
263
  - Gemfile
276
264
  - Guardfile
@@ -296,17 +284,17 @@ require_paths:
296
284
  - lib
297
285
  required_ruby_version: !ruby/object:Gem::Requirement
298
286
  requirements:
299
- - - '>='
287
+ - - ">="
300
288
  - !ruby/object:Gem::Version
301
289
  version: '0'
302
290
  required_rubygems_version: !ruby/object:Gem::Requirement
303
291
  requirements:
304
- - - '>='
292
+ - - ">="
305
293
  - !ruby/object:Gem::Version
306
294
  version: '0'
307
295
  requirements: []
308
296
  rubyforge_project:
309
- rubygems_version: 2.0.3
297
+ rubygems_version: 2.2.2
310
298
  signing_key:
311
299
  specification_version: 4
312
300
  summary: Sidekiq::Encryptor is a middleware for Sidekiq that keeps your information