analytics_instrumentation 0.1.7 → 0.1.8
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/lib/analytics_instrumentation/version.rb +1 -1
- data/lib/analytics_instrumentation.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: 7a8048e3bcd62c04fc3f83e97d085969cfa86b02
|
|
4
|
+
data.tar.gz: 2db802e2710a792e92b4431d943c8780281e0fc2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11e3a87800905dae4bd351c3eb142d557be4fd95b1b8ee37bd31a104d6798c8ae6d6e4a83e8c09b5d84ab887fc1d8e2e1a1920d72389455c73ef90eb9aab9e28
|
|
7
|
+
data.tar.gz: 3fa39b97f787e351937b2c79baab43887141bee376554ab56c6c4c8febe0585dbfd562af924baf3b569f83294debfc60c8371ce5177bcd94c996b06bdfaeab53
|
|
@@ -207,7 +207,7 @@ module AnalyticsInstrumentation
|
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
def skip_analytics?
|
|
210
|
-
return true if Rails.env.test?
|
|
210
|
+
return true if Rails.env.test? || ENV['RAILS_ENV']=='test' || ENV['RACK_ENV']=='test'
|
|
211
211
|
return true if request.bot?
|
|
212
212
|
return true if request.user_agent.nil?
|
|
213
213
|
bad_strings = ["http:", "https:", "twitterbot", "bingbot", "googlebot", "mediapartners-google", "Webhook"]
|