audit_rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  require_dependency "audit_rails/application_controller"
2
- require 'to_xls' #TODO: need to figure out why this has to be required when it is in dependency
3
2
 
4
3
  module AuditRails
5
4
  class AuditsController < ApplicationController
@@ -1,3 +1,6 @@
1
+ require 'rubygems'
2
+ require 'to_xls'
3
+
1
4
  module AuditRails
2
5
  class Engine < ::Rails::Engine
3
6
  isolate_namespace AuditRails
@@ -1,3 +1,3 @@
1
1
  module AuditRails
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -255,3 +255,238 @@ Connecting to database specified by database.yml
255
255
  Connecting to database specified by database.yml
256
256
  Connecting to database specified by database.yml
257
257
  Connecting to database specified by database.yml
258
+
259
+
260
+ Started GET "/" for 127.0.0.1 at 2013-01-04 17:07:37 -0500
261
+ Connecting to database specified by database.yml
262
+
263
+ ActionController::RoutingError (No route matches [GET] "/"):
264
+ actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
265
+ actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
266
+ railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
267
+ railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
268
+ activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
269
+ railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
270
+ actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
271
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
272
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
273
+ activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
274
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
275
+ actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
276
+ railties (3.2.9) lib/rails/engine.rb:479:in `call'
277
+ railties (3.2.9) lib/rails/application.rb:223:in `call'
278
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
279
+ railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
280
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
281
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
282
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
283
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
284
+
285
+
286
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (3.6ms)
287
+ Connecting to database specified by database.yml
288
+  (0.5ms) select sqlite_version(*)
289
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
290
+
291
+
292
+ Started GET "/audit_rails/audits" for 127.0.0.1 at 2013-01-04 17:08:37 -0500
293
+ Connecting to database specified by database.yml
294
+ Processing by AuditRails::AuditsController#index as HTML
295
+ Completed 500 Internal Server Error in 21ms
296
+
297
+ ActiveRecord::StatementInvalid (Could not find table 'audit_rails_audits'):
298
+ activerecord (3.2.9) lib/active_record/connection_adapters/sqlite_adapter.rb:472:in `table_structure'
299
+ activerecord (3.2.9) lib/active_record/connection_adapters/sqlite_adapter.rb:346:in `columns'
300
+ activerecord (3.2.9) lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
301
+ activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `yield'
302
+ activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `default'
303
+ activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `columns'
304
+ activerecord (3.2.9) lib/active_record/model_schema.rb:237:in `columns_hash'
305
+ activerecord (3.2.9) lib/active_record/locking/optimistic.rb:129:in `locking_enabled?'
306
+ activerecord (3.2.9) lib/active_record/relation.rb:170:in `exec_queries'
307
+ activerecord (3.2.9) lib/active_record/relation.rb:160:in `block in to_a'
308
+ activerecord (3.2.9) lib/active_record/explain.rb:33:in `logging_query_plan'
309
+ activerecord (3.2.9) lib/active_record/relation.rb:159:in `to_a'
310
+ activerecord (3.2.9) lib/active_record/relation/finder_methods.rb:159:in `all'
311
+ activerecord (3.2.9) lib/active_record/querying.rb:5:in `all'
312
+ /Users/gouravtiwari/audit_rails/app/controllers/audit_rails/audits_controller.rb:7:in `index'
313
+ actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
314
+ actionpack (3.2.9) lib/abstract_controller/base.rb:167:in `process_action'
315
+ actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in `process_action'
316
+ actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
317
+ activesupport (3.2.9) lib/active_support/callbacks.rb:403:in `_run__2976259103945132511__process_action__1931461155615764677__callbacks'
318
+ activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
319
+ activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
320
+ activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
321
+ actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
322
+ actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
323
+ actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
324
+ activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
325
+ activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
326
+ activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
327
+ actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
328
+ actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
329
+ activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
330
+ actionpack (3.2.9) lib/abstract_controller/base.rb:121:in `process'
331
+ actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in `process'
332
+ actionpack (3.2.9) lib/action_controller/metal.rb:203:in `dispatch'
333
+ actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
334
+ actionpack (3.2.9) lib/action_controller/metal.rb:246:in `block in action'
335
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `call'
336
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
337
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:in `call'
338
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
339
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
340
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
341
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
342
+ railties (3.2.9) lib/rails/engine.rb:479:in `call'
343
+ railties (3.2.9) lib/rails/railtie/configurable.rb:30:in `method_missing'
344
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
345
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
346
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
347
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
348
+ actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
349
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
350
+ rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
351
+ actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
352
+ actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
353
+ actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
354
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
355
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
356
+ actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
357
+ activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
358
+ activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
359
+ actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
360
+ activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__710882036589378340__call__1785904406322369347__callbacks'
361
+ activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
362
+ activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
363
+ activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
364
+ actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
365
+ actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in `call'
366
+ actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
367
+ actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
368
+ actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
369
+ railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
370
+ railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
371
+ activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
372
+ railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
373
+ actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
374
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
375
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
376
+ activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
377
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
378
+ actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
379
+ railties (3.2.9) lib/rails/engine.rb:479:in `call'
380
+ railties (3.2.9) lib/rails/application.rb:223:in `call'
381
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
382
+ railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
383
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
384
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
385
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
386
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
387
+
388
+
389
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
390
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
391
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (10.6ms)
392
+
393
+
394
+ Started GET "/audit_rails/audits.xls" for 127.0.0.1 at 2013-01-04 17:08:47 -0500
395
+ Processing by AuditRails::AuditsController#index as
396
+ Completed 500 Internal Server Error in 1ms
397
+
398
+ ActiveRecord::StatementInvalid (Could not find table 'audit_rails_audits'):
399
+ activerecord (3.2.9) lib/active_record/connection_adapters/sqlite_adapter.rb:472:in `table_structure'
400
+ activerecord (3.2.9) lib/active_record/connection_adapters/sqlite_adapter.rb:346:in `columns'
401
+ activerecord (3.2.9) lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
402
+ activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `yield'
403
+ activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `default'
404
+ activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `columns'
405
+ activerecord (3.2.9) lib/active_record/model_schema.rb:237:in `columns_hash'
406
+ activerecord (3.2.9) lib/active_record/locking/optimistic.rb:129:in `locking_enabled?'
407
+ activerecord (3.2.9) lib/active_record/relation.rb:170:in `exec_queries'
408
+ activerecord (3.2.9) lib/active_record/relation.rb:160:in `block in to_a'
409
+ activerecord (3.2.9) lib/active_record/explain.rb:33:in `logging_query_plan'
410
+ activerecord (3.2.9) lib/active_record/relation.rb:159:in `to_a'
411
+ activerecord (3.2.9) lib/active_record/relation/finder_methods.rb:159:in `all'
412
+ activerecord (3.2.9) lib/active_record/querying.rb:5:in `all'
413
+ /Users/gouravtiwari/audit_rails/app/controllers/audit_rails/audits_controller.rb:7:in `index'
414
+ actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
415
+ actionpack (3.2.9) lib/abstract_controller/base.rb:167:in `process_action'
416
+ actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in `process_action'
417
+ actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
418
+ activesupport (3.2.9) lib/active_support/callbacks.rb:403:in `_run__2976259103945132511__process_action__1931461155615764677__callbacks'
419
+ activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
420
+ activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
421
+ activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
422
+ actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
423
+ actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
424
+ actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
425
+ activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
426
+ activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
427
+ activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
428
+ actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
429
+ actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
430
+ activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
431
+ actionpack (3.2.9) lib/abstract_controller/base.rb:121:in `process'
432
+ actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in `process'
433
+ actionpack (3.2.9) lib/action_controller/metal.rb:203:in `dispatch'
434
+ actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
435
+ actionpack (3.2.9) lib/action_controller/metal.rb:246:in `block in action'
436
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `call'
437
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
438
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:in `call'
439
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
440
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
441
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
442
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
443
+ railties (3.2.9) lib/rails/engine.rb:479:in `call'
444
+ railties (3.2.9) lib/rails/railtie/configurable.rb:30:in `method_missing'
445
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
446
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
447
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
448
+ actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
449
+ actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
450
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
451
+ rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
452
+ actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
453
+ actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
454
+ actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
455
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
456
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
457
+ actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
458
+ activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
459
+ activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
460
+ actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
461
+ activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__710882036589378340__call__1785904406322369347__callbacks'
462
+ activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
463
+ activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
464
+ activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
465
+ actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
466
+ actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in `call'
467
+ actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
468
+ actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
469
+ actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
470
+ railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
471
+ railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
472
+ activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
473
+ railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
474
+ actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
475
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
476
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
477
+ activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
478
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
479
+ actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
480
+ railties (3.2.9) lib/rails/engine.rb:479:in `call'
481
+ railties (3.2.9) lib/rails/application.rb:223:in `call'
482
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
483
+ railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
484
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
485
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
486
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
487
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
488
+
489
+
490
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.8ms)
491
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
492
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (8.9ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audit_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: