mongodb_logger 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/.rvmrc +1 -1
  2. data/.travis.yml +13 -7
  3. data/Gemfile +1 -7
  4. data/README.md +128 -117
  5. data/Rakefile +11 -40
  6. data/SUPPORTED_RAILS_VERSIONS +3 -1
  7. data/app/assets/javascripts/analytics.js.coffee +66 -0
  8. data/app/assets/javascripts/logs.js.coffee +107 -164
  9. data/app/assets/javascripts/mongodb_logger.js +11 -2
  10. data/app/assets/javascripts/vendors/jquery-1.8.3.min.js +2 -0
  11. data/app/assets/javascripts/vendors/jquery-ui-1.9.2.min.js +6 -0
  12. data/app/assets/javascripts/vendors/jquery.pjax.min.js +13 -6
  13. data/app/assets/javascripts/vendors/rickshaw/d3.layout.min.js +1 -0
  14. data/app/assets/javascripts/vendors/rickshaw/d3.min.js +2 -0
  15. data/app/assets/javascripts/vendors/rickshaw/rickshaw.js +2637 -0
  16. data/app/assets/stylesheets/humanity/{jquery-ui-1.8.16.custom.css → jquery-ui-1.9.2.custom.css} +0 -0
  17. data/app/assets/stylesheets/layout.css +1 -1
  18. data/app/assets/stylesheets/library.css.erb +2 -2
  19. data/app/assets/stylesheets/mongodb_logger.css +2 -1
  20. data/app/assets/stylesheets/rickshaw/rickshaw.css +307 -0
  21. data/bin/mongodb_logger_web +1 -2
  22. data/config.ru +8 -1
  23. data/examples/server_config.yml +1 -2
  24. data/features/mongodb_logger_web.feature +1 -1
  25. data/features/step_definitions/mongodb_logger_web_steps.rb +18 -12
  26. data/lib/mongodb_logger.rb +6 -2
  27. data/lib/mongodb_logger/adapters.rb +3 -0
  28. data/lib/mongodb_logger/adapters/base.rb +45 -0
  29. data/lib/mongodb_logger/adapters/mongo.rb +91 -0
  30. data/lib/mongodb_logger/adapters/moped.rb +95 -0
  31. data/lib/mongodb_logger/logger.rb +39 -71
  32. data/lib/mongodb_logger/replica_set_helper.rb +11 -2
  33. data/lib/mongodb_logger/server.rb +15 -36
  34. data/lib/mongodb_logger/server/model/analytic.rb +54 -37
  35. data/lib/mongodb_logger/server/view_helpers.rb +5 -1
  36. data/lib/mongodb_logger/server/views/analytics.erb +8 -7
  37. data/lib/mongodb_logger/server/views/layout.erb +4 -11
  38. data/lib/mongodb_logger/server/views/overview.erb +6 -6
  39. data/lib/mongodb_logger/server/views/shared/_collection_stats.erb +4 -4
  40. data/lib/mongodb_logger/server/views/shared/_dynamic_filter.erb +1 -1
  41. data/lib/mongodb_logger/server/views/shared/_log_info.erb +1 -1
  42. data/lib/mongodb_logger/server/views/shared/_tabs.erb +2 -2
  43. data/lib/mongodb_logger/server/views/shared/_tail_panel.erb +4 -4
  44. data/lib/mongodb_logger/server/views/shared/_top_panel.erb +1 -1
  45. data/lib/mongodb_logger/server/views/show_log.erb +11 -1
  46. data/lib/mongodb_logger/server_config.rb +17 -66
  47. data/lib/mongodb_logger/version.rb +1 -1
  48. data/mongodb_logger.gemspec +19 -20
  49. data/spec/javascripts/MongodbLoggerMainSpec.js +2 -2
  50. data/spec/javascripts/support/jasmine.yml +5 -5
  51. data/test/Gemfile_tests +2 -1
  52. data/test/config/samples/database.yml +3 -1
  53. data/test/config/samples/database_no_file_logging.yml +3 -1
  54. data/test/shoulda_macros/log_macros.rb +1 -1
  55. data/test/test.sh +5 -5
  56. data/test/test_helper.rb +26 -18
  57. data/test/unit/mongodb_logger_test.rb +21 -20
  58. metadata +70 -88
  59. data/app/assets/javascripts/vendors/jquery-1.7.1.min.js +0 -4
  60. data/app/assets/javascripts/vendors/jquery-ui-1.8.16.min.js +0 -791
  61. data/mongodb_logger.java.gemspec +0 -43
@@ -1,43 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/mongodb_logger/version', __FILE__)
3
-
4
- Gem::Specification.new do |gem|
5
- gem.authors = ["Alexey Vasiliev"]
6
- gem.email = ["leopard.not.a@gmail.com"]
7
- gem.description = %q{MongoDB logger for Rails 3}
8
- gem.summary = %q{MongoDB logger for Rails 3}
9
- gem.homepage = "http://mongodb-logger.catware.org"
10
-
11
- gem.extra_rdoc_files = [ "LICENSE", "README.md" ]
12
- gem.rdoc_options = ["--charset=UTF-8"]
13
-
14
- gem.add_development_dependency "jasmine", ">= 1.0.0"
15
- gem.add_development_dependency "rspec", ">= 2.8.0"
16
- gem.add_development_dependency "shoulda", ">= 2.0.0"
17
- gem.add_development_dependency "mocha", ">= 0.10.0"
18
- gem.add_development_dependency "cucumber", "~> 1.1.2"
19
- gem.add_development_dependency "capybara", "~> 1.1.2"
20
- gem.add_development_dependency "uglifier", ">= 1.2.0"
21
-
22
- gem.add_runtime_dependency "rake", "~> 0.9.0"
23
- gem.add_runtime_dependency "mongo", "~> 1.6.1"
24
- gem.add_runtime_dependency "i18n", ">= 0.4.1"
25
- gem.add_runtime_dependency "json", ">= 1.6.1"
26
- gem.add_runtime_dependency "activesupport", ">= 3.0.0"
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"
30
- gem.add_runtime_dependency "sinatra", ">= 1.2.0"
31
- gem.add_runtime_dependency "erubis", ">= 2.6.6"
32
- gem.add_runtime_dependency "vegas", "~> 0.1.2"
33
-
34
- gem.rubyforge_project = "mongodb_logger"
35
-
36
- gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
37
- gem.files = `git ls-files`.split("\n")
38
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
39
- gem.name = "mongodb_logger"
40
- gem.require_paths = ["lib"]
41
- gem.version = MongodbLogger::VERSION
42
- gem.platform = "jruby"
43
- end