cointools 0.5.0 → 0.5.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: 652a3663b1f2a32c461ddf19bb73f95cdadf155c
4
- data.tar.gz: 9cd0d5c8891c59fcfebd24dfd038da884a8495f4
3
+ metadata.gz: 07c4923fbebff07307e03a347fd0df3fc986b9fb
4
+ data.tar.gz: e886e0e2a7cac42478e3f83d4c84e5cb70b28953
5
5
  SHA512:
6
- metadata.gz: 36720bdfcb1f20d8727684fadd4f61cb28e5cb574eb59cb60db1f2ac8d9017f0b3010db97f3e601d4fd027de0a512f4cca4819125b1dfa3f2066ad717f35c56f
7
- data.tar.gz: af00dbb857cbc28ff07bfc84895e044d0f2cfcebef8b2c9e083ef1d58014567a1c47aa29eb7eef70c2c5d7b1f7f4e5ce5c252b4e4381eab9c4794d29b0d0f420
6
+ metadata.gz: b6124192a609140f41188e6026f4d75a40ac0e643d42bf9aba0643cbf177f20f872c61b9c8e13f9dc17e8811f7a5723ca802372341d65b75b3e33f7dffbe5722
7
+ data.tar.gz: 6548ab95644fe0d8c2418e21d2b1782626dfb0721a44e18d9a908c2670d4cd07f046705df2e4554f0b57917b01738a42ad68c86087420276002aa1e53186b8df
@@ -1,3 +1,7 @@
1
+ #### Version 0.5.1 (19.07.2018)
2
+
3
+ * fixed bug in `CoinMarketCap#get_all_prices` that caused duplicated entries
4
+
1
5
  #### Version 0.5.0 (12.07.2018)
2
6
 
3
7
  * switched to CoinMarketCap API v2, CMC's `get_price` and `get_price_by_symbol` calls now return data like coin name/symbol, rank and market cap
@@ -177,11 +177,10 @@ module CoinTools
177
177
  url.query += "&convert=BTC"
178
178
  end
179
179
 
180
- start = 0
181
180
  coins = []
182
181
 
183
182
  loop do
184
- new_batch = fetch_full_ticker_page(url, convert_to, coins.length, &block)
183
+ new_batch = fetch_full_ticker_page(url, convert_to, coins.length + 1, &block)
185
184
 
186
185
  if new_batch.empty?
187
186
  break
@@ -1,3 +1,3 @@
1
1
  module CoinTools
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cointools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuba Suder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-12 00:00:00.000000000 Z
11
+ date: 2018-07-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: