maybe_client 1.1.0 → 1.1.1
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 +4 -4
- data/lib/maybe_client.rb +1 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a95486e840dab9ad0a16295ee9f5ba3480f016a
|
|
4
|
+
data.tar.gz: d22ff52e1c94b83ee05a873500e06a1eb569a1fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 400e9643c705e2e23a9a4f8d8959b2062bf7706f7d78344574748de6c53a3abfa05023aff8cf3a33e8dc9daf7f30583b53c864914995e6a49a355c61a9572d7a
|
|
7
|
+
data.tar.gz: 7b5a1c266b7825efcec8021b61c2f48e6f4b312891012dcf2b66b88dfe3bda8a024c8688d7e87cb521cee105b498e927f57b84692612d30c9349f2407ab04dbe
|
data/lib/maybe_client.rb
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
class MaybeClient
|
|
2
2
|
DELAY = 60
|
|
3
3
|
|
|
4
|
-
def self.from_value(client)
|
|
5
|
-
new(client)
|
|
6
|
-
end
|
|
7
|
-
|
|
8
4
|
def initialize(client: nil, client_class: nil, connect_params: nil)
|
|
9
5
|
raise ArgumentError.new('Either client or client_class has to be supplied') \
|
|
10
6
|
if !client && !client_class
|
|
@@ -60,7 +56,7 @@ class MaybeClient
|
|
|
60
56
|
|
|
61
57
|
def initialize_client
|
|
62
58
|
begin
|
|
63
|
-
@client = @client_class.new(
|
|
59
|
+
@client = @client_class.new(@connect_params)
|
|
64
60
|
rescue Exception => e
|
|
65
61
|
handle_exception(e)
|
|
66
62
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: maybe_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Renra Gloser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|