mongodb_logger 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/lib/mongodb_logger.rb +9 -1
- data/lib/mongodb_logger/version.rb +1 -1
- metadata +5 -38
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm ruby-1.9.3-
|
1
|
+
rvm ruby-1.9.3-p374@mongodb_logger_gems --create
|
data/lib/mongodb_logger.rb
CHANGED
@@ -31,9 +31,17 @@ module MongodbLogger
|
|
31
31
|
:path => request.path,
|
32
32
|
:url => request.url,
|
33
33
|
:params => f_params,
|
34
|
-
:session => f_session,
|
34
|
+
:session => mongo_fix_session_keys(f_session),
|
35
35
|
:ip => request.remote_ip
|
36
36
|
}) { yield }
|
37
37
|
end
|
38
|
+
# session keys can be with dots. It is invalid keys for BSON
|
39
|
+
def mongo_fix_session_keys(session)
|
40
|
+
new_session = {}
|
41
|
+
session.each do |i, j|
|
42
|
+
new_session[i.gsub(/\./i, "|")] = j.inspect
|
43
|
+
end
|
44
|
+
new_session
|
45
|
+
end
|
38
46
|
end
|
39
47
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongodb_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -457,7 +457,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
457
457
|
version: '0'
|
458
458
|
segments:
|
459
459
|
- 0
|
460
|
-
hash: -
|
460
|
+
hash: -1635214188254528067
|
461
461
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
462
462
|
none: false
|
463
463
|
requirements:
|
@@ -466,44 +466,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
466
466
|
version: '0'
|
467
467
|
segments:
|
468
468
|
- 0
|
469
|
-
hash: -
|
469
|
+
hash: -1635214188254528067
|
470
470
|
requirements: []
|
471
471
|
rubyforge_project: mongodb_logger
|
472
472
|
rubygems_version: 1.8.24
|
473
473
|
signing_key:
|
474
474
|
specification_version: 3
|
475
475
|
summary: MongoDB logger for Rails 3
|
476
|
-
test_files:
|
477
|
-
- features/mongodb_logger_web.feature
|
478
|
-
- features/rails.feature
|
479
|
-
- features/step_definitions/mongodb_logger_web_steps.rb
|
480
|
-
- features/step_definitions/rails_application_steps.rb
|
481
|
-
- features/support/env.rb
|
482
|
-
- features/support/rails.rb
|
483
|
-
- features/support/terminal.rb
|
484
|
-
- spec/javascripts/MongodbLoggerMainSpec.js
|
485
|
-
- spec/javascripts/helpers/SpecHelper.js
|
486
|
-
- spec/javascripts/support/jasmine.yml
|
487
|
-
- spec/javascripts/support/jasmine_config.rb
|
488
|
-
- spec/javascripts/support/jasmine_runner.rb
|
489
|
-
- test/Gemfile_tests
|
490
|
-
- test/active_record.rb
|
491
|
-
- test/config/samples/database.yml
|
492
|
-
- test/config/samples/database_no_file_logging.yml
|
493
|
-
- test/config/samples/database_replica_set.yml
|
494
|
-
- test/config/samples/database_with_auth.yml
|
495
|
-
- test/config/samples/database_with_collection.yml
|
496
|
-
- test/config/samples/database_with_url.yml
|
497
|
-
- test/config/samples/mongodb_logger.yml
|
498
|
-
- test/config/samples/mongoid.yml
|
499
|
-
- test/config/samples/server_config.yml
|
500
|
-
- test/log/.gitkeep
|
501
|
-
- test/rails.rb
|
502
|
-
- test/rails/app/controllers/order_controller.rb
|
503
|
-
- test/rails/test/functional/order_controller_test.rb
|
504
|
-
- test/rails/test/test_helper.rb
|
505
|
-
- test/shoulda_macros/log_macros.rb
|
506
|
-
- test/test.sh
|
507
|
-
- test/test_helper.rb
|
508
|
-
- test/unit/mongodb_logger_replica_test.rb
|
509
|
-
- test/unit/mongodb_logger_test.rb
|
476
|
+
test_files: []
|