to_spreadsheet 0.9 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. data/README.rdoc +61 -0
  2. data/Rakefile +3 -11
  3. data/lib/to_spreadsheet/action_pack_renderers.rb +1 -0
  4. data/lib/to_spreadsheet/version.rb +1 -1
  5. data/lib/to_spreadsheet/xls.rb +20 -3
  6. metadata +18 -63
  7. data/README +0 -48
  8. data/test/test_app/Gemfile +0 -10
  9. data/test/test_app/Gemfile.lock +0 -88
  10. data/test/test_app/README +0 -1
  11. data/test/test_app/Rakefile +0 -7
  12. data/test/test_app/app/controllers/application_controller.rb +0 -3
  13. data/test/test_app/app/controllers/contacts_controller.rb +0 -7
  14. data/test/test_app/app/models/contact.rb +0 -3
  15. data/test/test_app/app/views/contacts/_table.erb +0 -24
  16. data/test/test_app/app/views/contacts/index.html.erb +0 -1
  17. data/test/test_app/app/views/contacts/index.xls.erb +0 -1
  18. data/test/test_app/app/views/layouts/application.html.erb +0 -7
  19. data/test/test_app/config/application.rb +0 -15
  20. data/test/test_app/config/boot.rb +0 -6
  21. data/test/test_app/config/database.yml +0 -22
  22. data/test/test_app/config/environment.rb +0 -5
  23. data/test/test_app/config/environments/development.rb +0 -26
  24. data/test/test_app/config/environments/production.rb +0 -49
  25. data/test/test_app/config/environments/test.rb +0 -35
  26. data/test/test_app/config/initializers/backtrace_silencers.rb +0 -7
  27. data/test/test_app/config/initializers/inflections.rb +0 -10
  28. data/test/test_app/config/initializers/mime_types.rb +0 -5
  29. data/test/test_app/config/initializers/secret_token.rb +0 -7
  30. data/test/test_app/config/initializers/session_store.rb +0 -8
  31. data/test/test_app/config/locales/en.yml +0 -5
  32. data/test/test_app/config/routes.rb +0 -4
  33. data/test/test_app/config.ru +0 -4
  34. data/test/test_app/db/development.sqlite3 +0 -0
  35. data/test/test_app/db/migrate/01_create_contacts.rb +0 -15
  36. data/test/test_app/db/schema.rb +0 -21
  37. data/test/test_app/db/seeds.rb +0 -7
  38. data/test/test_app/db/test.sqlite3 +0 -0
  39. data/test/test_app/log/development.log +0 -509
  40. data/test/test_app/log/production.log +0 -0
  41. data/test/test_app/log/server.log +0 -0
  42. data/test/test_app/log/test.log +0 -104
  43. data/test/test_app/script/rails +0 -6
  44. data/test/test_app/test/fixtures/contacts.yml +0 -5
  45. data/test/test_app/test/integration/rails_integration_test.rb +0 -14
  46. data/test/test_app/test/test_helper.rb +0 -7
  47. data/test/test_app/test/unit/contact_test.rb +0 -7
  48. data/test/test_helper.rb +0 -1
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,7 +0,0 @@
1
- class ContactsController < ApplicationController
2
- respond_to :xls, :html
3
- def index
4
- @contacts = Contact.all
5
- respond_with(@contacts)
6
- end
7
- end
@@ -1,3 +0,0 @@
1
- class Contact < ActiveRecord::Base
2
- # name, website, age
3
- end
@@ -1,24 +0,0 @@
1
- <table>
2
- <caption>Test caption</caption>
3
- <thead>
4
- <tr>
5
- <th>Name</th>
6
- <th>Website</th>
7
- <th>Age</th>
8
- </tr>
9
- </thead>
10
- <tbody>
11
- <% contacts.each do |contact| %>
12
- <tr>
13
- <td><%= contact.name %></td>
14
- <td><%= contact.website %></td>
15
- <td><%= contact.age %></td>
16
- </tr>
17
- <% end %>
18
- </tbody>
19
- <tfoot>
20
- <tr>
21
- <td>footer stuff</td>
22
- </tr>
23
- </tfoot>
24
- </table>
@@ -1 +0,0 @@
1
- <%= render 'contacts/table', :contacts => @contacts %>
@@ -1 +0,0 @@
1
- <%= render 'contacts/table', :contacts => @contacts %>
@@ -1,7 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head></head>
4
- <body>
5
- <%= yield %>
6
- </body>
7
- </html>
@@ -1,15 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(:default, Rails.env) if defined?(Bundler)
6
-
7
- module TestApp
8
- class Application < Rails::Application
9
- # Configure the default encoding used in templates for Ruby 1.9.
10
- config.encoding = "utf-8"
11
-
12
- # Configure sensitive parameters which will be filtered from the log file.
13
- config.filter_parameters += [:password]
14
- end
15
- end
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
-
6
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -1,22 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- development:
4
- adapter: sqlite3
5
- database: db/development.sqlite3
6
- pool: 5
7
- timeout: 5000
8
-
9
- # Warning: The database defined as "test" will be erased and
10
- # re-generated from your development database when you run "rake".
11
- # Do not set this db to the same as development or production.
12
- test:
13
- adapter: sqlite3
14
- database: db/test.sqlite3
15
- pool: 5
16
- timeout: 5000
17
-
18
- production:
19
- adapter: sqlite3
20
- database: db/production.sqlite3
21
- pool: 5
22
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- TestApp::Application.initialize!
@@ -1,26 +0,0 @@
1
- TestApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the webserver when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_view.debug_rjs = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send
18
- config.action_mailer.raise_delivery_errors = false
19
-
20
- # Print deprecation notices to the Rails logger
21
- config.active_support.deprecation = :log
22
-
23
- # Only use best-standards-support built into browsers
24
- config.action_dispatch.best_standards_support = :builtin
25
- end
26
-
@@ -1,49 +0,0 @@
1
- TestApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The production environment is meant for finished, "live" apps.
5
- # Code is not reloaded between requests
6
- config.cache_classes = true
7
-
8
- # Full error reports are disabled and caching is turned on
9
- config.consider_all_requests_local = false
10
- config.action_controller.perform_caching = true
11
-
12
- # Specifies the header that your server uses for sending files
13
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
-
15
- # For nginx:
16
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
-
18
- # If you have no front-end server that supports something like X-Sendfile,
19
- # just comment this out and Rails will serve the files
20
-
21
- # See everything in the log (default is :info)
22
- # config.log_level = :debug
23
-
24
- # Use a different logger for distributed setups
25
- # config.logger = SyslogLogger.new
26
-
27
- # Use a different cache store in production
28
- # config.cache_store = :mem_cache_store
29
-
30
- # Disable Rails's static asset server
31
- # In production, Apache or nginx will already do this
32
- config.serve_static_assets = false
33
-
34
- # Enable serving of images, stylesheets, and javascripts from an asset server
35
- # config.action_controller.asset_host = "http://assets.example.com"
36
-
37
- # Disable delivery errors, bad email addresses will be ignored
38
- # config.action_mailer.raise_delivery_errors = false
39
-
40
- # Enable threaded mode
41
- # config.threadsafe!
42
-
43
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
- # the I18n.default_locale when a translation can not be found)
45
- config.i18n.fallbacks = true
46
-
47
- # Send deprecation notices to registered listeners
48
- config.active_support.deprecation = :notify
49
- end
@@ -1,35 +0,0 @@
1
- TestApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- TestApp::Application.config.secret_token = 'c362f09b453ec024bd3095ac4dcaa4e2e4205195349962f8ce03094a7644679625ea123c322123a33da3a6bd040998a7df03efcf3073bbc179b2c3ab2f542cc4'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- TestApp::Application.config.session_store :cookie_store, :key => '_test_app_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # TestApp::Application.config.session_store :active_record_store
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,4 +0,0 @@
1
- TestApp::Application.routes.draw do
2
- resources :contacts
3
- root :to => redirect("/contacts.html")
4
- end
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run TestApp::Application
Binary file
@@ -1,15 +0,0 @@
1
- class CreateContacts < ActiveRecord::Migration
2
- class << self
3
- def up
4
- create_table :contacts do |t|
5
- t.string :name
6
- t.string :website
7
- t.integer :age
8
- end
9
- end
10
-
11
- def down
12
- drop_table :contacts
13
- end
14
- end
15
- end
@@ -1,21 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
10
- #
11
- # It's strongly recommended to check this file into your version control system.
12
-
13
- ActiveRecord::Schema.define(:version => 1) do
14
-
15
- create_table "contacts", :force => true do |t|
16
- t.string "name"
17
- t.string "website"
18
- t.integer "age"
19
- end
20
-
21
- end
@@ -1,7 +0,0 @@
1
- # This file should contain all the record creation needed to seed the database with its default values.
2
- # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
- #
4
- # Examples:
5
- #
6
- # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
7
- # Mayor.create(:name => 'Daley', :city => cities.first)
Binary file
@@ -1,509 +0,0 @@
1
- SQL (43.0ms)  SELECT name
2
- FROM sqlite_master
3
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4
- 
5
- SQL (1.0ms) select sqlite_version(*)
6
- SQL (5.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7
- SQL (1.0ms) PRAGMA index_list("schema_migrations")
8
- SQL (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9
- SQL (1.0ms) SELECT name
10
- FROM sqlite_master
11
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
12
- SQL (0.0ms)  SELECT name
13
- FROM sqlite_master
14
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
15
- 
16
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
17
- SQL (1.0ms)  SELECT name
18
- FROM sqlite_master
19
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
20
- 
21
- SQL (0.0ms) select sqlite_version(*)
22
- SQL (0.0ms)  SELECT name
23
- FROM sqlite_master
24
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
25
- 
26
- SQL (1.0ms) SELECT name
27
- FROM sqlite_master
28
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
29
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
30
- SQL (0.0ms) SELECT name
31
- FROM sqlite_master
32
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
33
- SQL (0.0ms)  SELECT name
34
- FROM sqlite_master
35
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
36
- 
37
- SQL (0.0ms) SELECT name
38
- FROM sqlite_master
39
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
40
- SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
41
- SQL (1.0ms) SELECT name
42
- FROM sqlite_master
43
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
44
- SQL (0.0ms) select sqlite_version(*)
45
- SQL (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
46
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
47
- SQL (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
48
- SQL (0.0ms)  SELECT name
49
- FROM sqlite_master
50
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
51
- 
52
- SQL (1.0ms) SELECT version FROM "schema_migrations"
53
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
54
- SQL (1.0ms)  SELECT name
55
- FROM sqlite_master
56
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
57
- 
58
- SQL (0.0ms) SELECT name
59
- FROM sqlite_master
60
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
61
- SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
62
- SQL (1.0ms) SELECT name
63
- FROM sqlite_master
64
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
65
- SQL (0.0ms) select sqlite_version(*)
66
- SQL (6.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
67
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
68
- SQL (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
69
- SQL (0.0ms)  SELECT name
70
- FROM sqlite_master
71
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
72
- 
73
- SQL (0.0ms) SELECT version FROM "schema_migrations"
74
- SQL (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
75
- SQL (1.0ms)  SELECT name
76
- FROM sqlite_master
77
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
78
- 
79
- SQL (0.0ms) SELECT name
80
- FROM sqlite_master
81
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
82
- SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
83
- SQL (0.0ms) SELECT name
84
- FROM sqlite_master
85
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
86
- SQL (0.0ms) select sqlite_version(*)
87
- SQL (3.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
88
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
89
- SQL (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
90
- SQL (0.0ms)  SELECT name
91
- FROM sqlite_master
92
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
93
- 
94
- SQL (0.0ms) SELECT version FROM "schema_migrations"
95
- SQL (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
96
- SQL (1.0ms)  SELECT name
97
- FROM sqlite_master
98
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
99
- 
100
- SQL (1.0ms) SELECT name
101
- FROM sqlite_master
102
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
103
- SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
104
- SQL (1.0ms) SELECT name
105
- FROM sqlite_master
106
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
107
- SQL (0.0ms) select sqlite_version(*)
108
- SQL (6.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
109
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
110
- SQL (9.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
111
- SQL (0.0ms)  SELECT name
112
- FROM sqlite_master
113
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
114
- 
115
- SQL (0.0ms) SELECT version FROM "schema_migrations"
116
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
117
- SQL (1.0ms)  SELECT name
118
- FROM sqlite_master
119
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
120
- 
121
- SQL (0.0ms) SELECT name
122
- FROM sqlite_master
123
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
124
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
125
- SQL (0.0ms) SELECT name
126
- FROM sqlite_master
127
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
128
- SQL (1.0ms) select sqlite_version(*)
129
- SQL (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
130
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
131
- SQL (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
132
- SQL (0.0ms)  SELECT name
133
- FROM sqlite_master
134
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
135
- 
136
- SQL (0.0ms) SELECT version FROM "schema_migrations"
137
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
138
- SQL (0.0ms)  SELECT name
139
- FROM sqlite_master
140
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
141
- 
142
- SQL (1.0ms) SELECT name
143
- FROM sqlite_master
144
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
145
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
146
- SQL (1.0ms) SELECT name
147
- FROM sqlite_master
148
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
149
- SQL (0.0ms) select sqlite_version(*)
150
- SQL (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
151
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
152
- SQL (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
153
- SQL (1.0ms)  SELECT name
154
- FROM sqlite_master
155
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
156
- 
157
- SQL (0.0ms) SELECT version FROM "schema_migrations"
158
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
159
- SQL (0.0ms)  SELECT name
160
- FROM sqlite_master
161
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
162
- 
163
- SQL (0.0ms) SELECT name
164
- FROM sqlite_master
165
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
166
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
167
- SQL (1.0ms) SELECT name
168
- FROM sqlite_master
169
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
170
- SQL (0.0ms) select sqlite_version(*)
171
- SQL (32.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
172
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
173
- SQL (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
174
- SQL (0.0ms)  SELECT name
175
- FROM sqlite_master
176
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
177
- 
178
- SQL (0.0ms) SELECT version FROM "schema_migrations"
179
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
180
- SQL (1.0ms)  SELECT name
181
- FROM sqlite_master
182
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
183
- 
184
- SQL (1.0ms) SELECT name
185
- FROM sqlite_master
186
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
187
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
188
- SQL (1.0ms) SELECT name
189
- FROM sqlite_master
190
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
191
- SQL (0.0ms) select sqlite_version(*)
192
- SQL (3.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
193
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
194
- SQL (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
195
- SQL (0.0ms)  SELECT name
196
- FROM sqlite_master
197
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
198
- 
199
- SQL (0.0ms) SELECT version FROM "schema_migrations"
200
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
201
- SQL (1.0ms)  SELECT name
202
- FROM sqlite_master
203
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
204
- 
205
- SQL (1.0ms) SELECT name
206
- FROM sqlite_master
207
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
208
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
209
- SQL (1.0ms) SELECT name
210
- FROM sqlite_master
211
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
212
- SQL (0.0ms) select sqlite_version(*)
213
- SQL (3.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
214
- SQL (1.0ms) PRAGMA index_list("schema_migrations")
215
- SQL (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
216
- SQL (0.0ms)  SELECT name
217
- FROM sqlite_master
218
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
219
- 
220
- SQL (0.0ms) SELECT version FROM "schema_migrations"
221
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
222
- SQL (0.0ms)  SELECT name
223
- FROM sqlite_master
224
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
225
- 
226
- SQL (0.0ms) SELECT name
227
- FROM sqlite_master
228
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
229
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
230
- SQL (1.0ms) SELECT name
231
- FROM sqlite_master
232
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
233
- SQL (0.0ms) select sqlite_version(*)
234
- SQL (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
235
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
236
- SQL (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
237
- SQL (0.0ms)  SELECT name
238
- FROM sqlite_master
239
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
240
- 
241
- SQL (0.0ms) SELECT version FROM "schema_migrations"
242
- SQL (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
243
- SQL (1.0ms)  SELECT name
244
- FROM sqlite_master
245
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
246
- 
247
- SQL (0.0ms) select sqlite_version(*)
248
- SQL (5.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
249
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
250
- SQL (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
251
- SQL (0.0ms) SELECT name
252
- FROM sqlite_master
253
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
254
- SQL (0.0ms) SELECT version FROM "schema_migrations"
255
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
256
- SQL (1.0ms)  SELECT name
257
- FROM sqlite_master
258
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
259
- 
260
- SQL (0.0ms) select sqlite_version(*)
261
- SQL (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
262
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
263
- SQL (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
264
- SQL (0.0ms) SELECT name
265
- FROM sqlite_master
266
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
267
- SQL (0.0ms) SELECT version FROM "schema_migrations"
268
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
269
- SQL (1.0ms)  SELECT name
270
- FROM sqlite_master
271
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
272
- 
273
- SQL (0.0ms) SELECT name
274
- FROM sqlite_master
275
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
276
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
277
- SQL (0.0ms)  SELECT name
278
- FROM sqlite_master
279
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
280
- 
281
- SQL (0.0ms) SELECT name
282
- FROM sqlite_master
283
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
284
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
285
- Migrating to CreateContacts (1)
286
- SQL (0.0ms) select sqlite_version(*)
287
- SQL (1.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer) 
288
- SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')
289
- SQL (3.0ms)  SELECT name
290
- FROM sqlite_master
291
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
292
- 
293
- SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
294
- SQL (0.0ms)  SELECT name
295
- FROM sqlite_master
296
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
297
- 
298
- SQL (0.0ms) PRAGMA index_list("contacts")
299
- SQL (0.0ms)  SELECT name
300
- FROM sqlite_master
301
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
302
- 
303
- SQL (0.0ms) SELECT name
304
- FROM sqlite_master
305
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
306
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
307
- SQL (1.0ms) select sqlite_version(*)
308
- SQL (0.0ms)  SELECT name
309
- FROM sqlite_master
310
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
311
- 
312
- SQL (5.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
313
- SQL (0.0ms)  SELECT name
314
- FROM sqlite_master
315
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
316
- 
317
- SQL (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
318
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
319
- SQL (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
320
- SQL (0.0ms)  SELECT name
321
- FROM sqlite_master
322
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
323
- 
324
- SQL (1.0ms) SELECT version FROM "schema_migrations"
325
- SQL (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
326
- SQL (0.0ms)  SELECT name
327
- FROM sqlite_master
328
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
329
- 
330
- SQL (0.0ms) SELECT name
331
- FROM sqlite_master
332
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
333
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
334
- SQL (1.0ms) select sqlite_version(*)
335
- SQL (0.0ms)  SELECT name
336
- FROM sqlite_master
337
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
338
- 
339
- SQL (6.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
340
- SQL (0.0ms)  SELECT name
341
- FROM sqlite_master
342
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
343
- 
344
- SQL (6.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
345
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
346
- SQL (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
347
- SQL (0.0ms)  SELECT name
348
- FROM sqlite_master
349
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
350
- 
351
- SQL (0.0ms) SELECT version FROM "schema_migrations"
352
- SQL (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
353
- SQL (0.0ms)  SELECT name
354
- FROM sqlite_master
355
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
356
- 
357
- SQL (0.0ms) SELECT name
358
- FROM sqlite_master
359
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
360
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
361
- SQL (0.0ms) select sqlite_version(*)
362
- SQL (0.0ms)  SELECT name
363
- FROM sqlite_master
364
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
365
- 
366
- SQL (59.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
367
- SQL (0.0ms)  SELECT name
368
- FROM sqlite_master
369
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
370
- 
371
- SQL (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
372
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
373
- SQL (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
374
- SQL (0.0ms)  SELECT name
375
- FROM sqlite_master
376
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
377
- 
378
- SQL (1.0ms) SELECT version FROM "schema_migrations"
379
- SQL (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
380
-
381
-
382
- Started GET "/" for 127.0.0.1 at 2011-03-15 02:12:42 +0100
383
-
384
-
385
- Started GET "/contacts.html" for 127.0.0.1 at 2011-03-15 02:12:47 +0100
386
- Processing by ContactsController#index as HTML
387
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
388
- Rendered contacts/_table.erb (0.0ms)
389
- Rendered contacts/index.html.erb within layouts/application (7.0ms)
390
- Completed 200 OK in 281ms (Views: 30.0ms | ActiveRecord: 1.0ms)
391
-
392
-
393
- Started GET "/favicon.ico" for 127.0.0.1 at 2011-03-15 02:12:48 +0100
394
-
395
- ActionController::RoutingError (No route matches "/favicon.ico"):
396
-
397
-
398
- Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.0ms)
399
-
400
-
401
- Started GET "/contacts.xls" for 127.0.0.1 at 2011-03-15 02:13:37 +0100
402
- Processing by ContactsController#index as XLS
403
- Contact Load (0.0ms) SELECT "contacts".* FROM "contacts"
404
- Rendered contacts/_table.erb (1.0ms)
405
- Rendered contacts/index.xls.erb (5.0ms)
406
- Rendered text template (0.0ms)
407
- Sent data (20.0ms)
408
- Completed 200 OK in 71ms (Views: 58.0ms | ActiveRecord: 0.0ms)
409
-
410
-
411
- Started GET "/contacts.xls" for 127.0.0.1 at 2011-03-15 02:14:32 +0100
412
- Processing by ContactsController#index as XLS
413
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
414
- Rendered contacts/_table.erb (0.0ms)
415
- Rendered contacts/index.xls.erb (5.0ms)
416
- Rendered text template (0.0ms)
417
- Sent data (1.0ms)
418
- Completed 200 OK in 76ms (Views: 40.0ms | ActiveRecord: 1.0ms)
419
-
420
-
421
- Started GET "/contacts.xls" for 127.0.0.1 at 2011-03-15 02:15:10 +0100
422
- Processing by ContactsController#index as XLS
423
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
424
- Rendered contacts/_table.erb (1.0ms)
425
- Rendered contacts/index.xls.erb (5.0ms)
426
- Rendered text template (0.0ms)
427
- Sent data (20.0ms)
428
- Completed 200 OK in 300ms (Views: 61.0ms | ActiveRecord: 1.0ms)
429
- SQL (1.0ms)  SELECT name
430
- FROM sqlite_master
431
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
432
- 
433
- SQL (1.0ms) SELECT name
434
- FROM sqlite_master
435
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
436
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
437
- SQL (0.0ms) select sqlite_version(*)
438
- SQL (0.0ms)  SELECT name
439
- FROM sqlite_master
440
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
441
- 
442
- SQL (4.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
443
- SQL (0.0ms)  SELECT name
444
- FROM sqlite_master
445
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
446
- 
447
- SQL (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
448
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
449
- SQL (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
450
- SQL (0.0ms)  SELECT name
451
- FROM sqlite_master
452
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
453
- 
454
- SQL (1.0ms) SELECT version FROM "schema_migrations"
455
- SQL (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
456
- SQL (119.0ms)  SELECT name
457
- FROM sqlite_master
458
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
459
- 
460
- SQL (1.0ms) SELECT name
461
- FROM sqlite_master
462
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
463
- SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
464
- SQL (1.0ms) select sqlite_version(*)
465
- SQL (0.0ms)  SELECT name
466
- FROM sqlite_master
467
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
468
- 
469
- SQL (30.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
470
- SQL (1.0ms)  SELECT name
471
- FROM sqlite_master
472
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
473
- 
474
- SQL (41.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
475
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
476
- SQL (9.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
477
- SQL (1.0ms)  SELECT name
478
- FROM sqlite_master
479
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
480
- 
481
- SQL (0.0ms) SELECT version FROM "schema_migrations"
482
- SQL (8.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
483
- SQL (1.0ms)  SELECT name
484
- FROM sqlite_master
485
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
486
- 
487
- SQL (0.0ms) SELECT name
488
- FROM sqlite_master
489
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
490
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
491
- SQL (1.0ms) select sqlite_version(*)
492
- SQL (2.0ms)  SELECT name
493
- FROM sqlite_master
494
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
495
- 
496
- SQL (10.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
497
- SQL (0.0ms)  SELECT name
498
- FROM sqlite_master
499
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
500
- 
501
- SQL (23.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
502
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
503
- SQL (8.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
504
- SQL (1.0ms)  SELECT name
505
- FROM sqlite_master
506
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
507
- 
508
- SQL (1.0ms) SELECT version FROM "schema_migrations"
509
- SQL (12.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')