activetracker 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80b8a239161c18f48293cae47c39678cdb808861dc6de12ddd6f4d33283e934f
4
- data.tar.gz: e5dd7bfabd093d2841fc78adc5a37338e114250146cbbe34f88a303c3cf868e4
3
+ metadata.gz: def3e5e4821b3c44bbd065688618265ad2afcc921be34c6bb162c349b678a985
4
+ data.tar.gz: 946d080f6cef4a228d2d2d66ee64d898bbefe1a20103799effca8b4b11f31d7a
5
5
  SHA512:
6
- metadata.gz: 9b155a8da8101f030f558296474b35471e9af05b89c766023452d5f2ea9a0371e70db96abdbb2472b3e448f26037bce6ab860cc3db3df00a9ae46f7f01c3a97c
7
- data.tar.gz: 5c03a309bca39951c8a885daf78aa16875cf8e611752f11f44e76d6558e40a94eae9d7b90f1d2c6eeeb373362d9c57b027afbe7de034526ffc12cd947823d1b5
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activetracker (0.4.2)
4
+ activetracker (0.4.3)
5
5
  redis (~> 4.0)
6
6
 
7
7
  GEM
@@ -19,7 +19,7 @@ module ActiveTracker
19
19
  g.helper false
20
20
  end
21
21
 
22
- if defined?(config.assets)
22
+ if defined?(Sprockets)
23
23
  config.assets.precompile += %w(active_tracker_manifest active_tracker/active_tracker.js active_tracker/active_tracker.css)
24
24
  end
25
25
  end
@@ -98,11 +98,16 @@ module ActiveTracker
98
98
 
99
99
  obj.data["at_requests"] ||= []
100
100
  if ActiveTracker::Plugin::Request.registered?
101
- id = ActiveTracker::Plugin::Request.current_tags[:id] rescue nil
102
- obj.data["at_requests"].prepend(id) if id.present?
103
- obj.data["at_requests"] = obj.data["at_requests"][0,20]
104
- ActiveTracker::Plugin::Request.current_tags[:at_queries] ||= []
105
- ActiveTracker::Plugin::Request.current_tags[:at_queries] << obj.id
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
@@ -1,3 +1,3 @@
1
1
  module ActiveTracker
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activetracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries