coss_bot 0.1.6 → 0.1.7

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: 78ed873244444dacc29a5bd1ae20dc4cd099466fc15e438fcad0f087d77c2ac7
4
- data.tar.gz: 50a44748a875782eacda1a06c822d194aef2699875b54c7ca37d004a07ba60a2
3
+ metadata.gz: c96eabe1a9e64f316795eacdb3f7ef85e6c6cf8205f84d526f1a189c5beab5fd
4
+ data.tar.gz: 6583536c1ce262723c7c6fc599e158103474cfd1b5d18e908b8a4e6272e7c75d
5
5
  SHA512:
6
- metadata.gz: c21f1963bca992de9878e7596064db07612b4a86bd1b481a5f2754b05818bb1aaa2de1cfda2841188a355416752f6f35d95b977452ab985fb5c44850182b160f
7
- data.tar.gz: 4e793b3ae7864c402c0f505521033dce19d1822ee4bee1f5e403ed8ef9df43d198b65f189de1c1c26c467ac1e8180880a4a2c67296e89be590cec99fc1c0b2fc
6
+ metadata.gz: 5df07f0bf8a54daf611010fa3007ba146658a01afbe950ee9fa82bd995b4cebed77549d0d1565458809e92524722cd70f092413cf2494ad55c349200f57195ab
7
+ data.tar.gz: 0e430f64b6c9aec7fdcf6e47b7432cf8c5fe3e0db6bf9c0ea4620d58a5bd97f934194b2e60f08470046d4609ae6c8915caad076b9883cd1a4162c1cba0f3e47e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coss_bot (0.1.6)
4
+ coss_bot (0.1.7)
5
5
  coss_api_ruby_wrapper (= 0.1.2)
6
6
 
7
7
  GEM
@@ -7,7 +7,7 @@ module CossBot
7
7
  def tick
8
8
  logger.info('=== Start of trading cycle ===')
9
9
  balances = exchange.account_balances
10
- if balances[:status] && balances[:status].to_s != '200'
10
+ if balances.is_a?(Hash) && balances[:status] && balances[:status].to_s != '200'
11
11
  yield(nil, nil, balances)
12
12
  return
13
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CossBot
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coss_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coss Community