qs 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: 8f69f568a5b9a346be6a45f7f439fe835263240b
4
+ metadata.gz: b11ca0b892b3fc054d3c350c529c6933d415ac01
5
+ SHA512:
6
+ data.tar.gz: 18e0f1388fc35d85e8e324433be89bdccba9ee658b10797ed85c756646f51552109cf5c8fca4276e300cb53dda81cf78be772939d9fdc100e0146b0be64d37e3
7
+ metadata.gz: e83ff088d753074d81c84d686d25b977e8a875ef6b0174e8455785d23fc25057fc5e1af4259801c97d0234c7ddc848f170e6009ee00cdac7c06cdb94edb9f7e8
data/Gemfile CHANGED
@@ -2,8 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'rake', "~> 10.4.0"
6
- gem 'pry', "~> 0.9.0"
5
+ gem 'pry', "~> 0.9.0"
7
6
 
8
7
  platform :ruby_18 do
9
8
  gem 'json', '~> 1.8'
@@ -196,12 +196,12 @@ module Qs
196
196
  end
197
197
 
198
198
  def worker_class(new_worker_class = nil)
199
- self.configuration.worker_class = new_worker_class if new_worker_class
199
+ self.configuration.worker_class = new_worker_class if !new_worker_class.nil?
200
200
  self.configuration.worker_class
201
201
  end
202
202
 
203
- def worker_params(new_worker_params = nil )
204
- self.configuration.worker_params = new_worker_params if new_worker_params
203
+ def worker_params(new_worker_params = nil)
204
+ self.configuration.worker_params = new_worker_params if !new_worker_params.nil?
205
205
  self.configuration.worker_params
206
206
  end
207
207
 
@@ -234,6 +234,10 @@ module Qs
234
234
  self.configuration.queues << queue
235
235
  end
236
236
 
237
+ def queues
238
+ self.configuration.queues
239
+ end
240
+
237
241
  end
238
242
 
239
243
  class Configuration
@@ -1,3 +1,3 @@
1
1
  module Qs
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
data/qs.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
8
8
  gem.version = Qs::VERSION
9
9
  gem.authors = ["Kelly Redding", "Collin Redding"]
10
10
  gem.email = ["kelly@kellyredding.com", "collin.redding@me.com"]
11
- gem.description = %q{Define message queues. Process jobs and events. Profit.}
12
11
  gem.summary = %q{Define message queues. Process jobs and events. Profit.}
12
+ gem.description = %q{Define message queues. Process jobs and events. Profit.}
13
13
  gem.homepage = "http://github.com/redding/qs"
14
14
  gem.license = 'MIT'
15
15
 
@@ -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("dat-worker-pool", ["~> 0.6"])
22
- gem.add_dependency("hella-redis", ["~> 0.3"])
23
- gem.add_dependency("much-plugin", ["~> 0.1"])
24
- gem.add_dependency("ns-options", ["~> 1.1"])
25
- gem.add_dependency("SystemTimer", ["~> 1.2"])
21
+ gem.add_development_dependency("assert", ["~> 2.15.1"])
22
+ gem.add_development_dependency("scmd", ["~> 3.0.1"])
26
23
 
27
- gem.add_development_dependency("assert", ["~> 2.15"])
28
- gem.add_development_dependency("scmd", ["~> 3.0"])
24
+ gem.add_dependency("dat-worker-pool", ["~> 0.6.0"])
25
+ gem.add_dependency("hella-redis", ["~> 0.3.0"])
26
+ gem.add_dependency("much-plugin", ["~> 0.1.0"])
27
+ gem.add_dependency("ns-options", ["~> 1.1.6"])
28
+ gem.add_dependency("SystemTimer", ["~> 1.2"])
29
29
 
30
30
  end
@@ -25,7 +25,7 @@ module Qs::Daemon
25
25
  should have_imeths :num_workers, :workers
26
26
  should have_imeths :verbose_logging, :logger
27
27
  should have_imeths :shutdown_timeout
28
- should have_imeths :init, :error, :queue
28
+ should have_imeths :init, :error, :queue, :queues
29
29
 
30
30
  should "use much-plugin" do
31
31
  assert_includes MuchPlugin, Qs::Daemon
@@ -119,6 +119,12 @@ module Qs::Daemon
119
119
  assert_includes new_queue, subject.configuration.queues
120
120
  end
121
121
 
122
+ should "allow reading its configuration queues" do
123
+ new_queue = Factory.string
124
+ subject.queue(new_queue)
125
+ assert_equal [new_queue], subject.queues
126
+ end
127
+
122
128
  end
123
129
 
124
130
  class InitSetupTests < UnitTests
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
5
- prerelease:
6
- segments:
7
- - 0
8
- - 6
9
- - 0
10
- version: 0.6.0
4
+ version: 0.6.1
11
5
  platform: ruby
12
6
  authors:
13
7
  - Kelly Redding
@@ -16,113 +10,78 @@ autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
12
 
19
- date: 2015-11-30 00:00:00 Z
13
+ date: 2016-04-05 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
16
+ name: assert
17
+ prerelease: false
22
18
  requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
19
  requirements:
25
20
  - - ~>
26
21
  - !ruby/object:Gem::Version
