concise_logging 0.1.0 → 0.1.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: 3b3ddb997dc1557b82d6502f371067527c9f2ede
4
- data.tar.gz: 55e38ca12a4910fc681b2234b66f8e48f9a0d0c9
3
+ metadata.gz: d40d6b23b3dfa9c46912ba3150abe213060f2eef
4
+ data.tar.gz: 4a7ab11e1e1ee4a4095c4210088123f696efd9f3
5
5
  SHA512:
6
- metadata.gz: e02b3a5840803c32a7f0c9f20072effafe0d42044d6c54c172e906c929909d6fb0ea6b742d9faaed6f3205e6088b64e7d4965122bc1131b94ae26ad7919344c2
7
- data.tar.gz: e8c346776f50a2257644a4da6027d6d7c71b5834910c4c89d8fd2b1b6a04ff82f468379ee29a83bc5c6c4e9cbba1923e51b4ae49101cc9c550502dd788595702
6
+ metadata.gz: c1780c98368c04a24a84db81f6df7d5e7a032dc28a53865e62d90600733b20356b8d687a72cca95d0fcad481a0731cb854dfe2b8f45a45945218817a3bd6f682
7
+ data.tar.gz: d75341f93a2c3947263f35a6f8447f06ca293c356cc5779dcf06d411edc1b3901bc8c0fdc496e115027d4679443349188011dca19b11b29ad794e368f8e9bc3f
@@ -1,9 +1,11 @@
1
1
  module ConciseLogging
2
2
  class Railtie < Rails::Railtie
3
- initializer "railtie.configure_rails_initialization" do |app|
4
- app.middleware.use ConciseLogging::LogMiddleware
5
- end
3
+ unless Rails.env.development?
4
+ initializer "railtie.concise_logging" do |app|
5
+ app.middleware.use ConciseLogging::LogMiddleware
6
+ end
6
7
 
7
- ConciseLogging::LogSubscriber.attach_to :action_controller
8
+ ConciseLogging::LogSubscriber.attach_to :action_controller
9
+ end
8
10
  end
9
11
  end
@@ -1,3 +1,3 @@
1
1
  module ConciseLogging
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concise_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerry Shaw