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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nl-gatecoin.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f398194c4b5f7bc8b2a9a4fc462b07517b6d2c1
4
- data.tar.gz: 40cb092e39b961b6a6761ea31756ec7eacfe530d
3
+ metadata.gz: d81930e3942d19358d7feab44231cc1a043b0954
4
+ data.tar.gz: 9eb83c09ea4981e10eda025b61ead817dbe0e953
5
5
  SHA512:
6
- metadata.gz: b0910064bce56847200d2a6f8be766e8f13c7fe61a2d89879bdd617835dc21846f6a24cab3d5b53da1564601368181273361894331b0fce6f3e332b8f5b598dc
7
- data.tar.gz: 8a08d047bf6f05caba9616e8d0375eeee0ab444dacd7b3a418e271c8308a343c03075d555bd36fba47534d0152527d0d31babd7a64ec09cb5162e23a1062f63d
6
+ metadata.gz: b5ac00c684f852469dbb70ff1a7cce5febc74e93c46debd75110f47a2cfff473e6b42c52441381fe809f334a2f5d87d29cb24ac1f02bb089ffcca273e09d4760
7
+ data.tar.gz: 3be79db35f8d7dfb73f79ae15f86921ac9c8637e26104eb1c21a85400f36ccccb71fd884597b051ebd0c06105ec7adb2d7d04018b6ffb9a7d08c8b55e45e83a0
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nl-gatecoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barry Teoh