flowhook 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flowhook/streaming.rb +1 -2
- data/lib/flowhook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 451f817e1bfaf2e94b4e387fa47465451c2e3c53
|
4
|
+
data.tar.gz: e3a996013256a084343ceef73126bd8ea66f58c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94eb9f50e20b3359c0f82e09f5df5b45ad835f93dc218dd8baa0e7ed7404d5787ed7e52e8092e0514c776904fbba2dd36d8c35b16641a33644d8f47d2d9c0590
|
7
|
+
data.tar.gz: 329ca4f314c36192275e603fc810f63bb61bd2745785debcf9801a911e5be9e392e6feefa3fd5befaa377e4f3e84e7c999d8017a547a8570949d105839207c62
|
data/lib/flowhook/streaming.rb
CHANGED
@@ -44,7 +44,6 @@ module Flowhook
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def streaming
|
47
|
-
STDOUT.puts uri
|
48
47
|
Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
|
49
48
|
http.request request do |response|
|
50
49
|
response.read_body do |chunk|
|
@@ -62,7 +61,7 @@ module Flowhook
|
|
62
61
|
|
63
62
|
def uri
|
64
63
|
@uri ||= URI("#{STREAMING_URL}?filter=#{@flows.join(',')}").tap do |uri|
|
65
|
-
uri.query += 'active-true' # TODO: Add options
|
64
|
+
uri.query += 'active-true' # TODO: Add options can change state
|
66
65
|
uri.query += '&user=1' if @private
|
67
66
|
end
|
68
67
|
end
|
data/lib/flowhook/version.rb
CHANGED