effective_logging 2.0.0 → 2.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee73b0a26f21fe2980801d4b8e901ec547ae7721
4
- data.tar.gz: 46e1f46fac857042523878446ea3c364e138d887
3
+ metadata.gz: 2df06ee7aea144b63b57170b65ac18abd83ed7cd
4
+ data.tar.gz: 0c1540a24b525a564b33eb7d6d1b78fd831d6dff
5
5
  SHA512:
6
- metadata.gz: daaddf8064d083684ca67c8629f210d5cde233ff0d4c03cc39b428cdd3f078599417c5b121aa82dcbe7a5e23a37c26e5e954025b3ba4b74cf41a12805b17ec2c
7
- data.tar.gz: c7a757f10c577b05c8069f822a3f2427c8a2e0cb9d14e0f4cda880a8cb33f806c0ab6681d844b98eb02e7a5dd8e97b037c3a54ffdfb89d8eb88f056630d910f6
6
+ metadata.gz: 2c38ab76941a3a27d5992764459f5a0520b417135290092cf1066dac3c34a606b9b71bbef29d60f30b2046ba57a97b2a17027273567d6ad68f72f88fd57842b0
7
+ data.tar.gz: 759c1f333cfa331e9e16489012c5850bed1a8f6101314cafec9b833238a3cf470fe1056c16a798eb78370282765c00f654e1ca59cf8f2428b2eb57a41ebcd3c5
@@ -1,4 +1,4 @@
1
- .panel.card
1
+ .panel.panel-default.card
2
2
  .panel-heading.card-header
3
3
  .row
4
4
  .col-md-10
@@ -16,27 +16,24 @@
16
16
  .panel-body.card-body
17
17
  .row
18
18
  .col-md-6
19
- - status_class = bootstrap_class_for_status(log.status)
20
- %span.label.badge{:class => "label-#{status_class} badge-#{status_class}"}= log.status
21
-  
22
- = log.created_at.strftime("%F %H:%M:%S")
23
- = '(' + time_ago_in_words(log.created_at) + ' ago)'
24
- %br
25
- %br
19
+ %p
20
+ - status_class = bootstrap_class_for_status(log.status)
21
+ %span{:class => (defined?(EffectiveBootstrap) ? "badge badge-#{status_class}" : "label label-#{status_class}")}= log.status
22
+ = log.created_at.strftime("%F %H:%M:%S")
23
+ = '(' + time_ago_in_words(log.created_at) + ' ago)'
26
24
 
27
25
  .col-md-6
28
26
  - if log.user.present?
29
- %strong User:
30
-  
31
- = (log.user.to_s.starts_with?('#<User:0x') ? (log.user.email rescue log.user) : log.user)
27
+ %p
28
+ %strong User:
29
+ = (log.user.to_s.starts_with?('#<User:0x') ? (log.user.email rescue log.user) : log.user)
32
30
  - if (log.associated.present? rescue false)
33
- %br
34
- %strong Associated:
35
- &nbsp;
36
- - if log.associated.to_s.starts_with?('#<')
37
- = "#{log.associated.class.name} ##{log.associated.to_param}"
38
- - else
39
- = log.associated
31
+ %p
32
+ %strong Associated:
33
+ - if log.associated.to_s.starts_with?('#<')
34
+ = "#{log.associated.class.name} ##{log.associated.to_param}"
35
+ - else
36
+ = log.associated
40
37
 
41
38
  - log.details.each do |key, value|
42
39
  - next unless value.present?
@@ -47,15 +44,9 @@
47
44
  = format_log_details_value(log, key)
48
45
 
49
46
  - if log.logs.present?
50
- .row
51
- .col-md-12
52
- %br
53
- %p
54
- %strong Additional Entries:
55
- = "this log contains #{log.logs_count} additional sub entries"
47
+ %hr
48
+ %p This log contains #{log.logs_count} additional sub entries:
56
49
 
57
50
  - unless log.datatable.nil?
58
- %hr
59
- .row
60
- .col-md-12= render_datatable(log.datatable)
51
+ = render_datatable(log.datatable)
61
52
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveLogging
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-07 00:00:00.000000000 Z
11
+ date: 2018-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails