jobshop 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/COPYRIGHT +15 -0
  3. data/LICENSE +661 -0
  4. data/README.md +41 -0
  5. data/Rakefile +24 -0
  6. data/app/assets/config/jobshop_manifest.js +2 -0
  7. data/app/assets/javascripts/jobshop/application.js +13 -0
  8. data/app/assets/stylesheets/jobshop/application.css +15 -0
  9. data/app/controllers/jobshop/application_controller.rb +4 -0
  10. data/app/helpers/jobshop/application_helper.rb +4 -0
  11. data/app/jobs/jobshop/application_job.rb +4 -0
  12. data/app/models/application_record.rb +5 -0
  13. data/app/views/layouts/jobshop/application.html.erb +14 -0
  14. data/config/routes.rb +2 -0
  15. data/lib/generators/active_record/jobshop_generator.rb +46 -0
  16. data/lib/generators/active_record/templates/migration.rb.tt +8 -0
  17. data/lib/generators/active_record/templates/migration_existing.rb.tt +10 -0
  18. data/lib/generators/jobshop/config/config_generator.rb +22 -0
  19. data/lib/generators/jobshop/config/templates/jobshop.rb.tt +3 -0
  20. data/lib/generators/jobshop/orm_helpers.rb +23 -0
  21. data/lib/generators/jobshop_generator.rb +20 -0
  22. data/lib/jobshop/engine.rb +12 -0
  23. data/lib/jobshop/version.rb +14 -0
  24. data/lib/jobshop.rb +35 -0
  25. data/lib/tasks/jobshop_tasks.rake +4 -0
  26. data/spec/dummy/Rakefile +6 -0
  27. data/spec/dummy/app/assets/config/manifest.js +5 -0
  28. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  29. data/spec/dummy/app/assets/javascripts/cable.coffee +11 -0
  30. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  31. data/spec/dummy/app/channels/application_cable/channel.rb +5 -0
  32. data/spec/dummy/app/channels/application_cable/connection.rb +5 -0
  33. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  34. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  35. data/spec/dummy/app/jobs/application_job.rb +2 -0
  36. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  37. data/spec/dummy/app/models/application_record.rb +3 -0
  38. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  39. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  40. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  41. data/spec/dummy/bin/bundle +3 -0
  42. data/spec/dummy/bin/rails +4 -0
  43. data/spec/dummy/bin/rake +4 -0
  44. data/spec/dummy/bin/setup +34 -0
  45. data/spec/dummy/bin/update +29 -0
  46. data/spec/dummy/config/application.rb +21 -0
  47. data/spec/dummy/config/boot.rb +5 -0
  48. data/spec/dummy/config/database.yml +85 -0
  49. data/spec/dummy/config/environment.rb +5 -0
  50. data/spec/dummy/config/environments/development.rb +56 -0
  51. data/spec/dummy/config/environments/production.rb +82 -0
  52. data/spec/dummy/config/environments/test.rb +44 -0
  53. data/spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb +5 -0
  54. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  55. data/spec/dummy/config/initializers/assets.rb +11 -0
  56. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  57. data/spec/dummy/config/initializers/callback_terminator.rb +5 -0
  58. data/spec/dummy/config/initializers/cookies_serializer.rb +4 -0
  59. data/spec/dummy/config/initializers/cors.rb +16 -0
  60. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  61. data/spec/dummy/config/initializers/inflections.rb +16 -0
  62. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  63. data/spec/dummy/config/initializers/request_forgery_protection.rb +4 -0
  64. data/spec/dummy/config/initializers/session_store.rb +3 -0
  65. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  66. data/spec/dummy/config/locales/en.yml +23 -0
  67. data/spec/dummy/config/redis/cable.yml +9 -0
  68. data/spec/dummy/config/routes.rb +6 -0
  69. data/spec/dummy/config/secrets.yml +22 -0
  70. data/spec/dummy/config.ru +9 -0
  71. data/spec/dummy/log/development.log +64 -0
  72. data/spec/dummy/public/404.html +67 -0
  73. data/spec/dummy/public/422.html +67 -0
  74. data/spec/dummy/public/500.html +66 -0
  75. data/spec/dummy/public/favicon.ico +0 -0
  76. data/spec/rails_helper.rb +57 -0
  77. data/spec/spec_helper.rb +92 -0
  78. metadata +206 -0
