bitex 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,7 +54,7 @@ module Bitex
54
54
  end
55
55
 
56
56
  def cancel!
57
- path = "/private#{self.class.base_path}/cancel"
57
+ path = "/private#{self.class.base_path}/#{self.id}/cancel"
58
58
  self.class.from_json(Api.private(:post, path), self)
59
59
  end
60
60
 
@@ -1,3 +1,3 @@
1
1
  module Bitex
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -49,7 +49,7 @@ shared_examples_for 'Order' do |api_path|
49
49
  stub_private(:post, "/private/#{api_path}", "#{api_path}_create",
50
50
  {amount: 100.50, price: 1000.00, specie: 1})
51
51
  order = subject.class.create!(:btc, 100.50, 1000.00)
52
- stub_private(:post, "/private/#{api_path}/cancel", "#{api_path}_cancel")
52
+ stub_private(:post, "/private/#{api_path}/#{order.id}/cancel", "#{api_path}_cancel")
53
53
  order.cancel!
54
54
  order.status.should == :cancelling
55
55
  end
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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: