waves_ruby_client 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 043be5fb5fb27c392d899c17530eef4f49b03b02a9c28591102fe2a238b7cfa3
4
- data.tar.gz: 68db9657a72dd389f6fb7fee1727a00b1b083b17e48140cedb11b47ae4058f0e
3
+ metadata.gz: 67af4f7f55b8b8231965b70d26984db6fa3ff2002886a6b644e3bd9e062c2e00
4
+ data.tar.gz: 82b5235430945f1733adacc30adfd45f1f8c577605dbe25bd07d75f22ed571d2
5
5
  SHA512:
6
- metadata.gz: c849dda39cfa8e697eecc993197d5022461db57afbc40991562010801641f7583209d8bcc7855d675756ce6d58cbfff42672d672840e0540d7a04f9c97b5bf53
7
- data.tar.gz: 9c0dd6ddf9e7790eb4bfd0914a35dd17fcf5adf911d10db109d7fef77b2a4f07a3aafdc6432dbb200e644b739002a913b95dc2bee18d5c30904d3eabb5867cda
6
+ metadata.gz: 5b30d7ed32ac36f6d318166f5672dbb7a7b7b272d14d41697295702e11fcfe665d7fceabb550318a77279055108631b02b5fbd3567b1200f0e7e84c96cb0d3b9
7
+ data.tar.gz: 7ec167c3945bc63647543f29d7909bb9a4d2879ae59fce192cd7445899350724a23424353f598c0d7df3ca4ae819f32e7b040b69797f5f729b56837c5a833a9c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- waves_ruby_client (0.1.2)
4
+ waves_ruby_client (0.1.3)
5
5
  activemodel
6
6
  activesupport
7
7
  httparty
@@ -50,7 +50,7 @@ GEM
50
50
  mime-types (3.3)
51
51
  mime-types-data (~> 3.2015)
52
52
  mime-types-data (3.2019.1009)
53
- minitest (5.12.2)
53
+ minitest (5.13.0)
54
54
  multi_xml (0.6.0)
55
55
  nenv (0.3.0)
56
56
  notiffany (0.1.1)
@@ -82,7 +82,7 @@ GEM
82
82
  thread_safe (0.3.6)
83
83
  tzinfo (1.2.5)
84
84
  thread_safe (~> 0.1)
85
- zeitwerk (2.2.0)
85
+ zeitwerk (2.2.1)
86
86
 
87
87
  PLATFORMS
88
88
  ruby
@@ -9,11 +9,12 @@ module WavesRubyClient
9
9
  def self.trade_history(count = 10)
10
10
  WavesRubyClient::Api.instance.call_data_feed("/transactions/exchange?amountAsset=WAVES&limit=#{count}")['data'].map do |entry|
11
11
  order = entry['data']
12
- order['price'] = order['price'].to_f
13
- order['timestamp'] = Time.parse(order['timestamp'])
14
- order['amount'] = order['amount'].to_f
15
- %w[height version proofs fee sender].each{ |v| order.delete(v) }
16
- WavesRubyClient::Order.new(order)
12
+ WavesRubyClient::Order.new(
13
+ id: order['id'],
14
+ price: order['price'].to_f,
15
+ timestamp: Time.parse(order['timestamp']),
16
+ amount: order['amount'].to_f
17
+ )
17
18
  end
18
19
  end
19
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WavesRubyClient
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waves_ruby_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Großelfinger