msgr 0.14.1.1.b126 → 0.14.1.1.b128
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/spec/integration/dummy/app/controllers/test_controller.rb +1 -1
- data/spec/integration/dummy/config/application.rb +3 -11
- data/spec/integration/dummy/config/msgr.rb +0 -1
- data/spec/integration/dummy/config/routes.rb +0 -54
- data/spec/integration/dummy/config/secrets.yml +22 -0
- data/spec/integration/spec_helper.rb +4 -2
- data/spec/msgr/msgr/route_spec.rb +1 -1
- data/spec/msgr/msgr/routes_spec.rb +1 -1
- metadata +3 -43
- data/spec/integration/dummy/README.rdoc +0 -28
- data/spec/integration/dummy/app/assets/images/.keep +0 -0
- data/spec/integration/dummy/app/assets/javascripts/application.js +0 -13
- data/spec/integration/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/integration/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/integration/dummy/app/mailers/.keep +0 -0
- data/spec/integration/dummy/app/models/.keep +0 -0
- data/spec/integration/dummy/app/models/concerns/.keep +0 -0
- data/spec/integration/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/integration/dummy/config/environments/development.rb +0 -30
- data/spec/integration/dummy/config/environments/production.rb +0 -81
- data/spec/integration/dummy/config/environments/test.rb +0 -37
- data/spec/integration/dummy/config/initializers/backtrace_silencers.rb +0 -8
- data/spec/integration/dummy/config/initializers/filter_parameter_logging.rb +0 -5
- data/spec/integration/dummy/config/initializers/inflections.rb +0 -17
- data/spec/integration/dummy/config/initializers/mime_types.rb +0 -6
- data/spec/integration/dummy/config/initializers/secret_token.rb +0 -14
- data/spec/integration/dummy/config/initializers/session_store.rb +0 -4
- data/spec/integration/dummy/config/initializers/wrap_parameters.rb +0 -15
- data/spec/integration/dummy/config/locales/en.yml +0 -23
- data/spec/integration/dummy/lib/assets/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3e1a2a13df56ed5b5d6459d1d119688474d9bed
|
4
|
+
data.tar.gz: 503d6f0a3ad9e2d6d012d39fb795dabf0c44f2cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab88563dcb321ea8b174a7d015590f90026e76b0e36e9e53ec21e4f77e68907603ca7a9dd6f694c5a70cced184bcea41cf15cbb09db5a6aac0a009e4e461d970
|
7
|
+
data.tar.gz: 2a7afd978be3166a411d74db30f70b857bb7b1d4bccc904be5446a77813d2928e2f7d5f082ce9f5252f91bb3196c0eb01f789a8e3613f8351b03aa0add3fc7c8
|
@@ -7,17 +7,9 @@ Bundler.require(*Rails.groups)
|
|
7
7
|
|
8
8
|
module Dummy
|
9
9
|
class Application < Rails::Application
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
15
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
16
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
17
|
-
|
18
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
|
-
# config.i18n.default_locale = :de
|
10
|
+
config.eager_load = false
|
11
|
+
config.filter_parameters += [:password]
|
12
|
+
config.session_store :cookie_store, key: '_dummy_session'
|
21
13
|
|
22
14
|
config.msgr.logger = Logger.new $stdout
|
23
15
|
end
|
@@ -1,58 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
Dummy::Application.routes.draw do
|
3
3
|
root to: 'test#index'
|
4
|
-
# The priority is based upon order of creation: first created -> highest priority.
|
5
|
-
# See how all your routes lay out with "rake routes".
|
6
|
-
|
7
|
-
# You can have the root of your site routed with "root"
|
8
|
-
# root 'welcome#index'
|
9
|
-
|
10
|
-
# Example of regular route:
|
11
|
-
# get 'products/:id' => 'catalog#view'
|
12
|
-
|
13
|
-
# Example of named route that can be invoked with purchase_url(id: product.id)
|
14
|
-
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
15
|
-
|
16
|
-
# Example resource route (maps HTTP verbs to controller actions automatically):
|
17
|
-
# resources :products
|
18
|
-
|
19
|
-
# Example resource route with options:
|
20
|
-
# resources :products do
|
21
|
-
# member do
|
22
|
-
# get 'short'
|
23
|
-
# post 'toggle'
|
24
|
-
# end
|
25
|
-
#
|
26
|
-
# collection do
|
27
|
-
# get 'sold'
|
28
|
-
# end
|
29
|
-
# end
|
30
|
-
|
31
|
-
# Example resource route with sub-resources:
|
32
|
-
# resources :products do
|
33
|
-
# resources :comments, :sales
|
34
|
-
# resource :seller
|
35
|
-
# end
|
36
|
-
|
37
|
-
# Example resource route with more complex sub-resources:
|
38
|
-
# resources :products do
|
39
|
-
# resources :comments
|
40
|
-
# resources :sales do
|
41
|
-
# get 'recent', on: :collection
|
42
|
-
# end
|
43
|
-
# end
|
44
|
-
|
45
|
-
# Example resource route with concerns:
|
46
|
-
# concern :toggleable do
|
47
|
-
# post 'toggle'
|
48
|
-
# end
|
49
|
-
# resources :posts, concerns: :toggleable
|
50
|
-
# resources :photos, concerns: :toggleable
|
51
|
-
|
52
|
-
# Example resource route within a namespace:
|
53
|
-
# namespace :admin do
|
54
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
55
|
-
# # (app/controllers/admin/products_controller.rb)
|
56
|
-
# resources :products
|
57
|
-
# end
|
58
4
|
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 `rails 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: 1dbba878dc29cdb3c10dc34c183c37ff30bbcb9fedf9ea56270adcdcd328e788be29d43c1bd07fa1a1394a207142c9a6d74e15d24999bc92368d85384cbac8fd
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: d0c094226ae406ccec4e0059b9c790bba75cfed36bac9020a6862b51062f74be00a10c78c4e3ed0914d4ed6c7afade59c1b568066281e128cc42f587d7e25585
|
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"] %>
|
@@ -11,7 +11,7 @@ end
|
|
11
11
|
|
12
12
|
#
|
13
13
|
ENV['RAILS_ENV'] ||= 'test'
|
14
|
-
ENV['RAILS_GROUPS'] =
|
14
|
+
ENV['RAILS_GROUPS'] = ['rails', ENV['RAILS_GROUPS']].reject(&:nil?).join(',')
|
15
15
|
require File.expand_path('../dummy/config/environment', __FILE__)
|
16
16
|
require 'rspec/rails'
|
17
17
|
|
@@ -21,7 +21,9 @@ Dir[File.expand_path('../support/**/*.rb', __FILE__)].each {|f| require f }
|
|
21
21
|
|
22
22
|
# Checks for pending migrations before tests are run.
|
23
23
|
# If you are not using ActiveRecord, you can remove this line.
|
24
|
-
|
24
|
+
if defined?(ActiveRecord::Migration) && Rails::VERSION::MAJOR >= 4
|
25
|
+
ActiveRecord::Migration.check_pending!
|
26
|
+
end
|
25
27
|
|
26
28
|
RSpec.configure do |config|
|
27
29
|
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
@@ -5,7 +5,7 @@ describe Msgr::Route do
|
|
5
5
|
let(:routing_key) { 'routing.key.#' }
|
6
6
|
let(:options) { {to: 'test#index'} }
|
7
7
|
let(:args) { [routing_key, options] }
|
8
|
-
let(:route) { Msgr::Route.new
|
8
|
+
let(:route) { Msgr::Route.new(*args) }
|
9
9
|
subject { route }
|
10
10
|
|
11
11
|
describe '#initialize' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.1.1.
|
4
|
+
version: 0.14.1.1.b128
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
@@ -109,21 +109,12 @@ files:
|
|
109
109
|
- msgr.gemspec
|
110
110
|
- scripts/simple_test.rb
|
111
111
|
- spec/fixtures/msgr-routes-test-1.rb
|
112
|
-
- spec/integration/dummy/README.rdoc
|
113
112
|
- spec/integration/dummy/Rakefile
|
114
|
-
- spec/integration/dummy/app/assets/images/.keep
|
115
|
-
- spec/integration/dummy/app/assets/javascripts/application.js
|
116
|
-
- spec/integration/dummy/app/assets/stylesheets/application.css
|
117
113
|
- spec/integration/dummy/app/consumers/application_consumer.rb
|
118
114
|
- spec/integration/dummy/app/consumers/test_consumer.rb
|
119
115
|
- spec/integration/dummy/app/controllers/application_controller.rb
|
120
|
-
- spec/integration/dummy/app/controllers/concerns/.keep
|
121
116
|
- spec/integration/dummy/app/controllers/test_controller.rb
|
122
117
|
- spec/integration/dummy/app/helpers/application_helper.rb
|
123
|
-
- spec/integration/dummy/app/mailers/.keep
|
124
|
-
- spec/integration/dummy/app/models/.keep
|
125
|
-
- spec/integration/dummy/app/models/concerns/.keep
|
126
|
-
- spec/integration/dummy/app/views/layouts/application.html.erb
|
127
118
|
- spec/integration/dummy/bin/bundle
|
128
119
|
- spec/integration/dummy/bin/rails
|
129
120
|
- spec/integration/dummy/bin/rake
|
@@ -132,22 +123,11 @@ files:
|
|
132
123
|
- spec/integration/dummy/config/boot.rb
|
133
124
|
- spec/integration/dummy/config/database.yml
|
134
125
|
- spec/integration/dummy/config/environment.rb
|
135
|
-
- spec/integration/dummy/config/environments/development.rb
|
136
|
-
- spec/integration/dummy/config/environments/production.rb
|
137
|
-
- spec/integration/dummy/config/environments/test.rb
|
138
|
-
- spec/integration/dummy/config/initializers/backtrace_silencers.rb
|
139
|
-
- spec/integration/dummy/config/initializers/filter_parameter_logging.rb
|
140
|
-
- spec/integration/dummy/config/initializers/inflections.rb
|
141
|
-
- spec/integration/dummy/config/initializers/mime_types.rb
|
142
|
-
- spec/integration/dummy/config/initializers/secret_token.rb
|
143
|
-
- spec/integration/dummy/config/initializers/session_store.rb
|
144
|
-
- spec/integration/dummy/config/initializers/wrap_parameters.rb
|
145
|
-
- spec/integration/dummy/config/locales/en.yml
|
146
126
|
- spec/integration/dummy/config/msgr.rb
|
147
127
|
- spec/integration/dummy/config/rabbitmq.yml
|
148
128
|
- spec/integration/dummy/config/routes.rb
|
129
|
+
- spec/integration/dummy/config/secrets.yml
|
149
130
|
- spec/integration/dummy/db/test.sqlite3
|
150
|
-
- spec/integration/dummy/lib/assets/.keep
|
151
131
|
- spec/integration/dummy/log/.keep
|
152
132
|
- spec/integration/dummy/public/404.html
|
153
133
|
- spec/integration/dummy/public/422.html
|
@@ -191,21 +171,12 @@ specification_version: 4
|
|
191
171
|
summary: 'Msgr: Rails-like Messaging Framework'
|
192
172
|
test_files:
|
193
173
|
- spec/fixtures/msgr-routes-test-1.rb
|
194
|
-
- spec/integration/dummy/README.rdoc
|
195
174
|
- spec/integration/dummy/Rakefile
|
196
|
-
- spec/integration/dummy/app/assets/images/.keep
|
197
|
-
- spec/integration/dummy/app/assets/javascripts/application.js
|
198
|
-
- spec/integration/dummy/app/assets/stylesheets/application.css
|
199
175
|
- spec/integration/dummy/app/consumers/application_consumer.rb
|
200
176
|
- spec/integration/dummy/app/consumers/test_consumer.rb
|
201
177
|
- spec/integration/dummy/app/controllers/application_controller.rb
|
202
|
-
- spec/integration/dummy/app/controllers/concerns/.keep
|
203
178
|
- spec/integration/dummy/app/controllers/test_controller.rb
|
204
179
|
- spec/integration/dummy/app/helpers/application_helper.rb
|
205
|
-
- spec/integration/dummy/app/mailers/.keep
|
206
|
-
- spec/integration/dummy/app/models/.keep
|
207
|
-
- spec/integration/dummy/app/models/concerns/.keep
|
208
|
-
- spec/integration/dummy/app/views/layouts/application.html.erb
|
209
180
|
- spec/integration/dummy/bin/bundle
|
210
181
|
- spec/integration/dummy/bin/rails
|
211
182
|
- spec/integration/dummy/bin/rake
|
@@ -214,22 +185,11 @@ test_files:
|
|
214
185
|
- spec/integration/dummy/config/boot.rb
|
215
186
|
- spec/integration/dummy/config/database.yml
|
216
187
|
- spec/integration/dummy/config/environment.rb
|
217
|
-
- spec/integration/dummy/config/environments/development.rb
|
218
|
-
- spec/integration/dummy/config/environments/production.rb
|
219
|
-
- spec/integration/dummy/config/environments/test.rb
|
220
|
-
- spec/integration/dummy/config/initializers/backtrace_silencers.rb
|
221
|
-
- spec/integration/dummy/config/initializers/filter_parameter_logging.rb
|
222
|
-
- spec/integration/dummy/config/initializers/inflections.rb
|
223
|
-
- spec/integration/dummy/config/initializers/mime_types.rb
|
224
|
-
- spec/integration/dummy/config/initializers/secret_token.rb
|
225
|
-
- spec/integration/dummy/config/initializers/session_store.rb
|
226
|
-
- spec/integration/dummy/config/initializers/wrap_parameters.rb
|
227
|
-
- spec/integration/dummy/config/locales/en.yml
|
228
188
|
- spec/integration/dummy/config/msgr.rb
|
229
189
|
- spec/integration/dummy/config/rabbitmq.yml
|
230
190
|
- spec/integration/dummy/config/routes.rb
|
191
|
+
- spec/integration/dummy/config/secrets.yml
|
231
192
|
- spec/integration/dummy/db/test.sqlite3
|
232
|
-
- spec/integration/dummy/lib/assets/.keep
|
233
193
|
- spec/integration/dummy/log/.keep
|
234
194
|
- spec/integration/dummy/public/404.html
|
235
195
|
- spec/integration/dummy/public/422.html
|
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
File without changes
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
6
|
-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
Dummy::Application.configure do
|
3
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
4
|
-
|
5
|
-
# In the development environment your application's code is reloaded on
|
6
|
-
# every request. This slows down response time but is perfect for development
|
7
|
-
# since you don't have to restart the web server when you make code changes.
|
8
|
-
config.cache_classes = false
|
9
|
-
|
10
|
-
# Do not eager load code on boot.
|
11
|
-
config.eager_load = false
|
12
|
-
|
13
|
-
# Show full error reports and disable caching.
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Don't care if the mailer can't send.
|
18
|
-
config.action_mailer.raise_delivery_errors = false
|
19
|
-
|
20
|
-
# Print deprecation notices to the Rails logger.
|
21
|
-
config.active_support.deprecation = :log
|
22
|
-
|
23
|
-
# Raise an error on page load if there are pending migrations
|
24
|
-
config.active_record.migration_error = :page_load
|
25
|
-
|
26
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
27
|
-
# This option may cause significant delays in view rendering with a large
|
28
|
-
# number of complex assets.
|
29
|
-
config.assets.debug = true
|
30
|
-
end
|
@@ -1,81 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
Dummy::Application.configure do
|
3
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
4
|
-
|
5
|
-
# Code is not reloaded between requests.
|
6
|
-
config.cache_classes = true
|
7
|
-
|
8
|
-
# Eager load code on boot. This eager loads most of Rails and
|
9
|
-
# your application in memory, allowing both thread web servers
|
10
|
-
# and those relying on copy on write to perform better.
|
11
|
-
# Rake tasks automatically ignore this option for performance.
|
12
|
-
config.eager_load = true
|
13
|
-
|
14
|
-
# Full error reports are disabled and caching is turned on.
|
15
|
-
config.consider_all_requests_local = false
|
16
|
-
config.action_controller.perform_caching = true
|
17
|
-
|
18
|
-
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
19
|
-
# Add `rack-cache` to your Gemfile before enabling this.
|
20
|
-
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
21
|
-
# config.action_dispatch.rack_cache = true
|
22
|
-
|
23
|
-
# Disable Rails's static asset server (Apache or nginx will already do this).
|
24
|
-
config.serve_static_assets = false
|
25
|
-
|
26
|
-
# Compress JavaScripts and CSS.
|
27
|
-
config.assets.js_compressor = :uglifier
|
28
|
-
# config.assets.css_compressor = :sass
|
29
|
-
|
30
|
-
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
31
|
-
config.assets.compile = false
|
32
|
-
|
33
|
-
# Generate digests for assets URLs.
|
34
|
-
config.assets.digest = true
|
35
|
-
|
36
|
-
# Version of your assets, change this if you want to expire all your assets.
|
37
|
-
config.assets.version = '1.0'
|
38
|
-
|
39
|
-
# Specifies the header that your server uses for sending files.
|
40
|
-
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
41
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
42
|
-
|
43
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
44
|
-
# config.force_ssl = true
|
45
|
-
|
46
|
-
# Set to :debug to see everything in the log.
|
47
|
-
config.log_level = :info
|
48
|
-
|
49
|
-
# Prepend all log lines with the following tags.
|
50
|
-
# config.log_tags = [ :subdomain, :uuid ]
|
51
|
-
|
52
|
-
# Use a different logger for distributed setups.
|
53
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
54
|
-
|
55
|
-
# Use a different cache store in production.
|
56
|
-
# config.cache_store = :mem_cache_store
|
57
|
-
|
58
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
59
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
60
|
-
|
61
|
-
# Precompile additional assets.
|
62
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
63
|
-
# config.assets.precompile += %w( search.js )
|
64
|
-
|
65
|
-
# Ignore bad email addresses and do not raise email delivery errors.
|
66
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
67
|
-
# config.action_mailer.raise_delivery_errors = false
|
68
|
-
|
69
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
70
|
-
# the I18n.default_locale when a translation can not be found).
|
71
|
-
config.i18n.fallbacks = true
|
72
|
-
|
73
|
-
# Send deprecation notices to registered listeners.
|
74
|
-
config.active_support.deprecation = :notify
|
75
|
-
|
76
|
-
# Disable automatic flushing of the log to improve performance.
|
77
|
-
# config.autoflush_log = false
|
78
|
-
|
79
|
-
# Use default logging formatter so that PID and timestamp are not suppressed.
|
80
|
-
config.log_formatter = ::Logger::Formatter.new
|
81
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
Dummy::Application.configure do
|
3
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
4
|
-
|
5
|
-
# The test environment is used exclusively to run your application's
|
6
|
-
# test suite. You never need to work with it otherwise. Remember that
|
7
|
-
# your test database is "scratch space" for the test suite and is wiped
|
8
|
-
# and recreated between test runs. Don't rely on the data there!
|
9
|
-
config.cache_classes = true
|
10
|
-
|
11
|
-
# Do not eager load code on boot. This avoids loading your whole application
|
12
|
-
# just for the purpose of running a single test. If you are using a tool that
|
13
|
-
# preloads Rails for running tests, you may have to set it to true.
|
14
|
-
config.eager_load = false
|
15
|
-
|
16
|
-
# Configure static asset server for tests with Cache-Control for performance.
|
17
|
-
config.serve_static_assets = true
|
18
|
-
config.static_cache_control = 'public, max-age=3600'
|
19
|
-
|
20
|
-
# Show full error reports and disable caching.
|
21
|
-
config.consider_all_requests_local = true
|
22
|
-
config.action_controller.perform_caching = false
|
23
|
-
|
24
|
-
# Raise exceptions instead of rendering exception templates.
|
25
|
-
config.action_dispatch.show_exceptions = false
|
26
|
-
|
27
|
-
# Disable request forgery protection in test environment.
|
28
|
-
config.action_controller.allow_forgery_protection = false
|
29
|
-
|
30
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
31
|
-
# The :test delivery method accumulates sent emails in the
|
32
|
-
# ActionMailer::Base.deliveries array.
|
33
|
-
# config.action_mailer.delivery_method = :test
|
34
|
-
|
35
|
-
# Print deprecation notices to the stderr.
|
36
|
-
config.active_support.deprecation = :stderr
|
37
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Be sure to restart your server when you modify this file.
|
3
|
-
|
4
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
5
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
6
|
-
|
7
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
8
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Be sure to restart your server when you modify this file.
|
3
|
-
|
4
|
-
# Add new inflection rules using the following format. Inflections
|
5
|
-
# are locale specific, and you may define rules for as many different
|
6
|
-
# locales as you wish. All of these examples are active by default:
|
7
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
8
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
9
|
-
# inflect.singular /^(ox)en/i, '\1'
|
10
|
-
# inflect.irregular 'person', 'people'
|
11
|
-
# inflect.uncountable %w( fish sheep )
|
12
|
-
# end
|
13
|
-
|
14
|
-
# These inflection rules are supported but not enabled by default:
|
15
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
16
|
-
# inflect.acronym 'RESTful'
|
17
|
-
# end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Be sure to restart your server when you modify this file.
|
3
|
-
|
4
|
-
# Your secret key is used for verifying the integrity of signed cookies.
|
5
|
-
# If you change this key, all old signed cookies will become invalid!
|
6
|
-
|
7
|
-
# Make sure the secret is at least 30 characters and all random,
|
8
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
9
|
-
# You can use `rake secret` to generate a secure secret key.
|
10
|
-
|
11
|
-
# Make sure your secret_key_base is kept private
|
12
|
-
# if you're sharing your code publicly.
|
13
|
-
Dummy::Application.config.secret_key_base = 'f86fdb0bb65c2fc129c469d31af6b4e13623e15536087d9afd24ca86fe480f392b7401e2fcf966a415b983786954c2d4015e649290d12bd8f2bdb3d35bdd3597'
|
14
|
-
Dummy::Application.config.secret_token = 'f86fdb0bb65c2fc129c469d31af6b4e13623e15536087d9afd24ca86fe480f392b7401e2fcf966a415b983786954c2d4015e649290d12bd8f2bdb3d35bdd3597'
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Be sure to restart your server when you modify this file.
|
3
|
-
|
4
|
-
# This file contains settings for ActionController::ParamsWrapper which
|
5
|
-
# is enabled by default.
|
6
|
-
|
7
|
-
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
8
|
-
ActiveSupport.on_load(:action_controller) do
|
9
|
-
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
10
|
-
end
|
11
|
-
|
12
|
-
# To enable root element in JSON for ActiveRecord objects.
|
13
|
-
# ActiveSupport.on_load(:active_record) do
|
14
|
-
# self.include_root_in_json = true
|
15
|
-
# end
|
@@ -1,23 +0,0 @@
|
|
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"
|
File without changes
|