rails_push_queues 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +23 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/javascripts/queues.js +2 -0
  6. data/app/assets/stylesheets/queues.css +4 -0
  7. data/app/controllers/queues_controller.rb +19 -0
  8. data/app/helpers/queues_helper.rb +2 -0
  9. data/config/initializers/rails_push_queues.rb +0 -0
  10. data/config/routes.rb +3 -0
  11. data/lib/rails_push_queues.rb +5 -0
  12. data/lib/rails_push_queues/engine.rb +16 -0
  13. data/lib/rails_push_queues/main.rb +34 -0
  14. data/lib/rails_push_queues/resque.rb +8 -0
  15. data/lib/rails_push_queues/sidekiq.rb +21 -0
  16. data/lib/rails_push_queues/version.rb +3 -0
  17. data/lib/tasks/rails_push_queues_tasks.rake +11 -0
  18. data/test/controllers/queues_controller_test.rb +7 -0
  19. data/test/dummy/README.rdoc +28 -0
  20. data/test/dummy/Rakefile +6 -0
  21. data/test/dummy/app/assets/javascripts/application.js +13 -0
  22. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  23. data/test/dummy/app/controllers/application_controller.rb +5 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  26. data/test/dummy/app/workers/image_conversion_worker.rb +9 -0
  27. data/test/dummy/bin/bundle +3 -0
  28. data/test/dummy/bin/rails +4 -0
  29. data/test/dummy/bin/rake +4 -0
  30. data/test/dummy/config.ru +4 -0
  31. data/test/dummy/config/application.rb +23 -0
  32. data/test/dummy/config/boot.rb +5 -0
  33. data/test/dummy/config/database.yml +25 -0
  34. data/test/dummy/config/environment.rb +5 -0
  35. data/test/dummy/config/environments/development.rb +35 -0
  36. data/test/dummy/config/environments/production.rb +80 -0
  37. data/test/dummy/config/environments/test.rb +36 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  40. data/test/dummy/config/initializers/inflections.rb +16 -0
  41. data/test/dummy/config/initializers/mime_types.rb +5 -0
  42. data/test/dummy/config/initializers/rails_push_queues.rb +0 -0
  43. data/test/dummy/config/initializers/secret_token.rb +12 -0
  44. data/test/dummy/config/initializers/session_store.rb +3 -0
  45. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  46. data/test/dummy/config/locales/en.yml +23 -0
  47. data/test/dummy/config/routes.rb +56 -0
  48. data/test/dummy/db/development.sqlite3 +0 -0
  49. data/test/dummy/log/development.log +319 -0
  50. data/test/dummy/public/404.html +58 -0
  51. data/test/dummy/public/422.html +58 -0
  52. data/test/dummy/public/500.html +57 -0
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/helpers/queues_helper_test.rb +4 -0
  55. data/test/integration/navigation_test.rb +10 -0
  56. data/test/rails_push_queues_test.rb +7 -0
  57. data/test/test_helper.rb +15 -0
  58. metadata +167 -0
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Dummy::Application.initialize!
@@ -0,0 +1,35 @@
1
+ Dummy::Application.configure do
2
+
3
+ puts "CONFIG development.rb"
4
+ # optional, can use any Iron config settings like iron.json or ENV variables
5
+ #config.iron_token = "X"
6
+ #config.iron_project_id = "Y"
7
+
8
+ # Settings specified here will take precedence over those in config/application.rb.
9
+
10
+ # In the development environment your application's code is reloaded on
11
+ # every request. This slows down response time but is perfect for development
12
+ # since you don't have to restart the web server when you make code changes.
13
+ config.cache_classes = false
14
+
15
+ # Do not eager load code on boot.
16
+ config.eager_load = false
17
+
18
+ # Show full error reports and disable caching.
19
+ config.consider_all_requests_local = true
20
+ config.action_controller.perform_caching = false
21
+
22
+ # Don't care if the mailer can't send.
23
+ config.action_mailer.raise_delivery_errors = false
24
+
25
+ # Print deprecation notices to the Rails logger.
26
+ config.active_support.deprecation = :log
27
+
28
+ # Raise an error on page load if there are pending migrations
29
+ config.active_record.migration_error = :page_load
30
+
31
+ # Debug mode disables concatenation and preprocessing of assets.
32
+ # This option may cause significant delays in view rendering with a large
33
+ # number of complex assets.
34
+ config.assets.debug = true
35
+ end
@@ -0,0 +1,80 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both thread web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
+ # config.action_dispatch.rack_cache = true
21
+
22
+ # Disable Rails's static asset server (Apache or nginx will already do this).
23
+ config.serve_static_assets = false
24
+
25
+ # Compress JavaScripts and CSS.
26
+ config.assets.js_compressor = :uglifier
27
+ # config.assets.css_compressor = :sass
28
+
29
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
30
+ config.assets.compile = false
31
+
32
+ # Generate digests for assets URLs.
33
+ config.assets.digest = true
34
+
35
+ # Version of your assets, change this if you want to expire all your assets.
36
+ config.assets.version = '1.0'
37
+
38
+ # Specifies the header that your server uses for sending files.
39
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
+
42
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
+ # config.force_ssl = true
44
+
45
+ # Set to :debug to see everything in the log.
46
+ config.log_level = :info
47
+
48
+ # Prepend all log lines with the following tags.
49
+ # config.log_tags = [ :subdomain, :uuid ]
50
+
51
+ # Use a different logger for distributed setups.
52
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
+
54
+ # Use a different cache store in production.
55
+ # config.cache_store = :mem_cache_store
56
+
57
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
+ # config.action_controller.asset_host = "http://assets.example.com"
59
+
60
+ # Precompile additional assets.
61
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
+ # config.assets.precompile += %w( search.js )
63
+
64
+ # Ignore bad email addresses and do not raise email delivery errors.
65
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
+ # config.action_mailer.raise_delivery_errors = false
67
+
68
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
+ # the I18n.default_locale when a translation can not be found).
70
+ config.i18n.fallbacks = true
71
+
72
+ # Send deprecation notices to registered listeners.
73
+ config.active_support.deprecation = :notify
74
+
75
+ # Disable automatic flushing of the log to improve performance.
76
+ # config.autoflush_log = false
77
+
78
+ # Use default logging formatter so that PID and timestamp are not suppressed.
79
+ config.log_formatter = ::Logger::Formatter.new
80
+ end
@@ -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 = '9073d6e7b5e4b20064b530f40ab60b9ed92b5176080dc2aa3613ce1760f6eb492712a93de27d9aeae079288abb9867393844bf4ac1f871e05397e5de5c10f5e7'
@@ -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,56 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
File without changes
@@ -0,0 +1,319 @@
1
+
2
+
3
+ Started GET "/" for 127.0.0.1 at 2014-02-25 22:21:02 -0800
4
+ Processing by Rails::WelcomeController#index as HTML
5
+ Rendered /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/templates/rails/welcome/index.html.erb (1.0ms)
6
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
7
+
8
+
9
+ Started GET "/" for 127.0.0.1 at 2014-02-25 22:39:21 -0800
10
+ Processing by Rails::WelcomeController#index as HTML
11
+ Rendered /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/templates/rails/welcome/index.html.erb (1.0ms)
12
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)
13
+
14
+
15
+ Started GET "/queues" for 127.0.0.1 at 2014-02-25 22:39:25 -0800
16
+
17
+ ActionController::RoutingError (No route matches [GET] "/queues"):
18
+ actionpack (4.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
19
+ actionpack (4.0.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
20
+ railties (4.0.3) lib/rails/rack/logger.rb:38:in `call_app'
21
+ railties (4.0.3) lib/rails/rack/logger.rb:20:in `block in call'
22
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:67:in `block in tagged'
23
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:25:in `tagged'
24
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:67:in `tagged'
25
+ railties (4.0.3) lib/rails/rack/logger.rb:20:in `call'
26
+ actionpack (4.0.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
27
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
28
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
29
+ activesupport (4.0.3) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
30
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
31
+ actionpack (4.0.3) lib/action_dispatch/middleware/static.rb:64:in `call'
32
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
33
+ railties (4.0.3) lib/rails/engine.rb:511:in `call'
34
+ railties (4.0.3) lib/rails/application.rb:97:in `call'
35
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
36
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
37
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
38
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
39
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
40
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
41
+
42
+
43
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
44
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
45
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.2ms)
46
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (15.4ms)
47
+
48
+
49
+ Started POST "/queues/receive" for 127.0.0.1 at 2014-02-25 22:40:19 -0800
50
+ Processing by QueuesController#receive as */*
51
+ Can't verify CSRF token authenticity
52
+ Completed 422 Unprocessable Entity in 23ms
53
+
54
+ ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
55
+ actionpack (4.0.3) lib/action_controller/metal/request_forgery_protection.rb:163:in `handle_unverified_request'
56
+ actionpack (4.0.3) lib/action_controller/metal/request_forgery_protection.rb:170:in `handle_unverified_request'
57
+ actionpack (4.0.3) lib/action_controller/metal/request_forgery_protection.rb:177:in `verify_authenticity_token'
58
+ activesupport (4.0.3) lib/active_support/callbacks.rb:377:in `_run__979975535303256340__process_action__callbacks'
59
+ activesupport (4.0.3) lib/active_support/callbacks.rb:80:in `run_callbacks'
60
+ actionpack (4.0.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
61
+ actionpack (4.0.3) lib/action_controller/metal/rescue.rb:29:in `process_action'
62
+ actionpack (4.0.3) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
63
+ activesupport (4.0.3) lib/active_support/notifications.rb:159:in `block in instrument'
64
+ activesupport (4.0.3) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
65
+ activesupport (4.0.3) lib/active_support/notifications.rb:159:in `instrument'
66
+ actionpack (4.0.3) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
67
+ actionpack (4.0.3) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
68
+ activerecord (4.0.3) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
69
+ actionpack (4.0.3) lib/abstract_controller/base.rb:136:in `process'
70
+ actionpack (4.0.3) lib/abstract_controller/rendering.rb:44:in `process'
71
+ actionpack (4.0.3) lib/action_controller/metal.rb:195:in `dispatch'
72
+ actionpack (4.0.3) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
73
+ actionpack (4.0.3) lib/action_controller/metal.rb:231:in `block in action'
74
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:80:in `call'
75
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
76
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:48:in `call'
77
+ actionpack (4.0.3) lib/action_dispatch/journey/router.rb:71:in `block in call'
78
+ actionpack (4.0.3) lib/action_dispatch/journey/router.rb:59:in `each'
79
+ actionpack (4.0.3) lib/action_dispatch/journey/router.rb:59:in `call'
80
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:680:in `call'
81
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
82
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
83
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
84
+ actionpack (4.0.3) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
85
+ actionpack (4.0.3) lib/action_dispatch/middleware/flash.rb:241:in `call'
86
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
87
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
88
+ actionpack (4.0.3) lib/action_dispatch/middleware/cookies.rb:486:in `call'
89
+ activerecord (4.0.3) lib/active_record/query_cache.rb:36:in `call'
90
+ activerecord (4.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
91
+ activerecord (4.0.3) lib/active_record/migration.rb:369:in `call'
92
+ actionpack (4.0.3) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
93
+ activesupport (4.0.3) lib/active_support/callbacks.rb:373:in `_run__1221855919812892313__call__callbacks'
94
+ activesupport (4.0.3) lib/active_support/callbacks.rb:80:in `run_callbacks'
95
+ actionpack (4.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
96
+ actionpack (4.0.3) lib/action_dispatch/middleware/reloader.rb:64:in `call'
97
+ actionpack (4.0.3) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
98
+ actionpack (4.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
99
+ actionpack (4.0.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
100
+ railties (4.0.3) lib/rails/rack/logger.rb:38:in `call_app'
101
+ railties (4.0.3) lib/rails/rack/logger.rb:20:in `block in call'
102
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:67:in `block in tagged'
103
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:25:in `tagged'
104
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:67:in `tagged'
105
+ railties (4.0.3) lib/rails/rack/logger.rb:20:in `call'
106
+ actionpack (4.0.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
107
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
108
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
109
+ activesupport (4.0.3) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
110
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
111
+ actionpack (4.0.3) lib/action_dispatch/middleware/static.rb:64:in `call'
112
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
113
+ railties (4.0.3) lib/rails/engine.rb:511:in `call'
114
+ railties (4.0.3) lib/rails/application.rb:97:in `call'
115
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
116
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
117
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
118
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
119
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
120
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
121
+
122
+
123
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.3ms)
124
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
125
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms)
126
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.6ms)
127
+
128
+
129
+ Started POST "/queues/receive" for 127.0.0.1 at 2014-02-25 22:42:32 -0800
130
+ Processing by QueuesController#receive as */*
131
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
132
+
133
+
134
+ Started POST "/queues/receive" for 127.0.0.1 at 2014-02-25 22:44:17 -0800
135
+ Processing by QueuesController#receive as */*
136
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
137
+
138
+
139
+ Started POST "/queues/receive" for 127.0.0.1 at 2014-02-25 22:44:26 -0800
140
+ Processing by QueuesController#receive as */*
141
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
142
+
143
+
144
+ Started POST "/queues/receive" for 127.0.0.1 at 2014-02-25 22:45:28 -0800
145
+ Processing by QueuesController#receive as */*
146
+ Completed 500 Internal Server Error in 1ms
147
+
148
+ NoMethodError (undefined method `constantize' for nil:NilClass):
149
+ /Users/treeder/dev/rails/rails_push_queues/app/controllers/queues_controller.rb:10:in `receive'
150
+ actionpack (4.0.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
151
+ actionpack (4.0.3) lib/abstract_controller/base.rb:189:in `process_action'
152
+ actionpack (4.0.3) lib/action_controller/metal/rendering.rb:10:in `process_action'
153
+ actionpack (4.0.3) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
154
+ activesupport (4.0.3) lib/active_support/callbacks.rb:373:in `_run__979975535303256340__process_action__callbacks'
155
+ activesupport (4.0.3) lib/active_support/callbacks.rb:80:in `run_callbacks'
156
+ actionpack (4.0.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
157
+ actionpack (4.0.3) lib/action_controller/metal/rescue.rb:29:in `process_action'
158
+ actionpack (4.0.3) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
159
+ activesupport (4.0.3) lib/active_support/notifications.rb:159:in `block in instrument'
160
+ activesupport (4.0.3) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
161
+ activesupport (4.0.3) lib/active_support/notifications.rb:159:in `instrument'
162
+ actionpack (4.0.3) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
163
+ actionpack (4.0.3) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
164
+ activerecord (4.0.3) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
165
+ actionpack (4.0.3) lib/abstract_controller/base.rb:136:in `process'
166
+ actionpack (4.0.3) lib/abstract_controller/rendering.rb:44:in `process'
167
+ actionpack (4.0.3) lib/action_controller/metal.rb:195:in `dispatch'
168
+ actionpack (4.0.3) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
169
+ actionpack (4.0.3) lib/action_controller/metal.rb:231:in `block in action'
170
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:80:in `call'
171
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
172
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:48:in `call'
173
+ actionpack (4.0.3) lib/action_dispatch/journey/router.rb:71:in `block in call'
174
+ actionpack (4.0.3) lib/action_dispatch/journey/router.rb:59:in `each'
175
+ actionpack (4.0.3) lib/action_dispatch/journey/router.rb:59:in `call'
176
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:680:in `call'
177
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
178
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
179
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
180
+ actionpack (4.0.3) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
181
+ actionpack (4.0.3) lib/action_dispatch/middleware/flash.rb:241:in `call'
182
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
183
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
184
+ actionpack (4.0.3) lib/action_dispatch/middleware/cookies.rb:486:in `call'
185
+ activerecord (4.0.3) lib/active_record/query_cache.rb:36:in `call'
186
+ activerecord (4.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
187
+ activerecord (4.0.3) lib/active_record/migration.rb:369:in `call'
188
+ actionpack (4.0.3) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
189
+ activesupport (4.0.3) lib/active_support/callbacks.rb:373:in `_run__1221855919812892313__call__callbacks'
190
+ activesupport (4.0.3) lib/active_support/callbacks.rb:80:in `run_callbacks'
191
+ actionpack (4.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
192
+ actionpack (4.0.3) lib/action_dispatch/middleware/reloader.rb:64:in `call'
193
+ actionpack (4.0.3) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
194
+ actionpack (4.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
195
+ actionpack (4.0.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
196
+ railties (4.0.3) lib/rails/rack/logger.rb:38:in `call_app'
197
+ railties (4.0.3) lib/rails/rack/logger.rb:20:in `block in call'
198
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:67:in `block in tagged'
199
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:25:in `tagged'
200
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:67:in `tagged'
201
+ railties (4.0.3) lib/rails/rack/logger.rb:20:in `call'
202
+ actionpack (4.0.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
203
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
204
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
205
+ activesupport (4.0.3) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
206
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
207
+ actionpack (4.0.3) lib/action_dispatch/middleware/static.rb:64:in `call'
208
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
209
+ railties (4.0.3) lib/rails/engine.rb:511:in `call'
210
+ railties (4.0.3) lib/rails/application.rb:97:in `call'
211
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
212
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
213
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
214
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
215
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
216
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
217
+
218
+
219
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms)
220
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
221
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.1ms)
222
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.7ms)
223
+
224
+
225
+ Started POST "/queues/receive" for 127.0.0.1 at 2014-02-25 22:57:49 -0800
226
+ Processing by QueuesController#receive as */*
227
+ Completed 500 Internal Server Error in 1ms
228
+
229
+ NameError (uninitialized constant ImageConversionWorker):
230
+ activesupport (4.0.3) lib/active_support/inflector/methods.rb:226:in `const_get'
231
+ activesupport (4.0.3) lib/active_support/inflector/methods.rb:226:in `block in constantize'
232
+ activesupport (4.0.3) lib/active_support/inflector/methods.rb:224:in `each'
233
+ activesupport (4.0.3) lib/active_support/inflector/methods.rb:224:in `inject'
234
+ activesupport (4.0.3) lib/active_support/inflector/methods.rb:224:in `constantize'
235
+ activesupport (4.0.3) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
236
+ /Users/treeder/dev/rails/rails_push_queues/app/controllers/queues_controller.rb:10:in `receive'
237
+ actionpack (4.0.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
238
+ actionpack (4.0.3) lib/abstract_controller/base.rb:189:in `process_action'
239
+ actionpack (4.0.3) lib/action_controller/metal/rendering.rb:10:in `process_action'
240
+ actionpack (4.0.3) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
241
+ activesupport (4.0.3) lib/active_support/callbacks.rb:373:in `_run__979975535303256340__process_action__callbacks'
242
+ activesupport (4.0.3) lib/active_support/callbacks.rb:80:in `run_callbacks'
243
+ actionpack (4.0.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
244
+ actionpack (4.0.3) lib/action_controller/metal/rescue.rb:29:in `process_action'
245
+ actionpack (4.0.3) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
246
+ activesupport (4.0.3) lib/active_support/notifications.rb:159:in `block in instrument'
247
+ activesupport (4.0.3) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
248
+ activesupport (4.0.3) lib/active_support/notifications.rb:159:in `instrument'
249
+ actionpack (4.0.3) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
250
+ actionpack (4.0.3) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
251
+ activerecord (4.0.3) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
252
+ actionpack (4.0.3) lib/abstract_controller/base.rb:136:in `process'
253
+ actionpack (4.0.3) lib/abstract_controller/rendering.rb:44:in `process'
254
+ actionpack (4.0.3) lib/action_controller/metal.rb:195:in `dispatch'
255
+ actionpack (4.0.3) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
256
+ actionpack (4.0.3) lib/action_controller/metal.rb:231:in `block in action'
257
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:80:in `call'
258
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
259
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:48:in `call'
260
+ actionpack (4.0.3) lib/action_dispatch/journey/router.rb:71:in `block in call'
261
+ actionpack (4.0.3) lib/action_dispatch/journey/router.rb:59:in `each'
262
+ actionpack (4.0.3) lib/action_dispatch/journey/router.rb:59:in `call'
263
+ actionpack (4.0.3) lib/action_dispatch/routing/route_set.rb:680:in `call'
264
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
265
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
266
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
267
+ actionpack (4.0.3) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
268
+ actionpack (4.0.3) lib/action_dispatch/middleware/flash.rb:241:in `call'
269
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
270
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
271
+ actionpack (4.0.3) lib/action_dispatch/middleware/cookies.rb:486:in `call'
272
+ activerecord (4.0.3) lib/active_record/query_cache.rb:36:in `call'
273
+ activerecord (4.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
274
+ activerecord (4.0.3) lib/active_record/migration.rb:369:in `call'
275
+ actionpack (4.0.3) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
276
+ activesupport (4.0.3) lib/active_support/callbacks.rb:373:in `_run__1221855919812892313__call__callbacks'
277
+ activesupport (4.0.3) lib/active_support/callbacks.rb:80:in `run_callbacks'
278
+ actionpack (4.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
279
+ actionpack (4.0.3) lib/action_dispatch/middleware/reloader.rb:64:in `call'
280
+ actionpack (4.0.3) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
281
+ actionpack (4.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
282
+ actionpack (4.0.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
283
+ railties (4.0.3) lib/rails/rack/logger.rb:38:in `call_app'
284
+ railties (4.0.3) lib/rails/rack/logger.rb:20:in `block in call'
285
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:67:in `block in tagged'
286
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:25:in `tagged'
287
+ activesupport (4.0.3) lib/active_support/tagged_logging.rb:67:in `tagged'
288
+ railties (4.0.3) lib/rails/rack/logger.rb:20:in `call'
289
+ actionpack (4.0.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
290
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
291
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
292
+ activesupport (4.0.3) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
293
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
294
+ actionpack (4.0.3) lib/action_dispatch/middleware/static.rb:64:in `call'
295
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
296
+ railties (4.0.3) lib/rails/engine.rb:511:in `call'
297
+ railties (4.0.3) lib/rails/application.rb:97:in `call'
298
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
299
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
300
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
301
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
302
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
303
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
304
+
305
+
306
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.4ms)
307
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
308
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
309
+ Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (9.3ms)
310
+
311
+
312
+ Started POST "/queues/receive" for 127.0.0.1 at 2014-02-25 22:58:15 -0800
313
+ Processing by QueuesController#receive as */*
314
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
315
+
316
+
317
+ Started POST "/queues/receive" for 127.0.0.1 at 2014-02-25 23:39:23 -0800
318
+ Processing by QueuesController#receive as */*
319
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)