multiconnect 0.1.3 → 0.1.6
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/multiconnect/connection/result.rb +7 -3
- data/lib/multiconnect/version.rb +1 -1
- data/lib/multiconnect.rb +1 -0
- 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: 982d7e46c526c7ecaf2cc6338cfc132d21708500
|
|
4
|
+
data.tar.gz: 173e9f83db38b1eeab4ae87323395116bf4618e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 08c24753cfb9b98c271d8c7195717d6e4b33fc1e1cf60c52c06f30075d409806e164747e3c4669ef3dca965ecb0b2aea6d8ebdd2f936546b5161a23941315c71
|
|
7
|
+
data.tar.gz: 37b42b22474463876f4f98c3b34ce137e7f1aa0c58585d4e1d6cebcca4dfc5bcb4cfe79c45f7c22c5a297460988fbe2301e1086e9db8192f2a1327164fa4d81e
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
module Multiconnect
|
|
2
2
|
module Connection
|
|
3
3
|
class Result
|
|
4
|
+
instance_methods.each do |m|
|
|
5
|
+
undef_method(m)
|
|
6
|
+
end
|
|
7
|
+
|
|
4
8
|
SUCCESS = :success
|
|
5
9
|
FAILURE = :failure
|
|
6
|
-
|
|
10
|
+
|
|
7
11
|
def initialize(opts = {})
|
|
8
|
-
@status
|
|
9
|
-
@data = opts.fetch :data, nil
|
|
12
|
+
@status = opts.fetch :status, FAILURE
|
|
10
13
|
@connection = opts.fetch :connection, nil
|
|
14
|
+
@data = opts.fetch :data, nil
|
|
11
15
|
end
|
|
12
16
|
|
|
13
17
|
def success?
|
data/lib/multiconnect/version.rb
CHANGED
data/lib/multiconnect.rb
CHANGED
|
@@ -2,6 +2,7 @@ require "multiconnect/version"
|
|
|
2
2
|
require 'active_support'
|
|
3
3
|
require 'active_support/concern'
|
|
4
4
|
require 'active_support/core_ext/class/attribute'
|
|
5
|
+
require 'active_support/core_ext/module/delegation'
|
|
5
6
|
|
|
6
7
|
module Multiconnect
|
|
7
8
|
autoload :Connection, 'multiconnect/connection'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: multiconnect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Greg Orlov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-03-
|
|
11
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|