activetracker 0.4.2 → 0.4.3
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 +4 -0
- data/Gemfile.lock +1 -1
- data/lib/active_tracker/engine.rb +1 -1
- data/lib/active_tracker/plugin/query.rb +10 -5
- data/lib/active_tracker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: def3e5e4821b3c44bbd065688618265ad2afcc921be34c6bb162c349b678a985
|
|
4
|
+
data.tar.gz: 946d080f6cef4a228d2d2d66ee64d898bbefe1a20103799effca8b4b11f31d7a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 608d074983f9bf75fff8077bcec541b92d9e1ed365c5d783164eeed950df282d4822444e37f4f95743eea65b8c63d56d63bce88acd5790b1d1b854fd21240df1
|
|
7
|
+
data.tar.gz: 2058bf7766add46aef52c39731e8e123e9bb0621d2fa13beb73d89f666b92f1d2515c2a9e39c6e4cedea2071ab002176535fe016630a931e26d98236e774815b
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.4.3] - 2019-11-05
|
|
10
|
+
### Fixed
|
|
11
|
+
- Error during initial project database migration if activetracker is used
|
|
12
|
+
|
|
9
13
|
## [0.4.2] - 2019-11-05
|
|
10
14
|
### Fixed
|
|
11
15
|
- API-only projects don't have BetterErrors enabled apparently
|
data/Gemfile.lock
CHANGED
|
@@ -98,11 +98,16 @@ module ActiveTracker
|
|
|
98
98
|
|
|
99
99
|
obj.data["at_requests"] ||= []
|
|
100
100
|
if ActiveTracker::Plugin::Request.registered?
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
begin
|
|
102
|
+
id = ActiveTracker::Plugin::Request.current_tags[:id] rescue nil
|
|
103
|
+
obj.data["at_requests"].prepend(id) if id.present?
|
|
104
|
+
obj.data["at_requests"] = obj.data["at_requests"][0,20]
|
|
105
|
+
ActiveTracker::Plugin::Request.current_tags[:at_queries] ||= []
|
|
106
|
+
ActiveTracker::Plugin::Request.current_tags[:at_queries] << obj.id
|
|
107
|
+
rescue Exception
|
|
108
|
+
# Sometimes during initial DB migration this will fail to insert
|
|
109
|
+
# the current object
|
|
110
|
+
end
|
|
106
111
|
end
|
|
107
112
|
end
|
|
108
113
|
end
|