shiny-sdk 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shiny-sdk.rb +3 -3
- data/shiny-sdk.gemspec +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: b07e4ffae3c7771790ed6e89ee7397a558196e08
|
4
|
+
data.tar.gz: 3a568514c8bf86834f0da965d82ede96b0363fc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9894341a1c99428a99133160de8778809b05056d5bf61241b63689d964f143dac897bc837433119c4fb4812bfb5361995697f9f034f8615e1b8ac9a91fe1731
|
7
|
+
data.tar.gz: eb1509fff3848c92314f7c8547fa429c1024b6cbe1da05aebb500bf2da7e7632755de91f4725e0b9d101bb9ba4079d5421e8224c57bf689d0dda7032b64fde07
|
data/lib/shiny-sdk.rb
CHANGED
@@ -37,7 +37,7 @@ class Shiny
|
|
37
37
|
event['hash'] = Digest::MD5.hexdigest(data.to_json)
|
38
38
|
end
|
39
39
|
rescue
|
40
|
-
ShinyError.new('Fail to generate hash.')
|
40
|
+
raise ShinyError.new('Fail to generate hash.')
|
41
41
|
end
|
42
42
|
|
43
43
|
event['data'] = data
|
@@ -50,7 +50,7 @@ class Shiny
|
|
50
50
|
response = RestClient.post(url, payload)
|
51
51
|
return JSON.parser(response.body)
|
52
52
|
rescue => e
|
53
|
-
ShinyError.new('Network error:' + e.to_s)
|
53
|
+
raise ShinyError.new('Network error:' + e.to_s)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
@@ -61,7 +61,7 @@ class Shiny
|
|
61
61
|
response = RestClient.get(url)
|
62
62
|
return JSON.parse(response.body)
|
63
63
|
rescue => e
|
64
|
-
ShinyError.new('Network error:' + e.to_s)
|
64
|
+
raise ShinyError.new('Network error:' + e.to_s)
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
data/shiny-sdk.gemspec
CHANGED