logga 0.3.1 → 0.3.2

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: 143cc427c8e108b1e31b76dbc2109985f3f6071f
4
- data.tar.gz: a1848cfe2826f73c697b3cded3658a787e6e38f9
3
+ metadata.gz: a2b4685fe6f3a1ebf00cfe984839b901b9400bde
4
+ data.tar.gz: 62f964bc27049e101262e90d3d4e9a497e0bc733
5
5
  SHA512:
6
- metadata.gz: 914211e18d3b3a85dc4ea728c5647d693633259708f7803c806d0fd5717266c7d0063e9804f3a9f328885e627cde1172237507b32d837d31585e7fefae0a153d
7
- data.tar.gz: 55ae116442e9e32a6d11175f99df4351a07c84e38aabef4ae45e6fe19213ef24d6f1207f4b0ef40c1ebad453a7105215d4d9fa1890b2854b88925f7f751d03ee
6
+ metadata.gz: d768e0538660f31428f41a69d0aec6bc5fd53b67a4149b7bae0d00d8226313d96b013c29673b7bfc7cc1551afbd0bf60deb30c9cc36f1068434bc99af0e6660a
7
+ data.tar.gz: aa4901c3829d000e346c4dde4d7be4d4afbeba0c1918094fedecf8cf8952dd93b7e3e6b8a608668d1be5cc72d49bce48307dd49fe50f41dc017845c10f5573c2
@@ -44,7 +44,7 @@ module Logga
44
44
  end
45
45
 
46
46
  def author_data
47
- data = Hash(log_receiver.author).with_indifferent_access
47
+ data = Hash(log_receiver.try(:author) || try(:author)).with_indifferent_access
48
48
  {
49
49
  author_id: data[:id],
50
50
  author_type: data[:type],
@@ -60,7 +60,7 @@ module Logga
60
60
  end
61
61
 
62
62
  def default_change_log_body(record, field, old_value, new_value)
63
- "#{record.class.name.demodulize} #{field} set to #{new_value}"
63
+ "#{record.class.name.demodulize.titleize} #{field} set to #{new_value}"
64
64
  end
65
65
  end
66
66
  end
data/lib/logga/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Logga
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Chinery, Rob Hesketh, Lorenzo Tello
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-25 00:00:00.000000000 Z
11
+ date: 2017-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler