fcmpush 1.4.3 → 1.4.4

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: 5955f70af9ad3b06fbd33190d218cd115919476a8f3bd85b0f97d3d13ab94757
4
- data.tar.gz: 5f267e161537e51aaeb44428de5fe024556cf865b2fb3178a2b5286418250ef8
3
+ metadata.gz: dbef0d4424feeec5ee1cf9b8a2cf1a09905bf38b6cdeee81258d54743cf482e3
4
+ data.tar.gz: 7e5b83733bf0a835a726d86eddb4c7620d57d0fc83b325b0ad5fa9c198a9152f
5
5
  SHA512:
6
- metadata.gz: 9577b9638e6d3968377e648fb407f7ec5624bf4446c6dc04b1831e4da9d82022d78c7e96fd8bd0729fdb955366fa53fbf88e641b11a2da4ac2f7931bad14d3d5
7
- data.tar.gz: b4a36fdfc16a8d9c85fc35373db504a1861c96b0f3cdbffd5feebcce7542d5d4bf969408f25854262317555e753ad2bedf0aa019012555364be6976869309b7f
6
+ metadata.gz: b00c885a01a3e27e3bb605debe64ad9a5e12bb2908baad3a8327c8d63dd9e2099dba3bc4e35e3804b0795b3f984a796c026ec3f2c22ee653508f3b6ca749f0b6
7
+ data.tar.gz: be3b0ae624b2d2dbbea1cfcd8ae42f44aa8cab254bc0ebbb1df8f65ccbefa3e5116e58cac67065064514a9a65b6e0d18f68732f9082a54e989710a6199b8b7b9
@@ -26,6 +26,9 @@ module Fcmpush
26
26
  # @server_key = configuration.server_key
27
27
  @connection = Net::HTTP::Persistent.new
28
28
 
29
+ @connection.open_timeout = configuration.open_timeout if configuration.open_timeout
30
+ @connection.read_timeout = configuration.read_timeout if configuration.read_timeout
31
+
29
32
  if !configuration.proxy
30
33
  # do nothing
31
34
  elsif configuration.proxy == :ENV
@@ -1,6 +1,6 @@
1
1
  module Fcmpush
2
2
  class Configuration
3
- attr_accessor :scope, :json_key_io, :server_key, :proxy
3
+ attr_accessor :scope, :json_key_io, :server_key, :proxy, :open_timeout, :read_timeout
4
4
 
5
5
  def initialize
6
6
  @scope = ['https://www.googleapis.com/auth/firebase.messaging']
@@ -26,6 +26,10 @@ module Fcmpush
26
26
  # cf. https://github.com/miyataka/fcmpush/pull/39#issuecomment-1722533622
27
27
  # proxy
28
28
  @proxy = :ENV
29
+
30
+ # connection timeouts
31
+ @open_timeout = nil
32
+ @read_timeout = nil
29
33
  end
30
34
  end
31
35
  end
@@ -1,3 +1,3 @@
1
1
  module Fcmpush
2
- VERSION = '1.4.3'.freeze
2
+ VERSION = '1.4.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcmpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - miyataka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-15 00:00:00.000000000 Z
11
+ date: 2024-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-identitytoolkit_v3