con_air 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjFmYzRkMmFlZTZlNmE3ODVmNWMyYjRiN2Y3ZDMwZTI1ZGU4MmI5ZQ==
4
+ NWEyZDcxNTBlZTVhOTE3N2I0MzNlZTkwM2NlZWQ4MjljY2UxMGI1Zg==
5
5
  data.tar.gz: !binary |-
6
- YTFkM2Y4OGI4ZmMzMmU1OWUyMjVjNDI0YzYxMjA3Zjk0MzFjZGE3Mw==
6
+ ZGZjNmUxZjc1OTE5ZTk2ODkyOTE3MTQxYWU0OTY0YTkxMjRlYzM0OQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZGIxZDY3YWZjNjkyOTQzZWE2YjhiZWFhZGIzYWNjY2VmOTAxZjJiNmVkODdl
10
- MWRjNzcxNWM3OTkwYzgwNjA2ZjhkZGI4MDEzNmU5NDcyMDA0ZjMyNzg4MTMx
11
- NmU0YzcxNTRiMjgzYzU2NDc2MDYyM2Y0NjU0NjRmZDZlZmQwNWU=
9
+ YTc5MDYzMGVmNjJmYmRkYWZmMDY0MjU0ZTBjYjBhN2Q1YjhiY2FlMjQ0N2Qy
10
+ MzU0MDM3NmFlNzljOWYxMjQyZDdkZDdhNzk1OTVkMDVmZTc3NmViMTkwYWY5
11
+ MDQxM2Y1YWUzYjEzMmVjM2Y2MmY1NmUyMDFiMmY3ZGMzOTE2ZTY=
12
12
  data.tar.gz: !binary |-
13
- MjMwMTZlYTMzZDFkYmRjNGI3NjFmMjRiYTBmODA2ZTQyNDRkMzJmNjViZTIx
14
- MjVjMGNkOTE5MjU0ZDIyMmNhMTgxZDE2Nzk4NTU3NWJjYWZhMmMzMDlmMzgz
15
- ODE1MTZlNmMyMzFjMjkyNGQ0ZDk1ZTRhNDkxN2I5ZTA3ODY5NzY=
13
+ ZTA2OWRlZjQ0ZDY0NmVjY2ZhYzBiNmRiNDJjMGIzMDJkOWIwYThkNzUyNDc3
14
+ ODY2ZTUyNTEwZDJiMWZkZDM1MWJhNTdlOTA3Mjg2MDI3MTFhZTk1YjBiOGNk
15
+ OWM4ZGY5NzE2OTBiYmE2NDQ0MzQ3N2FkYzAwNjZjYjk0ZGIxZWE=
@@ -10,8 +10,10 @@ module ConAir
10
10
  @hijacked_spec = hijacked_spec
11
11
  @swap_class = swap_class
12
12
 
13
- # Init all connections after switching handler
13
+ # Init connections after switching handler
14
+
14
15
  ActiveRecord::Base.establish_connection
16
+ establish_connection(hijacked_spec, swap_class)
15
17
  end
16
18
 
17
19
  def establish_connection(name, spec)
@@ -1,3 +1,3 @@
1
1
  module ConAir
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: con_air
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngan Pham