cgminer-api 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cgminer/api/client.rb +1 -3
- data/lib/cgminer/api/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: bf89d2d02fd7edcc6c719a5f2d81b98d72a50567
|
4
|
+
data.tar.gz: 231144fb737097f9e122287221e3381e3c3d1456
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36a32a7bad3f77676dc4a010c33ce81afe08e93eba1e8b23ff2346d09e44a1db79ee7c0bf6d3d4b8030b754b4789a3741c1a2094e73aecae8ccfb4f5757ac2c2
|
7
|
+
data.tar.gz: 25884ec22f9547ea534d32c7dc29c1c47c662eae083e464ca05c0ea5dda9f8a712df08026532c360942b0eebd34b218d6b4a58770af56f8fc94261ee3fe183e7
|
data/lib/cgminer/api/client.rb
CHANGED
@@ -36,9 +36,7 @@ module CGMiner
|
|
36
36
|
reply = json[symbol.to_s.upcase]
|
37
37
|
response = CGMiner::API::Response.new(status, reply)
|
38
38
|
rescue JSON::ParserError => e
|
39
|
-
|
40
|
-
puts "Results: #{results}"
|
41
|
-
{}
|
39
|
+
raise RuntimeError, "Failed parsing response: #{e}"
|
42
40
|
end
|
43
41
|
end
|
44
42
|
|
data/lib/cgminer/api/version.rb
CHANGED