meta_reports 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -3
  3. data/app/models/meta_reports/base.rb +1 -1
  4. data/config/routes.rb +1 -1
  5. data/lib/meta_reports/version.rb +1 -1
  6. data/spec/ci.sh +2 -0
  7. data/spec/dummy/config/application.rb +15 -9
  8. data/spec/dummy/config/environments/development.rb +2 -0
  9. data/spec/dummy/config/environments/production.rb +2 -0
  10. data/spec/dummy/config/environments/test.rb +3 -1
  11. data/spec/dummy/config/initializers/secret_token.rb +1 -0
  12. data/spec/dummy/db/development.sqlite3 +0 -0
  13. data/spec/dummy/db/migrate/20130801071213_create_meta_reports_reports.rb +17 -0
  14. data/spec/dummy/db/schema.rb +2 -4
  15. data/spec/dummy/db/test.sqlite3 +0 -0
  16. data/spec/dummy/log/development.log +517 -0
  17. data/spec/dummy/log/test.log +1962 -0
  18. data/spec/dummy/tmp/cache/assets/test/sprockets/0b7ba158ff62bbbb378d6bea80680c63 +0 -0
  19. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  20. data/spec/dummy/tmp/cache/assets/test/sprockets/1d341d7a2fc1328567d4b23e0809b2e2 +0 -0
  21. data/spec/dummy/tmp/cache/assets/test/sprockets/290aea2004dfecfc76f42e48970f1484 +0 -0
  22. data/spec/dummy/tmp/cache/assets/test/sprockets/2d47bd3108d9abbb12c0497e36d9674d +0 -0
  23. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  24. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  25. data/spec/dummy/tmp/cache/assets/test/sprockets/805babf865ce32228222420a522c7b36 +0 -0
  26. data/spec/dummy/tmp/cache/assets/test/sprockets/9e22e937dd267c81a146665f15471b8e +0 -0
  27. data/spec/dummy/tmp/cache/assets/test/sprockets/b0d5af721ea37c98fd4bccd8e1e5c6ab +0 -0
  28. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  29. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  30. data/spec/dummy/tmp/cache/assets/test/sprockets/e858c95fa595e319dac0065d49982967 +0 -0
  31. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  32. data/spec/features/dummy_spec.rb +1 -1
  33. data/spec/generators/install_spec.rb +1 -1
  34. data/spec/spec_helper.rb +9 -1
  35. data/spec/test_3.2.sh +16 -0
  36. data/spec/test_4.0.sh +16 -0
  37. metadata +64 -26
  38. data/spec/dummy/tmp/pids/server.pid +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 047dacfc577bc3d983838e553a621b90ea01155e
4
- data.tar.gz: 1340266ae16c7c7895102590da7d679bf5aee3c1
3
+ metadata.gz: b0103cf12f7263900625b165f723814ae925631a
4
+ data.tar.gz: 1fa51dacb00f12e33d97fd30bc12ab5a710d1247
5
5
  SHA512:
