multiconnect 0.1.3 → 0.1.6

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: a1e5808b71957ab6a552635704ed899384eb7893
4
- data.tar.gz: 0a4d19c0b30e97fa4c61612b190c9c1219aa2e8d
3
+ metadata.gz: 982d7e46c526c7ecaf2cc6338cfc132d21708500
4
+ data.tar.gz: 173e9f83db38b1eeab4ae87323395116bf4618e5
5
5
  SHA512:
6
- metadata.gz: c6a55e27bb7a078c0263da226ba33669a6f1e126427ff608316cceb9d8952b6fed5fb51ea5cc133b45bec9594c2a20589244499f48777a5275b08814abd0cbe8
7
- data.tar.gz: fe2867a1fea129ea979783116fead2c1a940e82288e74945962ff8d221e4e64929ece06dff302daab9096939de761507864a73943d9a9f23e50271f25e4820d1
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 = opts.fetch :status, FAILURE
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?
@@ -1,3 +1,3 @@
1
1
  module Multiconnect
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.6"
3
3
  end
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.3
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-21 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport