torckapi 0.0.15 → 0.0.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dba9414160066c19b9561d9b2e9b2740164b4ccd
4
- data.tar.gz: 5b9a310aa5397565fa4fcf88024f218d7b83aebc
3
+ metadata.gz: e495bbcc0cb11ec0068098e7c26d5df80e6b0993
4
+ data.tar.gz: 44342f08c1d9e6640a9e7a8c06c6e5397646b031
5
5
  SHA512:
6
- metadata.gz: 8dc4126661eca699ff3f6d1a8aa54eb6bade43abd7d1513a2811ee5d3bd11f5655fb736246e67b3791d90a513bdd282686bef951cf505a97243a6ad3c207224a
7
- data.tar.gz: 92905271cfba39a8e38927f7eceb9ae7c42d48018c044e61ea6fde597dbf0360b8bcce1f7357aa5cecac6c1522c1be4cdae9011b185469a1cd70fad8544ab5dd
6
+ metadata.gz: 57f087caa172b88f83df1d6511dd124b2767749357ebdda87b59326edc86eda2f4b305977bcedb8ebd54a8a866b1eb4d05d41daaf37ce359355b649ee3c8fa5a
7
+ data.tar.gz: dfc8f78453037d1d758985de50f618813eaffeb19b982a6b873133c034b79601e4c91639ac8899ef5ed6940a68bf41eaaef58aeded3f2c4e7e2fa7a8f7a416e1
@@ -12,4 +12,4 @@ module Torckapi
12
12
  class MalformedResponseError < CommunicationError; end
13
13
  class TransactionIdMismatchError < CommunicationError; end
14
14
  end
15
- end
15
+ end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Torckapi
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torckapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Krupenik