blockspring 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blockspring.rb +1 -8
- data/lib/blockspring/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: 1bc7d3b1074e923221774e13ffaefb946736ed1c
|
4
|
+
data.tar.gz: 88c1eda5789095633670df1dd90b41dea1bfb203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53b71fec1279a5e9e1de4d5a9d3ba51c5d9283fce9e96053e4c9702b27857a2e7e49f1636fd19366718717727e3c8b639333e725c8131bea16ef2b75ca9b7755
|
7
|
+
data.tar.gz: 5dc0be7d7a1e038f4be8adf085936c1cebfb4e7612689f56fb4b80c86d621db53d7a62d3694e9916d6e4c958e5d1a622dd56d8ade697351203af0b47e24890ef
|
data/lib/blockspring.rb
CHANGED
@@ -16,14 +16,7 @@ module Blockspring
|
|
16
16
|
|
17
17
|
response = RestClient.post "https://sender.blockspring.com/api_v2/blocks/#{block}?api_key=#{api_key}", data.to_json, :content_type => :json, :accept => :json
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
begin
|
22
|
-
body["results"] = JSON.parse(body["results"])
|
23
|
-
return body
|
24
|
-
rescue
|
25
|
-
return body
|
26
|
-
end
|
19
|
+
return response.body
|
27
20
|
end
|
28
21
|
|
29
22
|
def self.define(block)
|
data/lib/blockspring/version.rb
CHANGED