middleware_autocomplete 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 022bc72b62266c8eda27261dff19a33feac71faa
4
- data.tar.gz: 4fb93e9b86811d10dea27d3d20b9981564d29c8e
3
+ metadata.gz: a9a04ac2c662f315392e7c1d4eef111138fd7bd1
4
+ data.tar.gz: f270ddae030b55b78e802d246282b4827650db2b
5
5
  SHA512:
6
- metadata.gz: 1457d78c0a8b17f4a6e8902ac6ff3bcb43c94f48104a901e3d92245cd4277763a407bd80ac569be333021074e01ca639841bc63b1ebaadd09955e03bf63e9223
7
- data.tar.gz: 6c708d4a321ab7830523c2c627cf4c4bccee8a99cbdd000db2f1183e655aaf852a624596d636104bac4fb766629113f5cab75b113b147aa66d846e8282d83a90
6
+ metadata.gz: f6c99bf79cd6633ebff5e4b56fd0c85b92cd4b390833435f8766b478efbef91265d44194868ad4b97d72886b6596fec8f47cff6495a0863733273cf15ad7ac1d
7
+ data.tar.gz: 3e3c86fbfff8973c6e65b5d916b9ffcd1013d6a37207bac663cf9d6e3defedc864762135ca7e923d8e19290a548d189c4dde485f6533ffdb3af9fdc3d5c8a961
@@ -1,4 +1,5 @@
1
1
  require "middleware_autocomplete/engine"
2
+ require "middleware_autocomplete/log_subscriber"
2
3
 
3
4
  module MiddlewareAutocomplete
4
5
  autoload :Base, 'middleware_autocomplete/base'
@@ -17,6 +17,13 @@ module MiddlewareAutocomplete
17
17
  end
18
18
  end
19
19
 
20
+ def call(env)
21
+ ActiveSupport::Notifications.instrument 'request.middleware_autocomplete' do
22
+ result = perform(Rack::Request.new(env).params)
23
+ [200, { 'Content-Type' => content_type_string }, [result]]
24
+ end
25
+ end
26
+
20
27
  # Full path to the Autocomplete class
21
28
  def route
22
29
  [namespace, path].reject(&:blank?).join('/').prepend('/')
@@ -0,0 +1,9 @@
1
+ module MiddlewareAutocomplete
2
+ class LogSubscriber < ActiveSupport::LogSubscriber
3
+ def request(event)
4
+ info "#{GREEN}#{BOLD}[MiddlewareAutocomplete]#{CLEAR} Completed 200 OK in #{event.duration.round(3)} ms"
5
+ end
6
+ end
7
+ end
8
+
9
+ MiddlewareAutocomplete::LogSubscriber.attach_to :middleware_autocomplete
@@ -5,12 +5,7 @@ module MiddlewareAutocomplete
5
5
  end
6
6
 
7
7
  def call(env)
8
- if (klass = ROUTES[env['PATH_INFO']])
9
- result = klass.perform(Rack::Request.new(env).params)
10
- [200, { 'Content-Type' => klass.content_type_string }, [result]]
11
- else
12
- @app.call(env)
13
- end
8
+ ROUTES.fetch(env['PATH_INFO'], @app).call(env)
14
9
  end
15
10
  end
16
11
  end
