sapience 0.2.5 → 0.2.6
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/CHANGELOG.md +8 -1
- data/lib/sapience/extensions/action_cable/tagged_logger_proxy.rb +8 -6
- data/lib/sapience/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: 53c39e68a39ac8703108c987a4ff8397167d858a
|
4
|
+
data.tar.gz: 182127c564ffd512bc990c62f7494dd931e98ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f317cdf099c21e450d9aa76b60b47dd6ce144480272516e4eb41994b48b5212f0d86431c9f2635c92ce3fdf0c537b3671d1ca0eea998070d44318f560829563d
|
7
|
+
data.tar.gz: c9a6c2bf077365386bb52fe2c71060280053b7caab8f784b7158d0151256715e4b60f44f1eeb7bea9cddf2187838bb188fad646c03d926c36cd52b9a7d851b7d
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
## v0.2.
|
1
|
+
## v0.2.5
|
2
|
+
|
3
|
+
- Allow the log_executor to be configured to either `:single_thread_executor` or `:immediate_executor`
|
4
|
+
- Test coverage improvement
|
5
|
+
- Working rails integration
|
6
|
+
- Minor adjustments to the log_formatter to make it more compatible with log_stasher.
|
7
|
+
|
8
|
+
## v0.2.3
|
2
9
|
|
3
10
|
- Adds debugging and coverage for sneakers integration
|
4
11
|
|
@@ -1,8 +1,10 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
if defined?(ActionCable)
|
2
|
+
class ActionCable::Connection::TaggedLoggerProxy # rubocop:disable ClassAndModuleChildren
|
3
|
+
alias_method :orig_tag, :tag
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
def tag(logger, &block)
|
6
|
+
current_tags = tags - logger.tags
|
7
|
+
logger.tagged(*current_tags, &block)
|
8
|
+
end
|
7
9
|
end
|
8
|
-
end
|
10
|
+
end
|
data/lib/sapience/version.rb
CHANGED