mongodb_logger 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/.gitignore +20 -0
  2. data/.rvmrc +1 -0
  3. data/.travis.yml +17 -0
  4. data/Gemfile +4 -0
  5. data/README.md +177 -0
  6. data/Rakefile +110 -0
  7. data/SUPPORTED_RAILS_VERSIONS +13 -0
  8. data/TESTING.md +24 -0
  9. data/bin/mongodb_logger_web +24 -0
  10. data/config.ru +16 -0
  11. data/examples/server_config.yml +4 -0
  12. data/features/rails.feature +10 -0
  13. data/features/step_definitions/rails_application_steps.rb +48 -0
  14. data/features/support/env.rb +15 -0
  15. data/features/support/rails.rb +91 -0
  16. data/features/support/terminal.rb +94 -0
  17. data/lib/mongodb_logger.rb +31 -0
  18. data/lib/mongodb_logger/initializer_mixin.rb +26 -0
  19. data/lib/mongodb_logger/logger.rb +184 -0
  20. data/lib/mongodb_logger/railtie.rb +12 -0
  21. data/lib/mongodb_logger/replica_set_helper.rb +19 -0
  22. data/lib/mongodb_logger/server.rb +136 -0
  23. data/lib/mongodb_logger/server/model/filter.rb +37 -0
  24. data/lib/mongodb_logger/server/partials.rb +24 -0
  25. data/lib/mongodb_logger/server/public/images/ajax-loader.gif +0 -0
  26. data/lib/mongodb_logger/server/public/images/failure.png +0 -0
  27. data/lib/mongodb_logger/server/public/images/logo.png +0 -0
  28. data/lib/mongodb_logger/server/public/images/play-icon.png +0 -0
  29. data/lib/mongodb_logger/server/public/images/stop-icon.png +0 -0
  30. data/lib/mongodb_logger/server/public/images/success.png +0 -0
  31. data/lib/mongodb_logger/server/public/javascripts/jquery-1.7.min.js +4 -0
  32. data/lib/mongodb_logger/server/public/stylesheets/all.css +9 -0
  33. data/lib/mongodb_logger/server/public/stylesheets/grids.css +18 -0
  34. data/lib/mongodb_logger/server/public/stylesheets/group-buttons.css +83 -0
  35. data/lib/mongodb_logger/server/public/stylesheets/group-forms.css +60 -0
  36. data/lib/mongodb_logger/server/public/stylesheets/group-headers.css +8 -0
  37. data/lib/mongodb_logger/server/public/stylesheets/group-tables.css +42 -0
  38. data/lib/mongodb_logger/server/public/stylesheets/layout.css +168 -0
  39. data/lib/mongodb_logger/server/public/stylesheets/library.css +134 -0
  40. data/lib/mongodb_logger/server/public/stylesheets/reset.css +43 -0
  41. data/lib/mongodb_logger/server/public/stylesheets/spaces.css +42 -0
  42. data/lib/mongodb_logger/server/views/application.coffee +54 -0
  43. data/lib/mongodb_logger/server/views/error.erb +2 -0
  44. data/lib/mongodb_logger/server/views/layout.erb +32 -0
  45. data/lib/mongodb_logger/server/views/overview.erb +94 -0
  46. data/lib/mongodb_logger/server/views/shared/_log.erb +8 -0
  47. data/lib/mongodb_logger/server/views/shared/_log_info.erb +25 -0
  48. data/lib/mongodb_logger/server/views/shared/_tabs.erb +4 -0
  49. data/lib/mongodb_logger/server/views/show_log.erb +85 -0
  50. data/lib/mongodb_logger/server_config.rb +45 -0
  51. data/lib/mongodb_logger/version.rb +3 -0
  52. data/mongodb_logger.gemspec +37 -0
  53. data/test/active_record.rb +13 -0
  54. data/test/config/samples/database.yml +9 -0
  55. data/test/config/samples/database_no_file_logging.yml +10 -0
  56. data/test/config/samples/database_replica_set.yml +8 -0
  57. data/test/config/samples/database_with_auth.yml +9 -0
  58. data/test/config/samples/mongodb_logger.yml +2 -0
  59. data/test/config/samples/mongoid.yml +30 -0
  60. data/test/rails.rb +22 -0
  61. data/test/rails/app/controllers/order_controller.rb +20 -0
  62. data/test/rails/test/functional/order_controller_test.rb +56 -0
  63. data/test/rails/test/test_helper.rb +10 -0
  64. data/test/shoulda_macros/log_macros.rb +13 -0
  65. data/test/test.sh +4 -0
  66. data/test/test_helper.rb +88 -0
  67. data/test/unit/mongodb_logger_replica_test.rb +45 -0
  68. data/test/unit/mongodb_logger_test.rb +252 -0
  69. metadata +300 -0
