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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98cda8a2a29ac5cdae5becc9bf532657a8ae85c8
4
- data.tar.gz: 4173387775b4282150efa00ce621601753d85986
3
+ metadata.gz: d214777edd71e383a966f35752f38f26346242b2
4
+ data.tar.gz: 1ed8fefa24cab78bd6daefe80360c891d256b146
5
5
  SHA512:
6
- metadata.gz: 57f83c9be846d7e4f35bce1fa9fbe2987dde37ed96d49ee8ac714176f27ad864d59ca390c98e0609623f5de036a40e2c3791b0a9c1da4ff63708857a55cec475
7
- data.tar.gz: 1affe0e3ac3ca667a6dea0dd945a4b346ba909b3c713b22b8e9260fc71f926a76bc7f3830b59eb928d6d063a72bc04bf5e9ddf7f701b857c2013aa6ee8af48e5
6
+ metadata.gz: 97e70f11d204e89e9dcf173f7c6c212c52e1dfd7486ec1b0deac9e04c5067692855cb9e2d1f1cf01024e6778bef01a746672653bee7c8777e96d2ac73a79ad7d
7
+ data.tar.gz: b65223696ed2b22744d51093a3bcee3f8419b64387b1ba9dc8b5501a8c7f639bfb007b7ff8e8a50403d0d489a92e7c2563bb70e540586a99c4ea6fe840210142
@@ -1,3 +1,3 @@
1
1
  class Waithook
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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
- type, data = @client.wait_message
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket