sneakers 1.1.2 → 2.1.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: c0fe43e9b4672ea718827ffdadcf22b840dafd1b
4
- data.tar.gz: 04b6453f6efe69327afedbaa98e134b55d2b713e
3
+ metadata.gz: b781be23db269ee278ef2a0e95d6cecdced533d9
4
+ data.tar.gz: c2bb54814aa4ff3a3145e6cadf94a743cad5ca8f
5
5
  SHA512:
6
- metadata.gz: 3d2c341d10179941eed936913a87e4d13ba317dd512c0650e6e2dff62f2f0cb6a1d981ecb4e01dbf4aec6cac467f6e643c35fe90d2d98f0e54b142a1a8a23463
7
- data.tar.gz: 2389ca41754398ad8664c2ca633fbe47afe471fa22dd78f721db2c665ea9c3a70eeecdd17fb5f9c453d080c773661999e3aeb8415991ce8cfa27dd558da06059
6
+ metadata.gz: ffe3f7e5531b0705f44ffbe51275162ae3845ca6d506cbc41483b9f804aa425d8e169cf96719efc620319a878a7f804e61edec2110059b20370130f522dee125
7
+ data.tar.gz: 98d875b5d670a8245356deb95de707bf53e0d5448b3fa8344a29a7eb4cbebd9d984df55afb20595725e5bc2106d47a133be8e0f5ee68b6f00d08cec932f269c4
@@ -6,7 +6,7 @@ class Sneakers::Utils
6
6
  missing_workers = []
7
7
  workers = (workerstring || '').split(',').map do |k|
8
8
  begin
9
- w = k.split('::').inject(Kernel){|s, c| s.const_get(c)}
9
+ w = Kernel.const_get(k)
10
10
  rescue
11
11
  missing_workers << k
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Sneakers
2
- VERSION = "1.1.2"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -42,7 +42,7 @@ module Sneakers
42
42
  end
43
43
 
44
44
  def do_work(delivery_info, metadata, msg, handler)
45
- worker_trace "Working off: #{msg}"
45
+ worker_trace "Working off: #{msg.inspect}"
46
46
 
47
47
  @pool.process do
48
48
  res = nil
data/sneakers.gemspec CHANGED
@@ -11,13 +11,14 @@ Gem::Specification.new do |gem|
11
11
  gem.description = %q( Fast background processing framework for Ruby and RabbitMQ )
12
12
  gem.summary = %q( Fast background processing framework for Ruby and RabbitMQ )
13
13
  gem.homepage = ''
14
+ gem.required_ruby_version = Gem::Requirement.new(">= 2.0")
14
15
 
15
16
  gem.files = `git ls-files`.split($/).reject { |f| f == 'Gemfile.lock' }
16
17
  gem.executables = gem.files.grep(/^bin/).map { |f| File.basename(f) }
17
18
  gem.test_files = gem.files.grep(/^(test|spec|features)\//)
18
19
  gem.require_paths = ['lib']
19
20
  gem.add_dependency 'serverengine', '~> 1.5.5'
20
- gem.add_dependency 'bunny', ['>= 1.7.0', '<= 2.0.0']
21
+ gem.add_dependency 'bunny', '~> 2.1.0'
21
22
  gem.add_dependency 'thread', '~> 0.1.7'
22
23
  gem.add_dependency 'thor'
23
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sneakers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dotan Nahum
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: serverengine
@@ -28,22 +28,16 @@ dependencies:
28
28
  name: bunny
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.7.0
34
- - - "<="
31
+ - - "~>"
35
32
  - !ruby/object:Gem::Version
36
- version: 2.0.0
33
+ version: 2.1.0
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 1.7.0
44
- - - "<="
38
+ - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: 2.0.0
40
+ version: 2.1.0
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: thread
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -284,7 +278,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
284
278
  requirements:
285
279
  - - ">="
286
280
  - !ruby/object:Gem::Version
287
- version: '0'
281
+ version: '2.0'
288
282
  required_rubygems_version: !ruby/object:Gem::Requirement
289
283
  requirements:
290
284
  - - ">="
@@ -292,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
286
  version: '0'
293
287
  requirements: []
294
288
  rubyforge_project:
295
- rubygems_version: 2.4.5
289
+ rubygems_version: 2.4.5.1
296
290
  signing_key:
297
291
  specification_version: 4
298
292
  summary: Fast background processing framework for Ruby and RabbitMQ