hedgelog 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzcxYjAyZTNjNTg1MWY3MjNjOGEzMjI1ZTU1NjQ4YjM5YzA5MTY3ZQ==
4
+ N2UxODc0MGY2MzJkM2M3ZGNiOTc1NWM0MjM4MWFlMTMwNzM5MjAzOA==
5
5
  data.tar.gz: !binary |-
6
- M2JkZTcyZjQ2ZGFhYjViOTZiMGRjOTdjYjAzOTg3YWRiMTJhMmUzNQ==
6
+ YWRlZTQ2YTdiNzAyZjc1NWM3ZDUxNWE0YjZjYjU3YmYyMzBlZDMyMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGVlYzkwZDk3MzEzYTYzZjRhNDBlZGU4NTdiOGVlMzIyNzljYmRmMzJkOGI0
10
- OWRkMzlhY2I5Nzk4ZWM0Y2Y2ZGU1NmQyOTIzZTUxOTQ3MzBmNTg4ZjBlNzc5
11
- OTc4MDEyMzRkOTdhMzEyZWMxNWE3ZjI3MGY4NDZhMWJhNzU2MDc=
9
+ N2U4MjJhZDQxZTE0MzMwY2M3MDY1MjY1NTU4NTE4ZWVkZjlkZmZmYzQyMmZj
10
+ Y2M0NmRhNWFlMDdmMmQ0YTg3OTBlNWRiMjExODc0Njk3NzU1YjBiYTJkN2Vk
11
+ ZDA1MzFhOWY5YmI4N2M1ZTI1NzE1M2IyNjBmNGZlNTE3MjFhN2I=
12
12
  data.tar.gz: !binary |-
13
- NDQzZmI3YjFjOGI4ZTM3OTlmMmI2ZTZjNTY4MmFjYjAzNzIzNDFmYjg3MDk1
14
- ZTcyZjI1MDc4N2VhYTUwMTQyMDc5ZThmN2NkNGQ2NzM1YmFkYWYyMTk5NGFi
15
- MTE2ZGYyNjVlODU5OGQyZDFkMTI5MDk5OWQ5YTczMThmNmYyYjM=
13
+ MDIzN2M1OGJjYTMwNmNkNzc4MWQ5NjM2NWZmMTM5YzI0MjE1ZDFjZDNlYmI1
14
+ NWYyYjY3NmYyNzkzYmRkYzExMzA3ZDkyN2Y2ZWE1ZjdhZTgxYjQ3NTg5YjEz
15
+ NzNiNzM5MDZjODZlYmM4Zjk1NThhNWY1MTE3NDQzZWFlNTEyMGM=
data/Gemfile CHANGED
@@ -10,6 +10,7 @@ group :test, :development do
10
10
  gem "simplecov", "~> 0.10"
11
11
  gem "rubocop", "~> 0.33"
12
12
  gem "timecop"
13
+ gem 'benchmark-ips'
13
14
  end
14
15
 
15
16
  group :development do
@@ -58,7 +58,7 @@ class Hedgelog
58
58
 
59
59
  def check_reserved_keys(hash)
60
60
  invalid_keys = Hedgelog::RESERVED_KEYS & hash.keys
61
- raise ::ArgumentError, "#{self.class}: The following keys are reserved and cannot be used #{invalid_keys.to_a}." if invalid_keys.length > 0
61
+ raise ::ArgumentError, "#{self.class}: The following keys are reserved and cannot be used #{invalid_keys.to_a}." unless invalid_keys.empty?
62
62
  end
63
63
  end
64
64
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class Hedgelog
3
- VERSION = '0.1.3'.freeze
3
+ VERSION = '0.1.4'.freeze
4
4
  end
data/lib/hedgelog.rb CHANGED
@@ -45,7 +45,7 @@ class Hedgelog
45
45
 
46
46
  attr_writer :app
47
47
 
48
- def add(severity = LEVELS[:unknown], message = nil, progname = nil, context, &block)
48
+ def add(severity = LEVELS[:unknown], message = nil, progname = nil, context = {}, &block)
49
49
  return true if (@logdev.nil? && @channel.nil?) || severity < @level
50
50
 
51
51
  message, context = *yield if block
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hedgelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Utter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yajl-ruby