trade-o-matic 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b2ab1e0af6b6c8685d51d92657660229ac270e4
4
- data.tar.gz: f03f687cbae9e0d8436d5b879166ae186a57bd16
3
+ metadata.gz: 74776e7f65da3df4d74c5ab9dd6e644bd3921f55
4
+ data.tar.gz: 8800ca9874d710757acb209fa72f891b5dd93435
5
5
  SHA512:
6
- metadata.gz: c524eb2a14bf4d3258e98356ed20493b2ce7943488833137c53fc338ba9a4181c082a4d8a63e0eb08d46cc0a4d0f8e3d400d6ce38c1909cba93f493d75d1db92
7
- data.tar.gz: 3e5696eafbdcf0e0022166540eace85363ae4f88fb28704d14ea27cf1c1596c5868e8f97c5a2d2ee8756f54f993f2f95b72b0ced2bbdf1da9bb4f64da90adac6
6
+ metadata.gz: 756a98df8523873f62a16a4d777e82d8588123ab912415c3dc88a908e3b879927936032eee1df52721c5f5fac486668f91811fea8c32a98e36755aae39c1b7e9
7
+ data.tar.gz: 1078355996be86bc4a7432afd9b02d820058cca913a41bf0b768a32131d91d5453c4460e026365f7558fddaa168e0df258bc96b01f12d904d4ae8647bd5564b1
@@ -38,7 +38,7 @@ module Trader
38
38
  attr_mapped(:price) { |r| r['limit'] }
39
39
  attr_mapped(:volume) { |r| r['original_amount'].to_f }
40
40
  attr_mapped(:executed_volume) { |r| r['total_exchanged'].to_f }
41
- attr_mapped(:instruction) { |r| TYPE_MAP[r['type']] }
41
+ attr_mapped(:instruction) { |r| TYPE_MAP[r['type'].downcase] }
42
42
  attr_mapped(:status) { |r| STATUS_MAP[r['state']] }
43
43
  attr_mapped(:limit?) { |r| r['price_type'] == 'limit' }
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module Trader
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trade-o-matic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client