tracer_client 0.1.2 → 0.1.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
  SHA1:
3
- metadata.gz: 2d1975213e0dc876b3c576e4e0d17ea77610ff4b
4
- data.tar.gz: d8495d4947cf638f654f45d37130a73f6698e807
3
+ metadata.gz: c5c7b9c2872319e0d62eba9beb595cf6b1b6b05e
4
+ data.tar.gz: b3f8648e4b16e1e42c8e8be8a9cbd7f5a8bafbc4
5
5
  SHA512:
6
- metadata.gz: e85c7fac30b79195a7be43f88552838c9a1a74bf85b87696d638170a70324e821a6989b82bd5858445aec77683cc3927bf2ab6226a79b66b2082905b3785832d
7
- data.tar.gz: bfc8a3007c9469141eb0a60265081785d3eab3eff2b0953ef3f2662656e6742d60d660f7fc053929554b1c7dc71607f5e00c84cf2339caaba14cd0fb17dde107
6
+ metadata.gz: 3f2fa211abf7b0dae1e452e3f36328494ad09720d00744e98129ea110d81e41468a083456b3d543342996938c43a6e84f3f7fa70df4ee693b3e509acfeea084e
7
+ data.tar.gz: 6189b7b856aef013aab3dd0f3d52fe46f5b7b7d5a16d7f205a5a22cedb142631ba921cf2bc4ae600daa3fb901021dcb16eac92dc185b994c1c834df07a8d8b7d
@@ -18,12 +18,16 @@ module Tracer
18
18
 
19
19
 
20
20
  def log(notice)
21
- Tracer::Server.log(notice.merge(request_log_data))
21
+ Thread.new do
22
+ Tracer::Server.log(notice.merge(request_log_data))
23
+ end
22
24
  end
23
25
 
24
26
 
25
27
  def log_changes(changes)
26
- Tracer::Server.log_changes(changes.merge(request_changes_data))
28
+ Thread.new do
29
+ Tracer::Server.log_changes(changes.merge(request_changes_data))
30
+ end
27
31
  end
28
32
 
29
33
 
@@ -98,25 +102,5 @@ module Tracer
98
102
 
99
103
  end
100
104
 
101
-
102
- private
103
-
104
-
105
- class LogJob
106
- include SuckerPunch::Job
107
-
108
- def perform(notice)
109
- Tracer::Server.log(notice)
110
- end
111
- end
112
-
113
- class LogChangesJob
114
- include SuckerPunch::Job
115
-
116
- def perform(changes)
117
- Tracer::Server.log_changes(changes)
118
- end
119
- end
120
-
121
105
  end
122
106
  end
@@ -8,7 +8,7 @@ module Log
8
8
  SEVERITIES = %i(debug info notice warn error crit alert emerg)
9
9
  FACILITIES = %i(request lib auth user product order line_item delivery odkl email direct_mail page exception)
10
10
 
11
- ROBOT_UA_FRAGMENTS = /AhrefsBot|bingbot|DotBot|Googlebot|Mail.RU_Bot|MJ12bot|msnbot|SputnikBot|updown_tester|Web-Monitoring|WebMasterAid|YaDirectFetcher|YandexBot/
11
+ ROBOT_UA_FRAGMENTS = /AhrefsBot|bingbot|DotBot|Googlebot|Mail.RU_Bot|MJ12bot|msnbot|SputnikBot|updown_tester|Web-Monitoring|WebMasterAid|YaDirectFetcher|Yahoo! Slurp|YandexBot/
12
12
 
13
13
 
14
14
  def self.start_request(current_user, request, params, session, do_log_request)
@@ -1,3 +1,3 @@
1
1
  module TracerClient
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_dependency 'config', '~> 1.0'
23
23
  spec.add_dependency 'rails', '~> 4.2'
24
- spec.add_dependency 'sucker_punch', '~> 1.5'
25
24
 
26
25
  spec.add_development_dependency 'bundler', '~> 1.10'
27
26
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracer_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serge Galanin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: config
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.2'
41
- - !ruby/object:Gem::Dependency
42
- name: sucker_punch
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.5'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.5'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: bundler
57
43
  requirement: !ruby/object:Gem::Requirement