tagged_logger 0.5.1 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +9 -7
- data/lib/tagged_logger/railtie.rb +23 -13
- data/lib/tagged_logger/tagged_logger.rb +3 -5
- data/test/test_rails.rb +1 -2
- data/test/test_rails_app/Gemfile +12 -0
- data/test/test_rails_app/Gemfile.lock +115 -0
- data/test/test_rails_app/README +256 -0
- data/test/test_rails_app/Rakefile +7 -0
- data/test/test_rails_app/app/controllers/application_controller.rb +3 -0
- data/test/test_rails_app/app/controllers/users_controller.rb +8 -0
- data/test/test_rails_app/app/helpers/application_helper.rb +2 -0
- data/test/test_rails_app/app/helpers/users_helper.rb +2 -0
- data/test/test_rails_app/app/mailers/user_mailer.rb +6 -0
- data/test/test_rails_app/app/models/user.rb +6 -0
- data/test/test_rails_app/app/views/layouts/application.html.erb +14 -0
- data/test/test_rails_app/app/views/user_mailer/index_email.html.erb +2 -0
- data/test/test_rails_app/app/views/users/index.html.erb +1 -0
- data/test/test_rails_app/config/application.rb +42 -0
- data/test/test_rails_app/config/boot.rb +13 -0
- data/test/test_rails_app/config/database.yml +22 -0
- data/test/test_rails_app/config/environment.rb +5 -0
- data/test/test_rails_app/config/environments/development.rb +26 -0
- data/test/test_rails_app/config/environments/production.rb +49 -0
- data/test/test_rails_app/config/environments/test.rb +41 -0
- data/test/test_rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/test_rails_app/config/initializers/generators.rb +2 -0
- data/test/test_rails_app/config/initializers/inflections.rb +10 -0
- data/test/test_rails_app/config/initializers/mime_types.rb +5 -0
- data/test/test_rails_app/config/initializers/secret_token.rb +7 -0
- data/test/test_rails_app/config/initializers/session_store.rb +8 -0
- data/test/test_rails_app/config/initializers/tagged_logger.rb +11 -0
- data/test/test_rails_app/config/locales/en.yml +5 -0
- data/test/test_rails_app/config/routes.rb +60 -0
- data/test/test_rails_app/config.ru +4 -0
- data/test/test_rails_app/db/development.sqlite3 +0 -0
- data/test/test_rails_app/db/migrate/20101031213200_create_users.rb +12 -0
- data/test/test_rails_app/db/schema.rb +20 -0
- data/test/test_rails_app/db/seeds.rb +7 -0
- data/test/test_rails_app/db/test.sqlite3 +0 -0
- data/test/test_rails_app/doc/README_FOR_APP +2 -0
- data/test/test_rails_app/lib/test_logger.rb +14 -0
- data/test/test_rails_app/log/development.log +69 -0
- data/test/test_rails_app/log/production.log +0 -0
- data/test/test_rails_app/log/server.log +0 -0
- data/test/test_rails_app/log/test.log +105 -0
- data/test/test_rails_app/public/404.html +26 -0
- data/test/test_rails_app/public/422.html +26 -0
- data/test/test_rails_app/public/500.html +26 -0
- data/test/test_rails_app/public/favicon.ico +0 -0
- data/test/test_rails_app/public/images/rails.png +0 -0
- data/test/test_rails_app/public/index.html +239 -0
- data/test/test_rails_app/public/javascripts/application.js +2 -0
- data/test/test_rails_app/public/javascripts/controls.js +965 -0
- data/test/test_rails_app/public/javascripts/dragdrop.js +974 -0
- data/test/test_rails_app/public/javascripts/effects.js +1123 -0
- data/test/test_rails_app/public/javascripts/prototype.js +6001 -0
- data/test/test_rails_app/public/javascripts/rails.js +175 -0
- data/test/test_rails_app/public/robots.txt +5 -0
- data/test/test_rails_app/script/rails +6 -0
- data/test/test_rails_app/test/integration/logging_test.rb +63 -0
- data/test/test_rails_app/test/performance/browsing_test.rb +9 -0
- data/test/test_rails_app/test/test_helper.rb +6 -0
- data/test/test_rails_app/tmp/capybara/capybara-20101031161745.html +239 -0
- data/test/test_rails_app/tmp/capybara/capybara-20101031162015.html +239 -0
- metadata +67 -7
@@ -0,0 +1,22 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3-ruby (not necessary on OS X Leopard)
|
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
|
@@ -0,0 +1,26 @@
|
|
1
|
+
TestRailsApp::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/environment.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
|
+
|
@@ -0,0 +1,49 @@
|
|
1
|
+
TestRailsApp::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/environment.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
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'test_logger'
|
2
|
+
|
3
|
+
TestRailsApp::Application.configure do
|
4
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
5
|
+
|
6
|
+
# The test environment is used exclusively to run your application's
|
7
|
+
# test suite. You never need to work with it otherwise. Remember that
|
8
|
+
# your test database is "scratch space" for the test suite and is wiped
|
9
|
+
# and recreated between test runs. Don't rely on the data there!
|
10
|
+
config.cache_classes = true
|
11
|
+
|
12
|
+
# Log error messages when you accidentally call methods on nil.
|
13
|
+
config.whiny_nils = true
|
14
|
+
|
15
|
+
# Show full error reports and disable caching
|
16
|
+
config.consider_all_requests_local = true
|
17
|
+
config.action_controller.perform_caching = false
|
18
|
+
|
19
|
+
# Raise exceptions instead of rendering exception templates
|
20
|
+
config.action_dispatch.show_exceptions = false
|
21
|
+
|
22
|
+
# Disable request forgery protection in test environment
|
23
|
+
config.action_controller.allow_forgery_protection = false
|
24
|
+
|
25
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
26
|
+
# The :test delivery method accumulates sent emails in the
|
27
|
+
# ActionMailer::Base.deliveries array.
|
28
|
+
config.action_mailer.delivery_method = :test
|
29
|
+
|
30
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
31
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
32
|
+
# like if you have constraints or database-specific column types
|
33
|
+
# config.active_record.schema_format = :sql
|
34
|
+
|
35
|
+
# Print deprecation notices to the stderr
|
36
|
+
config.active_support.deprecation = :stderr
|
37
|
+
config.colorize_logging = false
|
38
|
+
config.logger = TestLogger.instance
|
39
|
+
|
40
|
+
TaggedLogger.config(:replace_existing_logger => true)
|
41
|
+
end
|
@@ -0,0 +1,7 @@
|
|
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!
|
@@ -0,0 +1,10 @@
|
|
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
|
@@ -0,0 +1,7 @@
|
|
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
|
+
TestRailsApp::Application.config.secret_token = '84198d9ba8d271b3d95d252b17601cb0f4b18b5a790d0c1d9bcce95e1c03d9d6f615b21b66986a2bf2ea9b5e850e30f09dfbfa9ffa2586b8ce1f5f1a2e4a460d'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
TestRailsApp::Application.config.session_store :cookie_store, :key => '_test_rails_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 "rake db:sessions:create")
|
8
|
+
# TestRailsApp::Application.config.session_store :active_record_store
|
@@ -0,0 +1,60 @@
|
|
1
|
+
TestRailsApp::Application.routes.draw do
|
2
|
+
resources :users
|
3
|
+
|
4
|
+
# The priority is based upon order of creation:
|
5
|
+
# first created -> highest priority.
|
6
|
+
|
7
|
+
# Sample of regular route:
|
8
|
+
# match 'products/:id' => 'catalog#view'
|
9
|
+
# Keep in mind you can assign values other than :controller and :action
|
10
|
+
|
11
|
+
# Sample of named route:
|
12
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
13
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
14
|
+
|
15
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
16
|
+
# resources :products
|
17
|
+
|
18
|
+
# Sample resource route with options:
|
19
|
+
# resources :products do
|
20
|
+
# member do
|
21
|
+
# get 'short'
|
22
|
+
# post 'toggle'
|
23
|
+
# end
|
24
|
+
#
|
25
|
+
# collection do
|
26
|
+
# get 'sold'
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
|
30
|
+
# Sample resource route with sub-resources:
|
31
|
+
# resources :products do
|
32
|
+
# resources :comments, :sales
|
33
|
+
# resource :seller
|
34
|
+
# end
|
35
|
+
|
36
|
+
# Sample resource route with more complex sub-resources
|
37
|
+
# resources :products do
|
38
|
+
# resources :comments
|
39
|
+
# resources :sales do
|
40
|
+
# get 'recent', :on => :collection
|
41
|
+
# end
|
42
|
+
# end
|
43
|
+
|
44
|
+
# Sample resource route within a namespace:
|
45
|
+
# namespace :admin do
|
46
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
47
|
+
# # (app/controllers/admin/products_controller.rb)
|
48
|
+
# resources :products
|
49
|
+
# end
|
50
|
+
|
51
|
+
# You can have the root of your site routed with "root"
|
52
|
+
# just remember to delete public/index.html.
|
53
|
+
# root :to => "welcome#index"
|
54
|
+
|
55
|
+
# See how all your routes lay out with "rake routes"
|
56
|
+
|
57
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
58
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
59
|
+
# match ':controller(/:action(/:id(.:format)))'
|
60
|
+
end
|
Binary file
|
@@ -0,0 +1,20 @@
|
|
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 => 20101031213200) do
|
14
|
+
|
15
|
+
create_table "users", :force => true do |t|
|
16
|
+
t.datetime "created_at"
|
17
|
+
t.datetime "updated_at"
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,7 @@
|
|
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
|
@@ -0,0 +1,69 @@
|
|
1
|
+
[1m[36mSQL (0.6ms)[0m [1m SELECT name
|
2
|
+
FROM sqlite_master
|
3
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
4
|
+
[0m
|
5
|
+
[1m[35mSQL (0.1ms)[0m select sqlite_version(*)
|
6
|
+
[1m[36mSQL (3.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7
|
+
[1m[35mSQL (0.1ms)[0m PRAGMA index_list("schema_migrations")
|
8
|
+
[1m[36mSQL (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
9
|
+
[1m[35mSQL (0.2ms)[0m SELECT name
|
10
|
+
FROM sqlite_master
|
11
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
12
|
+
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
13
|
+
FROM sqlite_master
|
14
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
15
|
+
[0m
|
16
|
+
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
17
|
+
Migrating to CreateUsers (20101031213200)
|
18
|
+
[1m[36mSQL (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
19
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20101031213200')
|
20
|
+
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
21
|
+
FROM sqlite_master
|
22
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
23
|
+
[0m
|
24
|
+
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
25
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
26
|
+
FROM sqlite_master
|
27
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
28
|
+
[0m
|
29
|
+
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("users")
|
30
|
+
[1m[36mSQL (0.6ms)[0m [1m SELECT name
|
31
|
+
FROM sqlite_master
|
32
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
33
|
+
[0m
|
34
|
+
[1m[35mSQL (0.1ms)[0m select sqlite_version(*)
|
35
|
+
[1m[36mSQL (3.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
36
|
+
[1m[35mSQL (0.1ms)[0m PRAGMA index_list("schema_migrations")
|
37
|
+
[1m[36mSQL (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
38
|
+
[1m[35mSQL (0.9ms)[0m SELECT name
|
39
|
+
FROM sqlite_master
|
40
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
41
|
+
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
42
|
+
FROM sqlite_master
|
43
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
44
|
+
[0m
|
45
|
+
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
46
|
+
Migrating to CreateUsers (20101031213200)
|
47
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
48
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20101031213200')
|
49
|
+
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
50
|
+
FROM sqlite_master
|
51
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
52
|
+
[0m
|
53
|
+
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
54
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
55
|
+
FROM sqlite_master
|
56
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
57
|
+
[0m
|
58
|
+
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("users")
|
59
|
+
|
60
|
+
|
61
|
+
Started GET "/users" for 127.0.0.1 at Sun Oct 31 18:33:56 -0500 2010
|
62
|
+
Processing by UsersController#index as HTML
|
63
|
+
[1m[36mSQL (0.8ms)[0m [1m SELECT name
|
64
|
+
FROM sqlite_master
|
65
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
66
|
+
[0m
|
67
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
68
|
+
Rendered users/index.html.erb within layouts/application (1.9ms)
|
69
|
+
Completed 200 OK in 36ms (Views: 9.0ms | ActiveRecord: 0.9ms)
|
File without changes
|
File without changes
|
@@ -0,0 +1,105 @@
|
|
1
|
+
|
2
|
+
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
3
|
+
|
4
|
+
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
5
|
+
|
6
|
+
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
7
|
+
|
8
|
+
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
9
|
+
|
10
|
+
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
11
|
+
[1m[36mSQL (0.7ms)[0m [1m SELECT name
|
12
|
+
FROM sqlite_master
|
13
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
14
|
+
[0m
|
15
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users"
|
16
|
+
SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users"
|
17
|
+
[1m[36mSQL (0.6ms)[0m [1m SELECT name
|
18
|
+
FROM sqlite_master
|
19
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
20
|
+
[0m
|
21
|
+
[1m[35mSQL (0.1ms)[0m select sqlite_version(*)
|
22
|
+
[1m[36mSQL (1.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
23
|
+
[1m[35mSQL (0.1ms)[0m PRAGMA index_list("schema_migrations")
|
24
|
+
[1m[36mSQL (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
25
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
26
|
+
FROM sqlite_master
|
27
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
28
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
29
|
+
FROM sqlite_master
|
30
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
31
|
+
[0m
|
32
|
+
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
33
|
+
Migrating to CreateUsers (20101031213200)
|
34
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
35
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20101031213200')
|
36
|
+
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
37
|
+
FROM sqlite_master
|
38
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
39
|
+
[0m
|
40
|
+
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
41
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
42
|
+
FROM sqlite_master
|
43
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
44
|
+
[0m
|
45
|
+
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("users")
|
46
|
+
[1m[36mSQL (0.7ms)[0m [1m SELECT name
|
47
|
+
FROM sqlite_master
|
48
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
49
|
+
[0m
|
50
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
51
|
+
[1m[36mSQL (0.7ms)[0m [1m SELECT name
|
52
|
+
FROM sqlite_master
|
53
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
54
|
+
[0m
|
55
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
56
|
+
[1m[36mSQL (0.8ms)[0m [1m SELECT name
|
57
|
+
FROM sqlite_master
|
58
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
59
|
+
[0m
|
60
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
61
|
+
[1m[36mSQL (0.7ms)[0m [1m SELECT name
|
62
|
+
FROM sqlite_master
|
63
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
64
|
+
[0m
|
65
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
66
|
+
[1m[36mSQL (0.6ms)[0m [1m SELECT name
|
67
|
+
FROM sqlite_master
|
68
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
69
|
+
[0m
|
70
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
71
|
+
[1m[36mSQL (0.8ms)[0m [1m SELECT name
|
72
|
+
FROM sqlite_master
|
73
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
74
|
+
[0m
|
75
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
76
|
+
[1m[36mSQL (0.7ms)[0m [1m SELECT name
|
77
|
+
FROM sqlite_master
|
78
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
79
|
+
[0m
|
80
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
81
|
+
[1m[36mSQL (0.8ms)[0m [1m SELECT name
|
82
|
+
FROM sqlite_master
|
83
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
84
|
+
[0m
|
85
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
86
|
+
|
87
|
+
|
88
|
+
Started GET "/users" for 127.0.0.1 at Sun Oct 31 19:06:11 -0500 2010
|
89
|
+
[1m[36mSQL (0.7ms)[0m [1m SELECT name
|
90
|
+
FROM sqlite_master
|
91
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
92
|
+
[0m
|
93
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
94
|
+
|
95
|
+
|
96
|
+
Started GET "/users" for 127.0.0.1 at Mon Nov 01 19:46:41 -0500 2010
|
97
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
98
|
+
|
99
|
+
|
100
|
+
Started GET "/users" for 127.0.0.1 at Mon Nov 01 19:48:36 -0500 2010
|
101
|
+
[1m[36mSQL (0.6ms)[0m [1m SELECT name
|
102
|
+
FROM sqlite_master
|
103
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
104
|
+
[0m
|
105
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
Binary file
|