effective_logging 4.4.4 → 4.5.0
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/app/views/effective/logs/_log.html.haml +37 -36
- data/lib/effective_logging/version.rb +1 -1
- data/lib/effective_logging.rb +1 -1
- metadata +3 -10
- data/app/views/admin/logs/index.html.haml +0 -4
- data/app/views/admin/logs/show.html.haml +0 -4
- data/app/views/effective/logs/index.html.haml +0 -4
- data/app/views/effective/logs/show.html.haml +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7046c99ea1cd5867dd5c576afa311f2ab9473cfebf2257d11f919c2d361f882
|
|
4
|
+
data.tar.gz: dead4b21aa492b09d05a5059fb6f1138f378cc8839cb8c3fc3ac96f1913668e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f137c6b6441c3abc549472e9bf5f3bbbe1eaaa2a028029ea065a60c11a4039318d3df8be3576d12917b3873293655d834bcd0171c01333f709935e4ba27193e3
|
|
7
|
+
data.tar.gz: d61ff8d7d6237d134f601b4a7f017598bae12dabd7e33984de6c1e1f4f662be2a524c6d4df1872e892aa0a3b8713183f0c73efdafa37e523d53fa1e0961b378e
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
%
|
|
1
|
+
- content_for :resource_buttons do
|
|
2
|
+
- prev_log = log.prev_log
|
|
3
|
+
- next_log = log.next_log
|
|
4
|
+
|
|
5
|
+
- if prev_log.present?
|
|
6
|
+
= link_to 'Prev', request.fullpath.sub('/' + log.to_param, '/' + prev_log.to_param), class: 'btn btn-primary'
|
|
7
|
+
|
|
8
|
+
- if next_log.present?
|
|
9
|
+
= link_to 'Next', request.fullpath.sub('/' + log.to_param, '/' + next_log.to_param), class: 'btn btn-primary'
|
|
10
|
+
|
|
11
|
+
.card.card-effective-logging
|
|
12
|
+
.card-body
|
|
13
|
+
%p= log.message.to_s.gsub("\n", '<br>').html_safe
|
|
14
|
+
|
|
15
|
+
%hr.my-4
|
|
16
|
+
|
|
17
|
+
%h4.card-title Details
|
|
18
|
+
%table.table.table-sm.table-striped
|
|
19
|
+
%tr
|
|
20
|
+
%th
|
|
21
21
|
- status_class = bootstrap_class_for_status(log.status)
|
|
22
22
|
%span{class: (defined?(EffectiveBootstrap) ? "badge badge-#{status_class}" : "label label-#{status_class}")}= log.status
|
|
23
|
-
|
|
23
|
+
%td
|
|
24
24
|
= log.created_at.strftime("%F %H:%M:%S")
|
|
25
25
|
= '(' + time_ago_in_words(log.created_at) + ' ago)'
|
|
26
26
|
|
|
27
|
-
.col-md-6
|
|
28
27
|
- if log.user.present?
|
|
29
|
-
%
|
|
30
|
-
%
|
|
31
|
-
|
|
28
|
+
%tr
|
|
29
|
+
%th
|
|
30
|
+
User
|
|
31
|
+
%td
|
|
32
|
+
= log.user
|
|
32
33
|
|
|
33
34
|
- if log.associated_id.present? && log.associated_type.present? && (log.associated.present? rescue false)
|
|
34
|
-
%
|
|
35
|
-
%
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
%tr
|
|
36
|
+
%th Associated
|
|
37
|
+
%td
|
|
38
|
+
- if log.associated.to_s.starts_with?('#<')
|
|
39
|
+
= log.associated.class.name
|
|
40
|
+
= log.associated.to_param
|
|
41
|
+
- else
|
|
42
|
+
= log.associated
|
|
40
43
|
|
|
41
44
|
- log.details.each do |key, value|
|
|
42
45
|
- next unless value.present?
|
|
43
|
-
.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
%strong= "#{key.to_s.titleize}:"
|
|
47
|
-
= format_log_details_value(log, key)
|
|
46
|
+
%hr.my-4
|
|
47
|
+
%h5.card-title= key.to_s.titleize
|
|
48
|
+
= format_log_details_value(log, key)
|
data/lib/effective_logging.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_logging
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rails
|
|
@@ -205,12 +204,8 @@ files:
|
|
|
205
204
|
- app/models/effective/track.rb
|
|
206
205
|
- app/models/effective_logger.rb
|
|
207
206
|
- app/views/admin/logs/_layout.html.haml
|
|
208
|
-
- app/views/admin/logs/index.html.haml
|
|
209
|
-
- app/views/admin/logs/show.html.haml
|
|
210
207
|
- app/views/effective/logs/_layout.html.haml
|
|
211
208
|
- app/views/effective/logs/_log.html.haml
|
|
212
|
-
- app/views/effective/logs/index.html.haml
|
|
213
|
-
- app/views/effective/logs/show.html.haml
|
|
214
209
|
- config/effective_logging.rb
|
|
215
210
|
- config/routes.rb
|
|
216
211
|
- db/migrate/101_create_effective_logging.rb
|
|
@@ -228,7 +223,6 @@ homepage: https://github.com/code-and-effect/effective_logging
|
|
|
228
223
|
licenses:
|
|
229
224
|
- MIT
|
|
230
225
|
metadata: {}
|
|
231
|
-
post_install_message:
|
|
232
226
|
rdoc_options: []
|
|
233
227
|
require_paths:
|
|
234
228
|
- lib
|
|
@@ -243,8 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
243
237
|
- !ruby/object:Gem::Version
|
|
244
238
|
version: '0'
|
|
245
239
|
requirements: []
|
|
246
|
-
rubygems_version:
|
|
247
|
-
signing_key:
|
|
240
|
+
rubygems_version: 4.0.17
|
|
248
241
|
specification_version: 4
|
|
249
242
|
summary: Automatically log all sent emails, user logins, and page views. This also
|
|
250
243
|
will log custom events from Ruby and JavaScript.
|