torckapi 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/torckapi/errors.rb +1 -1
- data/lib/torckapi/response/announce.rb +1 -1
- data/lib/torckapi/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: e495bbcc0cb11ec0068098e7c26d5df80e6b0993
|
4
|
+
data.tar.gz: 44342f08c1d9e6640a9e7a8c06c6e5397646b031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57f087caa172b88f83df1d6511dd124b2767749357ebdda87b59326edc86eda2f4b305977bcedb8ebd54a8a866b1eb4d05d41daaf37ce359355b649ee3c8fa5a
|
7
|
+
data.tar.gz: dfc8f78453037d1d758985de50f618813eaffeb19b982a6b873133c034b79601e4c91639ac8899ef5ed6940a68bf41eaaef58aeded3f2c4e7e2fa7a8f7a416e1
|
data/lib/torckapi/errors.rb
CHANGED
@@ -29,7 +29,7 @@ module Torckapi
|
|
29
29
|
# @return [Torckapi::Response::Announce] response
|
30
30
|
def self.from_http info_hash, data, compact=true
|
31
31
|
bdecoded_data = BEncode.load(data)
|
32
|
-
raise Torckapi::MalformedResponseError unless bdecoded_data.is_a? Hash and bdecoded_data.has_key? 'peers'
|
32
|
+
raise Torckapi::Tracker::MalformedResponseError unless bdecoded_data.is_a? Hash and bdecoded_data.has_key? 'peers'
|
33
33
|
new info_hash, *bdecoded_data.values_at("incomplete", "complete"), peers_from_compact(bdecoded_data['peers'])
|
34
34
|
end
|
35
35
|
|
data/lib/torckapi/version.rb
CHANGED