ftx-api 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 720fabc9ebb722b1831297bd96d66576c65e6b5b8dcd94214e23ba24017e4d02
4
- data.tar.gz: 8fe4038ce8e62028216d0b594e5a45e26684642a33682bec42358589ad31b706
3
+ metadata.gz: 798edaba47ec4e363488fe462aafc23a07600270944492e0df2de61bb3a0df39
4
+ data.tar.gz: 76bf0b23ced4ce5dd444d83dba36a8703481b859f16f05501c52750ec9928522
5
5
  SHA512:
6
- metadata.gz: a538f6f23ca72be51f7a0c833ba757f939c66d32089badcc69f4c9e2fbd03f4725e799a7e07b0419c1af13c2c1d7d296024f349b59d2ea78647463dfe199c406
7
- data.tar.gz: 9ad931c775665f6084ed7f37fc2377fe49d38edd17f5872142d1b2a95b8e7a7b3f57212c78866c5563e496260814c3a0fc039674d6eb51b6b04c7ab30b55b3ad
6
+ metadata.gz: f7ca004638de0447346204c8be75d8368c1d7208c70bcdaf02b35127e7d863c477abb03deb2a1b04c853ac28c7d229ba6a681a66afd9b978364134525379d254
7
+ data.tar.gz: 94fa7cc56036cd1911d2a7faa93043359749e46c6be75975128dbc3342fcce4225babebcf98d5ba3260361bd499f2dd51e9c17c780edfe850c35ae74e6f000dd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ftx-api (0.2.3)
4
+ ftx-api (0.2.4)
5
5
  httparty (~> 0.19)
6
6
  openssl (~> 2.2)
7
7
 
data/README.md CHANGED
@@ -156,7 +156,11 @@ Note: the create order method is not included as a test, because I have not been
156
156
 
157
157
  ## Development
158
158
 
159
- After checking out the repo, run `bin/setup` to install dependencies. You'll need to add environment variables ENV['FTX_KEY'] and ENV['FTX_SECRET']. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
159
+ After checking out the repo, run `bin/setup` to install dependencies.
160
+
161
+ You'll then need to add environment variables `ENV['FTX_KEY']` and `ENV['FTX_SECRET']`. API keys can be created in your [FTX settings page](https://ftx.com/profile).
162
+
163
+ Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
160
164
 
161
165
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
162
166
 
data/lib/ext/array.rb CHANGED
@@ -4,7 +4,7 @@ class Array
4
4
  map(&:symbolize_keys)
5
5
  end
6
6
 
7
- def compact_blank
7
+ def compact_empty
8
8
  delete_if {|i| i.respond_to?(:empty?) ? !!i.empty? : !i }
9
9
  end
10
10
 
@@ -23,7 +23,7 @@ class FTX::API::Private < FTX::API::Base
23
23
  end
24
24
 
25
25
  def signature_payload(method, path, query)
26
- payload = [ts, method.to_s.upcase, "/api", path].compact_blank
26
+ payload = [ts, method.to_s.upcase, "/api", path].compact_empty
27
27
 
28
28
  if method==:post
29
29
  payload.push(query.to_json)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module FTX
4
4
  module API
5
- VERSION = "0.2.3"
5
+ VERSION = "0.2.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftx-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - benrs44