okcoin 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 52ceb78aea2b8a2c40806cd6c1c71306d2a060c4
4
- data.tar.gz: 01faf344026e9f3a924cf1940082fe2a9860be3f
3
+ metadata.gz: 953a20a61a4f32540729f3f0be29ebfbb660e681
4
+ data.tar.gz: ee210f2e9466669b9225972d8ef2f5f0411e51d8
5
5
  SHA512:
6
- metadata.gz: 5ca6eac2e7b68629fc60b55495d004402f984549a0156f1b4b0aca9cca42757d7bcbba85c199ae13894a6eb00c8f1f06f4b8219028a0e04d4088bc5ca1c7a4a1
7
- data.tar.gz: 4e9f5c3e55535643b2087cd7eec006b6bce0e366732310cd5b7f3247e37bfe340bc1ed6f36af267f24cd3467f2a05e421bc7bc7efe018937c054becbfce26003
6
+ metadata.gz: de1b9025d56064f8f7f5b1a52664584c81d890676b2087362ed83101f63055f2d1099db23728ffe43fb121263664b740a5df4060e5f718315fa42c549190053f
7
+ data.tar.gz: 601c0b4493885a17ce1b69013653023745358b509c9a712cf9fba70cdc27192bbabe098b81612ccd52fa5990429915561484fbb6058f86fc2053690082df6081
data/README.md CHANGED
@@ -35,17 +35,21 @@ Okcoin::logger.level = Logger::DEBUG
35
35
  # url可选,默认就是https://www.okcoin.cn/api/,后面两个必选
36
36
  client = Okcoin::Client.new url: 'https://www.okcoin.cn/api/', api_key: 'YOUR_OKCOIN_APIKEY', secret_key: 'YOUR_OKCOIN_SECRET'
37
37
 
38
- client.ticker(symbol: "btc_cny")
39
- client.trades(symbol: 'btc_cny', since: nil)
38
+ result = client.ticker(symbol: "btc_cny")
39
+ result = client.trades(symbol: 'btc_cny', since: nil)
40
40
  ```
41
41
 
42
- 结果以ruby数据格式表达。
42
+ 结果以ruby数据格式返回。
43
43
 
44
44
  更多接口详情,请查看[okcoin官方文档](https://www.okcoin.cn/rest_getStarted.html)。
45
45
 
46
46
  ## Contributing
47
47
 
48
- 如果有问题给我发邮件:wuminzhe@126.com,也是我的支付宝账号😆
48
+ 如果有问题给我发邮件:wuminzhe@126.com
49
+
50
+ 如果觉得有用,支持点币😆:**19n1AiDnzbnuEJcnwVmuXSUP1dpodBMdHF**
51
+
52
+
49
53
 
50
54
  Bug reports and pull requests are welcome on GitHub at https://github.com/wuminzhe/okcoin. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
51
55
 
@@ -1,3 +1,3 @@
1
1
  module Okcoin
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/okcoin.rb CHANGED
@@ -9,6 +9,12 @@ require "okcoin/api_define_tool"
9
9
  require 'okcoin/base'
10
10
  require "okcoin/client"
11
11
 
12
+ class Object
13
+ def blank?
14
+ respond_to?(:empty?) ? !!empty? : !self
15
+ end
16
+ end
17
+
12
18
  module Okcoin
13
19
  def self.logger
14
20
  if $logger.nil?
@@ -17,10 +23,4 @@ module Okcoin
17
23
  end
18
24
  return $logger
19
25
  end
20
-
21
- class Object
22
- def blank?
23
- respond_to?(:empty?) ? !!empty? : !self
24
- end
25
- end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okcoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wu Minzhe