distribot 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -8
- data/distribot.gemspec +2 -2
- data/lib/distribot/connector.rb +2 -2
- data/lib/distribot.rb +1 -1
- data/spec/distribot/connector_spec.rb +0 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db814502a907c2befbabb87810c13137de6b8afd
|
|
4
|
+
data.tar.gz: 2e6340ecde7e9c48f56da40be373b84fd4f4bfc5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 504d2cc1fc81af0a6e8bc4bd8d90b48495ade2cde749ba1aaebe10488e78278e5587c396ea516b3d7546cfaac2a2e0aaadf565672e9bd4628807f889c7f7a600
|
|
7
|
+
data.tar.gz: 301e5e4b4c9e648ffc46b2417cd8213df34963e615dce9cd5e98a2a6ae328505c9dfee16ccba8f5982629466138a50f72b5c66771872adecf6c5d10dce60f666
|
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
distribot (0.1.
|
|
4
|
+
distribot (0.1.9)
|
|
5
5
|
activesupport
|
|
6
6
|
bunny
|
|
7
7
|
concurrent-ruby
|
|
8
|
+
logstash-logger
|
|
8
9
|
redis
|
|
9
10
|
semantic
|
|
10
|
-
wrest (~> 2.1.7)
|
|
11
11
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: https://rubygems.org/
|
|
@@ -21,7 +21,6 @@ GEM
|
|
|
21
21
|
addressable (2.4.0)
|
|
22
22
|
amq-protocol (2.0.1)
|
|
23
23
|
ast (2.3.0)
|
|
24
|
-
builder (3.2.2)
|
|
25
24
|
bunny (2.4.0)
|
|
26
25
|
amq-protocol (>= 2.0.1)
|
|
27
26
|
byebug (9.0.5)
|
|
@@ -37,8 +36,11 @@ GEM
|
|
|
37
36
|
hashdiff (0.3.0)
|
|
38
37
|
i18n (0.7.0)
|
|
39
38
|
json (1.8.3)
|
|
39
|
+
logstash-event (1.2.02)
|
|
40
|
+
logstash-logger (0.15.2)
|
|
41
|
+
logstash-event (~> 1.2)
|
|
42
|
+
stud
|
|
40
43
|
minitest (5.9.0)
|
|
41
|
-
multi_json (1.12.1)
|
|
42
44
|
parser (2.3.1.2)
|
|
43
45
|
ast (~> 2.2)
|
|
44
46
|
powerpack (0.1.1)
|
|
@@ -74,6 +76,7 @@ GEM
|
|
|
74
76
|
json (>= 1.8, < 3)
|
|
75
77
|
simplecov-html (~> 0.10.0)
|
|
76
78
|
simplecov-html (0.10.0)
|
|
79
|
+
stud (0.0.22)
|
|
77
80
|
thread_safe (0.3.5)
|
|
78
81
|
tzinfo (1.2.2)
|
|
79
82
|
thread_safe (~> 0.1)
|
|
@@ -82,10 +85,6 @@ GEM
|
|
|
82
85
|
addressable (>= 2.3.6)
|
|
83
86
|
crack (>= 0.3.2)
|
|
84
87
|
hashdiff
|
|
85
|
-
wrest (2.1.7)
|
|
86
|
-
activesupport (~> 4)
|
|
87
|
-
builder (> 2.0)
|
|
88
|
-
multi_json (~> 1.0)
|
|
89
88
|
|
|
90
89
|
PLATFORMS
|
|
91
90
|
ruby
|
data/distribot.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'distribot'
|
|
3
|
-
spec.version = '0.1.
|
|
3
|
+
spec.version = '0.1.9'
|
|
4
4
|
spec.authors = ['John Drago']
|
|
5
5
|
spec.email = 'jdrago.999@gmail.com'
|
|
6
6
|
spec.homepage = 'https://github.com/distribot/distribot'
|
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
|
26
26
|
spec.add_dependency 'activesupport'
|
|
27
27
|
spec.add_dependency 'bunny'
|
|
28
28
|
spec.add_dependency 'redis'
|
|
29
|
-
spec.add_dependency 'wrest', '~> 2.1.7'
|
|
30
29
|
spec.add_dependency 'semantic'
|
|
31
30
|
spec.add_dependency 'concurrent-ruby'
|
|
31
|
+
spec.add_dependency 'logstash-logger'
|
|
32
32
|
end
|
data/lib/distribot/connector.rb
CHANGED
|
@@ -5,7 +5,7 @@ require 'bunny'
|
|
|
5
5
|
require 'byebug'
|
|
6
6
|
require 'active_support/json'
|
|
7
7
|
require 'uri'
|
|
8
|
-
require '
|
|
8
|
+
require 'net/http'
|
|
9
9
|
|
|
10
10
|
module Distribot
|
|
11
11
|
class Connector
|
|
@@ -20,7 +20,7 @@ module Distribot
|
|
|
20
20
|
uri.scheme = 'http'
|
|
21
21
|
uri.port = '15672'.to_i
|
|
22
22
|
uri.path = '/api/queues'
|
|
23
|
-
uri.to_s.
|
|
23
|
+
JSON.parse( Net::HTTP.get_response(URI(uri.to_s)).body ).map{ |x| x['name'] }
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def logger
|
data/lib/distribot.rb
CHANGED
|
@@ -49,7 +49,6 @@ describe Distribot::Connector do
|
|
|
49
49
|
distribot.flow.task.finished
|
|
50
50
|
)
|
|
51
51
|
@queues_json = @queues.to_a.map{|name| {name: name} }.to_json
|
|
52
|
-
Wrest.logger = Logger.new('/dev/null')
|
|
53
52
|
stub_request(:get, "http://localhost:15672/api/queues").
|
|
54
53
|
with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}).
|
|
55
54
|
to_return(:status => 200, :body => @queues_json, :headers => {'Content-Type' => 'application/json'})
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: distribot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Drago
|
|
@@ -179,21 +179,21 @@ dependencies:
|
|
|
179
179
|
- !ruby/object:Gem::Version
|
|
180
180
|
version: '0'
|
|
181
181
|
- !ruby/object:Gem::Dependency
|
|
182
|
-
name:
|
|
182
|
+
name: semantic
|
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
|
184
184
|
requirements:
|
|
185
|
-
- -
|
|
185
|
+
- - '>='
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
|
-
version:
|
|
187
|
+
version: '0'
|
|
188
188
|
type: :runtime
|
|
189
189
|
prerelease: false
|
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
|
191
191
|
requirements:
|
|
192
|
-
- -
|
|
192
|
+
- - '>='
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
|
-
version:
|
|
194
|
+
version: '0'
|
|
195
195
|
- !ruby/object:Gem::Dependency
|
|
196
|
-
name:
|
|
196
|
+
name: concurrent-ruby
|
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
|
198
198
|
requirements:
|
|
199
199
|
- - '>='
|
|
@@ -207,7 +207,7 @@ dependencies:
|
|
|
207
207
|
- !ruby/object:Gem::Version
|
|
208
208
|
version: '0'
|
|
209
209
|
- !ruby/object:Gem::Dependency
|
|
210
|
-
name:
|
|
210
|
+
name: logstash-logger
|
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
|
212
212
|
requirements:
|
|
213
213
|
- - '>='
|