loggun 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 3961b4ad035b4eea0df58d05ae9a8bd784797cf57df8fb8f054445d9f6275707
4
- data.tar.gz: 5ff8b6d6beb6e1808418e8c4333146a52655fdb0731aabde77dd6077166c3633
3
+ metadata.gz: 64690d6ecfdadf2c32a49d2a688de83dfd2ea90a22e8c87e24544fd6c025100a
4
+ data.tar.gz: 428175cd75ee0bef72c3c74450df4c69069a37997794a253a86147883e7d14db
5
5
  SHA512:
6
- metadata.gz: 9c7729e96c2a98c400c182c88bf747981a165c433174bc2accf18db4265e4601920c1e499c20c4135762b3ebe12768b3041342f9c508f17378ce079592708be4
7
- data.tar.gz: 51c77b99b976a7d766282125a8d8e92fd4ebbab0faef16e9fdb51ee9bfafb9fc33e5b091b20ddfd1f85762c7a9a88fafce05011973c33dd533e83ece5b5c1061
6
+ metadata.gz: e680f49877dcb8418b3653c38ec42187ba17050ba58ac061d383ca9e3cf836d6739f7ae111ec9a7352b8d9ea721a1b4e09ad4d91bb022c6d61b2ff6bacdd4d5f
7
+ data.tar.gz: 0e5e5cedcdd59e80c71979a4ae90f87a59b76565b4e02754a2b3c35d1bd264ce8e619330b4944e6035e524ff26e56ba65be0c30b3f71114b7f29d2f84be629cb
@@ -138,8 +138,10 @@ module Loggun
138
138
  type ||= DEFAULT_TYPE.dup
139
139
  type_as_arr = type.split('.')
140
140
 
141
- log_entity_name = klass.respond_to?(:log_entity_name) ? klass.log_entity_name : underscore(klass.name)
142
- type_as_arr << log_entity_name if type_as_arr.size == 1
141
+ if type_as_arr.size == 1
142
+ log_entity_name = klass.respond_to?(:log_entity_name) ? klass.log_entity_name : underscore(klass.name.dup)
143
+ type_as_arr << log_entity_name
144
+ end
143
145
 
144
146
  return type unless klass.respond_to?(:log_entity_action)
145
147
 
@@ -1,3 +1,3 @@
1
1
  module Loggun
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loggun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksandr Noskov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-04-17 00:00:00.000000000 Z
12
+ date: 2020-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.0.8
185
+ rubygems_version: 3.0.6
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Loggun