bitex 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/bitex/order.rb CHANGED
@@ -24,7 +24,7 @@ module Bitex
24
24
  # Find an order in your list of active orders.
25
25
  # Uses {Order.active} under the hood.
26
26
  def self.find(id)
27
- all.select{|o| o.id == id}.first
27
+ active.select{|o| o.id == id}.first
28
28
  end
29
29
 
30
30
  def cancel!
data/lib/bitex/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bitex
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -14,7 +14,7 @@ shared_examples_for 'Order' do |api_path|
14
14
  end
15
15
 
16
16
  it 'gets one' do
17
- stub_private(:get, "/private/orders", 'orders')
17
+ stub_private(:get, "/private/orders/active", 'orders')
18
18
  order = subject.class.find(12345678)
19
19
  order.should be_a subject.class
20
20
  order.id.should == 12345678
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-08 00:00:00.000000000 Z
13
+ date: 2014-07-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport