dbhijacker 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dbhijacker.gemspec +1 -1
- data/lib/hijacker/controller_methods.rb +1 -1
- data/lib/hijacker/middleware.rb +1 -1
- data/lib/hijacker.rb +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 966aefde0da55519c0a6f7138a3fe37fcffd82bd
|
4
|
+
data.tar.gz: 64dd3131653b3bf6bcae3ada058526bb0b952929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79b6c3859bbd2d26dffc9f97a2a93c29df41d6588b41a8e19a25fcfb76de7849c323f73a5f1ef345662c79de5ab999367070358c5c2ecc92b93d0a8763b6c79b
|
7
|
+
data.tar.gz: cfaa5431f940684f06da86d316a9197591c0a72a04289a2681a54b87e0316de63d4ad98a1b8e4ffd2f29280bf3ed2de7fefd658c4ac481ef132a01c3cb8a8763
|
data/dbhijacker.gemspec
CHANGED
@@ -20,7 +20,7 @@ module Hijacker::ControllerMethods
|
|
20
20
|
# Returns 2-member array of the main database to connect to, and the sister
|
21
21
|
# (sister will be nil if no master is found, which means we are on the master).
|
22
22
|
def determine_databases
|
23
|
-
Hijacker::RequestParser.
|
23
|
+
Hijacker::RequestParser.from_request(request).determine_databases
|
24
24
|
end
|
25
25
|
|
26
26
|
def render_invalid_db
|
data/lib/hijacker/middleware.rb
CHANGED
data/lib/hijacker.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require_relative './hijacker/active_record_ext'
|
2
|
+
require_relative './hijacker/request_parser'
|
3
3
|
require 'active_record'
|
4
4
|
require 'action_controller'
|
5
5
|
require 'set'
|
@@ -252,8 +252,8 @@ private
|
|
252
252
|
end
|
253
253
|
end
|
254
254
|
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
255
|
+
require_relative './hijacker/database'
|
256
|
+
require_relative './hijacker/alias'
|
257
|
+
require_relative './hijacker/host'
|
258
|
+
require_relative './hijacker/middleware'
|
259
|
+
require_relative './hijacker/controller_methods'
|