27
- hash: 7
28
- segments:
29
- - 0
30
- - 6
31
- version: "0.6"
32
- type: :runtime
33
- name: dat-worker-pool
22
+ version: 2.15.1
23
+ type: :development
34
24
  version_requirements: *id001
35
- prerelease: false
36
25
  - !ruby/object:Gem::Dependency
26
+ name: scmd
27
+ prerelease: false
37
28
  requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
29
  requirements:
40
30
  - - ~>
41
31
  - !ruby/object:Gem::Version
42
- hash: 13
43
- segments:
44
- - 0
45
- - 3
46
- version: "0.3"
47
- type: :runtime
48
- name: hella-redis
32
+ version: 3.0.1
33
+ type: :development
49
34
  version_requirements: *id002
50
- prerelease: false
51
35
  - !ruby/object:Gem::Dependency
36
+ name: dat-worker-pool
37
+ prerelease: false
52
38
  requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
39
  requirements:
55
40
  - - ~>
56
41
  - !ruby/object:Gem::Version
57
- hash: 9
58
- segments:
59
- - 0
60
- - 1
61
- version: "0.1"
42
+ version: 0.6.0
62
43
  type: :runtime
63
- name: much-plugin
64
44
  version_requirements: *id003
65
- prerelease: false
66
45
  - !ruby/object:Gem::Dependency
46
+ name: hella-redis
47
+ prerelease: false
67
48
  requirement: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
49
  requirements:
70
50
  - - ~>
71
51
  - !ruby/object:Gem::Version
72
- hash: 13
73
- segments:
74
- - 1
75
- - 1
76
- version: "1.1"
52
+ version: 0.3.0
77
53
  type: :runtime
78
- name: ns-options
79
54
  version_requirements: *id004
80
- prerelease: false
81
55
  - !ruby/object:Gem::Dependency
56
+ name: much-plugin
57
+ prerelease: false
82
58
  requirement: &id005 !ruby/object:Gem::Requirement
83
- none: false
84
59
  requirements:
85
60
  - - ~>
86
61
  - !ruby/object:Gem::Version
87
- hash: 11
88
- segments:
89
- - 1
90
- - 2
91
- version: "1.2"
62
+ version: 0.1.0
92
63
  type: :runtime
93
- name: SystemTimer
94
64
  version_requirements: *id005
95
- prerelease: false
96
65
  - !ruby/object:Gem::Dependency
66
+ name: ns-options
67
+ prerelease: false
97
68
  requirement: &id006 !ruby/object:Gem::Requirement
98
- none: false
99
69
  requirements:
100
70
  - - ~>
101
71
  - !ruby/object:Gem::Version
102
- hash: 29
103
- segments:
104
- - 2
105
- - 15
106
- version: "2.15"
107
- type: :development
108
- name: assert
72
+ version: 1.1.6
73
+ type: :runtime
109
74
  version_requirements: *id006
110
- prerelease: false
111
75
  - !ruby/object:Gem::Dependency
76
+ name: SystemTimer
77
+ prerelease: false
112
78
  requirement: &id007 !ruby/object:Gem::Requirement
113
- none: false
114
79
  requirements:
115
80
  - - ~>
116
81
  - !ruby/object:Gem::Version
117
- hash: 7
118
- segments:
119
- - 3
120
- - 0
121
- version: "3.0"
122
- type: :development
123
- name: scmd
82
+ version: "1.2"
83
+ type: :runtime
124
84
  version_requirements: *id007
125
- prerelease: false
126
85
  description: Define message queues. Process jobs and events. Profit.
127
86
  email:
128
87
  - kelly@kellyredding.com
@@ -138,7 +97,6 @@ files:
138
97
  - Gemfile
139
98
  - LICENSE
140
99
  - README.md
141
- - Rakefile
142
100
  - bench/config.qs
143
101
  - bench/dispatcher.qs
144
102
  - bench/report.rb
@@ -227,35 +185,28 @@ files:
227
185
  homepage: http://github.com/redding/qs
228
186
  licenses:
229
187
  - MIT
188
+ metadata: {}
189
+
230
190
  post_install_message:
231
191
  rdoc_options: []
232
192
 
233
193
  require_paths:
234
194
  - lib
235
195
  required_ruby_version: !ruby/object:Gem::Requirement
236
- none: false
237
196
  requirements:
238
- - - ">="
197
+ - &id008
198
+ - ">="
239
199
  - !ruby/object:Gem::Version
240
- hash: 3
241
- segments:
242
- - 0
243
200
  version: "0"
244
201
  required_rubygems_version: !ruby/object:Gem::Requirement
245
- none: false
246
202
  requirements:
247
- - - ">="
248
- - !ruby/object:Gem::Version
249
- hash: 3
250
- segments:
251
- - 0
252
- version: "0"
203
+ - *id008
253
204
  requirements: []
254
205
 
255
206
  rubyforge_project:
256
- rubygems_version: 1.8.25
207
+ rubygems_version: 2.5.1
257
208
  signing_key:
258
- specification_version: 3
209
+ specification_version: 4
259
210
  summary: Define message queues. Process jobs and events. Profit.
260
211
  test_files:
261
212
  - test/helper.rb
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require "bundler/gem_tasks"