radiator 0.4.0 → 0.4.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: 20a5af6853cd421c70122a70ff48cc4822e7c58c
4
- data.tar.gz: 2f303245c66ce3f4ee7d7ad7a1050bd18221c0b1
3
+ metadata.gz: 8f9903d1a4e0c654af377fcc0a353e0079e631d5
4
+ data.tar.gz: b92e18fe56c4a13d0af9d0bae369e9e9a7dbb075
5
5
  SHA512:
6
- metadata.gz: a42aa75fa026a2ea1e0e6dfb25d22c1769eab3672e28616762df741ea523135389980b1299c863ca6886ddd643b72f146f97569f47f0b332c9e2d6565593fa4d
7
- data.tar.gz: ba2fa368c835473f96519c909818a645e8d416e4061ea28b34c5b1d5a575b3188acaa7601aa1dd2ae6d4d12086950b73501d2215271dd70924dbd15e18806be1
6
+ metadata.gz: acfad80288e67f8662e6fdadcbf92be26963dd588c77a16419a40a38b940ef21258d4536d5aac2ef014af8fb3eb5851430d7e56f4d858c4b60489aeca7a628bb
7
+ data.tar.gz: efe041ba627bf96aa77c0ea32c13603e07b4183cabd81e1b3808dfad4bf84776bfe2fd5fb94b99d43790d6eb80aa22b72805e6b5d649cc893d0053dd3ca795ff
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radiator (0.4.0)
4
+ radiator (0.4.1)
5
5
  awesome_print (~> 1.7, >= 1.7.0)
6
6
  bitcoin-ruby (~> 0.0, >= 0.0.11)
7
7
  ffi (~> 1.9, >= 1.9.18)
data/README.md CHANGED
@@ -140,7 +140,7 @@ api = Radiator::Api.new
140
140
  api.get_dynamic_global_properties do |properties|
141
141
  properties.virtual_supply
142
142
  end
143
- => "135377049.603 STEEM"
143
+ => "271342874.337 STEEM"
144
144
  ```
145
145
 
146
146
  ... or ...
@@ -151,14 +151,14 @@ require 'radiator'
151
151
  api = Radiator::Api.new
152
152
  response = api.get_dynamic_global_properties
153
153
  response.result.virtual_supply
154
- => "135377049.603 STEEM"
154
+ => "271342874.337 STEEM"
155
155
  ```
156
156
 
157
157
  #### Follower API
158
158
 
159
159
  ```ruby
160
160
  api = Radiator::FollowApi.new
161
- api.get_followers('inertia', 0, 'blog', 100) do |followers|
161
+ api.get_followers(account: 'inertia', start: 0, type: 'blog', limit: 100) do |followers|
162
162
  followers.map(&:follower)
163
163
  end
164
164
  => ["a11at",
@@ -457,22 +457,6 @@ There is another rare scenario involving `::Transaction` broadcasts that's handl
457
457
  tx = Radiator::Transaction.new(wif: wif, recover_transactions_on_error: false)
458
458
  ```
459
459
 
460
- ### Golos Failover Examples
461
-
462
- Typically, you only need to pass `chain: :golos` to enable Golos. Failover is enabled by default. If you want to provide your own full nodes, use this format:
463
-
464
- ```ruby
465
- options = {
466
- chain: :golos,
467
- url: 'https://ws.golos.io',
468
- failover_urls: [
469
- 'https://api.golos.cf'
470
- ]
471
- }
472
-
473
- api = Radiator::Api.new(options)
474
- ```
475
-
476
460
  ## Debugging
477
461
 
478
462
  To enable debugging, set environment `LOG=DEBUG` before launching your app. E.g.:
@@ -837,6 +837,12 @@ module Radiator
837
837
  end
838
838
  end
839
839
 
840
+ def check_file_open?
841
+ File.exists?('.')
842
+ rescue
843
+ false
844
+ end
845
+
840
846
  def debug_payload(request, response)
841
847
  request = JSON.pretty_generate(request)
842
848
  response = JSON.parse(response) rescue response
@@ -1,4 +1,4 @@
1
1
  module Radiator
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  AGENT_ID = "radiator/#{VERSION}"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Martin