RubyApp 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RubyApp (0.2.3)
4
+ RubyApp (0.2.4)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
data/lib/ruby_app/log.rb CHANGED
@@ -4,6 +4,7 @@ require 'bundler/setup'
4
4
  require 'facets/string/interpolate'
5
5
  require 'fileutils'
6
6
  require 'logger'
7
+ require 'socket'
7
8
 
8
9
  module RubyApp
9
10
  require 'ruby_app'
@@ -16,7 +17,7 @@ module RubyApp
16
17
  class Formatter < ::Logger::Formatter
17
18
 
18
19
  def call(severity, time, application, message)
19
- return "#{severity} | #{time.strftime('%Y-%m-%d %H:%M:%S %Z')} | #{RubyApp::Request.exists? ? RubyApp::Request.environment['REMOTE_ADDR'] : '-'} | #{RubyApp::Request.exists? ? RubyApp::Request.environment['SERVER_NAME'] : '-'} | #{RubyApp::Request.exists? ? RubyApp::Request.environment['SERVER_PORT'] : '-'} | #{RubyApp::Session.exists? ? RubyApp::Session.session_id : '-'} | #{RubyApp::Session.exists? && RubyApp::Session.identity ? RubyApp::Session.identity.url : '-'} | #{message}\n"
20
+ return "#{severity} | #{time.strftime('%Y-%m-%d %H:%M:%S %Z')} | #{Socket.gethostname} | #{RubyApp::Session.exists? ? RubyApp::Session.session_id : '-'} | #{RubyApp::Session.exists? && RubyApp::Session.identity ? RubyApp::Session.identity.url : '-'} | #{message}\n"
20
21
  end
21
22
 
22
23
  end
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar