semantic_logger 3.4.0 → 3.4.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
  SHA1:
3
- metadata.gz: fc98e41e370bc6257e0399ae04f886147944e227
4
- data.tar.gz: b09cc78d0efae6377959ee8db77d4b93a5d81c9d
3
+ metadata.gz: b1be5c6c00e649ac6ae78e3e9e29737aa615e6ae
4
+ data.tar.gz: db7f64e434f93a22cc8f2ae66fe1e0b7d79d9cdc
5
5
  SHA512:
6
- metadata.gz: dcfe55e29af7219b978c73f1d9f3a5123f49cd0eafb69ebdfc859372f6adbc30636c3b02320fa739cfe68df7cafd6ad805866441b1873bfc72b0a2cbe43eb06c
7
- data.tar.gz: 3c95e43452d9e018b629845ca29c5d445c0cf1518a53b8170cdf82975b19c48ea60cf796ef8d169cc47c14142e2e555c2c2793225be2715af8d87a526dfa7bea
6
+ metadata.gz: 9dc57b3e2722e32478cc33c514cb1ce9c6e00b564da8dcfcae5731fbb9b704c8e05f8baf59d415294555f1c27f934c1823c7dc220ffabc5345afc656f6d1c30a
7
+ data.tar.gz: aca9d4715197ff06ce760a1725b199447dd9fabff90df4c6aded226b6cd1ce5913482c0f7d53c19647e1b65167f86b814f1a067cf0369c96eb4817c6a5361559
@@ -479,7 +479,7 @@ module SemanticLogger
479
479
  def self.camelize(term)
480
480
  string = term.to_s
481
481
  string = string.sub(/^[a-z\d]*/) { |match| match.capitalize }
482
- string.gsub!(/(?:_|(\/))([a-z\d]*)/i) { "#{$1}#{inflections.acronyms[$2] || $2.capitalize}" }
482
+ string.gsub!(/(?:_|(\/))([a-z\d]*)/i) { "#{$1}#{$2.capitalize}" }
483
483
  string.gsub!('/'.freeze, '::'.freeze)
484
484
  string
485
485
  end
@@ -1,3 +1,3 @@
1
1
  module SemanticLogger #:nodoc
2
- VERSION = '3.4.0'
2
+ VERSION = '3.4.1'
3
3
  end
data/test/logger_test.rb CHANGED
@@ -35,7 +35,13 @@ class LoggerTest < Minitest::Test
35
35
 
36
36
  it 'adds symbol appender' do
37
37
  @appender = SemanticLogger.add_appender(appender: :wrapper, logger: Logger.new(STDOUT))
38
- assert @appender.is_a?(SemanticLogger::Appender::Wrapper), @appender.ai
38
+ assert @appender.is_a?(SemanticLogger::Appender::Wrapper), -> { @appender.ai }
39
+ assert SemanticLogger.appenders.include?(@appender)
40
+ end
41
+
42
+ it 'adds symbol appender with underscores' do
43
+ @appender = SemanticLogger.add_appender(appender: :new_relic)
44
+ assert @appender.is_a?(SemanticLogger::Appender::NewRelic), -> { @appender.ai }
39
45
  assert SemanticLogger.appenders.include?(@appender)
40
46
  end
41
47
 
metadata CHANGED
@@ -1,31 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reid Morrison
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-13 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: concurrent-ruby
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
18
  version: '1.0'
20
- type: :runtime
19
+ name: concurrent-ruby
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
- description: Next generation logging system for Ruby to support highly concurrent,
28
- high throughput, low latency enterprise systems
27
+ description: Next generation logging system for Ruby to support highly concurrent, high throughput, low latency enterprise systems
29
28
  email:
30
29
  - reidmo@gmail.com
31
30
  executables: []
@@ -97,7 +96,7 @@ homepage: https://github.com/rocketjob/semantic_logger
97
96
  licenses:
98
97
  - Apache-2.0
99
98
  metadata: {}
100
- post_install_message:
99
+ post_install_message:
101
100
  rdoc_options: []
102
101
  require_paths:
103
102
  - lib
@@ -112,12 +111,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
111
  - !ruby/object:Gem::Version
113
112
  version: '0'
114
113
  requirements: []
115
- rubyforge_project:
116
- rubygems_version: 2.5.1
117
- signing_key:
114
+ rubyforge_project:
115
+ rubygems_version: 2.6.8
116
+ signing_key:
118
117
  specification_version: 4
119
118
  summary: Scalable, next generation enterprise logging for Ruby
120
119
  test_files:
120
+ - test/debug_as_trace_logger_test.rb
121
+ - test/loggable_test.rb
122
+ - test/logger_test.rb
123
+ - test/mock_logger.rb
124
+ - test/test_helper.rb
121
125
  - test/appender/bugsnag_test.rb
122
126
  - test/appender/elasticsearch_test.rb
123
127
  - test/appender/file_test.rb
@@ -135,8 +139,3 @@ test_files:
135
139
  - test/appender/udp_test.rb
136
140
  - test/appender/wrapper_test.rb
137
141
  - test/concerns/compatibility_test.rb
138
- - test/debug_as_trace_logger_test.rb
139
- - test/loggable_test.rb
140
- - test/logger_test.rb
141
- - test/mock_logger.rb
142
- - test/test_helper.rb