multiconnect 0.1.0 → 0.1.1

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: 991ba66412af2a541aed7a547312cd01b4a59b73
4
- data.tar.gz: eff776e9c9f55a27e1ba87ca13430d2bf077c51a
3
+ metadata.gz: 8fc0f7b66200923eb5b6b7a8408e3069a9e9fcf8
4
+ data.tar.gz: ae32387d8aa1ea4a713a28f85db787bcafddb839
5
5
  SHA512:
6
- metadata.gz: e1db9b9c47e7551fd3a713641bd08303768e667a80057846ac68a523bb93b5dbbe86f0a3875a0d8e8172a31a0197120e67a34ca03f2f8cd458763af7491fb5c5
7
- data.tar.gz: 2778d5152b747fa0378e45decb9bc5855ddf85ff930f272f42e8bfb6101b45bd907302922c71938394e887fecd94895a26158b64dac596eb9d4c3885fcbe3875
6
+ metadata.gz: 6f2b4e5e546b664f290f5c7e149dc2736ca92428cf4b163fe04a907f69ece753bd7581b6f3c14916d72af2776757e73e31d9fb1080071b58de37f1b99903abd3
7
+ data.tar.gz: 65aa49e0fe36ed2dfe873f2e4d713bac5a6afd31537b6431356811bb63d059f6d6a3213f2b56dc06e48959bf7391774dbc18f0e593ecf62d544fdf8023881ff1
@@ -8,9 +8,11 @@ module Multiconnect
8
8
  self._connections = []
9
9
 
10
10
  def add_connection(connection_class, options = {})
11
-
12
11
  self._connections = _connections + [connection_class.new(options)]
12
+ end
13
13
 
14
+ def prepend_connection(connection_class, options = {})
15
+ self._connections = [connection_class.new(options)] + _connections
14
16
  end
15
17
 
16
18
  def request(action, *args)
@@ -1,3 +1,3 @@
1
1
  module Multiconnect
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
4
+ version: 0.1.1
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-15 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport