nl-gatecoin 0.0.2 → 0.0.3
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 +4 -4
- data/lib/nl-gatecoin.rb +4 -0
- 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: d81930e3942d19358d7feab44231cc1a043b0954
|
|
4
|
+
data.tar.gz: 9eb83c09ea4981e10eda025b61ead817dbe0e953
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5ac00c684f852469dbb70ff1a7cce5febc74e93c46debd75110f47a2cfff473e6b42c52441381fe809f334a2f5d87d29cb24ac1f02bb089ffcca273e09d4760
|
|
7
|
+
data.tar.gz: 3be79db35f8d7dfb73f79ae15f86921ac9c8637e26104eb1c21a85400f36ccccb71fd884597b051ebd0c06105ec7adb2d7d04018b6ffb9a7d08c8b55e45e83a0
|
data/lib/nl-gatecoin.rb
CHANGED
|
@@ -24,6 +24,8 @@ class Gatecoin
|
|
|
24
24
|
content_type = ''
|
|
25
25
|
elsif method_type.downcase == 'post'
|
|
26
26
|
content_type = 'multipart/form-data'
|
|
27
|
+
elsif method_type.downcase == 'pubget'
|
|
28
|
+
content_type = ''
|
|
27
29
|
else
|
|
28
30
|
# No content type
|
|
29
31
|
content_type = ''
|
|
@@ -51,6 +53,8 @@ class Gatecoin
|
|
|
51
53
|
self.class.get('/' + convert_undercores_to_slashes, :headers => {'Accept' => 'application/json', 'Content-Type' => 'application/json', 'API_PUBLIC_KEY' => @apikey , 'API_REQUEST_SIGNATURE' => ssl_sign_encoded, 'API_REQUEST_DATE' => nonce}).to_json
|
|
52
54
|
elsif method_type.downcase == "post"
|
|
53
55
|
self.class.post('/' + convert_undercores_to_slashes, :body => @parameters.to_s, :headers => {'Accept' => 'application/json', 'Content-Type' => content_type, 'API_PUBLIC_KEY' => @apikey , 'API_REQUEST_SIGNATURE' => ssl_sign_encoded, 'API_REQUEST_DATE' => nonce}).to_json
|
|
56
|
+
elsif method_type.downcase == "pubget"
|
|
57
|
+
self.class.get('/Public/' + convert_undercores_to_slashes, :headers => {'Accept' => 'application/json', 'Content-Type' => 'application/json'}).to_json
|
|
54
58
|
else
|
|
55
59
|
"Unsupported method"
|
|
56
60
|
end
|