@@ -1,3 +1,3 @@
1
1
  module MiddlewareAutocomplete
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
Binary file
@@ -0,0 +1,426 @@
1
+
2
+
3
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:14:40 +0300
4
+
5
+ ActiveRecord::PendingMigrationError (
6
+
7
+ Migrations are pending. To resolve this issue, run:
8
+
9
+ bin/rake db:migrate RAILS_ENV=development
10
+
11
+ ):
12
+ activerecord (4.1.0) lib/active_record/migration.rb:389:in `check_pending!'
13
+ activerecord (4.1.0) lib/active_record/migration.rb:377:in `call'
14
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
15
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
16
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
17
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
18
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
19
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
20
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
21
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
22
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
23
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
24
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
25
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
26
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
27
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
28
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
29
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
30
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
31
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
32
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
33
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
34
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
35
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
36
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
37
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
38
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
39
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
40
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
41
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
42
+
43
+
44
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
45
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms)
46
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms)
47
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (11.1ms)
48
+  (140.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
49
+  (0.1ms) select sqlite_version(*)
50
+  (125.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
51
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
52
+ Migrating to CreatePosts (20140414220337)
53
+  (0.1ms) begin transaction
54
+  (0.4ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
55
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140414220337"]]
56
+  (144.5ms) commit transaction
57
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
58
+
59
+
60
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:16:28 +0300
61
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
62
+  (0.1ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
63
+  (0.3ms) begin transaction
64
+ Fixture Delete (0.1ms) DELETE FROM "posts"
65
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Title', '2014-04-17 16:17:38', '2014-04-17 16:17:38', 980190962)
66
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Second Title', '2014-04-17 16:17:38', '2014-04-17 16:17:38', 298486374)
67
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Another One Title', '2014-04-17 16:17:38', '2014-04-17 16:17:38', 113629430)
68
+  (448.6ms) commit transaction
69
+
70
+
71
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:17:45 +0300
72
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
73
+  (0.8ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
74
+
75
+
76
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:18:29 +0300
77
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
78
+  (0.1ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
79
+
80
+
81
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:18:30 +0300
82
+  (0.2ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
83
+
84
+
85
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:19:17 +0300
86
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
87
+  (0.1ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
88
+ notification: load_config_initializer.railties 2014-04-17 19:20:06 +0300 2014-04-17 19:20:06 +0300 576781c43218fdf8a2e1 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/backtrace_silencers.rb"}
89
+ notification: load_config_initializer.railties 2014-04-17 19:20:06 +0300 2014-04-17 19:20:06 +0300 576781c43218fdf8a2e1 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/cookies_serializer.rb"}
90
+ notification: load_config_initializer.railties 2014-04-17 19:20:06 +0300 2014-04-17 19:20:06 +0300 576781c43218fdf8a2e1 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/filter_parameter_logging.rb"}
91
+ notification: load_config_initializer.railties 2014-04-17 19:20:06 +0300 2014-04-17 19:20:06 +0300 576781c43218fdf8a2e1 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/inflections.rb"}
92
+ notification: load_config_initializer.railties 2014-04-17 19:20:06 +0300 2014-04-17 19:20:06 +0300 576781c43218fdf8a2e1 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/mime_types.rb"}
93
+ notification: load_config_initializer.railties 2014-04-17 19:20:06 +0300 2014-04-17 19:20:06 +0300 576781c43218fdf8a2e1 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/session_store.rb"}
94
+ notification: load_config_initializer.railties 2014-04-17 19:20:06 +0300 2014-04-17 19:20:06 +0300 576781c43218fdf8a2e1 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/wrap_parameters.rb"}
95
+
96
+
97
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:20:07 +0300
98
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>" SELECT name\n FROM sqlite_master\n WHERE type = 'table' AND NOT name = 'sqlite_sequence'\n AND name = \"schema_migrations\"", :name=>"SCHEMA", :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
99
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>"SELECT \"schema_migrations\".* FROM \"schema_migrations\"", :name=>"ActiveRecord::SchemaMigration Load", :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
100
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
101
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>"PRAGMA table_info(\"schema_migrations\")", :name=>"SCHEMA", :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
102
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>" SELECT name\n FROM sqlite_master\n WHERE type = 'table' AND NOT name = 'sqlite_sequence'\n AND name = \"schema_migrations\"", :name=>"SCHEMA", :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
103
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>" SELECT name\n FROM sqlite_master\n WHERE type = 'table' AND NOT name = 'sqlite_sequence'\n AND name = \"schema_migrations\"", :name=>"SCHEMA", :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
104
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>"PRAGMA table_info(\"schema_migrations\")", :name=>"SCHEMA", :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
105
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>"PRAGMA table_info(\"posts\")", :name=>"SCHEMA", :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
106
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>" SELECT name\n FROM sqlite_master\n WHERE type = 'table' AND NOT name = 'sqlite_sequence'\n AND name = \"posts\"", :name=>"SCHEMA", :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
107
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>"PRAGMA table_info(\"posts\")", :name=>"SCHEMA", :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
108
+ notification: sql.active_record 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:sql=>"SELECT \"posts\".\"title\" FROM \"posts\" WHERE (title LIKE '_%') ORDER BY \"posts\".\"title\" ASC LIMIT 10", :name=>nil, :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
109
+  (0.2ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
110
+ notification: perform.middleware_autocomplete 2014-04-17 19:20:08 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {}
111
+ notification: request.action_dispatch 2014-04-17 19:20:07 +0300 2014-04-17 19:20:08 +0300 74d0173315db647afb4a {:request=>#<ActionDispatch::Request:0x000000036c66c0 @env={"GATEWAY_INTERFACE"=>"CGI/1.1", "PATH_INFO"=>"/autocomplete/posts", "QUERY_STRING"=>"", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_HOST"=>"127.0.0.1", "REQUEST_METHOD"=>"GET", "REQUEST_URI"=>"http://localhost:3002/autocomplete/posts", "SCRIPT_NAME"=>"", "SERVER_NAME"=>"localhost", "SERVER_PORT"=>"3002", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)", "HTTP_USER_AGENT"=>"curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3", "HTTP_HOST"=>"localhost:3002", "HTTP_ACCEPT"=>"*/*", "rack.version"=>[1, 2], "rack.input"=>#<StringIO:0x000000035d5810>, "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "rack.url_scheme"=>"http", "HTTP_VERSION"=>"HTTP/1.1", "REQUEST_PATH"=>"/autocomplete/posts", "ORIGINAL_FULLPATH"=>"/autocomplete/posts", "ORIGINAL_SCRIPT_NAME"=>"", "action_dispatch.routes"=>#<ActionDispatch::Routing::RouteSet:0x00000002c1f028>, "action_dispatch.parameter_filter"=>[:password], "action_dispatch.redirect_filter"=>[], "action_dispatch.secret_token"=>nil, "action_dispatch.secret_key_base"=>"4de42ed7b6bacf927438585a528b120a859b3b4dd488e8f8fc335debb8ca71221481ab568d985faf29d987627cb80ce77fb21a4d0da2a29e8f3d6e3e059ef83b", "action_dispatch.show_exceptions"=>true, "action_dispatch.show_detailed_exceptions"=>true, "action_dispatch.logger"=>#<ActiveSupport::Logger:0x00000002ca3eb8 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0x00000002ca3e68 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000297efd0 @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x00000002ca3e18 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<File:/home/test/work/middleware_autocomplete/test/dummy/log/development.log>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x00000002ca3df0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002ca3da0>>>>, "action_dispatch.backtrace_cleaner"=>#<Rails::BacktraceCleaner:0x000000035e2858 @filters=[#<Proc:0x000000035e2790@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:10>, #<Proc:0x000000035e2768@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:11>, #<Proc:0x000000035e2740@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:12>, #<Proc:0x000000035e1f48@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:24>], @silencers=[#<Proc:0x000000035e1f20@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:15>]>, "action_dispatch.key_generator"=>#<ActiveSupport::CachingKeyGenerator:0x000000035e1db8 @key_generator=#<ActiveSupport::KeyGenerator:0x000000035e1de0 @secret="4de42ed7b6bacf927438585a528b120a859b3b4dd488e8f8fc335debb8ca71221481ab568d985faf29d987627cb80ce77fb21a4d0da2a29e8f3d6e3e059ef83b", @iterations=1000>, @cache_keys=#<ThreadSafe::Cache:0x000000035e1d90 @backend={}, @default_proc=nil>>, "action_dispatch.http_auth_salt"=>"http authentication", "action_dispatch.signed_cookie_salt"=>"signed cookie", "action_dispatch.encrypted_cookie_salt"=>"encrypted cookie", "action_dispatch.encrypted_signed_cookie_salt"=>"signed encrypted cookie", "action_dispatch.cookies_serializer"=>:json, "ROUTES_23132180_SCRIPT_NAME"=>"", "action_dispatch.request_id"=>"986d48e1-8945-4417-bff7-46f0448d0bfa", "action_dispatch.remote_ip"=>#<ActionDispatch::RemoteIp::GetIp:0x000000036c5568 @env={...}, @check_ip=true, @proxies=/
112
+ ^127\.0\.0\.1$ | # localhost IPv4
113
+ ^::1$ | # localhost IPv6
114
+ ^fc00: | # private IPv6 range fc00
115
+ ^10\. | # private IPv4 range 10.x.x.x
116
+ ^172\.(1[6-9]|2[0-9]|3[0-1])\.| # private IPv4 range 172.16.0.0 .. 172.31.255.255
117
+ ^192\.168\. # private IPv4 range 192.168.x.x
118
+ /x>, "rack.session"=>#<ActionDispatch::Request::Session:0x3a69480 not yet loaded>, "rack.session.options"=>#<ActionDispatch::Request::Session::Options:0x00000003a69430 @by=#<ActionDispatch::Session::CookieStore:0x00000002ec6b28 @app=#<ActionDispatch::Flash:0x00000002ec6b50 @app=#<ActionDispatch::ParamsParser:0x00000002ec6c40 @app=#<Rack::Head:0x00000002ec6c68 @app=#<Rack::ConditionalGet:0x00000002ec6c90 @app=#<Rack::ETag:0x00000002ec6cb8 @app=#<MiddlewareAutocomplete::Router:0x00000002ec6ce0 @app=#<ActionDispatch::Routing::RouteSet:0x00000002c1f028>>, @cache_control="max-age=0, private, must-revalidate", @no_cache_control="no-cache">>>, @parsers={#<Mime::Type:0x00000002eb1228 @synonyms=["text/x-json", "application/jsonrequest"], @symbol=:json, @string="application/json">=>:json}>>, @default_options={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}, @key="_dummy_session", @cookie_only=true>, @env={...}, @delegate={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}>, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}}, @symbolized_path_params=nil, @filtered_parameters=nil, @filtered_env=nil, @filtered_path="/autocomplete/posts", @protocol=nil, @port=nil, @method=nil, @request_method="GET", @remote_ip=nil, @original_fullpath=nil, @fullpath=nil, @ip="127.0.0.1", @uuid=nil>}
119
+
120
+
121
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:20:32 +0300
122
+ notification: sql.active_record 2014-04-17 19:20:32 +0300 2014-04-17 19:20:32 +0300 74d0173315db647afb4a {:sql=>"SELECT \"posts\".\"title\" FROM \"posts\" WHERE (title LIKE '_%') ORDER BY \"posts\".\"title\" ASC LIMIT 10", :name=>nil, :connection_id=>30211540, :statement_name=>nil, :binds=>[]}
123
+  (0.3ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
124
+ notification: perform.middleware_autocomplete 2014-04-17 19:20:32 +0300 2014-04-17 19:20:32 +0300 b3c18ac1c4bff56eb0f1 {}
125
+ notification: request.action_dispatch 2014-04-17 19:20:32 +0300 2014-04-17 19:20:32 +0300 b3c18ac1c4bff56eb0f1 {:request=>#<ActionDispatch::Request:0x00000003a854a0 @env={"GATEWAY_INTERFACE"=>"CGI/1.1", "PATH_INFO"=>"/autocomplete/posts", "QUERY_STRING"=>"", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_HOST"=>"127.0.0.1", "REQUEST_METHOD"=>"GET", "REQUEST_URI"=>"http://localhost:3002/autocomplete/posts", "SCRIPT_NAME"=>"", "SERVER_NAME"=>"localhost", "SERVER_PORT"=>"3002", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)", "HTTP_USER_AGENT"=>"curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3", "HTTP_HOST"=>"localhost:3002", "HTTP_ACCEPT"=>"*/*", "rack.version"=>[1, 2], "rack.input"=>#<StringIO:0x00000003a861c0>, "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "rack.url_scheme"=>"http", "HTTP_VERSION"=>"HTTP/1.1", "REQUEST_PATH"=>"/autocomplete/posts", "ORIGINAL_FULLPATH"=>"/autocomplete/posts", "ORIGINAL_SCRIPT_NAME"=>"", "action_dispatch.routes"=>#<ActionDispatch::Routing::RouteSet:0x00000002c1f028>, "action_dispatch.parameter_filter"=>[:password], "action_dispatch.redirect_filter"=>[], "action_dispatch.secret_token"=>nil, "action_dispatch.secret_key_base"=>"4de42ed7b6bacf927438585a528b120a859b3b4dd488e8f8fc335debb8ca71221481ab568d985faf29d987627cb80ce77fb21a4d0da2a29e8f3d6e3e059ef83b", "action_dispatch.show_exceptions"=>true, "action_dispatch.show_detailed_exceptions"=>true, "action_dispatch.logger"=>#<ActiveSupport::Logger:0x00000002ca3eb8 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0x00000002ca3e68 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000297efd0 @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x00000002ca3e18 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<File:/home/test/work/middleware_autocomplete/test/dummy/log/development.log>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x00000002ca3df0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002ca3da0>>>>, "action_dispatch.backtrace_cleaner"=>#<Rails::BacktraceCleaner:0x000000035e2858 @filters=[#<Proc:0x000000035e2790@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:10>, #<Proc:0x000000035e2768@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:11>, #<Proc:0x000000035e2740@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:12>, #<Proc:0x000000035e1f48@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:24>], @silencers=[#<Proc:0x000000035e1f20@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:15>]>, "action_dispatch.key_generator"=>#<ActiveSupport::CachingKeyGenerator:0x000000035e1db8 @key_generator=#<ActiveSupport::KeyGenerator:0x000000035e1de0 @secret="4de42ed7b6bacf927438585a528b120a859b3b4dd488e8f8fc335debb8ca71221481ab568d985faf29d987627cb80ce77fb21a4d0da2a29e8f3d6e3e059ef83b", @iterations=1000>, @cache_keys=#<ThreadSafe::Cache:0x000000035e1d90 @backend={}, @default_proc=nil>>, "action_dispatch.http_auth_salt"=>"http authentication", "action_dispatch.signed_cookie_salt"=>"signed cookie", "action_dispatch.encrypted_cookie_salt"=>"encrypted cookie", "action_dispatch.encrypted_signed_cookie_salt"=>"signed encrypted cookie", "action_dispatch.cookies_serializer"=>:json, "ROUTES_23132180_SCRIPT_NAME"=>"", "action_dispatch.request_id"=>"ba084578-ecf2-4460-97db-c077be9cacd5", "action_dispatch.remote_ip"=>#<ActionDispatch::RemoteIp::GetIp:0x00000003a84438 @env={...}, @check_ip=true, @proxies=/
126
+ ^127\.0\.0\.1$ | # localhost IPv4
127
+ ^::1$ | # localhost IPv6
128
+ ^fc00: | # private IPv6 range fc00
129
+ ^10\. | # private IPv4 range 10.x.x.x
130
+ ^172\.(1[6-9]|2[0-9]|3[0-1])\.| # private IPv4 range 172.16.0.0 .. 172.31.255.255
131
+ ^192\.168\. # private IPv4 range 192.168.x.x
132
+ /x>, "rack.session"=>#<ActionDispatch::Request::Session:0x3a8ac48 not yet loaded>, "rack.session.options"=>#<ActionDispatch::Request::Session::Options:0x00000003a8abf8 @by=#<ActionDispatch::Session::CookieStore:0x00000002ec6b28 @app=#<ActionDispatch::Flash:0x00000002ec6b50 @app=#<ActionDispatch::ParamsParser:0x00000002ec6c40 @app=#<Rack::Head:0x00000002ec6c68 @app=#<Rack::ConditionalGet:0x00000002ec6c90 @app=#<Rack::ETag:0x00000002ec6cb8 @app=#<MiddlewareAutocomplete::Router:0x00000002ec6ce0 @app=#<ActionDispatch::Routing::RouteSet:0x00000002c1f028>>, @cache_control="max-age=0, private, must-revalidate", @no_cache_control="no-cache">>>, @parsers={#<Mime::Type:0x00000002eb1228 @synonyms=["text/x-json", "application/jsonrequest"], @symbol=:json, @string="application/json">=>:json}>>, @default_options={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}, @key="_dummy_session", @cookie_only=true>, @env={...}, @delegate={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}>, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}}, @symbolized_path_params=nil, @filtered_parameters=nil, @filtered_env=nil, @filtered_path="/autocomplete/posts", @protocol=nil, @port=nil, @method=nil, @request_method="GET", @remote_ip=nil, @original_fullpath=nil, @fullpath=nil, @ip="127.0.0.1", @uuid=nil>}
133
+ notification: load_config_initializer.railties 2014-04-17 19:22:15 +0300 2014-04-17 19:22:15 +0300 9566936d27822ea16170 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/backtrace_silencers.rb"}
134
+ notification: load_config_initializer.railties 2014-04-17 19:22:15 +0300 2014-04-17 19:22:15 +0300 9566936d27822ea16170 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/cookies_serializer.rb"}
135
+ notification: load_config_initializer.railties 2014-04-17 19:22:15 +0300 2014-04-17 19:22:15 +0300 9566936d27822ea16170 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/filter_parameter_logging.rb"}
136
+ notification: load_config_initializer.railties 2014-04-17 19:22:15 +0300 2014-04-17 19:22:15 +0300 9566936d27822ea16170 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/inflections.rb"}
137
+ notification: load_config_initializer.railties 2014-04-17 19:22:15 +0300 2014-04-17 19:22:15 +0300 9566936d27822ea16170 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/mime_types.rb"}
138
+ notification: load_config_initializer.railties 2014-04-17 19:22:15 +0300 2014-04-17 19:22:15 +0300 9566936d27822ea16170 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/session_store.rb"}
139
+ notification: load_config_initializer.railties 2014-04-17 19:22:15 +0300 2014-04-17 19:22:15 +0300 9566936d27822ea16170 {:initializer=>"/home/test/work/middleware_autocomplete/test/dummy/config/initializers/wrap_parameters.rb"}
140
+
141
+
142
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:22:17 +0300
143
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>" SELECT name\n FROM sqlite_master\n WHERE type = 'table' AND NOT name = 'sqlite_sequence'\n AND name = \"schema_migrations\"", :name=>"SCHEMA", :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
144
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>"SELECT \"schema_migrations\".* FROM \"schema_migrations\"", :name=>"ActiveRecord::SchemaMigration Load", :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
145
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
146
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>"PRAGMA table_info(\"schema_migrations\")", :name=>"SCHEMA", :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
147
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>" SELECT name\n FROM sqlite_master\n WHERE type = 'table' AND NOT name = 'sqlite_sequence'\n AND name = \"schema_migrations\"", :name=>"SCHEMA", :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
148
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>" SELECT name\n FROM sqlite_master\n WHERE type = 'table' AND NOT name = 'sqlite_sequence'\n AND name = \"schema_migrations\"", :name=>"SCHEMA", :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
149
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>"PRAGMA table_info(\"schema_migrations\")", :name=>"SCHEMA", :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
150
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>"PRAGMA table_info(\"posts\")", :name=>"SCHEMA", :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
151
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>" SELECT name\n FROM sqlite_master\n WHERE type = 'table' AND NOT name = 'sqlite_sequence'\n AND name = \"posts\"", :name=>"SCHEMA", :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
152
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>"PRAGMA table_info(\"posts\")", :name=>"SCHEMA", :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
153
+ notification: sql.active_record 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:sql=>"SELECT \"posts\".\"title\" FROM \"posts\" WHERE (title LIKE '_%') ORDER BY \"posts\".\"title\" ASC LIMIT 10", :name=>nil, :connection_id=>24148180, :statement_name=>nil, :binds=>[]}
154
+  (0.2ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
155
+ [MiddlewareAutocomplete] Duration: 3.3464300000000002 ms
156
+ notification: perform.middleware_autocomplete 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {}
157
+ notification: request.action_dispatch 2014-04-17 19:22:17 +0300 2014-04-17 19:22:17 +0300 fdb7bb0b08a75659b0e5 {:request=>#<ActionDispatch::Request:0x00000002b35d38 @env={"GATEWAY_INTERFACE"=>"CGI/1.1", "PATH_INFO"=>"/autocomplete/posts", "QUERY_STRING"=>"", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_HOST"=>"127.0.0.1", "REQUEST_METHOD"=>"GET", "REQUEST_URI"=>"http://localhost:3002/autocomplete/posts", "SCRIPT_NAME"=>"", "SERVER_NAME"=>"localhost", "SERVER_PORT"=>"3002", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)", "HTTP_USER_AGENT"=>"curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3", "HTTP_HOST"=>"localhost:3002", "HTTP_ACCEPT"=>"*/*", "rack.version"=>[1, 2], "rack.input"=>#<StringIO:0x00000002a44eb0>, "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "rack.url_scheme"=>"http", "HTTP_VERSION"=>"HTTP/1.1", "REQUEST_PATH"=>"/autocomplete/posts", "ORIGINAL_FULLPATH"=>"/autocomplete/posts", "ORIGINAL_SCRIPT_NAME"=>"", "action_dispatch.routes"=>#<ActionDispatch::Routing::RouteSet:0x0000000208e830>, "action_dispatch.parameter_filter"=>[:password], "action_dispatch.redirect_filter"=>[], "action_dispatch.secret_token"=>nil, "action_dispatch.secret_key_base"=>"4de42ed7b6bacf927438585a528b120a859b3b4dd488e8f8fc335debb8ca71221481ab568d985faf29d987627cb80ce77fb21a4d0da2a29e8f3d6e3e059ef83b", "action_dispatch.show_exceptions"=>true, "action_dispatch.show_detailed_exceptions"=>true, "action_dispatch.logger"=>#<ActiveSupport::Logger:0x000000021136c0 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0x00000002113670 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x00000001dee828 @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x00000002113620 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<File:/home/test/work/middleware_autocomplete/test/dummy/log/development.log>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x000000021135f8 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x000000021135a8>>>>, "action_dispatch.backtrace_cleaner"=>#<Rails::BacktraceCleaner:0x00000002a51ef8 @filters=[#<Proc:0x00000002a51e30@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:10>, #<Proc:0x00000002a51e08@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:11>, #<Proc:0x00000002a51de0@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:12>, #<Proc:0x00000002a515e8@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:24>], @silencers=[#<Proc:0x00000002a515c0@/home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/backtrace_cleaner.rb:15>]>, "action_dispatch.key_generator"=>#<ActiveSupport::CachingKeyGenerator:0x00000002a51458 @key_generator=#<ActiveSupport::KeyGenerator:0x00000002a51480 @secret="4de42ed7b6bacf927438585a528b120a859b3b4dd488e8f8fc335debb8ca71221481ab568d985faf29d987627cb80ce77fb21a4d0da2a29e8f3d6e3e059ef83b", @iterations=1000>, @cache_keys=#<ThreadSafe::Cache:0x00000002a51430 @backend={}, @default_proc=nil>>, "action_dispatch.http_auth_salt"=>"http authentication", "action_dispatch.signed_cookie_salt"=>"signed cookie", "action_dispatch.encrypted_cookie_salt"=>"encrypted cookie", "action_dispatch.encrypted_signed_cookie_salt"=>"signed encrypted cookie", "action_dispatch.cookies_serializer"=>:json, "ROUTES_17069080_SCRIPT_NAME"=>"", "action_dispatch.request_id"=>"86469862-7222-49bf-b138-be25ffee1a63", "action_dispatch.remote_ip"=>#<ActionDispatch::RemoteIp::GetIp:0x00000002b34be0 @env={...}, @check_ip=true, @proxies=/
158
+ ^127\.0\.0\.1$ | # localhost IPv4
159
+ ^::1$ | # localhost IPv6
160
+ ^fc00: | # private IPv6 range fc00
161
+ ^10\. | # private IPv4 range 10.x.x.x
162
+ ^172\.(1[6-9]|2[0-9]|3[0-1])\.| # private IPv4 range 172.16.0.0 .. 172.31.255.255
163
+ ^192\.168\. # private IPv4 range 192.168.x.x
164
+ /x>, "rack.session"=>#<ActionDispatch::Request::Session:0x2ed8a58 not yet loaded>, "rack.session.options"=>#<ActionDispatch::Request::Session::Options:0x00000002ed8a08 @by=#<ActionDispatch::Session::CookieStore:0x000000023362e0 @app=#<ActionDispatch::Flash:0x00000002336308 @app=#<ActionDispatch::ParamsParser:0x000000023363f8 @app=#<Rack::Head:0x00000002336420 @app=#<Rack::ConditionalGet:0x00000002336448 @app=#<Rack::ETag:0x00000002336470 @app=#<MiddlewareAutocomplete::Router:0x00000002336498 @app=#<ActionDispatch::Routing::RouteSet:0x0000000208e830>>, @cache_control="max-age=0, private, must-revalidate", @no_cache_control="no-cache">>>, @parsers={#<Mime::Type:0x000000023209e0 @synonyms=["text/x-json", "application/jsonrequest"], @symbol=:json, @string="application/json">=>:json}>>, @default_options={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}, @key="_dummy_session", @cookie_only=true>, @env={...}, @delegate={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}>, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}}, @symbolized_path_params=nil, @filtered_parameters=nil, @filtered_env=nil, @filtered_path="/autocomplete/posts", @protocol=nil, @port=nil, @method=nil, @request_method="GET", @remote_ip=nil, @original_fullpath=nil, @fullpath=nil, @ip="127.0.0.1", @uuid=nil>}
165
+
166
+
167
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:22:58 +0300
168
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
169
+  (0.1ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
170
+ [MiddlewareAutocomplete] Duration: 2.811174 ms
171
+
172
+
173
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:23:11 +0300
174
+  (0.2ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
175
+ [MiddlewareAutocomplete] Duration: 0.935001 ms
176
+
177
+
178
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:23:22 +0300
179
+  (0.3ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
180
+ [MiddlewareAutocomplete] Duration: 1.069175 ms
181
+
182
+
183
+ Started GET "/posts/autocomplete" for 127.0.0.1 at 2014-04-17 19:23:34 +0300
184
+
185
+ ActionController::RoutingError (No route matches [GET] "/posts/autocomplete"):
186
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
187
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
188
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
189
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
190
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
191
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
192
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
193
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
194
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
195
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
196
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
197
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
198
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
199
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
200
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
201
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
202
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
203
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
204
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
205
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
206
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
207
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
208
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
209
+
210
+
211
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
212
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (17.9ms)
213
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (44.5ms)
214
+
215
+
216
+ Started GET "/posts/autocomplete" for 127.0.0.1 at 2014-04-17 19:26:33 +0300
217
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
218
+
219
+ ActionController::RoutingError (No route matches [GET] "/posts/autocomplete"):
220
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
221
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
222
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
223
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
224
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
225
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
226
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
227
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
228
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
229
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
230
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
231
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
232
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
233
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
234
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
235
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
236
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
237
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
238
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
239
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
240
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
241
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
242
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
243
+
244
+
245
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms)
246
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.9ms)
247
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (11.4ms)
248
+
249
+
250
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:26:36 +0300
251
+  (0.2ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
252
+ [MiddlewareAutocomplete] Completed 200 OK in 4.106 ms
253
+
254
+
255
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:26:55 +0300
256
+  (0.2ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
257
+ [MiddlewareAutocomplete] Completed 200 OK in 0.97 ms
258
+
259
+
260
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:35:23 +0300
261
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
262
+  (0.1ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
263
+ [MiddlewareAutocomplete] Completed 200 OK in 2.787 ms
264
+
265
+
266
+ Started POST "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:36:05 +0300
267
+  (0.3ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
268
+ [MiddlewareAutocomplete] Completed 200 OK in 1.471 ms
269
+
270
+
271
+ Started POST "/autocomplete/posts" for 127.0.0.1 at 2014-04-17 19:40:35 +0300
272
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
273
+ [MiddlewareAutocomplete] Completed 200 OK in 4.632 ms
274
+
275
+
276
+ Started GET "/autocomplete/posts?q=asd" for 127.0.0.1 at 2014-04-17 19:41:36 +0300
277
+ [MiddlewareAutocomplete] Completed 200 OK in 2.113 ms
278
+
279
+
280
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-21 17:37:42 +0300
281
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
282
+  (0.4ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
283
+ [MiddlewareAutocomplete] Completed 200 OK in 4.467 ms
284
+
285
+
286
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-21 17:37:44 +0300
287
+  (0.2ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
288
+ [MiddlewareAutocomplete] Completed 200 OK in 0.815 ms
289
+
290
+
291
+ Started GET "/posts/autocomplete" for 127.0.0.1 at 2014-04-21 17:38:11 +0300
292
+
293
+ ActionController::RoutingError (No route matches [GET] "/posts/autocomplete"):
294
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
295
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
296
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
297
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
298
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
299
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
300
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
301
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
302
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
303
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
304
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
305
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
306
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
307
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
308
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
309
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
310
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
311
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
312
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
313
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
314
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
315
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
316
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
317
+
318
+
319
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
320
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (16.8ms)
321
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (27.9ms)
322
+
323
+
324
+ Started GET "/posts" for 127.0.0.1 at 2014-04-21 17:38:28 +0300
325
+
326
+ ActionController::RoutingError (No route matches [GET] "/posts"):
327
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
328
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
329
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
330
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
331
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
332
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
333
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
334
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
335
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
336
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
337
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
338
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
339
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
340
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
341
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
342
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
343
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
344
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
345
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
346
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
347
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
348
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
349
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
350
+
351
+
352
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
353
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms)
354
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (7.6ms)
355
+
356
+
357
+ Started GET "/posts.jso" for 127.0.0.1 at 2014-04-21 17:38:30 +0300
358
+
359
+ ActionController::RoutingError (No route matches [GET] "/posts.jso"):
360
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
361
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
362
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
363
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
364
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
365
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
366
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
367
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
368
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
369
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
370
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
371
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
372
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
373
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
374
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
375
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
376
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
377
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
378
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
379
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
380
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
381
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
382
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
383
+
384
+
385
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms)
386
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms)
387
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (7.3ms)
388
+
389
+
390
+ Started GET "/posts.json" for 127.0.0.1 at 2014-04-21 17:38:31 +0300
391
+
392
+ ActionController::RoutingError (No route matches [GET] "/posts.json"):
393
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
394
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
395
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
396
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
397
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
398
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
399
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
400
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
401
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
402
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
403
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
404
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
405
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
406
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
407
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
408
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
409
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
410
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
411
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
412
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
413
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
414
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
415
+ /home/test/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
416
+
417
+
418
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms)
419
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms)
420
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (6.2ms)
421
+
422
+
423
+ Started GET "/" for 127.0.0.1 at 2014-04-21 17:38:34 +0300
424
+ Processing by Rails::WelcomeController#index as */*
425
+ Rendered /home/test/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/templates/rails/welcome/index.html.erb (0.7ms)
426
+ Completed 200 OK in 30ms (Views: 30.0ms | ActiveRecord: 0.0ms)
@@ -67,5 +67,104 @@ MiddlewareAutocompleteTest: test_loads_routes
67
67
   (0.0ms) begin transaction
68
68
  --------------------------------------
69
69
  MiddlewareAutocompleteTest: test_truth
70
+ --------------------------------------
71
+  (0.0ms) rollback transaction
72
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
73
+  (0.1ms) begin transaction
74
+ Fixture Delete (0.3ms) DELETE FROM "posts"
75
+ Fixture Insert (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Title', '2014-04-21 14:41:40', '2014-04-21 14:41:40', 980190962)
76
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Second Title', '2014-04-21 14:41:40', '2014-04-21 14:41:40', 298486374)
77
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Another One Title', '2014-04-21 14:41:40', '2014-04-21 14:41:40', 113629430)
78
+  (160.7ms) commit transaction
79
+  (0.1ms) begin transaction
80
+ ------------------------------------------
81
+ NavigationTest: test_passes_request_params
82
+ ------------------------------------------
83
+ Started GET "/autocomplete/posts?q=Another" for 127.0.0.1 at 2014-04-21 17:41:40 +0300
84
+  (0.2ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE 'Another_%') ORDER BY "posts"."title" ASC LIMIT 10
85
+ [MiddlewareAutocomplete] Completed 200 OK in 6.835 ms
86
+  (0.1ms) rollback transaction
87
+  (0.0ms) begin transaction
88
+ ---------------------------------------------------------
89
+ NavigationTest: test_returns_json_from_autocomplete_route
90
+ ---------------------------------------------------------
91
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-21 17:41:40 +0300
92
+  (0.1ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
93
+ [MiddlewareAutocomplete] Completed 200 OK in 0.646 ms
94
+  (0.0ms) rollback transaction
95
+  (0.0ms) begin transaction
96
+ ---------------------------------------------
97
+ MiddlewareAutocompleteTest: test_loads_routes
98
+ ---------------------------------------------
99
+  (0.2ms) rollback transaction
100
+  (0.0ms) begin transaction
101
+ --------------------------------------
102
+ MiddlewareAutocompleteTest: test_truth
103
+ --------------------------------------
104
+  (0.0ms) rollback transaction
105
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
106
+  (0.2ms) begin transaction
107
+ Fixture Delete (0.3ms) DELETE FROM "posts"
108
+ Fixture Insert (0.3ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Title', '2014-04-21 14:43:08', '2014-04-21 14:43:08', 980190962)
109
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Second Title', '2014-04-21 14:43:08', '2014-04-21 14:43:08', 298486374)
110
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Another One Title', '2014-04-21 14:43:08', '2014-04-21 14:43:08', 113629430)
111
+  (131.4ms) commit transaction
112
+  (0.1ms) begin transaction
113
+ ------------------------------------------
114
+ NavigationTest: test_passes_request_params
115
+ ------------------------------------------
116
+ Started GET "/autocomplete/posts?q=Another" for 127.0.0.1 at 2014-04-21 17:43:08 +0300
117
+  (0.4ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE 'Another_%') ORDER BY "posts"."title" ASC LIMIT 10
118
+ [MiddlewareAutocomplete] Completed 200 OK in 4.135 ms
119
+  (0.1ms) rollback transaction
120
+  (0.0ms) begin transaction
121
+ ---------------------------------------------------------
122
+ NavigationTest: test_returns_json_from_autocomplete_route
123
+ ---------------------------------------------------------
124
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-21 17:43:08 +0300
125
+  (0.1ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
126
+ [MiddlewareAutocomplete] Completed 200 OK in 0.723 ms
127
+  (0.0ms) rollback transaction
128
+  (0.0ms) begin transaction
129
+ ---------------------------------------------
130
+ MiddlewareAutocompleteTest: test_loads_routes
131
+ ---------------------------------------------
132
+  (0.0ms) rollback transaction
133
+  (0.0ms) begin transaction
134
+ --------------------------------------
135
+ MiddlewareAutocompleteTest: test_truth
136
+ --------------------------------------
137
+  (0.0ms) rollback transaction
138
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
139
+  (0.1ms) begin transaction
140
+ Fixture Delete (0.1ms) DELETE FROM "posts"
141
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Title', '2014-04-21 14:45:34', '2014-04-21 14:45:34', 980190962)
142
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Second Title', '2014-04-21 14:45:34', '2014-04-21 14:45:34', 298486374)
143
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "created_at", "updated_at", "id") VALUES ('Another One Title', '2014-04-21 14:45:34', '2014-04-21 14:45:34', 113629430)
144
+  (281.5ms) commit transaction
145
+  (0.1ms) begin transaction
146
+ ------------------------------------------
147
+ NavigationTest: test_passes_request_params
148
+ ------------------------------------------
149
+ Started GET "/autocomplete/posts?q=Another" for 127.0.0.1 at 2014-04-21 17:45:35 +0300
150
+  (0.2ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE 'Another_%') ORDER BY "posts"."title" ASC LIMIT 10
151
+ [MiddlewareAutocomplete] Completed 200 OK in 3.281 ms
152
+  (0.1ms) rollback transaction
153
+  (0.0ms) begin transaction
154
+ ---------------------------------------------------------
155
+ NavigationTest: test_returns_json_from_autocomplete_route
156
+ ---------------------------------------------------------
157
+ Started GET "/autocomplete/posts" for 127.0.0.1 at 2014-04-21 17:45:35 +0300
158
+  (0.1ms) SELECT "posts"."title" FROM "posts" WHERE (title LIKE '_%') ORDER BY "posts"."title" ASC LIMIT 10
159
+ [MiddlewareAutocomplete] Completed 200 OK in 0.676 ms
160
+  (0.0ms) rollback transaction
161
+  (0.0ms) begin transaction
162
+ ---------------------------------------------
163
+ MiddlewareAutocompleteTest: test_loads_routes
164
+ ---------------------------------------------
165
+  (0.0ms) rollback transaction
166
+  (0.0ms) begin transaction
167
+ --------------------------------------
168
+ MiddlewareAutocompleteTest: test_truth
70
169
  --------------------------------------
71
170
   (0.0ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleware_autocomplete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Ilchenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -92,6 +92,7 @@ files:
92
92
  - lib/middleware_autocomplete.rb
93
93
  - lib/middleware_autocomplete/base.rb
94
94
  - lib/middleware_autocomplete/engine.rb
95
+ - lib/middleware_autocomplete/log_subscriber.rb
95
96
  - lib/middleware_autocomplete/router.rb
96
97
  - lib/middleware_autocomplete/url_helpers.rb
97
98
  - lib/middleware_autocomplete/version.rb
@@ -125,6 +126,7 @@ files:
125
126
  - test/dummy/config/locales/en.yml
126
127
  - test/dummy/config/routes.rb
127
128
  - test/dummy/config/secrets.yml
129
+ - test/dummy/db/development.sqlite3
128
130
  - test/dummy/db/migrate/20140414220337_create_posts.rb
129
131
  - test/dummy/db/schema.rb
130
132
  - test/dummy/db/test.sqlite3
@@ -203,6 +205,7 @@ test_files:
203
205
  - test/dummy/config/database.yml
204
206
  - test/dummy/db/test.sqlite3
205
207
  - test/dummy/db/schema.rb
208
+ - test/dummy/db/development.sqlite3
206
209
  - test/dummy/db/migrate/20140414220337_create_posts.rb
207
210
  - test/test_helper.rb
208
211
  - test/integration/navigation_test.rb