cryptoexchange 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b39973d1a3262f9d928115c7a0fd83ec4a43819
4
- data.tar.gz: e179c3925ed1e8011e6acb77d37315673b8ad07d
3
+ metadata.gz: 8aeb45387ecbe00cee962e726a1e3b880894a023
4
+ data.tar.gz: 8699002f3f17172539da2cdcd7475b4c205971b4
5
5
  SHA512:
6
- metadata.gz: c220786553be7e58781c626e04e478321272b888808e61142cbf9b3566d2ab752dbed4ba2ddfc77adc08f8b501ca28ee19e5d48deb90d2d18b1d35990d5f81ca
7
- data.tar.gz: 28b227431c6b39905dedceb6701780b8ff1f9f97bb3b8a5ad04f7e13033438de06c2dd072ff944372b4220aa71811d713340ea95084b83a3beb08247b087a09d
6
+ metadata.gz: 83c430fda30e78c740b03277f2edfd75591ba6aa8d281cc380800775b0f0b627b61d71d238e12256bd6de096ccca2ece2ce357f65097e7604f35ae241c16dd9d
7
+ data.tar.gz: 7849a2a497e02ff7849f8f75161df34b40ddc5263092fbf3b7d0e37010d82e28ceb42a87b2c814a80f4e7ba8d693d73c3e57394071018342ec97f2af56a2ca81
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "vcr", "~> 3.0.3"
30
30
  spec.add_development_dependency "webmock"
31
31
 
32
- spec.add_dependency "http", '~> 2.1.0'
32
+ spec.add_dependency "http", '~> 1.0.0'
33
33
  spec.add_dependency "lru_redux"
34
34
  end
@@ -23,7 +23,8 @@ module Cryptoexchange
23
23
  else
24
24
  tickers = market.fetch
25
25
  tickers.find do |t|
26
- t.base == market_pair.base && t.target == market_pair.target
26
+ t.base.casecmp(market_pair.base) == 0 &&
27
+ t.target.casecmp(market_pair.target) == 0
27
28
  end
28
29
  end
29
30
  rescue HTTP::ConnectionError, HTTP::TimeoutError, JSON::ParserError
@@ -21,10 +21,10 @@ module Cryptoexchange::Exchanges
21
21
  tickers = []
22
22
 
23
23
  output.keys.each do |pair|
24
- if pair.include?('btc')
24
+ if pair.include?('btc') || pair.include?('eth')
25
25
  ticker_json = output[pair]
26
26
  ticker = Cryptoexchange::Models::Ticker.new
27
- ticker.base = 'btc'
27
+ ticker.base = pair[0..2]
28
28
  ticker.target = pair[3..-1]
29
29
  ticker.market = Lakebtc::Market::NAME
30
30
 
@@ -1,3 +1,3 @@
1
1
  module Cryptoexchange
2
- VERSION = "0.13.0"
2
+ VERSION = "0.14.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptoexchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TM Lee
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-07 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.1.0
117
+ version: 1.0.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.1.0
124
+ version: 1.0.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: lru_redux
127
127
  requirement: !ruby/object:Gem::Requirement