ae_network_connection_exception 1.6.0 → 1.8.0

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
  SHA256:
3
- metadata.gz: 670bacf7b250485b96be28e6623494ea3ef88e93830b27de6c7141d273d53737
4
- data.tar.gz: cdcfd66f3fedd185fdb58fc8f6cdd2da0da799ddb22166a1ce270d608c8378fb
3
+ metadata.gz: 21e6c8118d5eafc8684a62cce8c95335747c307ef8b25961feef5dade9bf98c0
4
+ data.tar.gz: 69d2689069e866658fc815e20abe545fb675e0f1b083b48ae1ed09362c5a99db
5
5
  SHA512:
6
- metadata.gz: 371c96edecc48bf85bde49dbe33a12afd216da04f40db63ae9bbbedbdcd200e10fe995467a9d60dc385542f1869e5f39440f77dbc731707cf0555ac1f36f4319
7
- data.tar.gz: f0822a534739ba7d31c14b37873236d41c6a8adae6714ecd86f50ae95ee01ea800576963b158fee142ef88349fb3785f4dec8ec21addaeabf220cc851783baa1
6
+ metadata.gz: 6d9f85a81cabb3f1a244d84e1f31d1a47057c679e72b7a19b72ac144f68301bcf3da4e64d41782669527f037253c17496b3c43c416b8b15c125f040d6ae9344d
7
+ data.tar.gz: 8e03d47de1c57ea6a0676029f91d7c45274548ee3c4c8de83716fbe1e31dae8ecd6ae73f23ba4a9d9997145209e99e7f2c12c0762d11b2230339a7bd814bb720
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2021 AppFolio, Inc
1
+ Copyright (c) 2015-2024 AppFolio, Inc
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -3,18 +3,18 @@
3
3
  require_relative 'lib/ae_network_connection_exception/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = 'ae_network_connection_exception'
7
- spec.version = AeNetworkConnectionException::VERSION
8
- spec.platform = Gem::Platform::RUBY
9
- spec.author = 'AppFolio'
10
- spec.email = 'opensource@appfolio.com'
11
- spec.description = 'Catch exceptions related to establishing a network connection and return a generic error.'
12
- spec.summary = 'Provides sane exceptions for network failures.'
13
- spec.homepage = 'https://github.com/appfolio/ae_network_connection_exception'
14
- spec.license = 'MIT'
15
- spec.files = Dir['**/*'].select { |f| f[%r{^(lib/|LICENSE.txt|.*gemspec)}] }
16
- spec.require_paths = ['lib']
17
- spec.required_ruby_version = Gem::Requirement.new('>= 2.6.3')
6
+ spec.name = 'ae_network_connection_exception'
7
+ spec.version = AeNetworkConnectionException::VERSION
8
+ spec.platform = Gem::Platform::RUBY
9
+ spec.author = 'AppFolio'
10
+ spec.email = 'opensource@appfolio.com'
11
+ spec.description = 'Catch exceptions related to establishing a network connection and return a generic error.'
12
+ spec.summary = 'Provides sane exceptions for network failures.'
13
+ spec.homepage = 'https://github.com/appfolio/ae_network_connection_exception'
14
+ spec.license = 'MIT'
15
+ spec.files = Dir['**/*'].select { |f| f[%r{^(lib/|LICENSE.txt|.*gemspec)}] }
16
+ spec.require_paths = ['lib']
18
17
 
18
+ spec.required_ruby_version = Gem::Requirement.new('< 3.4')
19
19
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
20
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AeNetworkConnectionException
4
- VERSION = '1.6.0'
4
+ VERSION = '1.8.0'
5
5
  end
@@ -44,7 +44,11 @@ module AeNetworkConnectionException
44
44
  private
45
45
 
46
46
  def other_exceptions
47
- defined?(RestClient::Exceptions::OpenTimeout) ? [RestClient::Exceptions::OpenTimeout] : []
47
+ res = []
48
+ res << RestClient::Exceptions::OpenTimeout if defined?(RestClient::Exceptions::OpenTimeout)
49
+ res << HTTP::ConnectTimeoutError if defined?(HTTP::ConnectTimeoutError)
50
+
51
+ res
48
52
  end
49
53
 
50
54
  def raise_if_exception_message_matches(exception, pattern)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_network_connection_exception
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-22 00:00:00.000000000 Z
11
+ date: 2024-02-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Catch exceptions related to establishing a network connection and return
14
14
  a generic error.
@@ -32,16 +32,16 @@ require_paths:
32
32
  - lib
33
33
  required_ruby_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - ">="
35
+ - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: 2.6.3
37
+ version: '3.4'
38
38
  required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  requirements: []
44
- rubygems_version: 3.3.3
44
+ rubygems_version: 3.5.3
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: Provides sane exceptions for network failures.