cathode 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/README.md +236 -0
  4. data/Rakefile +26 -0
  5. data/app/assets/javascripts/cathode/application.js +13 -0
  6. data/app/assets/stylesheets/cathode/application.css +13 -0
  7. data/app/controllers/cathode/base_controller.rb +47 -0
  8. data/app/helpers/cathode/application_helper.rb +4 -0
  9. data/app/views/layouts/cathode/application.html.erb +14 -0
  10. data/config/routes.rb +2 -0
  11. data/lib/cathode.rb +14 -0
  12. data/lib/cathode/_version.rb +3 -0
  13. data/lib/cathode/action.rb +82 -0
  14. data/lib/cathode/base.rb +28 -0
  15. data/lib/cathode/engine.rb +5 -0
  16. data/lib/cathode/exceptions.rb +3 -0
  17. data/lib/cathode/request.rb +15 -0
  18. data/lib/cathode/resource.rb +40 -0
  19. data/lib/cathode/version.rb +49 -0
  20. data/lib/tasks/cathode_tasks.rake +4 -0
  21. data/spec/dummy/README.rdoc +28 -0
  22. data/spec/dummy/Rakefile +6 -0
  23. data/spec/dummy/app/api/dummy_api.rb +4 -0
  24. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  25. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  26. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  27. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  28. data/spec/dummy/app/models/product.rb +2 -0
  29. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  30. data/spec/dummy/bin/bundle +3 -0
  31. data/spec/dummy/bin/rails +4 -0
  32. data/spec/dummy/bin/rake +4 -0
  33. data/spec/dummy/config.ru +4 -0
  34. data/spec/dummy/config/application.rb +28 -0
  35. data/spec/dummy/config/boot.rb +5 -0
  36. data/spec/dummy/config/database.yml +25 -0
  37. data/spec/dummy/config/environment.rb +5 -0
  38. data/spec/dummy/config/environments/development.rb +29 -0
  39. data/spec/dummy/config/environments/production.rb +80 -0
  40. data/spec/dummy/config/environments/test.rb +36 -0
  41. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  42. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  43. data/spec/dummy/config/initializers/inflections.rb +16 -0
  44. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  45. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  46. data/spec/dummy/config/initializers/session_store.rb +3 -0
  47. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/spec/dummy/config/locales/en.yml +23 -0
  49. data/spec/dummy/config/routes.rb +3 -0
  50. data/spec/dummy/db/development.sqlite3 +0 -0
  51. data/spec/dummy/db/migrate/20140404222551_create_products.rb +10 -0
  52. data/spec/dummy/db/schema.rb +23 -0
  53. data/spec/dummy/db/test.sqlite3 +0 -0
  54. data/spec/dummy/log/development.log +312 -0
  55. data/spec/dummy/log/test.log +12708 -0
  56. data/spec/dummy/public/404.html +58 -0
  57. data/spec/dummy/public/422.html +58 -0
  58. data/spec/dummy/public/500.html +57 -0
  59. data/spec/dummy/public/favicon.ico +0 -0
  60. data/spec/dummy/spec/factories/products.rb +8 -0
  61. data/spec/integration/api_spec.rb +88 -0
  62. data/spec/lib/action_spec.rb +140 -0
  63. data/spec/lib/base_spec.rb +28 -0
  64. data/spec/lib/request_spec.rb +5 -0
  65. data/spec/lib/resources_spec.rb +78 -0
  66. data/spec/lib/versioning_spec.rb +104 -0
  67. data/spec/spec_helper.rb +30 -0
  68. data/spec/support/factories/products.rb +3 -0
  69. data/spec/support/helpers.rb +9 -0
  70. metadata +259 -0
