mongodb_logger 0.2.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.travis.yml +0 -3
- data/README.md +8 -0
- data/Rakefile +2 -2
- data/SUPPORTED_RAILS_VERSIONS +2 -13
- data/{lib/mongodb_logger/server/public → app/assets}/images/arrow-down.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/arrow-up.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/date.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/external.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/failure.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/logo.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/mongodb.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/newlog.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/play-icon.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/spinner.gif +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/spinner2.gif +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/stop-icon.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/images/success.png +0 -0
- data/{lib/mongodb_logger/server/coffee/logs.coffee → app/assets/javascripts/logs.js.coffee} +0 -0
- data/app/assets/javascripts/mongodb_logger.js +2 -0
- data/{lib/mongodb_logger/server/public → app/assets}/javascripts/vendors/highlight.pack.js +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/javascripts/vendors/jquery-1.7.1.min.js +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/javascripts/vendors/jquery-ui-1.8.16.min.js +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/javascripts/vendors/jquery.pjax.min.js +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/grids.css +0 -0
- data/{lib/mongodb_logger/server/public/stylesheets/group-buttons.css → app/assets/stylesheets/group-buttons.css.erb} +2 -2
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/group-forms.css +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/group-headers.css +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/group-tables.css +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/highlight/zenburn.css +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-bg_glass_25_cb842e_1x400.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-bg_glass_70_ede4d4_1x400.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-icons_c47a23_256x240.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-icons_cb672b_256x240.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-icons_f08000_256x240.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-icons_f35f07_256x240.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-icons_ff7519_256x240.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/images/ui-icons_ffffff_256x240.png +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/humanity/jquery-ui-1.8.16.custom.css +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/layout.css +0 -0
- data/{lib/mongodb_logger/server/public/stylesheets/library.css → app/assets/stylesheets/library.css.erb} +8 -8
- data/app/assets/stylesheets/mongodb_logger.css +16 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/reset.css +0 -0
- data/{lib/mongodb_logger/server/public → app/assets}/stylesheets/spaces.css +0 -0
- data/lib/mongodb_logger/capistrano.rb +17 -0
- data/lib/mongodb_logger/engine.rb +5 -0
- data/lib/mongodb_logger/initializer_mixin.rb +3 -2
- data/lib/mongodb_logger/railtie.rb +4 -0
- data/lib/mongodb_logger/server/sprokets.rb +40 -0
- data/lib/mongodb_logger/server/views/layout.erb +3 -7
- data/lib/mongodb_logger/server/views/shared/_top_panel.erb +1 -1
- data/lib/mongodb_logger/server.rb +4 -7
- data/lib/mongodb_logger/version.rb +1 -1
- data/lib/mongodb_logger.rb +1 -0
- data/lib/tasks/mongodb_logger.rake +38 -0
- data/mongodb_logger.gemspec +9 -8
- data/mongodb_logger.java.gemspec +3 -2
- data/test/Gemfile_tests +8 -0
- data/test/test.sh +2 -1
- metadata +118 -101
- data/lib/mongodb_logger/server/public/javascripts/logs.js +0 -1
- data/lib/mongodb_logger/server/public/stylesheets/all.css +0 -12
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -67,6 +67,14 @@ It:
|
|
67
67
|
- 27018
|
68
68
|
- - 127.0.0.1
|
69
69
|
- 27019
|
70
|
+
|
71
|
+
1. For assets pipeline you can generate all js/css file into folder by rake task:
|
72
|
+
|
73
|
+
rake mongodb_logger:assets:compile[public/assets]
|
74
|
+
|
75
|
+
For capistrano possible compile assets by receipt. Add this to config/deploy.rb:
|
76
|
+
|
77
|
+
require 'mongodb_logger/capistrano'
|
70
78
|
|
71
79
|
|
72
80
|
## Usage
|
data/Rakefile
CHANGED
@@ -77,9 +77,9 @@ LOCAL_GEM_ROOT = File.join(GEM_ROOT, 'tmp', 'local_gems').freeze
|
|
77
77
|
if ENV['CI']
|
78
78
|
# for ci testing only major rails versions
|
79
79
|
if 'java' == RUBY_PLATFORM
|
80
|
-
RAILS_VERSIONS = ['3.
|
80
|
+
RAILS_VERSIONS = ['3.1.3', '3.2.5']
|
81
81
|
else
|
82
|
-
RAILS_VERSIONS = ['3.
|
82
|
+
RAILS_VERSIONS = ['3.1.3', '3.2.5']
|
83
83
|
end
|
84
84
|
else
|
85
85
|
RAILS_VERSIONS = IO.read('SUPPORTED_RAILS_VERSIONS').strip.split("\n")
|
data/SUPPORTED_RAILS_VERSIONS
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{lib/mongodb_logger/server/public → app/assets}/javascripts/vendors/jquery-1.7.1.min.js
RENAMED
File without changes
|
data/{lib/mongodb_logger/server/public → app/assets}/javascripts/vendors/jquery-ui-1.8.16.min.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
@@ -71,11 +71,11 @@
|
|
71
71
|
.start {
|
72
72
|
display: inline-block;
|
73
73
|
padding-left: 13px;
|
74
|
-
background: url(
|
74
|
+
background: url(<%= asset_data_uri('play-icon.png') %>) no-repeat 0 -35px;
|
75
75
|
}
|
76
76
|
|
77
77
|
.stop {
|
78
78
|
display: inline-block;
|
79
79
|
padding-left: 13px;
|
80
|
-
background: url(
|
80
|
+
background: url(<%= asset_data_uri('stop-icon.png') %>) no-repeat 0 5px;
|
81
81
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -46,12 +46,12 @@ a:hover, a:active {
|
|
46
46
|
|
47
47
|
.success {
|
48
48
|
padding-right: 15px;
|
49
|
-
background: url(
|
49
|
+
background: url(<%= asset_data_uri('success.png') %>) no-repeat 100% 50%;
|
50
50
|
}
|
51
51
|
|
52
52
|
.failure {
|
53
53
|
padding-right: 15px;
|
54
|
-
background: url(
|
54
|
+
background: url(<%= asset_data_uri('failure.png') %>) no-repeat 100% 50%;
|
55
55
|
}
|
56
56
|
|
57
57
|
.notice {
|
@@ -62,7 +62,7 @@ a:hover, a:active {
|
|
62
62
|
display: inline-block;
|
63
63
|
margin-right: 5px;
|
64
64
|
margin-left: -17px;
|
65
|
-
/* background: url(
|
65
|
+
/* background: url(<%= asset_data_uri('success.png') %>) no-repeat 0 0; */
|
66
66
|
}
|
67
67
|
|
68
68
|
.error {
|
@@ -73,16 +73,16 @@ a:hover, a:active {
|
|
73
73
|
display: inline-block;
|
74
74
|
margin-right: 5px;
|
75
75
|
margin-left: -17px;
|
76
|
-
background: url(
|
76
|
+
background: url(<%= asset_data_uri('failure.png') %>) no-repeat 0 0;
|
77
77
|
}
|
78
78
|
|
79
79
|
.arrow-down {
|
80
80
|
padding-right: 15px;
|
81
|
-
background: url(
|
81
|
+
background: url(<%= asset_data_uri('arrow-down.png') %>) no-repeat 100% 50%;
|
82
82
|
}
|
83
83
|
|
84
84
|
.arrow-down.rotate {
|
85
|
-
background: url(
|
85
|
+
background: url(<%= asset_data_uri('arrow-up.png') %>) no-repeat 100% 50%;
|
86
86
|
}
|
87
87
|
|
88
88
|
code {
|
@@ -156,7 +156,7 @@ code {
|
|
156
156
|
font: 12px arial, sans-serif;
|
157
157
|
vertical-align: middle;
|
158
158
|
border: 1px solid #bbb;
|
159
|
-
background: #fff url(
|
159
|
+
background: #fff url(<%= asset_data_uri('date.png') %>) no-repeat 9px 50%;
|
160
160
|
border-radius: 3px;
|
161
161
|
box-shadow: 0 1px 2px #e6e6e6 inset, 0 1px 0 #fff;
|
162
162
|
}
|
@@ -230,7 +230,7 @@ li.message_tab {
|
|
230
230
|
|
231
231
|
a[target="_blank"] {
|
232
232
|
display: inline-block;
|
233
|
-
background: url(
|
233
|
+
background: url(<%= asset_data_uri('external.png') %>) no-repeat 0 3px;
|
234
234
|
padding-left: 17px;
|
235
235
|
}
|
236
236
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*= require "reset.css"
|
6
|
+
*= require "grids.css"
|
7
|
+
*= require "spaces.css"
|
8
|
+
*= require "layout.css"
|
9
|
+
*= require "library.css.erb"
|
10
|
+
*= require "group-headers.css"
|
11
|
+
*= require "group-buttons.css.erb"
|
12
|
+
*= require "group-forms.css"
|
13
|
+
*= require "group-tables.css"
|
14
|
+
*= require "humanity/jquery-ui-1.8.16.custom.css"
|
15
|
+
*= require "highlight/zenburn.css"
|
16
|
+
*/
|
File without changes
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Capistrano::Configuration.instance.load do
|
2
|
+
after 'deploy:update_code', 'mongodb_logger:precompile'
|
3
|
+
_cset :mongodb_logger_asset_env, "RAILS_GROUPS=assets"
|
4
|
+
_cset :mongodb_logger_assets_role, [:web]
|
5
|
+
_cset :mongodb_logger_assets_dir, "public/assets"
|
6
|
+
|
7
|
+
namespace :mongodb_logger do
|
8
|
+
|
9
|
+
desc <<-DESC
|
10
|
+
Run the asset precompilation rake task.
|
11
|
+
DESC
|
12
|
+
task :precompile, :roles => mongodb_logger_assets_role, :except => { :no_release => true } do
|
13
|
+
run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{mongodb_logger_asset_env} mongodb_logger:assets:compile[#{mongodb_logger_assets_dir}]"
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -6,10 +6,11 @@ module MongodbLogger
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def create_logger(config)
|
9
|
-
path =
|
9
|
+
path = config.paths['log'].first
|
10
10
|
level = ActiveSupport::BufferedLogger.const_get(config.log_level.to_s.upcase)
|
11
11
|
logger = MongodbLogger::Logger.new(:path => path, :level => level)
|
12
|
-
logger.
|
12
|
+
logger.level = level
|
13
|
+
logger.auto_flushing = false if Rails.env.production? && rails3(1)
|
13
14
|
logger
|
14
15
|
rescue StandardError => e
|
15
16
|
logger = ActiveSupport::BufferedLogger.new(STDERR)
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'base64'
|
2
|
+
require 'rack/utils'
|
3
|
+
require 'sprockets'
|
4
|
+
|
5
|
+
module MongodbLogger
|
6
|
+
|
7
|
+
module AssetHelpers
|
8
|
+
def asset_path(source)
|
9
|
+
"/assets/#{Assets.instance.find_asset(source).digest_path}" unless Assets.instance.find_asset(source).nil?
|
10
|
+
end
|
11
|
+
def asset_data_uri(source)
|
12
|
+
unless Assets.instance.find_asset(source).nil?
|
13
|
+
asset = Assets.instance.find_asset(source)
|
14
|
+
base64 = Base64.encode64(asset.to_s).gsub(/\s+/, "")
|
15
|
+
"data:#{asset.content_type};base64,#{Rack::Utils.escape(base64)}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class Assets < Sprockets::Environment
|
21
|
+
class << self
|
22
|
+
def instance(root = nil)
|
23
|
+
assets_path = File.expand_path('../../../../app/assets', __FILE__)
|
24
|
+
@instance ||= new(assets_path)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def initialize(assets_path)
|
29
|
+
super
|
30
|
+
append_path(File.join(assets_path, 'stylesheets'))
|
31
|
+
append_path(File.join(assets_path, 'javascripts'))
|
32
|
+
append_path(File.join(assets_path, 'images'))
|
33
|
+
|
34
|
+
context_class.instance_eval do
|
35
|
+
include AssetHelpers
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>MongoDB Logger</title>
|
5
|
-
<link href="<%=
|
5
|
+
<link href="<%= asset_path('mongodb_logger.css') %>" media="screen" rel="stylesheet" type="text/css">
|
6
6
|
</head>
|
7
7
|
<body>
|
8
8
|
<div class="page">
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<%= partial(:"shared/collection_stats", :object => @collection_stats) %>
|
18
18
|
</div>
|
19
19
|
</div>
|
20
|
-
<a href="<%=h url_path("overview") %>" class="logo" data-pjax='#main_pjax'><img src="<%=
|
20
|
+
<a href="<%=h url_path("overview") %>" class="logo" data-pjax='#main_pjax'><img src="<%= asset_path 'logo.png' %>" alt="MongoDB Logger"></a>
|
21
21
|
</div> <!-- wrapper -->
|
22
22
|
</div> <!-- header -->
|
23
23
|
<div class="content">
|
@@ -30,11 +30,7 @@
|
|
30
30
|
</div>
|
31
31
|
|
32
32
|
<!-- scripts -->
|
33
|
-
<script src="<%=
|
34
|
-
<script src="<%=u 'javascripts/vendors/jquery-ui-1.8.16.min.js' %>" type="text/javascript"></script>
|
35
|
-
<script src="<%=u 'javascripts/vendors/jquery.pjax.min.js' %>" type="text/javascript"></script>
|
36
|
-
<script src="<%=u 'javascripts/vendors/highlight.pack.js' %>" type="text/javascript"></script>
|
37
|
-
<script src="<%=u 'javascripts/logs.js' %>" type="text/javascript"></script>
|
33
|
+
<script src="<%= asset_path('mongodb_logger.js') %>" type="text/javascript"></script>
|
38
34
|
|
39
35
|
<!-- charts -->
|
40
36
|
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
@@ -3,5 +3,5 @@
|
|
3
3
|
<div class="unit-right">
|
4
4
|
<% yield_content :right_top_panel %>
|
5
5
|
</div> <!-- unit-right -->
|
6
|
-
<div id="ajax_loader"><img src="<%=
|
6
|
+
<div id="ajax_loader"><img src="<%= asset_path 'spinner.gif' %>" alt="loading..."></div>
|
7
7
|
</div> <!-- topline -->
|
@@ -6,6 +6,7 @@ require 'active_support'
|
|
6
6
|
require 'mongodb_logger/server/view_helpers'
|
7
7
|
require 'mongodb_logger/server/partials'
|
8
8
|
require 'mongodb_logger/server/content_for'
|
9
|
+
require 'mongodb_logger/server/sprokets'
|
9
10
|
|
10
11
|
require 'mongodb_logger/server/model/additional_filter'
|
11
12
|
require 'mongodb_logger/server/model/filter'
|
@@ -26,18 +27,14 @@ module MongodbLogger
|
|
26
27
|
dir = File.dirname(File.expand_path(__FILE__))
|
27
28
|
|
28
29
|
set :views, "#{dir}/server/views"
|
29
|
-
|
30
|
-
if respond_to? :public_folder
|
31
|
-
set :public_folder, "#{dir}/server/public"
|
32
|
-
else
|
33
|
-
set :public, "#{dir}/server/public"
|
34
|
-
end
|
35
30
|
#set :environment, :production
|
36
31
|
set :static, true
|
37
32
|
|
38
33
|
helpers do
|
39
34
|
include Rack::Utils
|
40
35
|
alias_method :h, :escape_html
|
36
|
+
# pipeline
|
37
|
+
include AssetHelpers
|
41
38
|
|
42
39
|
def current_page
|
43
40
|
url_path request.path_info.sub('/','')
|
@@ -167,7 +164,7 @@ module MongodbLogger
|
|
167
164
|
end
|
168
165
|
|
169
166
|
error do
|
170
|
-
erb :error, {:layout => false}, :error => 'Sorry there was a nasty error. Maybe no connection to MongoDB. Debug: ' + env['sinatra.error'].inspect
|
167
|
+
erb :error, {:layout => false}, :error => 'Sorry there was a nasty error. Maybe no connection to MongoDB. Debug: ' + env['sinatra.error'].inspect + '<br />' + env.inspect
|
171
168
|
end
|
172
169
|
|
173
170
|
end
|
data/lib/mongodb_logger.rb
CHANGED
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'mongodb_logger/server/sprokets'
|
2
|
+
namespace :mongodb_logger do
|
3
|
+
namespace :assets do
|
4
|
+
desc 'compile assets'
|
5
|
+
task :compile, [:output_dir] => [:compile_js, :compile_css, :compile_imgs] do
|
6
|
+
end
|
7
|
+
|
8
|
+
desc 'compile javascript assets'
|
9
|
+
task :compile_js, [:output_dir] => :environment do |t, args|
|
10
|
+
return (raise "Specify output dir for assets") if args.output_dir.nil?
|
11
|
+
sprockets = MongodbLogger::Assets.instance
|
12
|
+
asset_name = 'mongodb_logger.js'
|
13
|
+
asset = sprockets[asset_name]
|
14
|
+
asset.write_to(File.join(args.output_dir, sprockets.find_asset(asset_name).digest_path))
|
15
|
+
puts "successfully compiled js assets"
|
16
|
+
end
|
17
|
+
|
18
|
+
desc 'compile css assets'
|
19
|
+
task :compile_css, [:output_dir] => :environment do |t, args|
|
20
|
+
return (raise "Specify output dir for assets") if args.output_dir.nil?
|
21
|
+
sprockets = MongodbLogger::Assets.instance
|
22
|
+
asset_name = 'mongodb_logger.css'
|
23
|
+
asset = sprockets[asset_name]
|
24
|
+
asset.write_to(File.join(args.output_dir, sprockets.find_asset(asset_name).digest_path))
|
25
|
+
puts "successfully compiled css assets"
|
26
|
+
end
|
27
|
+
|
28
|
+
desc 'compile images assets'
|
29
|
+
task :compile_imgs, [:output_dir] => :environment do |t, args|
|
30
|
+
return (raise "Specify output dir for assets") if args.output_dir.nil?
|
31
|
+
sprockets = MongodbLogger::Assets.instance
|
32
|
+
asset_name = 'logo.png'
|
33
|
+
asset = sprockets[asset_name]
|
34
|
+
asset.write_to(File.join(args.output_dir, sprockets.find_asset(asset_name).digest_path))
|
35
|
+
puts "successfully compiled images assets"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/mongodb_logger.gemspec
CHANGED
@@ -15,22 +15,23 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.add_development_dependency "rspec", ">= 2.8.0"
|
16
16
|
gem.add_development_dependency "shoulda", ">= 2.0.0"
|
17
17
|
gem.add_development_dependency "mocha", ">= 0.10.0"
|
18
|
-
gem.add_development_dependency "cucumber", "
|
19
|
-
gem.add_development_dependency "capybara", "
|
20
|
-
gem.add_development_dependency "coffee-script", "~> 2.2.0"
|
18
|
+
gem.add_development_dependency "cucumber", ">= 1.1.2"
|
19
|
+
gem.add_development_dependency "capybara", ">= 1.1.2"
|
21
20
|
gem.add_development_dependency "uglifier", ">= 1.2.0"
|
22
21
|
gem.add_development_dependency "therubyracer", ">= 0.9.9"
|
23
22
|
|
24
|
-
gem.add_runtime_dependency "rake", "
|
25
|
-
gem.add_runtime_dependency "mongo", "
|
26
|
-
gem.add_runtime_dependency "bson_ext", "
|
23
|
+
gem.add_runtime_dependency "rake", ">= 0.9.0"
|
24
|
+
gem.add_runtime_dependency "mongo", ">= 1.6.1"
|
25
|
+
gem.add_runtime_dependency "bson_ext", ">= 1.6.1"
|
27
26
|
gem.add_runtime_dependency "i18n", ">= 0.4.1"
|
28
|
-
gem.add_runtime_dependency "json", "
|
27
|
+
gem.add_runtime_dependency "json", ">= 1.6.1"
|
29
28
|
gem.add_runtime_dependency "activesupport", ">= 3.0.0"
|
30
29
|
gem.add_runtime_dependency "actionpack", ">= 3.0.0"
|
30
|
+
gem.add_runtime_dependency "sprockets", ">= 2.0.0"
|
31
|
+
gem.add_runtime_dependency "coffee-script", ">= 2.2.0"
|
31
32
|
gem.add_runtime_dependency "sinatra", ">= 1.2.0"
|
32
33
|
gem.add_runtime_dependency "erubis", ">= 2.6.6"
|
33
|
-
gem.add_runtime_dependency "vegas", "
|
34
|
+
gem.add_runtime_dependency "vegas", ">= 0.1.2"
|
34
35
|
|
35
36
|
gem.rubyforge_project = "mongodb_logger"
|
36
37
|
|
data/mongodb_logger.java.gemspec
CHANGED
@@ -17,15 +17,16 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.add_development_dependency "mocha", ">= 0.10.0"
|
18
18
|
gem.add_development_dependency "cucumber", "~> 1.1.2"
|
19
19
|
gem.add_development_dependency "capybara", "~> 1.1.2"
|
20
|
-
gem.add_development_dependency "coffee-script", "~> 2.2.0"
|
21
20
|
gem.add_development_dependency "uglifier", ">= 1.2.0"
|
22
21
|
|
23
22
|
gem.add_runtime_dependency "rake", "~> 0.9.0"
|
24
23
|
gem.add_runtime_dependency "mongo", "~> 1.6.1"
|
25
24
|
gem.add_runtime_dependency "i18n", ">= 0.4.1"
|
26
|
-
gem.add_runtime_dependency "json", "
|
25
|
+
gem.add_runtime_dependency "json", ">= 1.6.1"
|
27
26
|
gem.add_runtime_dependency "activesupport", ">= 3.0.0"
|
28
27
|
gem.add_runtime_dependency "actionpack", ">= 3.0.0"
|
28
|
+
gem.add_runtime_dependency "sprockets", ">= 2.0.0"
|
29
|
+
gem.add_runtime_dependency "coffee-script", "~> 2.2.0"
|
29
30
|
gem.add_runtime_dependency "sinatra", ">= 1.2.0"
|
30
31
|
gem.add_runtime_dependency "erubis", ">= 2.6.6"
|
31
32
|
gem.add_runtime_dependency "vegas", "~> 0.1.2"
|
data/test/Gemfile_tests
ADDED
data/test/test.sh
CHANGED
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
|
+
version: 0.3.0
|
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: 2012-
|
12
|
+
date: 2012-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jasmine
|
16
|
-
requirement: &
|
16
|
+
requirement: &70244202894860 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.0.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70244202894860
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70244202894200 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.8.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70244202894200
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: shoulda
|
38
|
-
requirement: &
|
38
|
+
requirement: &70244202893620 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 2.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70244202893620
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: mocha
|
49
|
-
requirement: &
|
49
|
+
requirement: &70244202893060 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,43 +54,32 @@ dependencies:
|
|
54
54
|
version: 0.10.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70244202893060
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: cucumber
|
60
|
-
requirement: &
|
60
|
+
requirement: &70244202892440 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
|
-
- -
|
63
|
+
- - ! '>='
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: 1.1.2
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70244202892440
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capybara
|
71
|
-
requirement: &
|
71
|
+
requirement: &70244202891900 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ! '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 1.1.2
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: coffee-script
|
82
|
-
requirement: &70292454541880 !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
|
-
requirements:
|
85
|
-
- - ~>
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: 2.2.0
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: *70292454541880
|
79
|
+
version_requirements: *70244202891900
|
91
80
|
- !ruby/object:Gem::Dependency
|
92
81
|
name: uglifier
|
93
|
-
requirement: &
|
82
|
+
requirement: &70244202891220 !ruby/object:Gem::Requirement
|
94
83
|
none: false
|
95
84
|
requirements:
|
96
85
|
- - ! '>='
|
@@ -98,10 +87,10 @@ dependencies:
|
|
98
87
|
version: 1.2.0
|
99
88
|
type: :development
|
100
89
|
prerelease: false
|
101
|
-
version_requirements: *
|
90
|
+
version_requirements: *70244202891220
|
102
91
|
- !ruby/object:Gem::Dependency
|
103
92
|
name: therubyracer
|
104
|
-
requirement: &
|
93
|
+
requirement: &70244202890140 !ruby/object:Gem::Requirement
|
105
94
|
none: false
|
106
95
|
requirements:
|
107
96
|
- - ! '>='
|
@@ -109,43 +98,43 @@ dependencies:
|
|
109
98
|
version: 0.9.9
|
110
99
|
type: :development
|
111
100
|
prerelease: false
|
112
|
-
version_requirements: *
|
101
|
+
version_requirements: *70244202890140
|
113
102
|
- !ruby/object:Gem::Dependency
|
114
103
|
name: rake
|
115
|
-
requirement: &
|
104
|
+
requirement: &70244202889080 !ruby/object:Gem::Requirement
|
116
105
|
none: false
|
117
106
|
requirements:
|
118
|
-
- -
|
107
|
+
- - ! '>='
|
119
108
|
- !ruby/object:Gem::Version
|
120
109
|
version: 0.9.0
|
121
110
|
type: :runtime
|
122
111
|
prerelease: false
|
123
|
-
version_requirements: *
|
112
|
+
version_requirements: *70244202889080
|
124
113
|
- !ruby/object:Gem::Dependency
|
125
114
|
name: mongo
|
126
|
-
requirement: &
|
115
|
+
requirement: &70244202888300 !ruby/object:Gem::Requirement
|
127
116
|
none: false
|
128
117
|
requirements:
|
129
|
-
- -
|
118
|
+
- - ! '>='
|
130
119
|
- !ruby/object:Gem::Version
|
131
120
|
version: 1.6.1
|
132
121
|
type: :runtime
|
133
122
|
prerelease: false
|
134
|
-
version_requirements: *
|
123
|
+
version_requirements: *70244202888300
|
135
124
|
- !ruby/object:Gem::Dependency
|
136
125
|
name: bson_ext
|
137
|
-
requirement: &
|
126
|
+
requirement: &70244202887440 !ruby/object:Gem::Requirement
|
138
127
|
none: false
|
139
128
|
requirements:
|
140
|
-
- -
|
129
|
+
- - ! '>='
|
141
130
|
- !ruby/object:Gem::Version
|
142
131
|
version: 1.6.1
|
143
132
|
type: :runtime
|
144
133
|
prerelease: false
|
145
|
-
version_requirements: *
|
134
|
+
version_requirements: *70244202887440
|
146
135
|
- !ruby/object:Gem::Dependency
|
147
136
|
name: i18n
|
148
|
-
requirement: &
|
137
|
+
requirement: &70244202886540 !ruby/object:Gem::Requirement
|
149
138
|
none: false
|
150
139
|
requirements:
|
151
140
|
- - ! '>='
|
@@ -153,21 +142,21 @@ dependencies:
|
|
153
142
|
version: 0.4.1
|
154
143
|
type: :runtime
|
155
144
|
prerelease: false
|
156
|
-
version_requirements: *
|
145
|
+
version_requirements: *70244202886540
|
157
146
|
- !ruby/object:Gem::Dependency
|
158
147
|
name: json
|
159
|
-
requirement: &
|
148
|
+
requirement: &70244202885660 !ruby/object:Gem::Requirement
|
160
149
|
none: false
|
161
150
|
requirements:
|
162
|
-
- -
|
151
|
+
- - ! '>='
|
163
152
|
- !ruby/object:Gem::Version
|
164
153
|
version: 1.6.1
|
165
154
|
type: :runtime
|
166
155
|
prerelease: false
|
167
|
-
version_requirements: *
|
156
|
+
version_requirements: *70244202885660
|
168
157
|
- !ruby/object:Gem::Dependency
|
169
158
|
name: activesupport
|
170
|
-
requirement: &
|
159
|
+
requirement: &70244202884860 !ruby/object:Gem::Requirement
|
171
160
|
none: false
|
172
161
|
requirements:
|
173
162
|
- - ! '>='
|
@@ -175,10 +164,10 @@ dependencies:
|
|
175
164
|
version: 3.0.0
|
176
165
|
type: :runtime
|
177
166
|
prerelease: false
|
178
|
-
version_requirements: *
|
167
|
+
version_requirements: *70244202884860
|
179
168
|
- !ruby/object:Gem::Dependency
|
180
169
|
name: actionpack
|
181
|
-
requirement: &
|
170
|
+
requirement: &70244202884000 !ruby/object:Gem::Requirement
|
182
171
|
none: false
|
183
172
|
requirements:
|
184
173
|
- - ! '>='
|
@@ -186,10 +175,32 @@ dependencies:
|
|
186
175
|
version: 3.0.0
|
187
176
|
type: :runtime
|
188
177
|
prerelease: false
|
189
|
-
version_requirements: *
|
178
|
+
version_requirements: *70244202884000
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: sprockets
|
181
|
+
requirement: &70244202883220 !ruby/object:Gem::Requirement
|
182
|
+
none: false
|
183
|
+
requirements:
|
184
|
+
- - ! '>='
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 2.0.0
|
187
|
+
type: :runtime
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: *70244202883220
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: coffee-script
|
192
|
+
requirement: &70244202882380 !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ! '>='
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: 2.2.0
|
198
|
+
type: :runtime
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: *70244202882380
|
190
201
|
- !ruby/object:Gem::Dependency
|
191
202
|
name: sinatra
|
192
|
-
requirement: &
|
203
|
+
requirement: &70244202881800 !ruby/object:Gem::Requirement
|
193
204
|
none: false
|
194
205
|
requirements:
|
195
206
|
- - ! '>='
|
@@ -197,10 +208,10 @@ dependencies:
|
|
197
208
|
version: 1.2.0
|
198
209
|
type: :runtime
|
199
210
|
prerelease: false
|
200
|
-
version_requirements: *
|
211
|
+
version_requirements: *70244202881800
|
201
212
|
- !ruby/object:Gem::Dependency
|
202
213
|
name: erubis
|
203
|
-
requirement: &
|
214
|
+
requirement: &70244202880980 !ruby/object:Gem::Requirement
|
204
215
|
none: false
|
205
216
|
requirements:
|
206
217
|
- - ! '>='
|
@@ -208,18 +219,18 @@ dependencies:
|
|
208
219
|
version: 2.6.6
|
209
220
|
type: :runtime
|
210
221
|
prerelease: false
|
211
|
-
version_requirements: *
|
222
|
+
version_requirements: *70244202880980
|
212
223
|
- !ruby/object:Gem::Dependency
|
213
224
|
name: vegas
|
214
|
-
requirement: &
|
225
|
+
requirement: &70244202880100 !ruby/object:Gem::Requirement
|
215
226
|
none: false
|
216
227
|
requirements:
|
217
|
-
- -
|
228
|
+
- - ! '>='
|
218
229
|
- !ruby/object:Gem::Version
|
219
230
|
version: 0.1.2
|
220
231
|
type: :runtime
|
221
232
|
prerelease: false
|
222
|
-
version_requirements: *
|
233
|
+
version_requirements: *70244202880100
|
223
234
|
description: MongoDB logger for Rails 3
|
224
235
|
email:
|
225
236
|
- leopard.not.a@gmail.com
|
@@ -240,6 +251,51 @@ files:
|
|
240
251
|
- Rakefile
|
241
252
|
- SUPPORTED_RAILS_VERSIONS
|
242
253
|
- TESTING.md
|
254
|
+
- app/assets/images/arrow-down.png
|
255
|
+
- app/assets/images/arrow-up.png
|
256
|
+
- app/assets/images/date.png
|
257
|
+
- app/assets/images/external.png
|
258
|
+
- app/assets/images/failure.png
|
259
|
+
- app/assets/images/logo.png
|
260
|
+
- app/assets/images/mongodb.png
|
261
|
+
- app/assets/images/newlog.png
|
262
|
+
- app/assets/images/play-icon.png
|
263
|
+
- app/assets/images/spinner.gif
|
264
|
+
- app/assets/images/spinner2.gif
|
265
|
+
- app/assets/images/stop-icon.png
|
266
|
+
- app/assets/images/success.png
|
267
|
+
- app/assets/javascripts/logs.js.coffee
|
268
|
+
- app/assets/javascripts/mongodb_logger.js
|
269
|
+
- app/assets/javascripts/vendors/highlight.pack.js
|
270
|
+
- app/assets/javascripts/vendors/jquery-1.7.1.min.js
|
271
|
+
- app/assets/javascripts/vendors/jquery-ui-1.8.16.min.js
|
272
|
+
- app/assets/javascripts/vendors/jquery.pjax.min.js
|
273
|
+
- app/assets/stylesheets/grids.css
|
274
|
+
- app/assets/stylesheets/group-buttons.css.erb
|
275
|
+
- app/assets/stylesheets/group-forms.css
|
276
|
+
- app/assets/stylesheets/group-headers.css
|
277
|
+
- app/assets/stylesheets/group-tables.css
|
278
|
+
- app/assets/stylesheets/highlight/zenburn.css
|
279
|
+
- app/assets/stylesheets/humanity/images/ui-bg_flat_75_aaaaaa_40x100.png
|
280
|
+
- app/assets/stylesheets/humanity/images/ui-bg_glass_100_f5f0e5_1x400.png
|
281
|
+
- app/assets/stylesheets/humanity/images/ui-bg_glass_25_cb842e_1x400.png
|
282
|
+
- app/assets/stylesheets/humanity/images/ui-bg_glass_70_ede4d4_1x400.png
|
283
|
+
- app/assets/stylesheets/humanity/images/ui-bg_highlight-hard_100_f4f0ec_1x100.png
|
284
|
+
- app/assets/stylesheets/humanity/images/ui-bg_highlight-hard_65_fee4bd_1x100.png
|
285
|
+
- app/assets/stylesheets/humanity/images/ui-bg_highlight-hard_75_f5f5b5_1x100.png
|
286
|
+
- app/assets/stylesheets/humanity/images/ui-bg_inset-soft_100_f4f0ec_1x100.png
|
287
|
+
- app/assets/stylesheets/humanity/images/ui-icons_c47a23_256x240.png
|
288
|
+
- app/assets/stylesheets/humanity/images/ui-icons_cb672b_256x240.png
|
289
|
+
- app/assets/stylesheets/humanity/images/ui-icons_f08000_256x240.png
|
290
|
+
- app/assets/stylesheets/humanity/images/ui-icons_f35f07_256x240.png
|
291
|
+
- app/assets/stylesheets/humanity/images/ui-icons_ff7519_256x240.png
|
292
|
+
- app/assets/stylesheets/humanity/images/ui-icons_ffffff_256x240.png
|
293
|
+
- app/assets/stylesheets/humanity/jquery-ui-1.8.16.custom.css
|
294
|
+
- app/assets/stylesheets/layout.css
|
295
|
+
- app/assets/stylesheets/library.css.erb
|
296
|
+
- app/assets/stylesheets/mongodb_logger.css
|
297
|
+
- app/assets/stylesheets/reset.css
|
298
|
+
- app/assets/stylesheets/spaces.css
|
243
299
|
- bin/mongodb_logger_web
|
244
300
|
- config.ru
|
245
301
|
- examples/server_config.yml
|
@@ -251,62 +307,20 @@ files:
|
|
251
307
|
- features/support/rails.rb
|
252
308
|
- features/support/terminal.rb
|
253
309
|
- lib/mongodb_logger.rb
|
310
|
+
- lib/mongodb_logger/capistrano.rb
|
254
311
|
- lib/mongodb_logger/config.rb
|
312
|
+
- lib/mongodb_logger/engine.rb
|
255
313
|
- lib/mongodb_logger/initializer_mixin.rb
|
256
314
|
- lib/mongodb_logger/logger.rb
|
257
315
|
- lib/mongodb_logger/railtie.rb
|
258
316
|
- lib/mongodb_logger/replica_set_helper.rb
|
259
317
|
- lib/mongodb_logger/server.rb
|
260
|
-
- lib/mongodb_logger/server/coffee/logs.coffee
|
261
318
|
- lib/mongodb_logger/server/content_for.rb
|
262
319
|
- lib/mongodb_logger/server/model/additional_filter.rb
|
263
320
|
- lib/mongodb_logger/server/model/analytic.rb
|
264
321
|
- lib/mongodb_logger/server/model/filter.rb
|
265
322
|
- lib/mongodb_logger/server/partials.rb
|
266
|
-
- lib/mongodb_logger/server/
|
267
|
-
- lib/mongodb_logger/server/public/images/arrow-up.png
|
268
|
-
- lib/mongodb_logger/server/public/images/date.png
|
269
|
-
- lib/mongodb_logger/server/public/images/external.png
|
270
|
-
- lib/mongodb_logger/server/public/images/failure.png
|
271
|
-
- lib/mongodb_logger/server/public/images/logo.png
|
272
|
-
- lib/mongodb_logger/server/public/images/mongodb.png
|
273
|
-
- lib/mongodb_logger/server/public/images/newlog.png
|
274
|
-
- lib/mongodb_logger/server/public/images/play-icon.png
|
275
|
-
- lib/mongodb_logger/server/public/images/spinner.gif
|
276
|
-
- lib/mongodb_logger/server/public/images/spinner2.gif
|
277
|
-
- lib/mongodb_logger/server/public/images/stop-icon.png
|
278
|
-
- lib/mongodb_logger/server/public/images/success.png
|
279
|
-
- lib/mongodb_logger/server/public/javascripts/logs.js
|
280
|
-
- lib/mongodb_logger/server/public/javascripts/vendors/highlight.pack.js
|
281
|
-
- lib/mongodb_logger/server/public/javascripts/vendors/jquery-1.7.1.min.js
|
282
|
-
- lib/mongodb_logger/server/public/javascripts/vendors/jquery-ui-1.8.16.min.js
|
283
|
-
- lib/mongodb_logger/server/public/javascripts/vendors/jquery.pjax.min.js
|
284
|
-
- lib/mongodb_logger/server/public/stylesheets/all.css
|
285
|
-
- lib/mongodb_logger/server/public/stylesheets/grids.css
|
286
|
-
- lib/mongodb_logger/server/public/stylesheets/group-buttons.css
|
287
|
-
- lib/mongodb_logger/server/public/stylesheets/group-forms.css
|
288
|
-
- lib/mongodb_logger/server/public/stylesheets/group-headers.css
|
289
|
-
- lib/mongodb_logger/server/public/stylesheets/group-tables.css
|
290
|
-
- lib/mongodb_logger/server/public/stylesheets/highlight/zenburn.css
|
291
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-bg_flat_75_aaaaaa_40x100.png
|
292
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-bg_glass_100_f5f0e5_1x400.png
|
293
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-bg_glass_25_cb842e_1x400.png
|
294
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-bg_glass_70_ede4d4_1x400.png
|
295
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-bg_highlight-hard_100_f4f0ec_1x100.png
|
296
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-bg_highlight-hard_65_fee4bd_1x100.png
|
297
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-bg_highlight-hard_75_f5f5b5_1x100.png
|
298
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-bg_inset-soft_100_f4f0ec_1x100.png
|
299
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-icons_c47a23_256x240.png
|
300
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-icons_cb672b_256x240.png
|
301
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-icons_f08000_256x240.png
|
302
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-icons_f35f07_256x240.png
|
303
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-icons_ff7519_256x240.png
|
304
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/images/ui-icons_ffffff_256x240.png
|
305
|
-
- lib/mongodb_logger/server/public/stylesheets/humanity/jquery-ui-1.8.16.custom.css
|
306
|
-
- lib/mongodb_logger/server/public/stylesheets/layout.css
|
307
|
-
- lib/mongodb_logger/server/public/stylesheets/library.css
|
308
|
-
- lib/mongodb_logger/server/public/stylesheets/reset.css
|
309
|
-
- lib/mongodb_logger/server/public/stylesheets/spaces.css
|
323
|
+
- lib/mongodb_logger/server/sprokets.rb
|
310
324
|
- lib/mongodb_logger/server/view_helpers.rb
|
311
325
|
- lib/mongodb_logger/server/views/analytics.erb
|
312
326
|
- lib/mongodb_logger/server/views/error.erb
|
@@ -323,6 +337,7 @@ files:
|
|
323
337
|
- lib/mongodb_logger/server/views/show_log.erb
|
324
338
|
- lib/mongodb_logger/server_config.rb
|
325
339
|
- lib/mongodb_logger/version.rb
|
340
|
+
- lib/tasks/mongodb_logger.rake
|
326
341
|
- mongodb_logger.gemspec
|
327
342
|
- mongodb_logger.java.gemspec
|
328
343
|
- spec/javascripts/MongodbLoggerMainSpec.js
|
@@ -330,6 +345,7 @@ files:
|
|
330
345
|
- spec/javascripts/support/jasmine.yml
|
331
346
|
- spec/javascripts/support/jasmine_config.rb
|
332
347
|
- spec/javascripts/support/jasmine_runner.rb
|
348
|
+
- test/Gemfile_tests
|
333
349
|
- test/active_record.rb
|
334
350
|
- test/config/samples/database.yml
|
335
351
|
- test/config/samples/database_no_file_logging.yml
|
@@ -387,6 +403,7 @@ test_files:
|
|
387
403
|
- spec/javascripts/support/jasmine.yml
|
388
404
|
- spec/javascripts/support/jasmine_config.rb
|
389
405
|
- spec/javascripts/support/jasmine_runner.rb
|
406
|
+
- test/Gemfile_tests
|
390
407
|
- test/active_record.rb
|
391
408
|
- test/config/samples/database.yml
|
392
409
|
- test/config/samples/database_no_file_logging.yml
|
@@ -1 +0,0 @@
|
|
1
|
-
((function(){var a;a=typeof global!="undefined"&&global!==null?global:window,a.MongodbLoggerMain={tail_logs_url:null,tail_log_started:!1,log_info_offset:null,log_info_padding:15,is_charts_ready:!1,init:function(){var a=this;return $(document).ajaxStart(function(){return $("#ajax_loader").show()}),$(document).ajaxStop(function(){return $("#ajax_loader").hide()}),$(document).on("click","#tail_logs_link",function(a){return MongodbLoggerMain.tail_logs_url=$(a.target).attr("data-url"),$("#tail_logs_block").addClass("started"),MongodbLoggerMain.tail_logs(null),!1}),$(document).on("click","#tail_logs_stop_link",function(a){return MongodbLoggerMain.tail_log_started=!1,$("#tail_logs_block").removeClass("started"),!1}),$(document).on("click",".log_info",function(a){var b,c;return b=$(a.target),c=b.data("url"),c==null&&(c=b.parent("tr").data("url")),c!=null&&(b.parents("table").find("tr").removeClass("current"),b.parent("tr").addClass("current"),$("#log_info").load(c)),!1}),$(document).on("click","div.filter-toggle",function(a){return $("div.filter").slideToggle(),$("div.filter-toggle span.arrow-down").toggleClass("rotate")}),$(document).on("click","#add_more_filter",function(a){var b;return b=$(a.target).attr("href"),$.ajax({url:b,success:function(a){var b;return b=$("<li></li>").html(a),$("#more_filter_list").append(b)}}),!1}),$(document).on("change","select.filter_type",function(a){var b,c;return b=$(a.target),c=b.attr("rel")+"/"+b.val(),$.ajax({url:c,dataType:"json",success:function(a){var c,d,e=this;c="",d="",$.each(a.conditions,function(a,b){return c+='<option value="'+b+'">'+b+"</option>"}),b.parents("div.filter_block").find("select.filter_conditions").empty().append(c),a.values.length>0?(d='<select id="filter[more][]_value" name="filter[more][][value]">',$.each(a.values,function(a,b){return d+='<option value="'+b+'">'+b+"</option>"}),d+="</select>"):d='<input type="text" name="filter[more][][value]" value="" placeholder="value">',b.parents("div.filter_block").find("div.filter_values").html(d);if("date"===b.val())return b.parents("div.filter_block").find("div.filter_values input").datepicker({dateFormat:"yy-mm-dd",changeMonth:!0,changeYear:!0,yearRange:"c-50:c+10"})}}),!1}),$(document).on("click",".close_more_filter",function(a){return $(a.target).parents("li").remove(),!1}),$(document).on("click","li.message_tab",function(a){var b,c;b=$(a.target),c=b.attr("data-tab");if(c!=null)return $("li.message_tab").removeClass("active"),$("pre.tab_content").addClass("hidden"),b.addClass("active"),$("."+c).removeClass("hidden")}),$(document).on("submit","#analyticForm",function(a){var b,c,d;return c=$("#analyticForm"),d=c.attr("action"),b=c.serializeArray(),$.ajax({url:d,dataType:"json",data:b,type:"POST",success:function(a,b,c){return MongodbLoggerMain.build_analytic_charts(a)}}),!1}),$(document).on("keydown","*",function(a){console.log(a.keyCode);switch(a.keyCode){case 37:return MongodbLoggerMain.move_by_logs("begin");case 38:return MongodbLoggerMain.move_by_logs("up");case 39:return MongodbLoggerMain.move_by_logs("end");case 40:return MongodbLoggerMain.move_by_logs("down")}}),this.init_pjax(),this.init_on_pages()},init_pjax:function(){var a=this;return $("a[data-pjax]").pjax(),$("body").bind("pjax:start",function(){return $("#ajax_loader").show()}),$("body").bind("pjax:end",function(){return $("#ajax_loader").hide(),MongodbLoggerMain.tail_log_started=!1,$(window).scrollTop()>100&&$("html, body").stop().animate({scrollTop:0},"slow"),MongodbLoggerMain.init_on_pages()})},init_on_pages:function(){var a=this;$("pre code").each(function(a,b){return hljs.highlightBlock(b," ")}),$(".datepicker, .filter_values input.date").datepicker({dateFormat:"yy-mm-dd",changeMonth:!0,changeYear:!0,yearRange:"c-50:c+10"});if($("#log_info").length>0)return MongodbLoggerMain.log_info_offset=$("#log_info").offset(),$(window).scroll(function(){return $(window).scrollTop()>MongodbLoggerMain.log_info_offset.top?$("#log_info").stop().animate({marginTop:$(window).scrollTop()-MongodbLoggerMain.log_info_offset.top+MongodbLoggerMain.log_info_padding}):$("#log_info").stop().animate({marginTop:0})})},tail_logs:function(a){var b;b=MongodbLoggerMain.tail_logs_url,a!=null&&a.length>0?b=MongodbLoggerMain.tail_logs_url+"/"+a:(MongodbLoggerMain.tail_log_started=!0,a="");if(MongodbLoggerMain.tail_log_started)return $.ajax({url:b,dataType:"json",success:function(b){var c,d;b.time&&($("#tail_logs_time").text(b.time),b.log_last_id!=null&&(a=b.log_last_id),b.content!=null&&b.content.length>0&&(c=$(b.content),c.addClass("newlog"),$("#logs_list tr:first").after(c).effect("highlight",{},1e3)),b.collection_stats&&$("#collection_stats").length>0&&$("#collection_stats").html(b.collection_stats));if(MongodbLoggerMain.tail_log_started)return d=function(){return MongodbLoggerMain.tail_logs(a)},setTimeout(d,2e3)}})},move_by_logs:function(a){var b,c;if($("#logs_list").length>0&&$("#logs_list").find("tr.current").length>0){b=$("#logs_list").find("tr.current");switch(a){case"begin":c=$("#logs_list tr:first").next("tr");if(c.length>0)return c.find("td:first").trigger("click"),$(window).scrollTop(c.height()+c.offset().top-100),!1;break;case"end":c=$("#logs_list tr:last");if(c.length>0)return c.find("td:first").trigger("click"),$(window).scrollTop(c.height()+c.offset().top-100),!1;break;case"down":c=b.next("tr");if(c.length>0)return c.find("td:first").trigger("click"),MongodbLoggerMain.is_scrolled_into_view(c)?$(window).scrollTop($(window).scrollTop()+c.height()):$(window).scrollTop(c.height()+c.offset().top-100),!1;break;case"up":c=b.prev("tr");if(c.length>0)return c.find("td:first").trigger("click"),MongodbLoggerMain.is_scrolled_into_view(c)?$(window).scrollTop($(window).scrollTop()-c.height()):$(window).scrollTop(c.height()+c.offset().top-100),!1}}},is_scrolled_into_view:function(a){var b,c,d,e;return c=$(window).scrollTop(),b=c+$(window).height(),e=$(a).offset().top,d=e+$(a).height(),c<e&&b>d},init_analytic_charts:function(){return MongodbLoggerMain.is_charts_ready=!0},build_analytic_charts:function(a){var b,c,d,e,f,g,h,i;if(MongodbLoggerMain.is_charts_ready!==!0)return alert("Error of loading Google Charts. Sorry :(");if(a.data!=null){c=new google.visualization.DataTable,c.addColumn("date","Date"),c.addColumn("number","Requests"),f=[],i=a.data;for(g=0,h=i.length;g<h;g++)e=i[g],f.push([new Date(e._id.year,e._id.month-1,e._id.day),e.value.count]);return c.addRows(f),b=new google.visualization.LineChart(document.getElementById("analyticData")),d={title:$("#analytic_type option:selected").text(),width:"100%",height:600,vAxis:{title:$("#analytic_type option:selected").text()}},b.draw(c,d)}}},$(function(){return MongodbLoggerMain.init()})})).call(this)
|
@@ -1,12 +0,0 @@
|
|
1
|
-
@import "reset.css";
|
2
|
-
@import "grids.css";
|
3
|
-
@import "spaces.css";
|
4
|
-
@import "layout.css";
|
5
|
-
@import "library.css";
|
6
|
-
@import "group-headers.css";
|
7
|
-
@import "group-buttons.css";
|
8
|
-
@import "group-forms.css";
|
9
|
-
@import "group-tables.css";
|
10
|
-
|
11
|
-
@import "humanity/jquery-ui-1.8.16.custom.css";
|
12
|
-
@import "highlight/zenburn.css";
|