metadata ADDED
@@ -0,0 +1,300 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mongodb_logger
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Alexey Vasiliev
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-11-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: &70195548981800 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.7.0
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70195548981800
25
+ - !ruby/object:Gem::Dependency
26
+ name: shoulda
27
+ requirement: &70195548980800 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 2.0.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70195548980800
36
+ - !ruby/object:Gem::Dependency
37
+ name: mocha
38
+ requirement: &70195549159560 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.10.0
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70195549159560
47
+ - !ruby/object:Gem::Dependency
48
+ name: cucumber
49
+ requirement: &70195549156900 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 1.1.2
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70195549156900
58
+ - !ruby/object:Gem::Dependency
59
+ name: rake
60
+ requirement: &70195549154420 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: 0.9.0
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *70195549154420
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: &70195549167520 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 1.0.0
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *70195549167520
80
+ - !ruby/object:Gem::Dependency
81
+ name: mongo
82
+ requirement: &70195549162880 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: 1.4.0
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *70195549162880
91
+ - !ruby/object:Gem::Dependency
92
+ name: bson_ext
93
+ requirement: &70195549177320 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ~>
97
+ - !ruby/object:Gem::Version
98
+ version: 1.4.0
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *70195549177320
102
+ - !ruby/object:Gem::Dependency
103
+ name: i18n
104
+ requirement: &70195549174680 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 0.4.1
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *70195549174680
113
+ - !ruby/object:Gem::Dependency
114
+ name: json
115
+ requirement: &70195549172460 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: 1.6.1
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: *70195549172460
124
+ - !ruby/object:Gem::Dependency
125
+ name: activesupport
126
+ requirement: &70195549169820 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: 3.0.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: *70195549169820
135
+ - !ruby/object:Gem::Dependency
136
+ name: sinatra
137
+ requirement: &70195549181440 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: 1.2.0
143
+ type: :runtime
144
+ prerelease: false
145
+ version_requirements: *70195549181440
146
+ - !ruby/object:Gem::Dependency
147
+ name: erubis
148
+ requirement: &70195549192800 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: 2.6.6
154
+ type: :runtime
155
+ prerelease: false
156
+ version_requirements: *70195549192800
157
+ - !ruby/object:Gem::Dependency
158
+ name: coffee-script
159
+ requirement: &70195549190580 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ~>
163
+ - !ruby/object:Gem::Version
164
+ version: 2.2.0
165
+ type: :runtime
166
+ prerelease: false
167
+ version_requirements: *70195549190580
168
+ - !ruby/object:Gem::Dependency
169
+ name: vegas
170
+ requirement: &70195549186800 !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ~>
174
+ - !ruby/object:Gem::Version
175
+ version: 0.1.2
176
+ type: :runtime
177
+ prerelease: false
178
+ version_requirements: *70195549186800
179
+ description: MongoDB logger for Rails 3
180
+ email:
181
+ - leopard.not.a@gmail.com
182
+ executables:
183
+ - mongodb_logger_web
184
+ extensions: []
185
+ extra_rdoc_files: []
186
+ files:
187
+ - .gitignore
188
+ - .rvmrc
189
+ - .travis.yml
190
+ - Gemfile
191
+ - README.md
192
+ - Rakefile
193
+ - SUPPORTED_RAILS_VERSIONS
194
+ - TESTING.md
195
+ - bin/mongodb_logger_web
196
+ - config.ru
197
+ - examples/server_config.yml
198
+ - features/rails.feature
199
+ - features/step_definitions/rails_application_steps.rb
200
+ - features/support/env.rb
201
+ - features/support/rails.rb
202
+ - features/support/terminal.rb
203
+ - lib/mongodb_logger.rb
204
+ - lib/mongodb_logger/initializer_mixin.rb
205
+ - lib/mongodb_logger/logger.rb
206
+ - lib/mongodb_logger/railtie.rb
207
+ - lib/mongodb_logger/replica_set_helper.rb
208
+ - lib/mongodb_logger/server.rb
209
+ - lib/mongodb_logger/server/model/filter.rb
210
+ - lib/mongodb_logger/server/partials.rb
211
+ - lib/mongodb_logger/server/public/images/ajax-loader.gif
212
+ - lib/mongodb_logger/server/public/images/failure.png
213
+ - lib/mongodb_logger/server/public/images/logo.png
214
+ - lib/mongodb_logger/server/public/images/play-icon.png
215
+ - lib/mongodb_logger/server/public/images/stop-icon.png
216
+ - lib/mongodb_logger/server/public/images/success.png
217
+ - lib/mongodb_logger/server/public/javascripts/jquery-1.7.min.js
218
+ - lib/mongodb_logger/server/public/stylesheets/all.css
219
+ - lib/mongodb_logger/server/public/stylesheets/grids.css
220
+ - lib/mongodb_logger/server/public/stylesheets/group-buttons.css
221
+ - lib/mongodb_logger/server/public/stylesheets/group-forms.css
222
+ - lib/mongodb_logger/server/public/stylesheets/group-headers.css
223
+ - lib/mongodb_logger/server/public/stylesheets/group-tables.css
224
+ - lib/mongodb_logger/server/public/stylesheets/layout.css
225
+ - lib/mongodb_logger/server/public/stylesheets/library.css
226
+ - lib/mongodb_logger/server/public/stylesheets/reset.css
227
+ - lib/mongodb_logger/server/public/stylesheets/spaces.css
228
+ - lib/mongodb_logger/server/views/application.coffee
229
+ - lib/mongodb_logger/server/views/error.erb
230
+ - lib/mongodb_logger/server/views/layout.erb
231
+ - lib/mongodb_logger/server/views/overview.erb
232
+ - lib/mongodb_logger/server/views/shared/_log.erb
233
+ - lib/mongodb_logger/server/views/shared/_log_info.erb
234
+ - lib/mongodb_logger/server/views/shared/_tabs.erb
235
+ - lib/mongodb_logger/server/views/show_log.erb
236
+ - lib/mongodb_logger/server_config.rb
237
+ - lib/mongodb_logger/version.rb
238
+ - mongodb_logger.gemspec
239
+ - test/active_record.rb
240
+ - test/config/samples/database.yml
241
+ - test/config/samples/database_no_file_logging.yml
242
+ - test/config/samples/database_replica_set.yml
243
+ - test/config/samples/database_with_auth.yml
244
+ - test/config/samples/mongodb_logger.yml
245
+ - test/config/samples/mongoid.yml
246
+ - test/rails.rb
247
+ - test/rails/app/controllers/order_controller.rb
248
+ - test/rails/test/functional/order_controller_test.rb
249
+ - test/rails/test/test_helper.rb
250
+ - test/shoulda_macros/log_macros.rb
251
+ - test/test.sh
252
+ - test/test_helper.rb
253
+ - test/unit/mongodb_logger_replica_test.rb
254
+ - test/unit/mongodb_logger_test.rb
255
+ homepage: ''
256
+ licenses: []
257
+ post_install_message:
258
+ rdoc_options: []
259
+ require_paths:
260
+ - lib
261
+ required_ruby_version: !ruby/object:Gem::Requirement
262
+ none: false
263
+ requirements:
264
+ - - ! '>='
265
+ - !ruby/object:Gem::Version
266
+ version: '0'
267
+ required_rubygems_version: !ruby/object:Gem::Requirement
268
+ none: false
269
+ requirements:
270
+ - - ! '>='
271
+ - !ruby/object:Gem::Version
272
+ version: '0'
273
+ requirements: []
274
+ rubyforge_project: mongodb_logger
275
+ rubygems_version: 1.8.10
276
+ signing_key:
277
+ specification_version: 3
278
+ summary: MongoDB logger for Rails 3
279
+ test_files:
280
+ - features/rails.feature
281
+ - features/step_definitions/rails_application_steps.rb
282
+ - features/support/env.rb
283
+ - features/support/rails.rb
284
+ - features/support/terminal.rb
285
+ - test/active_record.rb
286
+ - test/config/samples/database.yml
287
+ - test/config/samples/database_no_file_logging.yml
288
+ - test/config/samples/database_replica_set.yml
289
+ - test/config/samples/database_with_auth.yml
290
+ - test/config/samples/mongodb_logger.yml
291
+ - test/config/samples/mongoid.yml
292
+ - test/rails.rb
293
+ - test/rails/app/controllers/order_controller.rb
294
+ - test/rails/test/functional/order_controller_test.rb
295
+ - test/rails/test/test_helper.rb
296
+ - test/shoulda_macros/log_macros.rb
297
+ - test/test.sh
298
+ - test/test_helper.rb
299
+ - test/unit/mongodb_logger_replica_test.rb
300
+ - test/unit/mongodb_logger_test.rb