radiator 0.3.6 → 0.3.7

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: 956f02673186f4855cd07bc5c5a1a9163c329cbf
4
- data.tar.gz: 3a18bd23240d54c747ec4b5735a316c60a9e5ef6
3
+ metadata.gz: a7dc50f2559e5378d12b9511cf95ea18c8fa182b
4
+ data.tar.gz: d484fcd9e21336f1202552589d3c8b58311d48b2
5
5
  SHA512:
6
- metadata.gz: 6982a8ac692ee87bb34041d854ca80034745505f389f6f94e12deaafae6975a3336d6147b4d116a4d8a8d03f85f8d051561751ab782e74df511341a8b084169d
7
- data.tar.gz: 6a6438a16389022332cda72466bad910f6d1f4b474e892176078dd37c5f6a821f0cdd7422ceebe3140e450b7bf3b5c9b9bae92f207aacce9683337ca2b1af78c
6
+ metadata.gz: e54dc905d85d797f9079194f9ae4f7f8c09623238f0bfbd9ea7bd73ad8666f5b981e9221027cb5cea268f6b0e870e433227271a2d42b98a5d01659ad27004a83
7
+ data.tar.gz: 2869c113566019bbd2c2ef67db6ab745abaf0e33fef3526a30a041b05ad524d1ec44ac6e2edf4a45d45662b7c8832c038e30fa90b0f501d254ecd46bb5b464e5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radiator (0.3.6)
4
+ radiator (0.3.7)
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/lib/radiator/api.rb CHANGED
@@ -189,6 +189,7 @@ module Radiator
189
189
  # @option options [Logger] :logger An instance of `Logger` to send debug messages to.
190
190
  # @option options [Boolean] :recover_transactions_on_error Have Radiator try to recover transactions that are accepted but could not be confirmed due to an error like network timeout. Default: `true`
191
191
  # @option options [Integer] :max_requests Maximum number of requests on a connection before it is considered expired and automatically closed.
192
+ # @option options [Integer] :pool_size Maximum number of connections allowed.
192
193
  # @option options [Boolean] :reuse_ssl_sessions Reuse a previously opened SSL session for a new connection. There's a slight performance improvement by enabling this, but at the expense of reliability during long execution. Default false.
193
194
  def initialize(options = {})
194
195
  @user = options[:user]
@@ -201,6 +202,7 @@ module Radiator
201
202
  @logger = options[:logger] || Radiator.logger
202
203
  @hashie_logger = options[:hashie_logger] || Logger.new(nil)
203
204
  @max_requests = options[:max_requests] || 30
205
+ @pool_size = options[:pool_size] || Net::HTTP::Persistent::DEFAULT_POOL_SIZE
204
206
  @ssl_verify_mode = options[:ssl_verify_mode] || OpenSSL::SSL::VERIFY_PEER
205
207
  @reuse_ssl_sessions = !!options[:reuse_ssl_sessions]
206
208
  @ssl_version = options[:ssl_version]
@@ -99,6 +99,10 @@ module Radiator
99
99
  end
100
100
  end
101
101
  end
102
+
103
+ def operations=(operations)
104
+ @operations = operations
105
+ end
102
106
  private
103
107
  def payload
104
108
  {
@@ -1,3 +1,3 @@
1
1
  module Radiator
2
- VERSION = '0.3.6'
2
+ VERSION = '0.3.7'
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.3.6
4
+ version: 0.3.7
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-10-24 00:00:00.000000000 Z
11
+ date: 2017-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler