ss-rails_application-development 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/rails_application/development/development.rb +90 -0
- data/lib/rails_application/development.rb +8 -0
- metadata +114 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 76cefb3ba9fb744243eab02005846a1e0835234262ab8d9886b9e444be2e8728
|
|
4
|
+
data.tar.gz: f4bde60f1a64b3e6033602f7affba81f5dfece565f678f43b949c9b65ca8d882
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: e6abe42861828c99fb5cafce26ca791ce4656adc83d75d86c068511dd41a90d2b631c9b7f708a4d952f47a83bb86c3824df246afb90fb41563f010e952062189
|
|
7
|
+
data.tar.gz: 7ea1a064fccc18d85c0b43df33f96e2d07bcf0685d8081b823732d4b4981d23e5bec48b014d1c94e00f69b57f3b1a27ad44f5388d4d93a8f0a6c1352cc00d8a8
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
module RailsApplication
|
|
2
|
+
module Development
|
|
3
|
+
def self.included(cls)
|
|
4
|
+
cls.class_exec do
|
|
5
|
+
include BaseRailsConfiguration
|
|
6
|
+
include Logging
|
|
7
|
+
include Email
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
module BaseRailsConfiguration
|
|
12
|
+
def self.included(cls)
|
|
13
|
+
cls.class_exec do
|
|
14
|
+
config.load_defaults "8.1"
|
|
15
|
+
|
|
16
|
+
config.eager_load = false
|
|
17
|
+
config.enable_reloading = true
|
|
18
|
+
config.reload_classes_only_on_change = true
|
|
19
|
+
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
|
20
|
+
|
|
21
|
+
config.server_timing = true
|
|
22
|
+
config.consider_all_requests_local = true
|
|
23
|
+
|
|
24
|
+
config.action_dispatch.show_exceptions = :all
|
|
25
|
+
|
|
26
|
+
config.action_view.annotate_rendered_view_with_filenames = true
|
|
27
|
+
|
|
28
|
+
config.active_support.deprecation = :raise
|
|
29
|
+
config.active_support.report_deprecations = true
|
|
30
|
+
|
|
31
|
+
config.i18n.raise_on_missing_translations = true
|
|
32
|
+
|
|
33
|
+
config.action_controller.raise_on_missing_callback_actions = true
|
|
34
|
+
config.active_record.migration_error = :page_load
|
|
35
|
+
|
|
36
|
+
config.active_record.verbose_query_logs = true
|
|
37
|
+
config.active_record.query_log_tags_enabled = true
|
|
38
|
+
|
|
39
|
+
config.action_controller.perform_caching = false
|
|
40
|
+
config.action_mailer.perform_caching = false
|
|
41
|
+
config.cache_store = :null_store
|
|
42
|
+
|
|
43
|
+
config.public_file_server.headers = "no-cache"
|
|
44
|
+
|
|
45
|
+
config.require_master_key = false
|
|
46
|
+
config.secret_key_base = ENV.fetch("SECRET_KEY_BASE", Defaults.secret_key_base)
|
|
47
|
+
|
|
48
|
+
config.hosts.clear
|
|
49
|
+
|
|
50
|
+
config.force_ssl = false
|
|
51
|
+
config.assume_ssl = false
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
module Defaults
|
|
56
|
+
def self.secret_key_base
|
|
57
|
+
"some secret key base"
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
module Logging
|
|
63
|
+
def self.included(cls)
|
|
64
|
+
cls.class_exec do
|
|
65
|
+
logger = ActiveSupport::Logger.new($stdout)
|
|
66
|
+
logger.formatter = config.log_formatter
|
|
67
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
|
68
|
+
|
|
69
|
+
config.log_level = :debug
|
|
70
|
+
config.colorize_logging = true
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
module Email
|
|
76
|
+
def self.included(cls)
|
|
77
|
+
cls.class_exec do
|
|
78
|
+
config.action_mailer.delivery_method = :letter_opener
|
|
79
|
+
config.action_mailer.perform_deliveries = true
|
|
80
|
+
config.action_mailer.raise_delivery_errors = false
|
|
81
|
+
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
LetterOpener.configure do |letter_opener_config|
|
|
85
|
+
letter_opener_config.location = Rails.root.join("tmp", "email")
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ss-rails_application-development
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Ethan Garofolo
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
dependencies:
|
|
11
|
+
- !ruby/object:Gem::Dependency
|
|
12
|
+
name: rails
|
|
13
|
+
requirement: !ruby/object:Gem::Requirement
|
|
14
|
+
requirements:
|
|
15
|
+
- - ">="
|
|
16
|
+
- !ruby/object:Gem::Version
|
|
17
|
+
version: '0'
|
|
18
|
+
type: :runtime
|
|
19
|
+
prerelease: false
|
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
21
|
+
requirements:
|
|
22
|
+
- - ">="
|
|
23
|
+
- !ruby/object:Gem::Version
|
|
24
|
+
version: '0'
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: puma
|
|
27
|
+
requirement: !ruby/object:Gem::Requirement
|
|
28
|
+
requirements:
|
|
29
|
+
- - ">="
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '0'
|
|
32
|
+
type: :runtime
|
|
33
|
+
prerelease: false
|
|
34
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '0'
|
|
39
|
+
- !ruby/object:Gem::Dependency
|
|
40
|
+
name: pg
|
|
41
|
+
requirement: !ruby/object:Gem::Requirement
|
|
42
|
+
requirements:
|
|
43
|
+
- - ">="
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
type: :runtime
|
|
47
|
+
prerelease: false
|
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
49
|
+
requirements:
|
|
50
|
+
- - ">="
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '0'
|
|
53
|
+
- !ruby/object:Gem::Dependency
|
|
54
|
+
name: listen
|
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '0'
|
|
60
|
+
type: :runtime
|
|
61
|
+
prerelease: false
|
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
- - ">="
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: '0'
|
|
67
|
+
- !ruby/object:Gem::Dependency
|
|
68
|
+
name: letter_opener
|
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
|
70
|
+
requirements:
|
|
71
|
+
- - ">="
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: '0'
|
|
74
|
+
type: :runtime
|
|
75
|
+
prerelease: false
|
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
77
|
+
requirements:
|
|
78
|
+
- - ">="
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '0'
|
|
81
|
+
description: A mixin for a Rails application's config/application.rb that centralizes
|
|
82
|
+
the config.* settings used to run a local development server, so they don't have
|
|
83
|
+
to be duplicated across projects.
|
|
84
|
+
email: ethan@suchsoftware.com
|
|
85
|
+
executables: []
|
|
86
|
+
extensions: []
|
|
87
|
+
extra_rdoc_files: []
|
|
88
|
+
files:
|
|
89
|
+
- lib/rails_application
|
|
90
|
+
- lib/rails_application/development
|
|
91
|
+
- lib/rails_application/development/development.rb
|
|
92
|
+
- lib/rails_application/development.rb
|
|
93
|
+
homepage: https://gitlab.com/such-software/rails-application-development
|
|
94
|
+
licenses:
|
|
95
|
+
- MIT
|
|
96
|
+
metadata: {}
|
|
97
|
+
rdoc_options: []
|
|
98
|
+
require_paths:
|
|
99
|
+
- lib
|
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
|
+
requirements:
|
|
102
|
+
- - ">="
|
|
103
|
+
- !ruby/object:Gem::Version
|
|
104
|
+
version: 4.0.0
|
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
110
|
+
requirements: []
|
|
111
|
+
rubygems_version: 4.0.16
|
|
112
|
+
specification_version: 4
|
|
113
|
+
summary: Shared Rails development-environment configuration
|
|
114
|
+
test_files: []
|