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 CHANGED
@@ -1,5 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'addressable'
4
3
  # Specify your gem's dependencies in cex.io.gemspec
5
4
  gemspec
data/cexio.gemspec CHANGED
@@ -26,5 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "rspec-expectations"
27
27
  spec.add_development_dependency "rr"
28
28
 
29
+ spec.add_dependency "addressable"
29
30
 
30
31
  end
data/lib/cexio/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cexio
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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: 2013-12-24 00:00:00.000000000 Z
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