better_logging 1.0.2 → 1.0.3

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.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "better_logging"
6
- s.version = "1.0.2"
6
+ s.version = "1.0.3"
7
7
  s.authors = ["Paul Dowman"]
8
8
  s.email = ["paul@pauldowman.com"]
9
9
  s.homepage = "https://github.com/pauldowman/better_logging"
@@ -120,6 +120,9 @@ module PaulDowman
120
120
 
121
121
  if message.nil?
122
122
  if block_given?
123
+ if severity < @level
124
+ return true
125
+ end
123
126
  message = yield
124
127
  end
125
128
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: