waithook 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/waithook/version.rb +1 -1
- data/lib/waithook.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d214777edd71e383a966f35752f38f26346242b2
|
4
|
+
data.tar.gz: 1ed8fefa24cab78bd6daefe80360c891d256b146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97e70f11d204e89e9dcf173f7c6c212c52e1dfd7486ec1b0deac9e04c5067692855cb9e2d1f1cf01024e6778bef01a746672653bee7c8777e96d2ac73a79ad7d
|
7
|
+
data.tar.gz: b65223696ed2b22744d51093a3bcee3f8419b64387b1ba9dc8b5501a8c7f639bfb007b7ff8e8a50403d0d489a92e7c2563bb70e540586a99c4ea6fe840210142
|
data/lib/waithook/version.rb
CHANGED
data/lib/waithook.rb
CHANGED
@@ -131,7 +131,7 @@ class Waithook
|
|
131
131
|
start_time = Time.new.to_f
|
132
132
|
Timeout.timeout(timeout) do
|
133
133
|
while true
|
134
|
-
|
134
|
+
_, data = @client.wait_message
|
135
135
|
webhook = Webhook.new(data)
|
136
136
|
if @filter && @filter.call(webhook) || !@filter
|
137
137
|
@messages << webhook
|
@@ -202,7 +202,6 @@ class Waithook
|
|
202
202
|
when "DELETE" then Net::HTTP::Delete
|
203
203
|
when "MOVE" then Net::HTTP::Move
|
204
204
|
when "COPY" then Net::HTTP::Copy
|
205
|
-
when "HEAD" then Net::HTTP::Head
|
206
205
|
else Net::HTTP::Post
|
207
206
|
end
|
208
207
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waithook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Evstigneev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: websocket
|