octoshark 0.0.4 → 0.0.5
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/README.md +1 -1
- data/lib/octoshark/active_record_extensions.rb +1 -1
- data/lib/octoshark/version.rb +1 -1
- 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: 920e18506d2e0b50577f3be766712eac70beec32
|
|
4
|
+
data.tar.gz: f8748e37f5a862a547caa5b170d72c352a942582
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e156d431037b1a543b86b5ccd2de0cbadc3f6698233cab5509f08c99e033f3214cac61e87d2cf661862bc725e41eda13a999113ff3bbc0202d8e610935fb9d64
|
|
7
|
+
data.tar.gz: e190b0f3a02d968dd4d4e857c6eea3ff757e9042760afa29d69f1888a07ce7a3170ee734ea25b395c3ffb63a09d8d8aa5f01367aabf04db5ddda60076d8be58f
|
data/README.md
CHANGED
|
@@ -116,7 +116,7 @@ Here we use `Octoshark.current_or_default_connection` method which returns the c
|
|
|
116
116
|
|
|
117
117
|
## Octoshark.reload!
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
Whenever ActiveRecord::Base establishes a new database connection, `Octoshark.reload!` is called. This is necessary for Octoshark to disconnect old connection pools and set new ones, otherwise `ActiveRecord::ConnectionNotEstablished` will be raised.
|
|
120
120
|
|
|
121
121
|
Few examples where database connections are re-established:
|
|
122
122
|
|
|
@@ -24,7 +24,7 @@ module Octoshark
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def debug_with_octoshark(msg)
|
|
27
|
-
prefix = if Octoshark.current_connection_name
|
|
27
|
+
prefix = if Octoshark.configured? && Octoshark.current_connection_name
|
|
28
28
|
color("[Octoshark: #{Octoshark.current_connection_name}]",
|
|
29
29
|
ActiveSupport::LogSubscriber::GREEN, true)
|
|
30
30
|
end
|
data/lib/octoshark/version.rb
CHANGED