@@ -0,0 +1,36 @@
1
+ Dummy::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
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ 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,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
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
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '703aa8f2506a9f0f81d026f3106fc1c2440cc865af1c2b77a059fbf878c6104dae1ad3feb2ec5cb64b3bc8093b63020b70fd2f54c94aae39dad15b0afe751a47'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount Cathode::Engine => "/api"
3
+ end
Binary file
@@ -0,0 +1,10 @@
1
+ class CreateProducts < ActiveRecord::Migration
2
+ def change
3
+ create_table :products do |t|
4
+ t.string :title
5
+ t.integer :cost
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,23 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20140404222551) do
15
+
16
+ create_table "products", force: true do |t|
17
+ t.string "title"
18
+ t.integer "cost"
19
+ t.datetime "created_at"
20
+ t.datetime "updated_at"
21
+ end
22
+
23
+ end
Binary file
@@ -0,0 +1,312 @@
1
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.1ms) SELECT version FROM "schema_migrations"
7
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
8
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
9
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10
+  (0.1ms) SELECT version FROM "schema_migrations"
11
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
12
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14
+  (0.1ms) SELECT version FROM "schema_migrations"
15
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
16
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
17
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
18
+  (0.1ms) SELECT version FROM "schema_migrations"
19
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
20
+  (63.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
21
+  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
22
+  (0.1ms) SELECT version FROM "schema_migrations"
23
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
24
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
25
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
26
+  (0.1ms) SELECT version FROM "schema_migrations"
27
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
28
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
29
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
+  (0.1ms) SELECT version FROM "schema_migrations"
31
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
32
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
33
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
34
+  (0.1ms) SELECT version FROM "schema_migrations"
35
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
36
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
37
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38
+  (0.1ms) SELECT version FROM "schema_migrations"
39
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
40
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
41
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
42
+  (0.1ms) SELECT version FROM "schema_migrations"
43
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
44
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
45
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
46
+  (0.1ms) SELECT version FROM "schema_migrations"
47
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
48
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
49
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50
+  (0.1ms) SELECT version FROM "schema_migrations"
51
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
52
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
53
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
54
+  (0.1ms) SELECT version FROM "schema_migrations"
55
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
56
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
57
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
58
+  (0.1ms) SELECT version FROM "schema_migrations"
59
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
60
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
61
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
62
+  (0.1ms) SELECT version FROM "schema_migrations"
63
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
64
+  (59.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
65
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
66
+  (0.1ms) SELECT version FROM "schema_migrations"
67
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
68
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
69
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
70
+  (0.1ms) SELECT version FROM "schema_migrations"
71
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
72
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
73
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
74
+  (0.1ms) SELECT version FROM "schema_migrations"
75
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
76
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
77
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
78
+  (0.1ms) SELECT version FROM "schema_migrations"
79
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
80
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
81
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
82
+  (0.1ms) SELECT version FROM "schema_migrations"
83
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
84
+  (56.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
85
+  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
86
+  (0.1ms) SELECT version FROM "schema_migrations"
87
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
88
+  (26.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
89
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
90
+  (0.1ms) SELECT version FROM "schema_migrations"
91
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
92
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
93
+  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
94
+  (0.1ms) SELECT version FROM "schema_migrations"
95
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
96
+  (48.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
97
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
98
+  (0.1ms) SELECT version FROM "schema_migrations"
99
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
100
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
101
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
102
+  (0.1ms) SELECT version FROM "schema_migrations"
103
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
104
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
105
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
106
+  (0.1ms) SELECT version FROM "schema_migrations"
107
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
108
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
109
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
110
+  (0.1ms) SELECT version FROM "schema_migrations"
111
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
112
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
113
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
114
+  (0.1ms) SELECT version FROM "schema_migrations"
115
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
116
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
117
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
118
+  (0.1ms) SELECT version FROM "schema_migrations"
119
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
120
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
121
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
122
+  (0.1ms) SELECT version FROM "schema_migrations"
123
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
124
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
125
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
126
+  (0.1ms) SELECT version FROM "schema_migrations"
127
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
128
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
129
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
130
+  (0.1ms) SELECT version FROM "schema_migrations"
131
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
132
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
133
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
134
+  (0.1ms) SELECT version FROM "schema_migrations"
135
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
136
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
137
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
138
+  (0.1ms) SELECT version FROM "schema_migrations"
139
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
140
+  (34.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
141
+  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
142
+  (0.1ms) SELECT version FROM "schema_migrations"
143
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
144
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
145
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
146
+  (0.1ms) SELECT version FROM "schema_migrations"
147
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
148
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
149
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
150
+  (0.1ms) SELECT version FROM "schema_migrations"
151
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
152
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
153
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
154
+  (0.1ms) SELECT version FROM "schema_migrations"
155
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
156
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
157
+ Migrating to CreateProducts (20140404222551)
158
+  (0.1ms) begin transaction
159
+  (0.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
160
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140404222551"]]
161
+  (2.2ms) commit transaction
162
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
163
+  (1.7ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
164
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
165
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
166
+  (0.1ms) SELECT version FROM "schema_migrations"
167
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
168
+  (2.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
169
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
170
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
171
+  (0.1ms) SELECT version FROM "schema_migrations"
172
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
173
+  (1.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
174
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
175
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
176
+  (0.1ms) SELECT version FROM "schema_migrations"
177
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
178
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
179
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
180
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
181
+  (0.1ms) SELECT version FROM "schema_migrations"
182
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
183
+  (1.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
184
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
185
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
186
+  (0.1ms) SELECT version FROM "schema_migrations"
187
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
188
+  (2.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
189
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
190
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
191
+  (0.1ms) SELECT version FROM "schema_migrations"
192
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
193
+  (1.3ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
194
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
195
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
196
+  (0.1ms) SELECT version FROM "schema_migrations"
197
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
198
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
199
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
200
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
201
+  (0.1ms) SELECT version FROM "schema_migrations"
202
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
203
+  (1.6ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
204
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
205
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
206
+  (0.1ms) SELECT version FROM "schema_migrations"
207
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
208
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
209
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
210
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
211
+  (0.1ms) SELECT version FROM "schema_migrations"
212
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
213
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
214
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
215
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
216
+  (0.1ms) SELECT version FROM "schema_migrations"
217
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
218
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
219
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
220
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
221
+  (0.1ms) SELECT version FROM "schema_migrations"
222
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
223
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
224
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
225
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
226
+  (0.1ms) SELECT version FROM "schema_migrations"
227
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
228
+  (46.1ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
229
+  (37.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
230
+  (17.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
231
+  (0.2ms) SELECT version FROM "schema_migrations"
232
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
233
+  (1.9ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
234
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
235
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
236
+  (0.1ms) SELECT version FROM "schema_migrations"
237
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
238
+  (2.3ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
239
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
240
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
241
+  (0.1ms) SELECT version FROM "schema_migrations"
242
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
243
+  (1.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
244
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
245
+  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
246
+  (0.1ms) SELECT version FROM "schema_migrations"
247
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
248
+  (1.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
249
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
250
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
251
+  (0.1ms) SELECT version FROM "schema_migrations"
252
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
253
+  (1.3ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
254
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
255
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
256
+  (0.1ms) SELECT version FROM "schema_migrations"
257
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
258
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
259
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
260
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
261
+  (0.1ms) SELECT version FROM "schema_migrations"
262
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
263
+  (1.6ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
264
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
265
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
266
+  (0.1ms) SELECT version FROM "schema_migrations"
267
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
268
+  (1.6ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
269
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
270
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
271
+  (0.1ms) SELECT version FROM "schema_migrations"
272
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
273
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
274
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
275
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
276
+  (0.1ms) SELECT version FROM "schema_migrations"
277
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
278
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
279
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
280
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
281
+  (0.1ms) SELECT version FROM "schema_migrations"
282
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
283
+  (1.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
284
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
285
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
286
+  (0.1ms) SELECT version FROM "schema_migrations"
287
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
288
+  (1.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
289
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
290
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
291
+  (0.1ms) SELECT version FROM "schema_migrations"
292
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
293
+  (1.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
294
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
295
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
296
+  (0.1ms) SELECT version FROM "schema_migrations"
297
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
298
+  (1.6ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
299
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
300
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
301
+  (0.1ms) SELECT version FROM "schema_migrations"
302
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
303
+  (7.6ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
304
+  (4.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
305
+  (4.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
306
+  (0.1ms) SELECT version FROM "schema_migrations"
307
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')
308
+  (1.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "cost" integer, "created_at" datetime, "updated_at" datetime) 
309
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
310
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
311
+  (0.1ms) SELECT version FROM "schema_migrations"
312
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140404222551')