mongodb_logger 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +16 -0
- data/README.md +3 -2
- data/features/step_definitions/rails_application_steps.rb +8 -0
- data/features/support/rails.rb +8 -1
- data/features/support/terminal.rb +2 -1
- data/lib/mongodb_logger/logger.rb +46 -7
- data/lib/mongodb_logger/server/view_helpers.rb +4 -0
- data/lib/mongodb_logger/server/views/shared/_log_info.erb +2 -2
- data/lib/mongodb_logger/server/views/shared/_message_tabs.erb +1 -1
- data/lib/mongodb_logger/version.rb +1 -1
- data/mongodb_logger.gemspec +1 -0
- data/test/config/samples/database_with_collection.yml +8 -0
- data/test/rails/app/controllers/order_controller.rb +5 -2
- data/test/rails/test/functional/order_controller_test.rb +51 -0
- data/test/test_helper.rb +1 -0
- data/test/unit/mongodb_logger_test.rb +22 -0
- metadata +48 -56
data/CHANGELOG.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
## v0.2.3
|
2
|
+
|
3
|
+
* Fix storage log with attachments (save it for search by "original\_filename" and "content\_type")
|
4
|
+
* Fix tests for CI
|
5
|
+
|
6
|
+
## v0.2.2
|
7
|
+
|
8
|
+
* Fix set custom collection in config and add tests on it
|
9
|
+
|
10
|
+
## v0.2.1
|
11
|
+
|
12
|
+
* Add show on 'more info' page meta data from log
|
13
|
+
|
14
|
+
## v0.2.0
|
15
|
+
|
16
|
+
* Public release
|
data/README.md
CHANGED
@@ -72,7 +72,8 @@ It:
|
|
72
72
|
'request_time' : date_of_request,
|
73
73
|
'runtime' : elapsed_execution_time_in_milliseconds,
|
74
74
|
'url' : full_url,
|
75
|
-
'method' : request method (GET, POST,
|
75
|
+
'method' : request method (GET, POST, OPTIONS),
|
76
|
+
'is_exception' : true only for exceptions (in other cases this field miss)
|
76
77
|
}
|
77
78
|
|
78
79
|
Beyond that, if you want to add extra information to the base of the document (let's say something like user\_id on every request that it's available),
|
@@ -176,4 +177,4 @@ It:
|
|
176
177
|
|
177
178
|
|
178
179
|
|
179
|
-
Copyright (c) 2009-2011 Phil Burrows, CustomInk and Leopard released under the MIT license
|
180
|
+
Copyright (c) 2009-2011 Phil Burrows, CustomInk (based on https://github.com/customink/central_logger) and Leopard released under the MIT license
|
@@ -47,6 +47,14 @@ end
|
|
47
47
|
Then /^the tests should have run successfully$/ do
|
48
48
|
step %{I run "rake test RAILS_ENV=test --trace"}
|
49
49
|
@terminal.status.exitstatus.should == 0
|
50
|
+
# show errors
|
51
|
+
output_log = @terminal.output
|
52
|
+
is_pass = false
|
53
|
+
# TODO: fix regexp later, because can PASS in 10 or 100 failures
|
54
|
+
is_pass = true if ((1 == output_log.scan(/([.*]?)fail: 0(\D+)error: 0([\D+]?)/i).size) || (1 == output_log.scan(/(.*)0 failures(.*)0 errors(.*)/i).size))
|
55
|
+
puts @terminal.output unless is_pass
|
56
|
+
# check if have errors
|
57
|
+
is_pass.should == true
|
50
58
|
end
|
51
59
|
|
52
60
|
When /^I run "([^\"]*)"$/ do |command|
|
data/features/support/rails.rb
CHANGED
@@ -62,7 +62,14 @@ module RailsHelpers
|
|
62
62
|
def add_routes
|
63
63
|
content = File.read(routes_path)
|
64
64
|
flag = Regexp.escape("Application.routes.draw do\n")
|
65
|
-
|
65
|
+
order_routes = <<STR
|
66
|
+
resources :order do
|
67
|
+
collection do
|
68
|
+
post :test_post
|
69
|
+
end
|
70
|
+
end
|
71
|
+
STR
|
72
|
+
content.gsub!(/#{flag}/m, '\0 ' + order_routes)
|
66
73
|
File.open(routes_path, 'wb') { |file| file.write(content) }
|
67
74
|
end
|
68
75
|
|
@@ -23,7 +23,8 @@ class Terminal
|
|
23
23
|
@environment_variables = {
|
24
24
|
"GEM_HOME" => LOCAL_GEM_ROOT,
|
25
25
|
"GEM_PATH" => "#{LOCAL_GEM_ROOT}:#{BUILT_GEM_ROOT}",
|
26
|
-
"PATH" => "#{gem_bin_path}:#{ENV['PATH']}"
|
26
|
+
"PATH" => "#{gem_bin_path}:#{ENV['PATH']}",
|
27
|
+
"BUNDLE_GEMFILE" => File.join(LOCAL_RAILS_ROOT, 'Gemfile')
|
27
28
|
}
|
28
29
|
end
|
29
30
|
|
@@ -2,6 +2,7 @@ require 'erb'
|
|
2
2
|
require 'mongo'
|
3
3
|
require 'active_support'
|
4
4
|
require 'active_support/core_ext'
|
5
|
+
require 'action_dispatch/http/upload'
|
5
6
|
require 'mongodb_logger/replica_set_helper'
|
6
7
|
|
7
8
|
module MongodbLogger
|
@@ -81,9 +82,15 @@ module MongodbLogger
|
|
81
82
|
begin
|
82
83
|
@insert_block.call
|
83
84
|
rescue
|
84
|
-
|
85
|
-
|
86
|
-
|
85
|
+
begin
|
86
|
+
# try to nice serialize record
|
87
|
+
nice_serialize @mongo_record
|
88
|
+
@insert_block.call
|
89
|
+
rescue
|
90
|
+
# do extra work to inpect (and flatten)
|
91
|
+
force_serialize @mongo_record
|
92
|
+
@insert_block.call rescue nil
|
93
|
+
end
|
87
94
|
end
|
88
95
|
end
|
89
96
|
|
@@ -172,18 +179,50 @@ module MongodbLogger
|
|
172
179
|
# Cache it since these ActiveRecord attributes are assigned after logger initialization occurs in Rails boot
|
173
180
|
@colorized ||= Object.const_defined?(:ActiveRecord) && ActiveRecord::LogSubscriber.colorize_logging
|
174
181
|
end
|
182
|
+
|
183
|
+
# try to serialyze data by each key and found invalid object
|
184
|
+
def nice_serialize(rec)
|
185
|
+
if msgs = rec[:messages]
|
186
|
+
msgs.each do |i, j|
|
187
|
+
msgs[i] = nice_serialize_object(j)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
if pms = rec[:params]
|
191
|
+
pms.each do |i, j|
|
192
|
+
pms[i] = nice_serialize_object(j)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
def nice_serialize_object(data)
|
198
|
+
case data
|
199
|
+
when NilClass, String, Fixnum, Bignum, Float, TrueClass, FalseClass, Time, Regexp, Symbol
|
200
|
+
data
|
201
|
+
when Hash
|
202
|
+
hvalues = Hash.new
|
203
|
+
data.each{|k,v| hvalues[k] = nice_serialize_object(v) }
|
204
|
+
hvalues
|
205
|
+
when Array
|
206
|
+
data.map{|v| nice_serialize_object(v) }
|
207
|
+
when ActionDispatch::Http::UploadedFile, Rack::Test::UploadedFile # uploaded files
|
208
|
+
hvalues = {
|
209
|
+
:original_filename => data.original_filename,
|
210
|
+
:content_type => data.content_type
|
211
|
+
}
|
212
|
+
else
|
213
|
+
data.inspect
|
214
|
+
end
|
215
|
+
end
|
175
216
|
|
176
217
|
# force the data in the db by inspecting each top level array and hash element
|
177
218
|
# this will flatten other hashes and arrays
|
178
219
|
def force_serialize(rec)
|
179
220
|
if msgs = rec[:messages]
|
180
|
-
|
181
|
-
msgs[i].collect! { |j| j.inspect } if msgs[i]
|
182
|
-
end
|
221
|
+
msgs.each { |i, j| msgs[i] = j.inspect }
|
183
222
|
end
|
184
223
|
if pms = rec[:params]
|
185
224
|
pms.each { |i, j| pms[i] = j.inspect }
|
186
225
|
end
|
187
226
|
end
|
188
227
|
end
|
189
|
-
end
|
228
|
+
end
|
@@ -5,9 +5,9 @@
|
|
5
5
|
<h2 class="phs mvs"><span class="<%= log_info['is_exception'] ? 'failure' : 'success' %>">Message</span></h2>
|
6
6
|
<div class="phs wrap_text">
|
7
7
|
<% if log_info['is_exception'] && log_info['messages'] && log_info['messages']['error'] %>
|
8
|
-
Error: <%= log_info['messages']['error']
|
8
|
+
Error: <%=h string_from_log_message(log_info['messages']['error']).truncate(300, :separator => ' ') %>
|
9
9
|
<% elsif log_info['messages'] && log_info['messages']['info'] %>
|
10
|
-
Info: <%= log_info['messages']['info']
|
10
|
+
Info: <%=h string_from_log_message(log_info['messages']['info']).truncate(300, :separator => ' ') %>
|
11
11
|
<% end %>
|
12
12
|
</div> <!-- phs -->
|
13
13
|
<h2 class="phs mtm mbs">URL (method: <%=h log_info['method'] %>)</h2>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<% end %>
|
10
10
|
</ul>
|
11
11
|
<% message_tabs.each do |key, val| %>
|
12
|
-
<pre class="tab_<%=key %> tab_content <%='hidden' unless key == message_tabs.keys.first %>"><code><%=h (val
|
12
|
+
<pre class="tab_<%=key %> tab_content <%='hidden' unless key == message_tabs.keys.first %>"><code><%=h string_from_log_message(val) %></code></pre>
|
13
13
|
<% end %>
|
14
14
|
</div> <!-- unit -->
|
15
15
|
</li>
|
data/mongodb_logger.gemspec
CHANGED
@@ -25,6 +25,7 @@ Gem::Specification.new do |gem|
|
|
25
25
|
gem.add_runtime_dependency "i18n", ">= 0.4.1"
|
26
26
|
gem.add_runtime_dependency "json", "~> 1.6.1"
|
27
27
|
gem.add_runtime_dependency "activesupport", ">= 3.0.0"
|
28
|
+
gem.add_runtime_dependency "actionpack", ">= 3.0.0"
|
28
29
|
gem.add_runtime_dependency "sinatra", ">= 1.2.0"
|
29
30
|
gem.add_runtime_dependency "erubis", ">= 2.6.6"
|
30
31
|
gem.add_runtime_dependency "vegas", "~> 0.1.2"
|
@@ -5,8 +5,7 @@ class OrderController < ApplicationController
|
|
5
5
|
|
6
6
|
def index
|
7
7
|
logger.debug LOG_MESSAGE
|
8
|
-
logger.add_metadata(:application_name_again => Rails.root.basename.to_s)
|
9
|
-
logger.add_metadata(:user_id => LOG_USER_ID)
|
8
|
+
logger.add_metadata(:application_name_again => Rails.root.basename.to_s, :user_id => LOG_USER_ID)
|
10
9
|
render :text => "nothing"
|
11
10
|
end
|
12
11
|
|
@@ -17,4 +16,8 @@ class OrderController < ApplicationController
|
|
17
16
|
def create
|
18
17
|
render :text => "create"
|
19
18
|
end
|
19
|
+
|
20
|
+
def test_post
|
21
|
+
render :text => "done"
|
22
|
+
end
|
20
23
|
end
|
@@ -57,6 +57,57 @@ class OrderControllerTest < ActionController::TestCase
|
|
57
57
|
post :create, :activity => {:name => some_name}
|
58
58
|
assert_equal 1, @collection.find({"params.activity.name" => some_name}).count
|
59
59
|
end
|
60
|
+
|
61
|
+
test "should search any values by params keys" do
|
62
|
+
post :test_post, :data => {
|
63
|
+
:int => 1,
|
64
|
+
:is_true => true,
|
65
|
+
:is_false => false,
|
66
|
+
:string => "string",
|
67
|
+
:push_hash => { :yes => "yes" },
|
68
|
+
:float => 1.22
|
69
|
+
}
|
70
|
+
|
71
|
+
# such testing down on Rails 3.1.x, because in tests params converte Fixnum values into String
|
72
|
+
# :(
|
73
|
+
# assert_equal 1, @collection.find({"params.data.int" => 1}).count
|
74
|
+
|
75
|
+
# data types
|
76
|
+
assert_equal 1, @collection.find({"params.data.is_true" => true}).count
|
77
|
+
assert_equal 1, @collection.find({"params.data.is_false" => false}).count
|
78
|
+
assert_equal 1, @collection.find({"params.data.string" => "string"}).count
|
79
|
+
assert_equal 1, @collection.find({"params.data.push_hash.yes" => "yes"}).count
|
80
|
+
end
|
81
|
+
|
82
|
+
test "should search any values by params keys with attachments" do
|
83
|
+
filepath = "mltest_file.html"
|
84
|
+
content_type = "text/html"
|
85
|
+
tmpfile = File.open("#{ActionController::TestCase.fixture_path}#{filepath}", 'w') {|f| f.write("<html></html>") }
|
86
|
+
|
87
|
+
uploaded_file = fixture_file_upload(filepath, content_type, :binary)
|
88
|
+
post :test_post, :data => {
|
89
|
+
:some_key => [
|
90
|
+
{:file => uploaded_file}
|
91
|
+
],
|
92
|
+
:int => 1,
|
93
|
+
:is_true => true,
|
94
|
+
:is_false => false,
|
95
|
+
:string => "string",
|
96
|
+
:push_hash => { :yes => "yes" },
|
97
|
+
:float => 1.22
|
98
|
+
}
|
99
|
+
|
100
|
+
# data types
|
101
|
+
assert_equal 1, @collection.find({"params.data.is_true" => true}).count
|
102
|
+
assert_equal 1, @collection.find({"params.data.is_false" => false}).count
|
103
|
+
assert_equal 1, @collection.find({"params.data.string" => "string"}).count
|
104
|
+
assert_equal 1, @collection.find({"params.data.push_hash.yes" => "yes"}).count
|
105
|
+
# attachment
|
106
|
+
assert_equal 1, @collection.find({"params.data.some_key.file.content_type" => content_type}).count
|
107
|
+
assert_equal 1, @collection.find({"params.data.some_key.file.original_filename" => filepath}).count
|
108
|
+
|
109
|
+
File.delete(filepath) if File.exist?(filepath)
|
110
|
+
end
|
60
111
|
|
61
112
|
test "should not log passwords" do
|
62
113
|
post :create, :order => {:password => OrderController::LOG_MESSAGE }
|
data/test/test_helper.rb
CHANGED
@@ -23,6 +23,7 @@ class Test::Unit::TestCase
|
|
23
23
|
SAMPLE_CONFIG_DIR = File.join(CONFIG_DIR, "samples")
|
24
24
|
DEFAULT_CONFIG = "database.yml"
|
25
25
|
DEFAULT_CONFIG_WITH_AUTH = "database_with_auth.yml"
|
26
|
+
DEFAULT_CONFIG_WITH_COLLECTION = "database_with_collection.yml"
|
26
27
|
DEFAULT_CONFIG_WITH_NO_FILE_LOGGING = "database_no_file_logging.yml"
|
27
28
|
MONGOID_CONFIG = "mongoid.yml"
|
28
29
|
REPLICA_SET_CONFIG = "database_replica_set.yml"
|
@@ -249,4 +249,26 @@ class MongodbLogger::LoggerTest < Test::Unit::TestCase
|
|
249
249
|
end
|
250
250
|
end
|
251
251
|
|
252
|
+
context "A MongodbLogger::Logger with custom collection" do
|
253
|
+
setup do
|
254
|
+
file_path = File.join(SAMPLE_CONFIG_DIR, DEFAULT_CONFIG_WITH_COLLECTION)
|
255
|
+
FileUtils.cp(file_path, File.join(CONFIG_DIR, DEFAULT_CONFIG))
|
256
|
+
@mongodb_logger = MongodbLogger::Logger.new
|
257
|
+
common_setup
|
258
|
+
@mongodb_logger.reset_collection
|
259
|
+
|
260
|
+
@file_config = YAML.load(ERB.new(File.new(file_path).read).result)[Rails.env]['mongodb_logger']
|
261
|
+
end
|
262
|
+
|
263
|
+
should "changed collection name" do
|
264
|
+
assert_equal @file_config['collection'], @mongodb_logger.mongo_collection_name
|
265
|
+
assert_equal "#{@file_config['database']}.#{@file_config['collection']}", @collection.stats()['ns']
|
266
|
+
end
|
267
|
+
|
268
|
+
teardown do
|
269
|
+
file = File.join(CONFIG_DIR, DEFAULT_CONFIG)
|
270
|
+
File.delete(file) if File.exist?(file)
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
252
274
|
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.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &7406740 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.7.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *7406740
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &6984860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.0.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *6984860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: mocha
|
38
|
-
requirement: &
|
38
|
+
requirement: &6983620 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.10.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *6983620
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: cucumber
|
49
|
-
requirement: &
|
49
|
+
requirement: &6981880 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.1.2
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *6981880
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: coffee-script
|
60
|
-
requirement: &
|
60
|
+
requirement: &6980620 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 2.2.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *6980620
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: uglifier
|
71
|
-
requirement: &
|
71
|
+
requirement: &6978960 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 1.1.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *6978960
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: therubyracer
|
82
|
-
requirement: &
|
82
|
+
requirement: &6672600 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.9.9
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *6672600
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rake
|
93
|
-
requirement: &
|
93
|
+
requirement: &6671100 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 0.9.0
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *6671100
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: mongo
|
104
|
-
requirement: &
|
104
|
+
requirement: &6668340 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 1.4.0
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *6668340
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: bson_ext
|
115
|
-
requirement: &
|
115
|
+
requirement: &6663080 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 1.4.0
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *6663080
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: i18n
|
126
|
-
requirement: &
|
126
|
+
requirement: &6661080 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: 0.4.1
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *6661080
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: json
|
137
|
-
requirement: &
|
137
|
+
requirement: &6658000 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ~>
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: 1.6.1
|
143
143
|
type: :runtime
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *6658000
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: activesupport
|
148
|
-
requirement: &
|
148
|
+
requirement: &6653380 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,21 @@ dependencies:
|
|
153
153
|
version: 3.0.0
|
154
154
|
type: :runtime
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *6653380
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: actionpack
|
159
|
+
requirement: &6651760 !ruby/object:Gem::Requirement
|
160
|
+
none: false
|
161
|
+
requirements:
|
162
|
+
- - ! '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: 3.0.0
|
165
|
+
type: :runtime
|
166
|
+
prerelease: false
|
167
|
+
version_requirements: *6651760
|
157
168
|
- !ruby/object:Gem::Dependency
|
158
169
|
name: sinatra
|
159
|
-
requirement: &
|
170
|
+
requirement: &6650220 !ruby/object:Gem::Requirement
|
160
171
|
none: false
|
161
172
|
requirements:
|
162
173
|
- - ! '>='
|
@@ -164,10 +175,10 @@ dependencies:
|
|
164
175
|
version: 1.2.0
|
165
176
|
type: :runtime
|
166
177
|
prerelease: false
|
167
|
-
version_requirements: *
|
178
|
+
version_requirements: *6650220
|
168
179
|
- !ruby/object:Gem::Dependency
|
169
180
|
name: erubis
|
170
|
-
requirement: &
|
181
|
+
requirement: &6649140 !ruby/object:Gem::Requirement
|
171
182
|
none: false
|
172
183
|
requirements:
|
173
184
|
- - ! '>='
|
@@ -175,10 +186,10 @@ dependencies:
|
|
175
186
|
version: 2.6.6
|
176
187
|
type: :runtime
|
177
188
|
prerelease: false
|
178
|
-
version_requirements: *
|
189
|
+
version_requirements: *6649140
|
179
190
|
- !ruby/object:Gem::Dependency
|
180
191
|
name: vegas
|
181
|
-
requirement: &
|
192
|
+
requirement: &6648360 !ruby/object:Gem::Requirement
|
182
193
|
none: false
|
183
194
|
requirements:
|
184
195
|
- - ~>
|
@@ -186,7 +197,7 @@ dependencies:
|
|
186
197
|
version: 0.1.2
|
187
198
|
type: :runtime
|
188
199
|
prerelease: false
|
189
|
-
version_requirements: *
|
200
|
+
version_requirements: *6648360
|
190
201
|
description: MongoDB logger for Rails 3
|
191
202
|
email:
|
192
203
|
- leopard.not.a@gmail.com
|
@@ -200,6 +211,7 @@ files:
|
|
200
211
|
- .gitignore
|
201
212
|
- .rvmrc
|
202
213
|
- .travis.yml
|
214
|
+
- CHANGELOG.md
|
203
215
|
- Gemfile
|
204
216
|
- LICENSE
|
205
217
|
- README.md
|
@@ -293,6 +305,7 @@ files:
|
|
293
305
|
- test/config/samples/database_no_file_logging.yml
|
294
306
|
- test/config/samples/database_replica_set.yml
|
295
307
|
- test/config/samples/database_with_auth.yml
|
308
|
+
- test/config/samples/database_with_collection.yml
|
296
309
|
- test/config/samples/mongodb_logger.yml
|
297
310
|
- test/config/samples/mongoid.yml
|
298
311
|
- test/rails.rb
|
@@ -329,25 +342,4 @@ rubygems_version: 1.8.10
|
|
329
342
|
signing_key:
|
330
343
|
specification_version: 3
|
331
344
|
summary: MongoDB logger for Rails 3
|
332
|
-
test_files:
|
333
|
-
- features/rails.feature
|
334
|
-
- features/step_definitions/rails_application_steps.rb
|
335
|
-
- features/support/env.rb
|
336
|
-
- features/support/rails.rb
|
337
|
-
- features/support/terminal.rb
|
338
|
-
- test/active_record.rb
|
339
|
-
- test/config/samples/database.yml
|
340
|
-
- test/config/samples/database_no_file_logging.yml
|
341
|
-
- test/config/samples/database_replica_set.yml
|
342
|
-
- test/config/samples/database_with_auth.yml
|
343
|
-
- test/config/samples/mongodb_logger.yml
|
344
|
-
- test/config/samples/mongoid.yml
|
345
|
-
- test/rails.rb
|
346
|
-
- test/rails/app/controllers/order_controller.rb
|
347
|
-
- test/rails/test/functional/order_controller_test.rb
|
348
|
-
- test/rails/test/test_helper.rb
|
349
|
-
- test/shoulda_macros/log_macros.rb
|
350
|
-
- test/test.sh
|
351
|
-
- test/test_helper.rb
|
352
|
-
- test/unit/mongodb_logger_replica_test.rb
|
353
|
-
- test/unit/mongodb_logger_test.rb
|
345
|
+
test_files: []
|