radiator 0.2.0c → 0.2.1a

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: 987209712fe3e3e9d3534dbe439aca95e94f602c
4
- data.tar.gz: 478ff81365413ae290bdfa33d70e19dac47bc8ae
3
+ metadata.gz: a16d92d977af25c419fe19d3c6aeaa1e37d2e7ed
4
+ data.tar.gz: 05dcd811b33ff75bd35a5042da1d716690ed7213
5
5
  SHA512:
6
- metadata.gz: 25d520827e4e2bfcdc782d516f3aa20da70cf00f5b0179782ca6911938f9f6a9a65bcdd6b63086c39882d11a3a4268480e004b10e6b4a88399ef9d9f2d703fc6
7
- data.tar.gz: f9bf5f4988675b181d0e39339eeb36e9f29e8a7044f7b92ee9b24ff7f776ec621f8e08a9d2c25602b6be4b0ff4b8d03948f754064cafedd6cfd4d95cbf2a398d
6
+ metadata.gz: 160bff8c769bd29781e4c6a86fc3438556e41d3994a653f95b344f926df6735e24e754192e08c07000cae5a91b062101446ef706570293ab46aaa5a7a28ad9a7
7
+ data.tar.gz: fdfb85e716db3afbea0875ce19494b124f84a25e925ecbf05bb2e4f221035498928a092ca7ebd2ce64e1be40e11ff97f944b435b8a3fb2dc092ecd579847502f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radiator (0.2.0c)
4
+ radiator (0.2.1a)
5
5
  bitcoin-ruby (= 0.0.10)
6
6
  ffi (= 1.9.17)
7
7
  hashie (~> 3.5, >= 3.5.5)
data/README.md CHANGED
@@ -2,14 +2,14 @@
2
2
  [![Code Climate](https://codeclimate.com/github/inertia186/radiator/badges/gpa.svg)](https://codeclimate.com/github/inertia186/radiator)
3
3
  [![Test Coverage](https://codeclimate.com/github/inertia186/radiator/badges/coverage.svg)](https://codeclimate.com/github/inertia186/radiator)
4
4
 
5
- radiator
5
+ [radiator](https://github.com/inertia186/radiator)
6
6
  ========
7
7
 
8
8
  #### STEEM Ruby API Client
9
9
 
10
10
  Radiator is an API Client for interaction with the STEEM network using Ruby.
11
11
 
12
- #### Fixes in v0.2.0a
12
+ #### Fixes in v0.2.0
13
13
 
14
14
  * Updated to support all new methods in HF18.
15
15
  * Improved streaming reliability: added max blocks per node (default 100).
data/lib/radiator/api.rb CHANGED
@@ -57,9 +57,9 @@ module Radiator
57
57
  # @return [Hash]
58
58
  def find_block(block_number, &block)
59
59
  if !!block
60
- yield get_blocks(block_number).result
60
+ yield get_blocks(block_number)
61
61
  else
62
- get_blocks(block_number).result
62
+ get_blocks(block_number)
63
63
  end
64
64
  end
65
65
 
@@ -484,5 +484,9 @@
484
484
  "api": "market_history_api",
485
485
  "method": "get_market_history_buckets",
486
486
  "params": []
487
+ },
488
+ {
489
+ "api": "database_api",
490
+ "method": "get_reward_fund"
487
491
  }
488
492
  ]
@@ -70,7 +70,7 @@ module Radiator
70
70
  :hardfork,
71
71
  :comment_payout_update,
72
72
  :return_vesting_delegation,
73
- :comment_benefactor_reward_operation
73
+ :comment_benefactor_reward
74
74
  ]
75
75
 
76
76
  def id(op)
@@ -98,6 +98,13 @@ module Radiator
98
98
  # time + EXPIRE_IN_SECS.
99
99
  @expiration = Time.parse(@properties.time + 'Z') + EXPIRE_IN_SECS
100
100
 
101
+ @operations = @operations.map do |op|
102
+ case op
103
+ when Operation then op
104
+ else; Operation.new(op)
105
+ end
106
+ end
107
+
101
108
  self
102
109
  end
103
110
 
@@ -1,3 +1,3 @@
1
1
  module Radiator
2
- VERSION = '0.2.0c'
2
+ VERSION = '0.2.1a'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0c
4
+ version: 0.2.1a
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-26 00:00:00.000000000 Z
11
+ date: 2017-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -405,7 +405,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
405
405
  version: 1.3.1
406
406
  requirements: []
407
407
  rubyforge_project:
408
- rubygems_version: 2.6.11
408
+ rubygems_version: 2.4.8
409
409
  signing_key:
410
410
  specification_version: 4
411
411
  summary: STEEM RPC Ruby Client