cexio 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -1
- data/cexio.gemspec +1 -0
- data/lib/cexio/version.rb +1 -1
- data/lib/cexio.rb +8 -0
- metadata +18 -2
data/Gemfile
CHANGED
data/cexio.gemspec
CHANGED
data/lib/cexio/version.rb
CHANGED
data/lib/cexio.rb
CHANGED
@@ -57,6 +57,14 @@ class API
|
|
57
57
|
self.api_call('place_order', {:type => ptype, :amount => amount.to_s, :price => price.to_s}, true, couple)
|
58
58
|
end
|
59
59
|
|
60
|
+
def hashrate
|
61
|
+
self.api_call('ghash.io/hashrate', {}, true)
|
62
|
+
end
|
63
|
+
|
64
|
+
def workers_hashrate
|
65
|
+
self.api_call('ghash.io/workers', {}, true)
|
66
|
+
end
|
67
|
+
|
60
68
|
|
61
69
|
|
62
70
|
def nonce
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cexio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -123,6 +123,22 @@ dependencies:
|
|
123
123
|
- - ! '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: addressable
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :runtime
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
126
142
|
description: Gem for acsess to api cex.io
|
127
143
|
email:
|
128
144
|
- t0pep0.gentoo@gmail.com
|