RubyApp 0.5.73 → 0.5.74

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RubyApp (0.5.73)
4
+ RubyApp (0.5.74)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
@@ -40,6 +40,11 @@ default:
40
40
  expires: 1200
41
41
  interval: 15
42
42
  _length: 10
43
+ log:
44
+ - 'REMOTE_ADDR'
45
+ - 'HTTP_X_FORWARDED_FOR'
46
+ - 'HTTP_REFERER'
47
+ - 'HTTP_USER_AGENT'
43
48
  scripts:
44
49
  enabled: true
45
50
  path: '#{RubyApp::ROOT}/scripts'
@@ -162,10 +162,9 @@ module RubyApp
162
162
  session = Kernel.eval(RubyApp::Session.configuration._class).new
163
163
  session.load_script!(script_path) if script_path
164
164
  RubyApp::Log.debug("SESSION RubyApp::Session.session_id=#{session.session_id.inspect}")
165
- RubyApp::Log.debug("SESSION RubyApp::Request.environment['REMOTE_ADDR']=#{RubyApp::Request.environment['REMOTE_ADDR'].inspect}")
166
- RubyApp::Log.debug("SESSION RubyApp::Request.environment['HTTP-X-FORWARDED-FOR']=#{RubyApp::Request.environment['HTTP-X-FORWARDED-FOR'].inspect}")
167
- RubyApp::Log.debug("SESSION RubyApp::Request.environment['HTTP_REFERER']=#{RubyApp::Request.environment['HTTP_REFERER'].inspect}")
168
- RubyApp::Log.debug("SESSION RubyApp::Request.environment['HTTP_USER_AGENT']=#{RubyApp::Request.environment['HTTP_USER_AGENT'].inspect}")
165
+ RubyApp::Session.configuration.log.each do |variable|
166
+ RubyApp::Log.debug("SESSION RubyApp::Request.environment['#{variable}']=#{RubyApp::Request.environment[variable].inspect}")
167
+ end
169
168
  end
170
169
  Thread.current[:_session] = session
171
170
  end
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.5.73"
2
+ VERSION = "0.5.74"
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: 153
4
+ hash: 159
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 73
10
- version: 0.5.73
9
+ - 74
10
+ version: 0.5.74
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar