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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef8f0466152f75ea82a3324d87b4ee88c4ae0d35
4
- data.tar.gz: 37a1d71986565517d011c6a8ebb908967e5d2ee1
3
+ metadata.gz: 920e18506d2e0b50577f3be766712eac70beec32
4
+ data.tar.gz: f8748e37f5a862a547caa5b170d72c352a942582
5
5
  SHA512:
6
- metadata.gz: b7509fcade61d16d7c0a914b7dc51ad41b0467f1bbdfddb778235d1a120ad9f8d1e4580f507d59103068735d09a280cc1f204a7d5e4b25cfcefbe2ac81761bb5
7
- data.tar.gz: fe4f0103ba756cb7acc45cbc06f1e3af59cdb29ce8f62026525f2e9a55a48c06df36e23186a28ec31377efed3b5f77a6cdf568dc04e7a5b22288dc77635bb665
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
- While Octoshark tries hard to avoid any **monkey-patching** of `ActiveRecord`, there is a single patch it applies so that end-user does not have to do it manually. Basically, whenever ActiveRecord::Base establishes a new database connection, `Octoshark.reload!` needs to be called. This is necessary for Octoshark to disconnect old connection pools and set new ones, otherwise `ActiveRecord::ConnectionNotEstablished` will be raised.
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.present?
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
@@ -1,3 +1,3 @@
1
1
  module Octoshark
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: octoshark
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
  - Dalibor Nasevic