@@ -0,0 +1,85 @@
1
+ # PostgreSQL. Versions 8.2 and up are supported.
2
+ #
3
+ # Install the pg driver:
4
+ # gem install pg
5
+ # On OS X with Homebrew:
6
+ # gem install pg -- --with-pg-config=/usr/local/bin/pg_config
7
+ # On OS X with MacPorts:
8
+ # gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
9
+ # On Windows:
10
+ # gem install pg
11
+ # Choose the win32 build.
12
+ # Install PostgreSQL and put its /bin directory on your path.
13
+ #
14
+ # Configure Using Gemfile
15
+ # gem 'pg'
16
+ #
17
+ default: &default
18
+ adapter: postgresql
19
+ encoding: unicode
20
+ # For details on connection pooling, see rails configuration guide
21
+ # http://guides.rubyonrails.org/configuring.html#database-pooling
22
+ pool: 5
23
+
24
+ development:
25
+ <<: *default
26
+ database: dummy_development
27
+
28
+ # The specified database role being used to connect to postgres.
29
+ # To create additional roles in postgres see `$ createuser --help`.
30
+ # When left blank, postgres will use the default role. This is
31
+ # the same name as the operating system user that initialized the database.
32
+ #username: dummy
33
+
34
+ # The password associated with the postgres role (username).
35
+ #password:
36
+
37
+ # Connect on a TCP socket. Omitted by default since the client uses a
38
+ # domain socket that doesn't need configuration. Windows does not have
39
+ # domain sockets, so uncomment these lines.
40
+ #host: localhost
41
+
42
+ # The TCP port the server listens on. Defaults to 5432.
43
+ # If your server runs on a different port number, change accordingly.
44
+ #port: 5432
45
+
46
+ # Schema search path. The server defaults to $user,public
47
+ #schema_search_path: myapp,sharedapp,public
48
+
49
+ # Minimum log levels, in increasing order:
50
+ # debug5, debug4, debug3, debug2, debug1,
51
+ # log, notice, warning, error, fatal, and panic
52
+ # Defaults to warning.
53
+ #min_messages: notice
54
+
55
+ # Warning: The database defined as "test" will be erased and
56
+ # re-generated from your development database when you run "rake".
57
+ # Do not set this db to the same as development or production.
58
+ test:
59
+ <<: *default
60
+ database: dummy_test
61
+
62
+ # As with config/secrets.yml, you never want to store sensitive information,
63
+ # like your database password, in your source code. If your source code is
64
+ # ever seen by anyone, they now have access to your database.
65
+ #
66
+ # Instead, provide the password as a unix environment variable when you boot
67
+ # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
68
+ # for a full rundown on how to provide these environment variables in a
69
+ # production deployment.
70
+ #
71
+ # On Heroku and other platform providers, you may have a full connection URL
72
+ # available as an environment variable. For example:
73
+ #
74
+ # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
75
+ #
76
+ # You can use this database configuration with:
77
+ #
78
+ # production:
79
+ # url: <%= ENV['DATABASE_URL'] %>
80
+ #
81
+ production:
82
+ <<: *default
83
+ database: dummy_production
84
+ username: dummy
85
+ password: <%= ENV['DUMMY_DATABASE_PASSWORD'] %>
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,56 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports.
13
+ config.consider_all_requests_local = true
14
+
15
+ # Enable/disable caching. By default caching is disabled.
16
+ if Rails.root.join('tmp/caching-dev.txt').exist?
17
+ config.action_controller.perform_caching = true
18
+ config.cache_store = :memory_store
19
+ config.public_file_server.headers = {
20
+ 'Cache-Control' => 'public, max-age=172800'
21
+ }
22
+ else
23
+ config.action_controller.perform_caching = false
24
+ config.cache_store = :null_store
25
+ end
26
+
27
+ # Don't care if the mailer can't send.
28
+ config.action_mailer.raise_delivery_errors = false
29
+
30
+ # Print deprecation notices to the Rails logger.
31
+ config.active_support.deprecation = :log
32
+
33
+ # Raise an error on page load if there are pending migrations.
34
+ config.active_record.migration_error = :page_load
35
+
36
+ # Debug mode disables concatenation and preprocessing of assets.
37
+ # This option may cause significant delays in view rendering with a large
38
+ # number of complex assets.
39
+ config.assets.debug = true
40
+
41
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
42
+ # yet still be able to expire them through the digest params.
43
+ config.assets.digest = true
44
+
45
+ # Adds additional error checking when serving assets at runtime.
46
+ # Checks for improperly declared sprockets dependencies.
47
+ # Raises helpful error messages.
48
+ config.assets.raise_runtime_errors = true
49
+
50
+ # Raises error for missing translations
51
+ # config.action_view.raise_on_missing_translations = true
52
+
53
+ # Use an evented file watcher to asynchronously detect changes in source code,
54
+ # routes, locales, etc. This feature depends on the listen gem.
55
+ # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
56
+ end
@@ -0,0 +1,82 @@
1
+ Rails.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 threaded 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
+ # Disable serving static files from the `/public` folder by default since
18
+ # Apache or NGINX already handles this.
19
+ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
20
+
21
+ # Compress JavaScripts and CSS.
22
+ config.assets.js_compressor = :uglifier
23
+ # config.assets.css_compressor = :sass
24
+
25
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
26
+ config.assets.compile = false
27
+
28
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
29
+ # yet still be able to expire them through the digest params.
30
+ config.assets.digest = true
31
+
32
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
33
+
34
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
35
+ # config.action_controller.asset_host = 'http://assets.example.com'
36
+
37
+ # Specifies the header that your server uses for sending files.
38
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
39
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
40
+
41
+ # Action Cable endpoint configuration
42
+ # config.action_cable.url = 'wss://example.com/cable'
43
+ # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
44
+
45
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
46
+ # config.force_ssl = true
47
+
48
+ # Use the lowest log level to ensure availability of diagnostic information
49
+ # when problems arise.
50
+ config.log_level = :debug
51
+
52
+ # Prepend all log lines with the following tags.
53
+ # config.log_tags = [ :subdomain, :request_id ]
54
+
55
+ # Use a different logger for distributed setups.
56
+ # require 'syslog/logger'
57
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
58
+
59
+ # Use a different cache store in production.
60
+ # config.cache_store = :mem_cache_store
61
+
62
+ # Use a real queuing backend for Active Job (and separate queues per environment)
63
+ # config.active_job.queue_adapter = :resque
64
+ # config.active_job.queue_name_prefix = "dummy_#{Rails.env}"
65
+
66
+ # Ignore bad email addresses and do not raise email delivery errors.
67
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
68
+ # config.action_mailer.raise_delivery_errors = false
69
+
70
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
71
+ # the I18n.default_locale when a translation cannot be found).
72
+ config.i18n.fallbacks = true
73
+
74
+ # Send deprecation notices to registered listeners.
75
+ config.active_support.deprecation = :notify
76
+
77
+ # Use default logging formatter so that PID and timestamp are not suppressed.
78
+ config.log_formatter = ::Logger::Formatter.new
79
+
80
+ # Do not dump schema after migrations.
81
+ config.active_record.dump_schema_after_migration = false
82
+ end
@@ -0,0 +1,44 @@
1
+ Rails.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 public file server for tests with Cache-Control for performance.
16
+ config.public_file_server.enabled = true
17
+ config.public_file_server.headers = {
18
+ 'Cache-Control' => 'public, max-age=3600'
19
+ }
20
+
21
+ # Show full error reports and disable caching.
22
+ config.consider_all_requests_local = true
23
+ config.action_controller.perform_caching = false
24
+
25
+ # Raise exceptions instead of rendering exception templates.
26
+ config.action_dispatch.show_exceptions = false
27
+
28
+ # Disable request forgery protection in test environment.
29
+ config.action_controller.allow_forgery_protection = false
30
+
31
+ # Tell Action Mailer not to deliver emails to the real world.
32
+ # The :test delivery method accumulates sent emails in the
33
+ # ActionMailer::Base.deliveries array.
34
+ config.action_mailer.delivery_method = :test
35
+
36
+ # Randomize the order test cases are executed.
37
+ config.active_support.test_order = :random
38
+
39
+ # Print deprecation notices to the stderr.
40
+ config.active_support.deprecation = :stderr
41
+
42
+ # Raises error for missing translations
43
+ # config.action_view.raise_on_missing_translations = true
44
+ end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Require `belongs_to` associations by default. This is a new Rails 5.0 default,
4
+ # so introduced as a config to ensure apps made with earlier versions of Rails aren't affected when upgrading.
5
+ Rails.application.config.active_record.belongs_to_required_by_default = true
@@ -0,0 +1,6 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # ApplicationController.renderer.defaults.merge!(
4
+ # http_host: 'example.org',
5
+ # https: false
6
+ # )
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -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,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Do not halt callback chains when a callback returns false. This is a new Rails 5.0 default,
4
+ # so introduced as a config to ensure apps made with earlier versions of Rails aren't affected when upgrading.
5
+ ActiveSupport.halt_callback_chains_on_return_false = false
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This is a new Rails 5.0 default, so introduced as a config to ensure apps made with earlier versions of Rails aren't affected when upgrading.
4
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Avoid CORS issues when API is called from the frontend app.
4
+ # Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin AJAX requests.
5
+
6
+ # Read more: https://github.com/cyu/rack-cors
7
+
8
+ # Rails.application.config.middleware.insert_before 0, Rack::Cors do
9
+ # allow do
10
+ # origins 'example.com'
11
+ #
12
+ # resource '*',
13
+ # headers: :any,
14
+ # methods: [:get, :post, :put, :patch, :delete, :options, :head]
15
+ # end
16
+ # end
@@ -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,4 @@
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
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Enable origin-checking CSRF mitigation.
4
+ Rails.application.config.action_controller.forgery_protection_origin_check = true
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.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]
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,9 @@
1
+ # Action Cable uses Redis to administer connections, channels, and sending/receiving messages over the WebSocket.
2
+ production:
3
+ url: redis://localhost:6379/1
4
+
5
+ development:
6
+ url: redis://localhost:6379/2
7
+
8
+ test:
9
+ url: redis://localhost:6379/3
@@ -0,0 +1,6 @@
1
+ Rails.application.routes.draw do
2
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
3
+
4
+ # Serve websocket cable requests in-process
5
+ # mount ActionCable.server => '/cable'
6
+ end
@@ -0,0 +1,22 @@
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 the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 3747d88e8e785144adec8f814815231a656de18d38a419e807c6a58c632e95619022ba88db028437c826017d41dcb6493b44394f44ef4d25d3efda6a9ca0839a
15
+
16
+ test:
17
+ secret_key_base: 32520fd80bca91dff2b893ed18a9721d8085496a14d927b662d33d830f45707b66d9b8f82bf782c7cf02591fac4ffc7e0d53810f1eb411da2b42f6f0fc75eae2
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,9 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+
5
+ # Action Cable uses EventMachine which requires that all classes are loaded in advance
6
+ Rails.application.eager_load!
7
+ require 'action_cable/process/logging'
8
+
9
+ run Rails.application
@@ -0,0 +1,64 @@
1
+
2
+
3
+ Started GET "/" for ::1 at 2016-01-06 21:54:32 -0500
4
+
5
+ ActiveRecord::NoDatabaseError (FATAL: database "dummy_development" does not exist
6
+ ):
7
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/postgresql_adapter.rb:652:in `rescue in connect'
8
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/postgresql_adapter.rb:642:in `connect'
9
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/postgresql_adapter.rb:211:in `initialize'
10
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/postgresql_adapter.rb:38:in `new'
11
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/postgresql_adapter.rb:38:in `postgresql_connection'
12
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/abstract/connection_pool.rb:721:in `new_connection'
13
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/abstract/connection_pool.rb:765:in `checkout_new_connection'
14
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/abstract/connection_pool.rb:744:in `try_to_checkout_new_connection'
15
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/abstract/connection_pool.rb:705:in `acquire_connection'
16
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/abstract/connection_pool.rb:501:in `checkout'
17
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/abstract/connection_pool.rb:364:in `connection'
18
+ activerecord (5.0.0.beta1) lib/active_record/connection_adapters/abstract/connection_pool.rb:879:in `retrieve_connection'
19
+ activerecord (5.0.0.beta1) lib/active_record/connection_handling.rb:113:in `retrieve_connection'
20
+ activerecord (5.0.0.beta1) lib/active_record/connection_handling.rb:87:in `connection'
21
+ activerecord (5.0.0.beta1) lib/active_record/migration.rb:530:in `connection'
22
+ activerecord (5.0.0.beta1) lib/active_record/migration.rb:517:in `call'
23
+ actionpack (5.0.0.beta1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
24
+ activesupport (5.0.0.beta1) lib/active_support/callbacks.rb:97:in `__run_callbacks__'
25
+ activesupport (5.0.0.beta1) lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
26
+ activesupport (5.0.0.beta1) lib/active_support/callbacks.rb:90:in `run_callbacks'
27
+ actionpack (5.0.0.beta1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
28
+ actionpack (5.0.0.beta1) lib/action_dispatch/middleware/reloader.rb:71:in `call'
29
+ actionpack (5.0.0.beta1) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
30
+ actionpack (5.0.0.beta1) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
31
+ actionpack (5.0.0.beta1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
32
+ railties (5.0.0.beta1) lib/rails/rack/logger.rb:42:in `call_app'
33
+ railties (5.0.0.beta1) lib/rails/rack/logger.rb:24:in `block in call'
34
+ activesupport (5.0.0.beta1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
35
+ activesupport (5.0.0.beta1) lib/active_support/tagged_logging.rb:26:in `tagged'
36
+ activesupport (5.0.0.beta1) lib/active_support/tagged_logging.rb:70:in `tagged'
37
+ railties (5.0.0.beta1) lib/rails/rack/logger.rb:24:in `call'
38
+ actionpack (5.0.0.beta1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
39
+ rack (2.0.0.alpha) lib/rack/method_override.rb:22:in `call'
40
+ rack (2.0.0.alpha) lib/rack/runtime.rb:22:in `call'
41
+ activesupport (5.0.0.beta1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
42
+ actionpack (5.0.0.beta1) lib/action_dispatch/middleware/load_interlock.rb:13:in `call'
43
+ actionpack (5.0.0.beta1) lib/action_dispatch/middleware/static.rb:132:in `call'
44
+ rack (2.0.0.alpha) lib/rack/sendfile.rb:111:in `call'
45
+ railties (5.0.0.beta1) lib/rails/engine.rb:522:in `call'
46
+ rack (2.0.0.alpha) lib/rack/handler/webrick.rb:86:in `service'
47
+ /Users/frankjmattia/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
48
+ /Users/frankjmattia/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
49
+ /Users/frankjmattia/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
50
+
51
+
52
+ Rendered /Users/frankjmattia/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.beta1/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.5ms)
53
+ Rendered /Users/frankjmattia/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.beta1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms)
54
+ Rendered /Users/frankjmattia/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.beta1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
55
+ Rendered /Users/frankjmattia/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.beta1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (45.8ms)
56
+  (22.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
57
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
58
+  (0.2ms) SELECT pg_try_advisory_lock(1721091371569202325);
59
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
60
+ Migrating to AddDeviseToUsers (20160104092148)
61
+  (0.1ms) BEGIN
62
+  (6.3ms) ALTER TABLE "users" ADD "email" character varying DEFAULT '' NOT NULL
63
+  (0.1ms) ROLLBACK
64
+  (0.2ms) SELECT pg_advisory_unlock(1721091371569202325)
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>