logjam_agent 0.8.0 → 0.8.1

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
- YTkzZmVmY2Q4NDkxNzQwNmNhYWRmMzBjOTQ3YmJlYWRhNzU4ZjQ0Yg==
4
+ NTM2MDVkZTYyNDBiN2IzZTM1NTEwZGQ3ODhiMGVjNDFhMWRmOTlmYg==
5
5
  data.tar.gz: !binary |-
6
- NTdjOTg3MGQ5MTI0NWVmN2RlYjllMTViZTVkOWNjNzUzM2E5Njg0Mg==
6
+ OTE0MTY2OTE4NGE2NTJlMGM2YzdiYjUxMjMxMzRlYWQwMzgwNTM2MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjE2YWMxZGY0N2RmNjcxMTliYzg1NDdjNTU2N2U3MDFmYzljYWU5YmJhNzcy
10
- YWM4MjhjZmYwOTg5NDZhNWM1OTk0ZWRhZjY1YzlkZmQwOTM3ZDZkYzUwNDU1
11
- OGNhMDMxNmM1MmM1NDhhYTczNTc3NmI3ZjQyZmRhYzNmMTlkZjM=
9
+ NGRiNmNlNjBmMjU5NzQ1MGI2MDY5ZjlhNTU0M2Y5M2FjOTNlNjNhNTkyY2Jj
10
+ ZDJiNWVjMWFhNTRhYmQ4M2YzODM0Y2Q3YzkxYmNiZDA1NzQyMGUzODBkOGFm
11
+ OWM0ZTJiMTA3MjhlNzI3NjQ2ZGZhNzdhOWFhZDllMTFkYzA2ZDg=
12
12
  data.tar.gz: !binary |-
13
- MzdjMDlmZTRiM2FmY2Y4MTFjMTM0ZmFjMjdjZjRjNWQwNTkzOTE4YTgwNzgy
14
- YWVhZDUzYmMzNmU1MmU0ZjU1NDk2ZmQwMjgxOTg1YTQ1ZDgwMzg3YTRjODdm
15
- MjUyM2RmZWZkMzUzZTg2ZTUwOGUyM2I4ZjQ1ZTNiNTc2MWQzNWY=
13
+ ZjZiZDE4ZjBiZjkyY2VjMTk5OTllOGZiMmZiZDVjZTUwNTQ4ZDg3ZmU0MTQ4
14
+ OGE2MmQ5MTgwMDYzN2EyMTVkNjBkZjEyNzUyNTk0MzRmMDk3NDQxNGRkMjAw
15
+ NDBlNWVhNjEwYTc3NmRjMGFiOGQ0MDhiMGU4OGNmYjJhZWQ2NzA=
@@ -33,7 +33,7 @@ module LogjamAgent
33
33
  "#{format_severity(severity)} #{format_time(timestamp)}#{render_attributes}#{format_host_info(progname)}: #{format_message(msg)}#{@newline}"
34
34
  end
35
35
 
36
- if Rails.env.development?
36
+ if !defined?(Rails) || Rails.env.development?
37
37
  def format_host_info(progname); ""; end
38
38
  else
39
39
  def format_host_info(progname)
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
@@ -91,7 +91,6 @@ files:
91
91
  - Gemfile
92
92
  - README.rdoc
93
93
  - Rakefile
94
- - init.rb
95
94
  - lib/logjam_agent.rb
96
95
  - lib/logjam_agent/amqp_forwarder.rb
97
96
  - lib/logjam_agent/buffered_logger.rb
@@ -104,7 +103,6 @@ files:
104
103
  - lib/logjam_agent/version.rb
105
104
  - lib/logjam_agent/zmq_forwarder.rb
106
105
  - logjam_agent.gemspec
107
- - rails/init.rb
108
106
  homepage: ''
109
107
  licenses: []
110
108
  metadata: {}
data/init.rb DELETED
@@ -1,3 +0,0 @@
1
- ActionController::Dispatcher.middleware.insert_before(ActionController::Failsafe, LogjamAgent::Middleware)
2
- LogjamAgent.application_name ||= "rails"
3
- LogjamAgent.environment_name ||= Rails.env
@@ -1 +0,0 @@
1
- require File.expand_path('../../init.rb', __FILE__)