6
- metadata.gz: db88d50eded3305cae337775669a4ee8c7be2d3fc611d66446916e398e940be3021983db449f4531caacb28fde590da4d795bdaa887ba2d9353f654e43b92ea7
7
- data.tar.gz: 814b4bfed9dd99f40e8b053ecdb896555594d45ee14b2c39d8b904c345866ee1d141b0127ea8b9f3c3ff77bf07bcc7a55c278eb1eaa5c57538d40fff740425b5
6
+ metadata.gz: 79e20859f1c5bce940148a04d1efa0d8f24656c79bb7fdeb1bd1e03a2365be69aebd03e4946940a1fab08fd6bbd1f7d6caf9f6f694f4101da3754579e869ff22
7
+ data.tar.gz: 6da7d629504e5271ddac5a4ada0f2d5b620aa20f137cb236542d8503d0815857220a437028478f74066607d86c7bb52ead806b08da7544b9b88c7335008a3379
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
- #MetaReports
2
- **A rails report engine**
1
+ #MetaReports — A rails report engine
2
+ ===================================================
3
+
4
+ [![Gem Version](https://badge.fury.io/rb/meta_reports.png)](http://badge.fury.io/rb/meta_reports)
5
+ [![Build Status](https://secure.travis-ci.org/straydogstudio/meta_reports.png?branch=master)](http://travis-ci.org/straydogstudio/meta_reports)
6
+ [![Dependency Status](https://gemnasium.com/straydogstudio/meta_reports.png?branch=master)](https://gemnasium.com/straydogstudio/meta_reports)
7
+ [![Coverage Status](https://coveralls.io/repos/straydogstudio/meta_reports/badge.png)](https://coveralls.io/r/straydogstudio/meta_reports)
3
8
 
4
9
  ##Description
5
10
 
@@ -127,13 +132,15 @@ For HTML, necessary styles will either be injected into the HTML output, or a ra
127
132
  ##TODO
128
133
 
129
134
  - Common colors: This needs a common color mechanism, where all outputs that support color can have the same row / cell / text color. Any input on this is appreciated.
135
+ - Charts based on table data
130
136
  - More formats (e.g. csv, json, text)
131
137
  - Direct to email / print (using IPP) / fax
132
138
  - Improved metadata conventions
133
139
 
134
140
  ##Changelog
135
141
 
136
- - **0.1.0:** (9/29/13) Initial release
142
+ - **0.0.2:** (9/29/13) Relax rails requirement, better testing
143
+ - **0.0.1:** (9/29/13) Initial release
137
144
 
138
145
  ##Development
139
146
 
@@ -80,7 +80,7 @@ class MetaReports::Base < ActiveRecord::Base
80
80
  end
81
81
 
82
82
  def view
83
- connection.execute("UPDATE meta_reports_reports SET views = views + 1 WHERE id = #{id}")
83
+ ActiveRecord::Base.connection.execute("UPDATE meta_reports_reports SET views = views + 1 WHERE id = #{id}")
84
84
  end
85
85
 
86
86
  COLORS = {
data/config/routes.rb CHANGED
@@ -3,7 +3,7 @@ MetaReports::Engine.routes.draw do
3
3
 
4
4
  get 'reports/file/:dir' => 'reports#file', as: 'file'
5
5
  resources :reports
6
- match ':id(.:format)' => 'reports#show', as: 'short_show'
6
+ match ':id(.:format)' => 'reports#show', as: 'short_show', via: [:get, :post]
7
7
  get ':id/edit' => 'reports#edit', as: 'short_edit'
8
8
  get ':id/form' => 'reports#form', as: 'short_form'
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module MetaReports
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/spec/ci.sh ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env sh
2
+ cd spec/dummy && bundle install --without debug && bundle exec rake db:create && bundle exec rake db:migrate && cd ../../ && bundle exec rspec spec
@@ -1,14 +1,20 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- # Pick the frameworks you want:
4
- require "active_record/railtie"
5
- require "action_controller/railtie"
6
- require "action_mailer/railtie"
7
- require "active_resource/railtie"
8
- require "sprockets/railtie"
9
- # require "rails/test_unit/railtie"
10
-
11
- Bundler.require(*Rails.groups)
3
+ require 'rails/version'
4
+ if Rails::VERSION::MAJOR < 4
5
+ # Pick the frameworks you want:
6
+ require "active_record/railtie"
7
+ require "action_controller/railtie"
8
+ require "action_mailer/railtie"
9
+ require "active_resource/railtie"
10
+ require "sprockets/railtie"
11
+ # require "rails/test_unit/railtie"
12
+ else
13
+ require 'rails/all'
14
+ end
15
+
16
+ # Bundler.require(*Rails.groups)
17
+ Bundler.require
12
18
  require "meta_reports"
13
19
 
14
20
  module Dummy
@@ -34,4 +34,6 @@ Dummy::Application.configure do
34
34
 
35
35
  # Expands the lines which load the assets
36
36
  config.assets.debug = true
37
+
38
+ config.eager_load = false
37
39
  end
@@ -64,4 +64,6 @@ Dummy::Application.configure do
64
64
  # Log the query plan for queries taking more than this (works
65
65
  # with SQLite, MySQL, and PostgreSQL)
66
66
  # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+
68
+ config.eager_load = true
67
69
  end
@@ -12,7 +12,7 @@ Dummy::Application.configure do
12
12
  config.static_cache_control = "public, max-age=3600"
13
13
 
14
14
  # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
15
+ # config.whiny_nils = true
16
16
 
17
17
  # Show full error reports and disable caching
18
18
  config.consider_all_requests_local = true
@@ -34,4 +34,6 @@ Dummy::Application.configure do
34
34
 
35
35
  # Print deprecation notices to the stderr
36
36
  config.active_support.deprecation = :stderr
37
+
38
+ config.eager_load = false
37
39
  end
@@ -5,3 +5,4 @@
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
7
  Dummy::Application.config.secret_token = 'b66f66737deb83224af158561ae621fe9062628364398d74f1d89a12dd9ca7fcee903a79b5573f1d43cbe615665fab1f7af3c8d35be176160847d00eb894c120'
8
+ Dummy::Application.config.secret_key_base = 'woahnellie'
Binary file
@@ -0,0 +1,17 @@
1
+ class CreateMetaReportsReports < ActiveRecord::Migration
2
+ def change
3
+ create_table :meta_reports_reports do |t|
4
+ t.string :name
5
+ t.text :description
6
+ t.string :title
7
+ t.string :group
8
+ t.boolean :direct
9
+ t.integer :views
10
+ t.string :target
11
+ t.integer :formats_mask
12
+
13
+ t.timestamps
14
+ end
15
+ # add_index :meta_reports_reports, :name
16
+ end
17
+ end
@@ -21,11 +21,9 @@ ActiveRecord::Schema.define(:version => 20130801071213) do
21
21
  t.boolean "direct"
22
22
  t.integer "views"
23
23
  t.string "target"
24
- t.datetime "created_at", :null => false
25
- t.datetime "updated_at", :null => false
26
24
  t.integer "formats_mask"
25
+ t.datetime "created_at", :null => false
26
+ t.datetime "updated_at", :null => false
27
27
  end
28
28
 
29
- add_index "meta_reports_reports", ["name"], :name => "index_meta_reports_reports_on_name"
30
-
31
29
  end
Binary file
@@ -22315,3 +22315,520 @@ Served asset /meta_reports/print.png - 304 Not Modified (0ms)
22315
22315
 
22316
22316
  Started GET "/assets/meta_reports/spreadsheet.png" for 127.0.0.1 at 2013-09-29 23:27:22 -0700
22317
22317
  Served asset /meta_reports/spreadsheet.png - 304 Not Modified (0ms)
22318
+ Connecting to database specified by database.yml
22319
+  (0.1ms) select sqlite_version(*)
22320
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
22321
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
22322
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
22323
+ Connecting to database specified by database.yml
22324
+  (0.1ms) begin transaction
22325
+  (0.0ms) rollback transaction
22326
+  (0.0ms) begin transaction
22327
+  (0.0ms) rollback transaction
22328
+  (0.0ms) begin transaction
22329
+  (0.0ms) rollback transaction
22330
+  (0.0ms) begin transaction
22331
+  (0.0ms) rollback transaction
22332
+  (0.0ms) begin transaction
22333
+  (0.0ms) rollback transaction
22334
+  (0.0ms) begin transaction
22335
+  (0.0ms) rollback transaction
22336
+  (0.0ms) begin transaction
22337
+  (0.0ms) rollback transaction
22338
+  (0.0ms) begin transaction
22339
+  (0.0ms) rollback transaction
22340
+  (0.0ms) begin transaction
22341
+  (0.0ms) rollback transaction
22342
+  (0.0ms) begin transaction
22343
+  (0.0ms) rollback transaction
22344
+  (0.0ms) begin transaction
22345
+  (0.0ms) rollback transaction
22346
+  (0.0ms) begin transaction
22347
+  (0.0ms) rollback transaction
22348
+  (0.0ms) begin transaction
22349
+  (0.0ms) rollback transaction
22350
+  (0.0ms) begin transaction
22351
+  (0.0ms) rollback transaction
22352
+  (0.0ms) begin transaction
22353
+  (0.0ms) rollback transaction
22354
+  (0.0ms) begin transaction
22355
+  (0.0ms) rollback transaction
22356
+  (0.0ms) begin transaction
22357
+  (0.0ms) rollback transaction
22358
+  (0.0ms) begin transaction
22359
+  (0.0ms) rollback transaction
22360
+ Connecting to database specified by database.yml
22361
+  (0.2ms) begin transaction
22362
+  (0.0ms) rollback transaction
22363
+  (0.0ms) begin transaction
22364
+  (0.1ms) rollback transaction
22365
+  (0.0ms) begin transaction
22366
+  (0.1ms) rollback transaction
22367
+ Connecting to database specified by database.yml
22368
+  (0.2ms) begin transaction
22369
+  (0.0ms) rollback transaction
22370
+  (0.0ms) begin transaction
22371
+  (0.0ms) rollback transaction
22372
+  (0.0ms) begin transaction
22373
+  (0.0ms) rollback transaction
22374
+  (0.0ms) begin transaction
22375
+  (0.0ms) rollback transaction
22376
+  (0.0ms) begin transaction
22377
+  (0.0ms) rollback transaction
22378
+  (0.0ms) begin transaction
22379
+  (0.0ms) rollback transaction
22380
+  (0.0ms) begin transaction
22381
+  (0.0ms) rollback transaction
22382
+  (0.0ms) begin transaction
22383
+  (0.0ms) rollback transaction
22384
+  (0.0ms) begin transaction
22385
+  (0.0ms) rollback transaction
22386
+  (0.0ms) begin transaction
22387
+  (0.0ms) rollback transaction
22388
+  (0.1ms) begin transaction
22389
+  (0.0ms) rollback transaction
22390
+  (0.0ms) begin transaction
22391
+  (0.1ms) rollback transaction
22392
+  (0.0ms) begin transaction
22393
+  (0.0ms) rollback transaction
22394
+  (0.0ms) begin transaction
22395
+  (0.1ms) rollback transaction
22396
+  (0.1ms) begin transaction
22397
+  (0.0ms) rollback transaction
22398
+  (0.0ms) begin transaction
22399
+  (0.0ms) rollback transaction
22400
+  (0.0ms) begin transaction
22401
+  (0.0ms) rollback transaction
22402
+  (0.0ms) begin transaction
22403
+  (0.0ms) rollback transaction
22404
+  (0.0ms) begin transaction
22405
+  (0.0ms) rollback transaction
22406
+  (0.1ms) begin transaction
22407
+  (0.0ms) rollback transaction
22408
+  (0.0ms) begin transaction
22409
+  (0.0ms) rollback transaction
22410
+ Connecting to database specified by database.yml
22411
+  (0.0ms) select sqlite_version(*)
22412
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
22413
+  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
22414
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
22415
+ Migrating to CreateMetaReportsReports (20130801071213)
22416
+  (0.0ms) begin transaction
22417
+  (0.3ms) CREATE TABLE "meta_reports_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "description" text, "title" varchar(255), "group" varchar(255), "direct" boolean, "views" integer, "target" varchar(255), "formats_mask" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
22418
+  (0.1ms) CREATE INDEX "index_meta_reports_reports_on_name" ON "meta_reports_reports" ("name")
22419
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130801071213')
22420
+  (2.1ms) commit transaction
22421
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
22422
+ Connecting to database specified by database.yml
22423
+ SQL (1.8ms) DELETE FROM "meta_reports_reports"
22424
+  (0.1ms) begin transaction
22425
+ SQL (3.5ms) INSERT INTO "meta_reports_reports" ("created_at", "description", "direct", "formats_mask", "group", "name", "target", "title", "updated_at", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 02:38:17 UTC +00:00], ["description", "Moo, eh?"], ["direct", nil], ["formats_mask", 7], ["group", "moo"], ["name", "moo"], ["target", nil], ["title", "Le Moo"], ["updated_at", Tue, 01 Oct 2013 02:38:17 UTC +00:00], ["views", nil]]
22426
+  (1.2ms) commit transaction
22427
+  (0.0ms) begin transaction
22428
+
22429
+
22430
+ Started GET "/meta_reports/1.pdf" for 127.0.0.1 at 2013-09-30 19:38:17 -0700
22431
+ Processing by MetaReports::ReportsController#show as PDF
22432
+ Parameters: {"id"=>"1"}
22433
+ MetaReports::Report Load (0.2ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "1"]]
22434
+ title: "Le Moo"
22435
+ Rendered meta_reports/reports/templates/_default_header.pdf.prawn (52.7ms)
22436
+ Rendered meta_reports/reports/templates/_default_table.pdf.prawn (14.7ms)
22437
+ Rendered meta_reports/reports/templates/_default_footer.pdf.prawn (1.2ms)
22438
+ Rendered meta_reports/reports/templates/default.pdf.prawn (74.7ms)
22439
+  (0.2ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 1
22440
+ Completed 200 OK in 83ms (Views: 80.4ms | ActiveRecord: 0.4ms)
22441
+  (0.6ms) rollback transaction
22442
+  (0.0ms) begin transaction
22443
+
22444
+
22445
+ Started GET "/meta_reports/1.xlsx" for 127.0.0.1 at 2013-09-30 19:38:17 -0700
22446
+ Processing by MetaReports::ReportsController#show as XLSX
22447
+ Parameters: {"id"=>"1"}
22448
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "1"]]
22449
+ Rendered meta_reports/reports/templates/_default_header.xlsx.axlsx (53.5ms)
22450
+ Rendered meta_reports/reports/templates/default.xlsx.axlsx (61.6ms)
22451
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 1
22452
+ Completed 200 OK in 65ms (Views: 63.4ms | ActiveRecord: 0.4ms)
22453
+  (0.6ms) rollback transaction
22454
+  (0.0ms) begin transaction
22455
+
22456
+
22457
+ Started GET "/meta_reports/1" for 127.0.0.1 at 2013-09-30 19:38:17 -0700
22458
+ Processing by MetaReports::ReportsController#show as HTML
22459
+ Parameters: {"id"=>"1"}
22460
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "1"]]
22461
+ Rendered meta_reports/reports/templates/_default_table.html.erb (1.1ms)
22462
+ Rendered meta_reports/reports/templates/_default.html.erb (3.7ms)
22463
+ Rendered meta_reports/reports/templates/default.html.erb within layouts/application (5.5ms)
22464
+  (0.2ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 1
22465
+ Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.3ms)
22466
+  (0.7ms) rollback transaction
22467
+  (0.0ms) begin transaction
22468
+
22469
+
22470
+ Started GET "/meta_reports" for 127.0.0.1 at 2013-09-30 19:38:17 -0700
22471
+ Processing by MetaReports::ReportsController#index as HTML
22472
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" ORDER BY meta_reports_reports.title
22473
+ Rendered meta_reports/reports/index.html.erb within layouts/application (4.0ms)
22474
+ Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms)
22475
+  (0.1ms) rollback transaction
22476
+  (0.0ms) begin transaction
22477
+
22478
+
22479
+ Started GET "/" for 127.0.0.1 at 2013-09-30 19:38:18 -0700
22480
+ Processing by HomeController#index as HTML
22481
+ Rendered home/index.html.erb within layouts/application (0.2ms)
22482
+ Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
22483
+  (0.0ms) rollback transaction
22484
+  (0.0ms) begin transaction
22485
+  (0.1ms) rollback transaction
22486
+  (0.1ms) begin transaction
22487
+  (0.0ms) rollback transaction
22488
+  (0.1ms) begin transaction
22489
+  (0.1ms) rollback transaction
22490
+  (0.0ms) begin transaction
22491
+  (0.0ms) rollback transaction
22492
+  (0.0ms) begin transaction
22493
+  (0.0ms) rollback transaction
22494
+  (0.0ms) begin transaction
22495
+  (0.0ms) rollback transaction
22496
+  (0.0ms) begin transaction
22497
+  (0.0ms) rollback transaction
22498
+  (0.0ms) begin transaction
22499
+  (0.0ms) rollback transaction
22500
+  (0.2ms) begin transaction
22501
+  (0.0ms) rollback transaction
22502
+  (0.0ms) begin transaction
22503
+  (0.0ms) rollback transaction
22504
+  (0.0ms) begin transaction
22505
+  (0.0ms) rollback transaction
22506
+  (0.0ms) begin transaction
22507
+  (0.0ms) rollback transaction
22508
+  (0.0ms) begin transaction
22509
+  (0.0ms) rollback transaction
22510
+  (0.0ms) begin transaction
22511
+  (0.0ms) rollback transaction
22512
+  (0.0ms) begin transaction
22513
+  (0.0ms) rollback transaction
22514
+  (0.0ms) begin transaction
22515
+  (0.0ms) rollback transaction
22516
+  (0.0ms) begin transaction
22517
+  (0.0ms) rollback transaction
22518
+  (0.0ms) begin transaction
22519
+  (0.0ms) rollback transaction
22520
+  (0.0ms) begin transaction
22521
+  (0.0ms) rollback transaction
22522
+  (0.0ms) begin transaction
22523
+  (0.0ms) rollback transaction
22524
+  (0.0ms) begin transaction
22525
+  (0.0ms) rollback transaction
22526
+ Connecting to database specified by database.yml
22527
+ Connecting to database specified by database.yml
22528
+  (0.2ms) begin transaction
22529
+  (0.0ms) rollback transaction
22530
+  (0.0ms) begin transaction
22531
+  (0.0ms) rollback transaction
22532
+  (0.0ms) begin transaction
22533
+  (0.0ms) rollback transaction
22534
+  (0.0ms) begin transaction
22535
+  (0.0ms) rollback transaction
22536
+  (0.0ms) begin transaction
22537
+  (0.0ms) rollback transaction
22538
+  (0.0ms) begin transaction
22539
+  (0.0ms) rollback transaction
22540
+  (0.0ms) begin transaction
22541
+  (0.0ms) rollback transaction
22542
+ SQL (2.3ms) DELETE FROM "meta_reports_reports"
22543
+  (0.1ms) begin transaction
22544
+ SQL (3.3ms) INSERT INTO "meta_reports_reports" ("created_at", "description", "direct", "formats_mask", "group", "name", "target", "title", "updated_at", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 02:39:52 UTC +00:00], ["description", "Moo, eh?"], ["direct", nil], ["formats_mask", 7], ["group", "moo"], ["name", "moo"], ["target", nil], ["title", "Le Moo"], ["updated_at", Tue, 01 Oct 2013 02:39:52 UTC +00:00], ["views", nil]]
22545
+  (11.1ms) commit transaction
22546
+  (0.0ms) begin transaction
22547
+
22548
+
22549
+ Started GET "/meta_reports/2.xlsx" for 127.0.0.1 at 2013-09-30 19:39:52 -0700
22550
+ Processing by MetaReports::ReportsController#show as XLSX
22551
+ Parameters: {"id"=>"2"}
22552
+ MetaReports::Report Load (0.2ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "2"]]
22553
+ Rendered meta_reports/reports/templates/_default_header.xlsx.axlsx (5.7ms)
22554
+ Rendered meta_reports/reports/templates/default.xlsx.axlsx (50.1ms)
22555
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 2
22556
+ Completed 200 OK in 58ms (Views: 55.5ms | ActiveRecord: 0.4ms)
22557
+  (0.6ms) rollback transaction
22558
+  (0.0ms) begin transaction
22559
+
22560
+
22561
+ Started GET "/meta_reports" for 127.0.0.1 at 2013-09-30 19:39:52 -0700
22562
+ Processing by MetaReports::ReportsController#index as HTML
22563
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" ORDER BY meta_reports_reports.title
22564
+ Rendered meta_reports/reports/index.html.erb within layouts/application (4.6ms)
22565
+ Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.1ms)
22566
+  (0.1ms) rollback transaction
22567
+  (0.0ms) begin transaction
22568
+
22569
+
22570
+ Started GET "/meta_reports/2.pdf" for 127.0.0.1 at 2013-09-30 19:39:52 -0700
22571
+ Processing by MetaReports::ReportsController#show as PDF
22572
+ Parameters: {"id"=>"2"}
22573
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "2"]]
22574
+ title: "Le Moo"
22575
+ Rendered meta_reports/reports/templates/_default_header.pdf.prawn (52.2ms)
22576
+ Rendered meta_reports/reports/templates/_default_table.pdf.prawn (14.2ms)
22577
+ Rendered meta_reports/reports/templates/_default_footer.pdf.prawn (1.1ms)
22578
+ Rendered meta_reports/reports/templates/default.pdf.prawn (72.0ms)
22579
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 2
22580
+ Completed 200 OK in 75ms (Views: 73.6ms | ActiveRecord: 0.3ms)
22581
+  (0.7ms) rollback transaction
22582
+  (0.0ms) begin transaction
22583
+
22584
+
22585
+ Started GET "/" for 127.0.0.1 at 2013-09-30 19:39:53 -0700
22586
+ Processing by HomeController#index as HTML
22587
+ Rendered home/index.html.erb within layouts/application (0.3ms)
22588
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
22589
+  (0.1ms) rollback transaction
22590
+  (0.0ms) begin transaction
22591
+
22592
+
22593
+ Started GET "/meta_reports/2" for 127.0.0.1 at 2013-09-30 19:39:53 -0700
22594
+ Processing by MetaReports::ReportsController#show as HTML
22595
+ Parameters: {"id"=>"2"}
22596
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "2"]]
22597
+ Rendered meta_reports/reports/templates/_default_table.html.erb (1.0ms)
22598
+ Rendered meta_reports/reports/templates/_default.html.erb (3.4ms)
22599
+ Rendered meta_reports/reports/templates/default.html.erb within layouts/application (4.3ms)
22600
+  (0.2ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 2
22601
+ Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.3ms)
22602
+  (0.6ms) rollback transaction
22603
+  (0.0ms) begin transaction
22604
+  (0.0ms) rollback transaction
22605
+  (0.0ms) begin transaction
22606
+  (0.0ms) rollback transaction
22607
+  (0.0ms) begin transaction
22608
+  (0.0ms) rollback transaction
22609
+  (0.0ms) begin transaction
22610
+  (0.0ms) rollback transaction
22611
+  (0.0ms) begin transaction
22612
+  (0.0ms) rollback transaction
22613
+  (0.0ms) begin transaction
22614
+  (0.0ms) rollback transaction
22615
+  (0.0ms) begin transaction
22616
+  (0.0ms) rollback transaction
22617
+  (0.0ms) begin transaction
22618
+  (0.0ms) rollback transaction
22619
+  (0.0ms) begin transaction
22620
+  (0.0ms) rollback transaction
22621
+  (0.0ms) begin transaction
22622
+  (0.0ms) rollback transaction
22623
+  (0.0ms) begin transaction
22624
+  (0.0ms) rollback transaction
22625
+ Connecting to database specified by database.yml
22626
+ Connecting to database specified by database.yml
22627
+  (0.1ms) select sqlite_version(*)
22628
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
22629
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
22630
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
22631
+ Migrating to CreateMetaReportsReports (20130801071213)
22632
+  (0.0ms) begin transaction
22633
+  (0.4ms) CREATE TABLE "meta_reports_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "description" text, "title" varchar(255), "group" varchar(255), "direct" boolean, "views" integer, "target" varchar(255), "formats_mask" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
22634
+  (0.1ms) CREATE INDEX "index_meta_reports_reports_on_name" ON "meta_reports_reports" ("name")
22635
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130801071213')
22636
+  (14.0ms) commit transaction
22637
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
22638
+ Connecting to database specified by database.yml
22639
+ SQL (2.0ms) DELETE FROM "meta_reports_reports"
22640
+  (0.1ms) begin transaction
22641
+ SQL (3.1ms) INSERT INTO "meta_reports_reports" ("created_at", "description", "direct", "formats_mask", "group", "name", "target", "title", "updated_at", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 03:00:03 UTC +00:00], ["description", "Moo, eh?"], ["direct", nil], ["formats_mask", 7], ["group", "moo"], ["name", "moo"], ["target", nil], ["title", "Le Moo"], ["updated_at", Tue, 01 Oct 2013 03:00:03 UTC +00:00], ["views", nil]]
22642
+  (16.9ms) commit transaction
22643
+  (0.0ms) begin transaction
22644
+
22645
+
22646
+ Started GET "/meta_reports/1" for 127.0.0.1 at 2013-09-30 20:00:03 -0700
22647
+ Processing by MetaReports::ReportsController#show as HTML
22648
+ Parameters: {"id"=>"1"}
22649
+ MetaReports::Report Load (0.2ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "1"]]
22650
+ Rendered meta_reports/reports/templates/_default_table.html.erb (1.0ms)
22651
+ Rendered meta_reports/reports/templates/_default.html.erb (3.4ms)
22652
+ Rendered meta_reports/reports/templates/default.html.erb within layouts/application (6.4ms)
22653
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 1
22654
+ Completed 200 OK in 60ms (Views: 56.0ms | ActiveRecord: 0.4ms)
22655
+  (0.6ms) rollback transaction
22656
+  (0.0ms) begin transaction
22657
+
22658
+
22659
+ Started GET "/meta_reports" for 127.0.0.1 at 2013-09-30 20:00:03 -0700
22660
+ Processing by MetaReports::ReportsController#index as HTML
22661
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" ORDER BY meta_reports_reports.title
22662
+ Rendered meta_reports/reports/index.html.erb within layouts/application (4.0ms)
22663
+ Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms)
22664
+  (0.1ms) rollback transaction
22665
+  (0.0ms) begin transaction
22666
+
22667
+
22668
+ Started GET "/meta_reports/1.pdf" for 127.0.0.1 at 2013-09-30 20:00:03 -0700
22669
+ Processing by MetaReports::ReportsController#show as PDF
22670
+ Parameters: {"id"=>"1"}
22671
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "1"]]
22672
+ title: "Le Moo"
22673
+ Rendered meta_reports/reports/templates/_default_header.pdf.prawn (53.3ms)
22674
+ Rendered meta_reports/reports/templates/_default_table.pdf.prawn (14.4ms)
22675
+ Rendered meta_reports/reports/templates/_default_footer.pdf.prawn (1.2ms)
22676
+ Rendered meta_reports/reports/templates/default.pdf.prawn (73.7ms)
22677
+  (0.2ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 1
22678
+ Completed 200 OK in 77ms (Views: 75.3ms | ActiveRecord: 0.3ms)
22679
+  (0.6ms) rollback transaction
22680
+  (0.1ms) begin transaction
22681
+
22682
+
22683
+ Started GET "/" for 127.0.0.1 at 2013-09-30 20:00:03 -0700
22684
+ Processing by HomeController#index as HTML
22685
+ Rendered home/index.html.erb within layouts/application (0.3ms)
22686
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
22687
+  (0.1ms) rollback transaction
22688
+  (0.0ms) begin transaction
22689
+
22690
+
22691
+ Started GET "/meta_reports/1.xlsx" for 127.0.0.1 at 2013-09-30 20:00:03 -0700
22692
+ Processing by MetaReports::ReportsController#show as XLSX
22693
+ Parameters: {"id"=>"1"}
22694
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "1"]]
22695
+ Rendered meta_reports/reports/templates/_default_header.xlsx.axlsx (51.2ms)
22696
+ Rendered meta_reports/reports/templates/default.xlsx.axlsx (59.5ms)
22697
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 1
22698
+ Completed 200 OK in 63ms (Views: 61.2ms | ActiveRecord: 0.4ms)
22699
+  (0.6ms) rollback transaction
22700
+ Connecting to database specified by database.yml
22701
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
22702
+ Migrating to CreateMetaReportsReports (20130801071213)
22703
+  (0.0ms) select sqlite_version(*)
22704
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
22705
+ Connecting to database specified by database.yml
22706
+ SQL (1.6ms) DELETE FROM "meta_reports_reports"
22707
+  (0.1ms) begin transaction
22708
+ SQL (3.2ms) INSERT INTO "meta_reports_reports" ("created_at", "description", "direct", "formats_mask", "group", "name", "target", "title", "updated_at", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 03:01:42 UTC +00:00], ["description", "Moo, eh?"], ["direct", nil], ["formats_mask", 7], ["group", "moo"], ["name", "moo"], ["target", nil], ["title", "Le Moo"], ["updated_at", Tue, 01 Oct 2013 03:01:42 UTC +00:00], ["views", nil]]
22709
+  (1.1ms) commit transaction
22710
+  (0.0ms) begin transaction
22711
+
22712
+
22713
+ Started GET "/meta_reports/2.pdf" for 127.0.0.1 at 2013-09-30 20:01:42 -0700
22714
+ Processing by MetaReports::ReportsController#show as PDF
22715
+ Parameters: {"id"=>"2"}
22716
+ MetaReports::Report Load (0.2ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "2"]]
22717
+ title: "Le Moo"
22718
+ Rendered meta_reports/reports/templates/_default_header.pdf.prawn (51.6ms)
22719
+ Rendered meta_reports/reports/templates/_default_table.pdf.prawn (14.3ms)
22720
+ Rendered meta_reports/reports/templates/_default_footer.pdf.prawn (1.3ms)
22721
+ Rendered meta_reports/reports/templates/default.pdf.prawn (73.4ms)
22722
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 2
22723
+ Completed 200 OK in 116ms (Views: 112.6ms | ActiveRecord: 0.5ms)
22724
+  (0.6ms) rollback transaction
22725
+  (0.0ms) begin transaction
22726
+
22727
+
22728
+ Started GET "/meta_reports" for 127.0.0.1 at 2013-09-30 20:01:42 -0700
22729
+ Processing by MetaReports::ReportsController#index as HTML
22730
+ MetaReports::Report Load (0.2ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" ORDER BY meta_reports_reports.title
22731
+ Rendered meta_reports/reports/index.html.erb within layouts/application (5.8ms)
22732
+ Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.2ms)
22733
+  (0.1ms) rollback transaction
22734
+  (0.0ms) begin transaction
22735
+
22736
+
22737
+ Started GET "/meta_reports/2" for 127.0.0.1 at 2013-09-30 20:01:42 -0700
22738
+ Processing by MetaReports::ReportsController#show as HTML
22739
+ Parameters: {"id"=>"2"}
22740
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "2"]]
22741
+ Rendered meta_reports/reports/templates/_default_table.html.erb (1.2ms)
22742
+ Rendered meta_reports/reports/templates/_default.html.erb (3.9ms)
22743
+ Rendered meta_reports/reports/templates/default.html.erb within layouts/application (4.9ms)
22744
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 2
22745
+ Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms)
22746
+  (0.5ms) rollback transaction
22747
+  (0.0ms) begin transaction
22748
+
22749
+
22750
+ Started GET "/meta_reports/2.xlsx" for 127.0.0.1 at 2013-09-30 20:01:42 -0700
22751
+ Processing by MetaReports::ReportsController#show as XLSX
22752
+ Parameters: {"id"=>"2"}
22753
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "2"]]
22754
+ Rendered meta_reports/reports/templates/_default_header.xlsx.axlsx (47.2ms)
22755
+ Rendered meta_reports/reports/templates/default.xlsx.axlsx (56.5ms)
22756
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 2
22757
+ Completed 200 OK in 60ms (Views: 58.2ms | ActiveRecord: 0.4ms)
22758
+  (0.5ms) rollback transaction
22759
+  (0.0ms) begin transaction
22760
+
22761
+
22762
+ Started GET "/" for 127.0.0.1 at 2013-09-30 20:01:42 -0700
22763
+ Processing by HomeController#index as HTML
22764
+ Rendered home/index.html.erb within layouts/application (0.3ms)
22765
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
22766
+  (0.1ms) rollback transaction
22767
+ Connecting to database specified by database.yml
22768
+ SQL (1.3ms) DELETE FROM "meta_reports_reports"
22769
+  (0.1ms) begin transaction
22770
+ SQL (3.5ms) INSERT INTO "meta_reports_reports" ("created_at", "description", "direct", "formats_mask", "group", "name", "target", "title", "updated_at", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 03:03:09 UTC +00:00], ["description", "Moo, eh?"], ["direct", nil], ["formats_mask", 7], ["group", "moo"], ["name", "moo"], ["target", nil], ["title", "Le Moo"], ["updated_at", Tue, 01 Oct 2013 03:03:09 UTC +00:00], ["views", nil]]
22771
+  (1.3ms) commit transaction
22772
+  (0.1ms) begin transaction
22773
+
22774
+
22775
+ Started GET "/meta_reports/3.xlsx" for 127.0.0.1 at 2013-09-30 20:03:09 -0700
22776
+ Processing by MetaReports::ReportsController#show as XLSX
22777
+ Parameters: {"id"=>"3"}
22778
+ MetaReports::Report Load (0.2ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "3"]]
22779
+ Rendered meta_reports/reports/templates/_default_header.xlsx.axlsx (5.7ms)
22780
+ Rendered meta_reports/reports/templates/default.xlsx.axlsx (15.3ms)
22781
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 3
22782
+ Completed 200 OK in 67ms (Views: 62.2ms | ActiveRecord: 0.5ms)
22783
+  (0.6ms) rollback transaction
22784
+  (0.0ms) begin transaction
22785
+
22786
+
22787
+ Started GET "/" for 127.0.0.1 at 2013-09-30 20:03:09 -0700
22788
+ Processing by HomeController#index as HTML
22789
+ Rendered home/index.html.erb within layouts/application (1.1ms)
22790
+ Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms)
22791
+  (0.1ms) rollback transaction
22792
+  (0.0ms) begin transaction
22793
+
22794
+
22795
+ Started GET "/meta_reports/3.pdf" for 127.0.0.1 at 2013-09-30 20:03:09 -0700
22796
+ Processing by MetaReports::ReportsController#show as PDF
22797
+ Parameters: {"id"=>"3"}
22798
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "3"]]
22799
+ title: "Le Moo"
22800
+ Rendered meta_reports/reports/templates/_default_header.pdf.prawn (53.7ms)
22801
+ Rendered meta_reports/reports/templates/_default_table.pdf.prawn (13.9ms)
22802
+ Rendered meta_reports/reports/templates/_default_footer.pdf.prawn (1.1ms)
22803
+ Rendered meta_reports/reports/templates/default.pdf.prawn (114.1ms)
22804
+  (0.3ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 3
22805
+ Completed 200 OK in 117ms (Views: 116.0ms | ActiveRecord: 0.4ms)
22806
+  (0.7ms) rollback transaction
22807
+  (0.0ms) begin transaction
22808
+
22809
+
22810
+ Started GET "/meta_reports" for 127.0.0.1 at 2013-09-30 20:03:09 -0700
22811
+ Processing by MetaReports::ReportsController#index as HTML
22812
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" ORDER BY meta_reports_reports.title
22813
+ Rendered meta_reports/reports/index.html.erb within layouts/application (3.9ms)
22814
+ Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms)
22815
+  (0.1ms) rollback transaction
22816
+  (0.0ms) begin transaction
22817
+
22818
+
22819
+ Started GET "/meta_reports/3" for 127.0.0.1 at 2013-09-30 20:03:09 -0700
22820
+ Processing by MetaReports::ReportsController#show as HTML
22821
+ Parameters: {"id"=>"3"}
22822
+ MetaReports::Report Load (0.1ms) SELECT "meta_reports_reports".* FROM "meta_reports_reports" WHERE "meta_reports_reports"."id" = ? LIMIT 1 [["id", "3"]]
22823
+ Rendered meta_reports/reports/templates/_default_table.html.erb (1.0ms)
22824
+ Rendered meta_reports/reports/templates/_default.html.erb (3.3ms)
22825
+ Rendered meta_reports/reports/templates/default.html.erb within layouts/application (4.2ms)
22826
+  (0.2ms) UPDATE meta_reports_reports SET views = views + 1 WHERE id = 3
22827
+ Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.3ms)
22828
+  (0.6ms) rollback transaction
22829
+  (0.3ms) begin transaction
22830
+  (0.1ms) rollback transaction
22831
+  (0.1ms) begin transaction
22832
+  (0.2ms) rollback transaction
22833
+  (0.1ms) begin transaction
22834
+  (0.2ms) rollback transaction