shog 0.1.4 → 0.1.5

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: 6b54c57ee9a4c7ca502eabb9dce01b0e2e7d1690
4
- data.tar.gz: 5305ccd94565d5c10e15bcf3d9f79e7abff14374
3
+ metadata.gz: e9ee5c334792c5413c1f06cb70dc629cd2d3f1ff
4
+ data.tar.gz: 7c2f333b8d05f275118f155a3c2db12a7d49c53b
5
5
  SHA512:
6
- metadata.gz: a1f27b6eff59fc19c409bb29c0247edc6bc85a2da6bb9fa7233e73fe881f4ef854493919c174f237ca3710c581c66f032dbf456d17be3a610d7e3a3243b2d987
7
- data.tar.gz: e46d475a81af312755188a2a4be7e615fdc763eca62827abe0a4d39f572947c3e7fc21054bc739fa73e1ef966d5a2110144e45001ab0cea82b65970d12172259
6
+ metadata.gz: 53e3b05170fa30e9e3a1e1816f53d7424f0abebac80bd47b8a38e727714fc515a8a20b1cf97b0bd622635e91f52573efa75924968a5bb0ed3ace747ee96755bb
7
+ data.tar.gz: fb735dfe8f1769a15e0454bac07c5870de6a61f57dc66c6acb5e61dd69e25f1e8cbc80101317d9c5cbf282cdf0d589b6d9c0aa05ea0b17c4878b28f9e6deb5b5
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/shog.svg)](http://badge.fury.io/rb/shog)
4
4
  [![Code Climate](https://codeclimate.com/github/phallguy/shog.png)](https://codeclimate.com/github/phallguy/shog)
5
-
5
+ [![Circle CI](https://circleci.com/gh/phallguy/shog.svg?style=svg)](https://circleci.com/gh/phallguy/shog)
6
6
 
7
7
  Make rails 4.0 log details more colorful.
8
8
 
@@ -9,6 +9,10 @@ module Shog
9
9
  # Set up formatting options for the default rails logger.
10
10
  # @see Shog::Formatter#configure
11
11
  def self.configure(&block)
12
- ::Rails.logger.formatter = Shog::Formatter.new.configure &block
12
+ formatter = ::Rails.logger.formatter
13
+ unless formatter.is_a? Shog::Formatter
14
+ formatter = ::Rails.logger.formatter = Shog::Formatter.new
15
+ end
16
+ formatter.configure &block
13
17
  end
14
18
  end
@@ -53,4 +53,4 @@ module Shog
53
53
 
54
54
  end
55
55
  end
56
- end
56
+ end
@@ -1,5 +1,5 @@
1
1
  module Shog
2
- VERSION_NUMBER = "0.1.4"
2
+ VERSION_NUMBER = "0.1.5"
3
3
  VERSION_SUFFIX = ""
4
4
  VERSION = "#{VERSION_NUMBER}#{VERSION_SUFFIX}"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Alexander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails