mongodb_logger 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/SUPPORTED_RAILS_VERSIONS +1 -0
- data/lib/mongodb_logger/logger.rb +1 -1
- data/lib/mongodb_logger/server/coffee/logs.coffee +14 -13
- data/lib/mongodb_logger/server/public/images/arrow-up.png +0 -0
- data/lib/mongodb_logger/server/public/javascripts/logs.js +15 -16
- data/lib/mongodb_logger/server/public/stylesheets/library.css +4 -0
- data/lib/mongodb_logger/server/view_helpers.rb +6 -1
- data/lib/mongodb_logger/server/views/layout.erb +3 -16
- data/lib/mongodb_logger/server/views/overview.erb +6 -4
- data/lib/mongodb_logger/server/views/shared/_collection_stats.erb +14 -0
- data/lib/mongodb_logger/server/views/show_log.erb +1 -1
- data/lib/mongodb_logger/server.rb +17 -10
- data/lib/mongodb_logger/version.rb +1 -1
- data/test/rails/test/functional/order_controller_test.rb +14 -1
- metadata +35 -54
data/SUPPORTED_RAILS_VERSIONS
CHANGED
@@ -21,7 +21,7 @@ module MongodbLogger
|
|
21
21
|
internal_initialize
|
22
22
|
rescue => e
|
23
23
|
# should use a config block for this
|
24
|
-
Rails.env.production? ? (raise e) : (puts "
|
24
|
+
Rails.env.production? ? (raise e) : (puts "MongodbLogger WARNING: Using BufferedLogger due to exception: " + e.message)
|
25
25
|
ensure
|
26
26
|
if disable_file_logging?
|
27
27
|
@level = level
|
@@ -35,6 +35,7 @@ MongodbLoggerJS =
|
|
35
35
|
# filter tougle
|
36
36
|
$('div.filter-toggle').live 'click', (event) =>
|
37
37
|
$('div.filter').slideToggle()
|
38
|
+
$('div.filter-toggle span.arrow-down').toggleClass('rotate')
|
38
39
|
|
39
40
|
# additional filters
|
40
41
|
$('#add_more_filter').live 'click', (event) =>
|
@@ -94,13 +95,13 @@ MongodbLoggerJS =
|
|
94
95
|
$("#log_info").stop().animate
|
95
96
|
marginTop: 0
|
96
97
|
|
97
|
-
tail_logs: (
|
98
|
+
tail_logs: (log_last_id) ->
|
98
99
|
url = MongodbLoggerJS.tail_logs_url
|
99
|
-
if
|
100
|
-
url = MongodbLoggerJS.tail_logs_url + "/" +
|
100
|
+
if log_last_id? && log_last_id.length > 0
|
101
|
+
url = MongodbLoggerJS.tail_logs_url + "/" + log_last_id
|
101
102
|
else
|
102
103
|
MongodbLoggerJS.tail_log_started = true
|
103
|
-
|
104
|
+
log_last_id = ""
|
104
105
|
if MongodbLoggerJS.tail_log_started
|
105
106
|
$.ajax
|
106
107
|
url: url
|
@@ -108,14 +109,14 @@ MongodbLoggerJS =
|
|
108
109
|
success: (data) ->
|
109
110
|
if data.time
|
110
111
|
$('#tail_logs_time').text(data.time)
|
111
|
-
if
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
112
|
+
if data.log_last_id?
|
113
|
+
log_last_id = data.log_last_id
|
114
|
+
if data.content? && data.content.length > 0
|
115
|
+
elements = $(data.content)
|
116
|
+
elements.addClass('newlog')
|
117
|
+
$('#logs_list tr:first').after(elements).effect("highlight", {}, 1000)
|
118
|
+
if data.collection_stats && $("#collection_stats").length > 0
|
119
|
+
$("#collection_stats").html(data.collection_stats)
|
119
120
|
if MongodbLoggerJS.tail_log_started
|
120
|
-
fcallback = -> MongodbLoggerJS.tail_logs(
|
121
|
+
fcallback = -> MongodbLoggerJS.tail_logs(log_last_id)
|
121
122
|
setTimeout fcallback, 2000
|
Binary file
|
@@ -42,7 +42,8 @@
|
|
42
42
|
return false;
|
43
43
|
});
|
44
44
|
$('div.filter-toggle').live('click', function(event) {
|
45
|
-
|
45
|
+
$('div.filter').slideToggle();
|
46
|
+
return $('div.filter-toggle span.arrow-down').toggleClass('rotate');
|
46
47
|
});
|
47
48
|
$('#add_more_filter').live('click', function(event) {
|
48
49
|
var url;
|
@@ -112,14 +113,14 @@
|
|
112
113
|
});
|
113
114
|
}
|
114
115
|
},
|
115
|
-
tail_logs: function(
|
116
|
+
tail_logs: function(log_last_id) {
|
116
117
|
var url;
|
117
118
|
url = MongodbLoggerJS.tail_logs_url;
|
118
|
-
if (
|
119
|
-
url = MongodbLoggerJS.tail_logs_url + "/" +
|
119
|
+
if ((log_last_id != null) && log_last_id.length > 0) {
|
120
|
+
url = MongodbLoggerJS.tail_logs_url + "/" + log_last_id;
|
120
121
|
} else {
|
121
122
|
MongodbLoggerJS.tail_log_started = true;
|
122
|
-
|
123
|
+
log_last_id = "";
|
123
124
|
}
|
124
125
|
if (MongodbLoggerJS.tail_log_started) {
|
125
126
|
return $.ajax({
|
@@ -129,21 +130,19 @@
|
|
129
130
|
var elements, fcallback;
|
130
131
|
if (data.time) {
|
131
132
|
$('#tail_logs_time').text(data.time);
|
132
|
-
if (
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
}
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
$('#logs_list tr:first').after(elements).effect("highlight", {}, 1000);
|
141
|
-
}
|
133
|
+
if (data.log_last_id != null) log_last_id = data.log_last_id;
|
134
|
+
if ((data.content != null) && data.content.length > 0) {
|
135
|
+
elements = $(data.content);
|
136
|
+
elements.addClass('newlog');
|
137
|
+
$('#logs_list tr:first').after(elements).effect("highlight", {}, 1000);
|
138
|
+
}
|
139
|
+
if (data.collection_stats && $("#collection_stats").length > 0) {
|
140
|
+
$("#collection_stats").html(data.collection_stats);
|
142
141
|
}
|
143
142
|
}
|
144
143
|
if (MongodbLoggerJS.tail_log_started) {
|
145
144
|
fcallback = function() {
|
146
|
-
return MongodbLoggerJS.tail_logs(
|
145
|
+
return MongodbLoggerJS.tail_logs(log_last_id);
|
147
146
|
};
|
148
147
|
return setTimeout(fcallback, 2000);
|
149
148
|
}
|
@@ -85,7 +85,12 @@ module Sinatra::ViewHelpers
|
|
85
85
|
select_tag = []
|
86
86
|
select_tag << "<select id='#{object.form_name}_#{name.to_s}' name='#{object.form_name}[#{name.to_s}]' #{attr.join(" ")}>"
|
87
87
|
options_array.each do |val|
|
88
|
-
|
88
|
+
if val.is_a?(Array) && 2 == val.length
|
89
|
+
skey, sval = val[0], val[1]
|
90
|
+
else
|
91
|
+
skey = sval = val
|
92
|
+
end
|
93
|
+
select_tag << "<option value='#{skey}' #{"selected='selected'" if value && skey.to_s == value}>#{sval}</option>"
|
89
94
|
end
|
90
95
|
select_tag << "</select>"
|
91
96
|
select_tag.join("\n")
|
@@ -19,22 +19,9 @@
|
|
19
19
|
<div class="ptxs pls"><strong>DB:</strong> <%=h @db.name %></div>
|
20
20
|
<div class="pls"><strong>Collection:</strong> <%=h @collection.name %></div>
|
21
21
|
</div> <!-- unit -->
|
22
|
-
<div
|
23
|
-
|
24
|
-
|
25
|
-
</div> <!-- unit -->
|
26
|
-
<% if @collection_stats["capped"] && 1 == @collection_stats["capped"] %>
|
27
|
-
|
28
|
-
<div class="progress">
|
29
|
-
<span class="size"><%=h number_to_human_size(@collection_stats["size"]) %> of <%=h number_to_human_size(@collection_stats["storageSize"]) %></span>
|
30
|
-
<div class="used" style="width: <%=((@collection_stats["size"].to_f / @collection_stats["storageSize"].to_f) * 100).round%>%"></div>
|
31
|
-
</div> <!-- progress -->
|
32
|
-
|
33
|
-
<% else %>
|
34
|
-
<div class="warning"><p>You do not use capped collection for logs.
|
35
|
-
<a href="http://www.mongodb.org/display/DOCS/Capped+Collections" target="_blank" class="more">More info.</a></p>
|
36
|
-
</div>
|
37
|
-
<% end %>
|
22
|
+
<div id="collection_stats">
|
23
|
+
<%= partial(:"shared/collection_stats", :object => @collection_stats) %>
|
24
|
+
</div>
|
38
25
|
</div>
|
39
26
|
<a href="<%=h url_path("overview") %>" class="logo" data-pjax='#main_pjax'><img src="<%=u 'images/logo.png'%>" alt="MongoDB Logger"></a> <span class="logger ">logger</span>
|
40
27
|
</div> <!-- wrapper -->
|
@@ -1,5 +1,7 @@
|
|
1
|
-
<%
|
2
|
-
|
1
|
+
<% if @collection_stats["capped"] && 1 == @collection_stats["capped"] %>
|
2
|
+
<% content_for :right_top_panel do %>
|
3
|
+
<%= partial(:"shared/tail_panel") %>
|
4
|
+
<% end %>
|
3
5
|
<% end %>
|
4
6
|
|
5
7
|
<%= partial(:"shared/top_panel") %>
|
@@ -24,7 +26,7 @@
|
|
24
26
|
<div class="unit size1of3">
|
25
27
|
<div class="unit size1of2">
|
26
28
|
<div class="prm">
|
27
|
-
<%= select_tag @filter, :limit, [50, 100, 200, 500, 1000] %>
|
29
|
+
<%= select_tag @filter, :limit, [[50, "Limits - 50"], [100, "Limits - 100"], [200, "Limits - 200"], [500, "Limits - 500"], [1000, "Limits - 1000"]] %>
|
28
30
|
</div> <!-- prm -->
|
29
31
|
</div> <!-- unit -->
|
30
32
|
<div class="unit size1of2">
|
@@ -67,7 +69,7 @@
|
|
67
69
|
</form>
|
68
70
|
</div> <!-- filter -->
|
69
71
|
|
70
|
-
<div class="filter-toggle"><span class="arrow-down">Filter</span></div>
|
72
|
+
<div class="filter-toggle"><span class="arrow-down <%= 'rotate' unless @filter.get_mongo_conditions.blank? %>">Filter</span></div>
|
71
73
|
|
72
74
|
<% if @logs.count > 0 %>
|
73
75
|
<table id="logs_list">
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div class="unit size1of3">
|
2
|
+
<div class="pts prs txtR">
|
3
|
+
<span class="log-num" title="count of logs"><%=h collection_stats["count"] %></span></div>
|
4
|
+
</div> <!-- unit -->
|
5
|
+
<% if collection_stats["capped"] && 1 == collection_stats["capped"] %>
|
6
|
+
<div class="progress">
|
7
|
+
<span class="size"><%=h number_to_human_size(collection_stats["size"]) %> of <%=h number_to_human_size(collection_stats["storageSize"]) %></span>
|
8
|
+
<div class="used" style="width: <%=((collection_stats["size"].to_f / collection_stats["storageSize"].to_f) * 100).round%>%"></div>
|
9
|
+
</div> <!-- progress -->
|
10
|
+
<% else %>
|
11
|
+
<div class="warning"><p>You do not use capped collection for logs.
|
12
|
+
<a href="http://www.mongodb.org/display/DOCS/Capped+Collections#CappedCollections-Convertingacollectiontocapped" target="_blank" class="more">More info.</a></p>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<div class="unit-right">
|
4
4
|
<div class="pam">
|
5
|
-
<a href="<%=h url_path("overview") %>" data-pjax='#main_pjax'>Back</a>
|
5
|
+
<a href="<%=h url_path("overview") %>" data-pjax='#main_pjax' class="button small grey">Back</a>
|
6
6
|
</div> <!-- pam -->
|
7
7
|
</div> <!-- unit-right -->
|
8
8
|
<h1 class="pam">Log #<%=h @log['_id'] %></h1>
|
@@ -94,30 +94,37 @@ module MongodbLogger
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
-
get "/tail_logs/?:
|
97
|
+
get "/tail_logs/?:log_last_id?" do
|
98
98
|
buffer = []
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
99
|
+
last_id = nil
|
100
|
+
if params[:log_last_id] && !params[:log_last_id].blank?
|
101
|
+
log_last_id = params[:log_last_id]
|
102
|
+
tail = Mongo::Cursor.new(@collection, :tailable => true, :order => [['$natural', 1]],
|
103
|
+
:selector => {'_id' => { '$gt' => BSON::ObjectId(log_last_id) }})
|
104
|
+
while log = tail.next
|
103
105
|
buffer << partial(:"shared/log", :object => log)
|
104
|
-
|
106
|
+
log_last_id = log['_id']
|
105
107
|
end
|
106
108
|
buffer.reverse!
|
107
109
|
else
|
108
|
-
|
110
|
+
@log = @collection.find_one(:order => [['$natural', -1]])
|
111
|
+
log_last_id = @log['_id'] unless @log.blank?
|
109
112
|
end
|
113
|
+
|
110
114
|
content_type :json
|
111
|
-
{ :
|
115
|
+
{ :log_last_id => log_last_id,
|
116
|
+
:time => Time.now.strftime("%F %T"),
|
117
|
+
:content => buffer.join("\n"),
|
118
|
+
:collection_stats => partial(:"shared/collection_stats", :object => @collection_stats) }.to_json
|
112
119
|
end
|
113
120
|
|
114
121
|
get "/log/:id" do
|
115
|
-
@log = @collection.find_one(
|
122
|
+
@log = @collection.find_one(BSON::ObjectId(params[:id]))
|
116
123
|
show :show_log, !request.xhr?
|
117
124
|
end
|
118
125
|
|
119
126
|
get "/log_info/:id" do
|
120
|
-
@log = @collection.find_one(
|
127
|
+
@log = @collection.find_one(BSON::ObjectId(params[:id]))
|
121
128
|
partial(:"shared/log_info", :object => @log)
|
122
129
|
end
|
123
130
|
|
@@ -32,18 +32,31 @@ class OrderControllerTest < ActionController::TestCase
|
|
32
32
|
assert_equal OrderController::LOG_USER_ID, @collection.find_one({}, :fields => "user_id")["user_id"]
|
33
33
|
end
|
34
34
|
|
35
|
-
test "should
|
35
|
+
test "should write GET request method" do
|
36
36
|
get :index
|
37
37
|
log = @collection.find_one()
|
38
38
|
http_method = 'GET'
|
39
39
|
assert_equal http_method, log['method']
|
40
40
|
end
|
41
|
+
|
42
|
+
test "should write POST request method" do
|
43
|
+
post :create
|
44
|
+
log = @collection.find_one()
|
45
|
+
http_method = 'POST'
|
46
|
+
assert_equal http_method, log['method']
|
47
|
+
end
|
41
48
|
|
42
49
|
test "should log exceptions" do
|
43
50
|
assert_raise(RuntimeError, OrderController::LOG_MESSAGE) {get :new}
|
44
51
|
assert_equal 1, @collection.find_one({"messages.error" => /^#{OrderController::LOG_MESSAGE}/})["messages"]["error"].count
|
45
52
|
assert_equal 1, @collection.find_one({"is_exception" => true})["messages"]["error"].count
|
46
53
|
end
|
54
|
+
|
55
|
+
test "should log find by params keys" do
|
56
|
+
some_name = "name"
|
57
|
+
post :create, :activity => {:name => some_name}
|
58
|
+
assert_equal 1, @collection.find({"params.activity.name" => some_name}).count
|
59
|
+
end
|
47
60
|
|
48
61
|
test "should not log passwords" do
|
49
62
|
post :create, :order => {:password => OrderController::LOG_MESSAGE }
|
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.1.
|
4
|
+
version: 0.1.6
|
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-11-
|
12
|
+
date: 2011-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &5200940 !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: *5200940
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &5197060 !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: *5197060
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: mocha
|
38
|
-
requirement: &
|
38
|
+
requirement: &5196180 !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: *5196180
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: cucumber
|
49
|
-
requirement: &
|
49
|
+
requirement: &4815360 !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: *4815360
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: coffee-script
|
60
|
-
requirement: &
|
60
|
+
requirement: &4813580 !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: *4813580
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: therubyracer
|
71
|
-
requirement: &
|
71
|
+
requirement: &4812700 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.9.9
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *4812700
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rake
|
82
|
-
requirement: &
|
82
|
+
requirement: &4810580 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.9.0
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *4810580
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: mongo
|
93
|
-
requirement: &
|
93
|
+
requirement: &4809660 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.4.0
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *4809660
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: bson_ext
|
104
|
-
requirement: &
|
104
|
+
requirement: &4808980 !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: *4808980
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: i18n
|
115
|
-
requirement: &
|
115
|
+
requirement: &4808380 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 0.4.1
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *4808380
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: json
|
126
|
-
requirement: &
|
126
|
+
requirement: &4863320 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: 1.6.1
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *4863320
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: activesupport
|
137
|
-
requirement: &
|
137
|
+
requirement: &4862640 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: 3.0.0
|
143
143
|
type: :runtime
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *4862640
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: sinatra
|
148
|
-
requirement: &
|
148
|
+
requirement: &4861920 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: 1.2.0
|
154
154
|
type: :runtime
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *4861920
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: erubis
|
159
|
-
requirement: &
|
159
|
+
requirement: &4861100 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: 2.6.6
|
165
165
|
type: :runtime
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *4861100
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: vegas
|
170
|
-
requirement: &
|
170
|
+
requirement: &4860200 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ~>
|
@@ -175,7 +175,7 @@ dependencies:
|
|
175
175
|
version: 0.1.2
|
176
176
|
type: :runtime
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *4860200
|
179
179
|
description: MongoDB logger for Rails 3
|
180
180
|
email:
|
181
181
|
- leopard.not.a@gmail.com
|
@@ -215,6 +215,7 @@ files:
|
|
215
215
|
- lib/mongodb_logger/server/model/filter.rb
|
216
216
|
- lib/mongodb_logger/server/partials.rb
|
217
217
|
- lib/mongodb_logger/server/public/images/arrow-down.png
|
218
|
+
- lib/mongodb_logger/server/public/images/arrow-up.png
|
218
219
|
- lib/mongodb_logger/server/public/images/date.png
|
219
220
|
- lib/mongodb_logger/server/public/images/external.png
|
220
221
|
- lib/mongodb_logger/server/public/images/failure.png
|
@@ -245,6 +246,7 @@ files:
|
|
245
246
|
- lib/mongodb_logger/server/views/error.erb
|
246
247
|
- lib/mongodb_logger/server/views/layout.erb
|
247
248
|
- lib/mongodb_logger/server/views/overview.erb
|
249
|
+
- lib/mongodb_logger/server/views/shared/_collection_stats.erb
|
248
250
|
- lib/mongodb_logger/server/views/shared/_dynamic_filter.erb
|
249
251
|
- lib/mongodb_logger/server/views/shared/_log.erb
|
250
252
|
- lib/mongodb_logger/server/views/shared/_log_info.erb
|
@@ -297,25 +299,4 @@ rubygems_version: 1.8.10
|
|
297
299
|
signing_key:
|
298
300
|
specification_version: 3
|
299
301
|
summary: MongoDB logger for Rails 3
|
300
|
-
test_files:
|
301
|
-
- features/rails.feature
|
302
|
-
- features/step_definitions/rails_application_steps.rb
|
303
|
-
- features/support/env.rb
|
304
|
-
- features/support/rails.rb
|
305
|
-
- features/support/terminal.rb
|
306
|
-
- test/active_record.rb
|
307
|
-
- test/config/samples/database.yml
|
308
|
-
- test/config/samples/database_no_file_logging.yml
|
309
|
-
- test/config/samples/database_replica_set.yml
|
310
|
-
- test/config/samples/database_with_auth.yml
|
311
|
-
- test/config/samples/mongodb_logger.yml
|
312
|
-
- test/config/samples/mongoid.yml
|
313
|
-
- test/rails.rb
|
314
|
-
- test/rails/app/controllers/order_controller.rb
|
315
|
-
- test/rails/test/functional/order_controller_test.rb
|
316
|
-
- test/rails/test/test_helper.rb
|
317
|
-
- test/shoulda_macros/log_macros.rb
|
318
|
-
- test/test.sh
|
319
|
-
- test/test_helper.rb
|
320
|
-
- test/unit/mongodb_logger_replica_test.rb
|
321
|
-
- test/unit/mongodb_logger_test.rb
|
302
|
+
test_files: []
|