railties 5.2.8.1 → 6.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of railties might be problematic. Click here for more details.

Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +182 -223
  3. data/MIT-LICENSE +1 -1
  4. data/RDOC_MAIN.rdoc +35 -28
  5. data/README.rdoc +1 -1
  6. data/lib/minitest/rails_plugin.rb +6 -10
  7. data/lib/rails/all.rb +4 -0
  8. data/lib/rails/api/generator.rb +2 -1
  9. data/lib/rails/api/task.rb +16 -0
  10. data/lib/rails/app_loader.rb +1 -1
  11. data/lib/rails/app_updater.rb +3 -1
  12. data/lib/rails/application/configuration.rb +54 -12
  13. data/lib/rails/application/default_middleware_stack.rb +2 -0
  14. data/lib/rails/application.rb +21 -45
  15. data/lib/rails/backtrace_cleaner.rb +5 -17
  16. data/lib/rails/code_statistics.rb +3 -3
  17. data/lib/rails/command/actions.rb +0 -10
  18. data/lib/rails/command/base.rb +1 -5
  19. data/lib/rails/command/behavior.rb +4 -46
  20. data/lib/rails/command/environment_argument.rb +1 -11
  21. data/lib/rails/command/spellchecker.rb +58 -0
  22. data/lib/rails/command.rb +11 -10
  23. data/lib/rails/commands/credentials/USAGE +19 -1
  24. data/lib/rails/commands/credentials/credentials_command.rb +42 -23
  25. data/lib/rails/commands/db/system/change/change_command.rb +20 -0
  26. data/lib/rails/commands/dbconsole/dbconsole_command.rb +2 -2
  27. data/lib/rails/commands/dev/dev_command.rb +17 -0
  28. data/lib/rails/commands/encrypted/encrypted_command.rb +2 -3
  29. data/lib/rails/commands/help/help_command.rb +1 -1
  30. data/lib/rails/commands/initializers/initializers_command.rb +16 -0
  31. data/lib/rails/commands/new/new_command.rb +2 -2
  32. data/lib/rails/commands/notes/notes_command.rb +39 -0
  33. data/lib/rails/commands/plugin/plugin_command.rb +1 -1
  34. data/lib/rails/commands/routes/routes_command.rb +37 -0
  35. data/lib/rails/commands/runner/runner_command.rb +6 -6
  36. data/lib/rails/commands/secrets/USAGE +3 -3
  37. data/lib/rails/commands/secrets/secrets_command.rb +3 -3
  38. data/lib/rails/commands/server/server_command.rb +109 -48
  39. data/lib/rails/configuration.rb +1 -7
  40. data/lib/rails/engine/configuration.rb +3 -1
  41. data/lib/rails/engine.rb +3 -9
  42. data/lib/rails/gem_version.rb +4 -4
  43. data/lib/rails/generators/actions.rb +48 -37
  44. data/lib/rails/generators/app_base.rb +49 -89
  45. data/lib/rails/generators/app_name.rb +50 -0
  46. data/lib/rails/generators/base.rb +0 -4
  47. data/lib/rails/generators/database.rb +57 -0
  48. data/lib/rails/generators/erb/mailer/mailer_generator.rb +1 -1
  49. data/lib/rails/generators/erb/scaffold/templates/index.html.erb.tt +1 -1
  50. data/lib/rails/generators/erb/scaffold/templates/show.html.erb.tt +1 -1
  51. data/lib/rails/generators/generated_attribute.rb +17 -17
  52. data/lib/rails/generators/model_helpers.rb +8 -1
  53. data/lib/rails/generators/named_base.rb +1 -5
  54. data/lib/rails/generators/rails/app/app_generator.rb +37 -72
  55. data/lib/rails/generators/rails/app/templates/Gemfile.tt +3 -6
  56. data/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt +0 -3
  57. data/lib/rails/generators/rails/app/templates/app/{assets/javascripts/cable.js.tt → javascript/channels/consumer.js} +2 -9
  58. data/lib/rails/generators/rails/app/templates/app/javascript/channels/index.js +5 -0
  59. data/lib/rails/generators/rails/app/templates/app/javascript/packs/application.js.tt +15 -0
  60. data/lib/rails/generators/rails/app/templates/app/jobs/application_job.rb.tt +5 -0
  61. data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +4 -4
  62. data/lib/rails/generators/rails/app/templates/bin/setup.tt +4 -5
  63. data/lib/rails/generators/rails/app/templates/bin/update.tt +6 -7
  64. data/lib/rails/generators/rails/app/templates/config/application.rb.tt +2 -0
  65. data/lib/rails/generators/rails/app/templates/config/cable.yml.tt +1 -1
  66. data/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml.tt +2 -2
  67. data/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml.tt +2 -2
  68. data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml.tt +2 -2
  69. data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml.tt +3 -3
  70. data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml.tt +3 -3
  71. data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt +4 -4
  72. data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml.tt +2 -2
  73. data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml.tt +6 -6
  74. data/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml.tt +2 -2
  75. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +3 -2
  76. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +5 -12
  77. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +6 -2
  78. data/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt +1 -1
  79. data/lib/rails/generators/rails/app/templates/config/initializers/content_security_policy.rb.tt +4 -0
  80. data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt +33 -0
  81. data/lib/rails/generators/rails/app/templates/config/locales/en.yml +1 -1
  82. data/lib/rails/generators/rails/app/templates/config/puma.rb.tt +3 -5
  83. data/lib/rails/generators/rails/app/templates/config/routes.rb.tt +1 -1
  84. data/lib/rails/generators/rails/app/templates/config/spring.rb.tt +6 -6
  85. data/lib/rails/generators/rails/app/templates/gitignore.tt +2 -7
  86. data/lib/rails/generators/rails/app/templates/package.json.tt +7 -1
  87. data/lib/rails/generators/rails/app/templates/ruby-version.tt +1 -1
  88. data/lib/rails/generators/rails/app/templates/test/channels/application_cable/connection_test.rb.tt +11 -0
  89. data/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt +7 -0
  90. data/lib/rails/generators/rails/assets/USAGE +1 -4
  91. data/lib/rails/generators/rails/assets/assets_generator.rb +0 -8
  92. data/lib/rails/generators/rails/controller/controller_generator.rb +11 -1
  93. data/lib/rails/generators/rails/credentials/credentials_generator.rb +7 -8
  94. data/lib/rails/generators/rails/db/system/change/change_generator.rb +55 -0
  95. data/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb +4 -5
  96. data/lib/rails/generators/rails/helper/helper_generator.rb +5 -0
  97. data/lib/rails/generators/rails/plugin/plugin_generator.rb +9 -18
  98. data/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt +1 -1
  99. data/lib/rails/generators/rails/plugin/templates/app/helpers/%namespaced_name%/application_helper.rb.tt +1 -1
  100. data/lib/rails/generators/rails/plugin/templates/app/jobs/%namespaced_name%/application_job.rb.tt +1 -1
  101. data/lib/rails/generators/rails/plugin/templates/app/mailers/%namespaced_name%/application_mailer.rb.tt +1 -1
  102. data/lib/rails/generators/rails/plugin/templates/app/models/%namespaced_name%/application_record.rb.tt +1 -1
  103. data/lib/rails/generators/rails/plugin/templates/gitignore.tt +1 -1
  104. data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/engine.rb.tt +1 -1
  105. data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/railtie.rb.tt +1 -1
  106. data/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt +1 -2
  107. data/lib/rails/generators/resource_helpers.rb +1 -6
  108. data/lib/rails/generators/test_unit/integration/integration_generator.rb +6 -0
  109. data/lib/rails/generators/test_unit/job/job_generator.rb +5 -0
  110. data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +1 -1
  111. data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +1 -1
  112. data/lib/rails/generators/test_unit/system/system_generator.rb +5 -0
  113. data/lib/rails/generators/testing/behaviour.rb +3 -0
  114. data/lib/rails/generators.rb +11 -12
  115. data/lib/rails/info.rb +2 -2
  116. data/lib/rails/info_controller.rb +1 -1
  117. data/lib/rails/mailers_controller.rb +1 -1
  118. data/lib/rails/paths.rb +19 -9
  119. data/lib/rails/railtie.rb +1 -1
  120. data/lib/rails/ruby_version_check.rb +3 -3
  121. data/lib/rails/secrets.rb +0 -1
  122. data/lib/rails/source_annotation_extractor.rb +125 -117
  123. data/lib/rails/tasks/annotations.rake +9 -9
  124. data/lib/rails/tasks/dev.rake +5 -4
  125. data/lib/rails/tasks/framework.rake +5 -1
  126. data/lib/rails/tasks/initializers.rake +5 -4
  127. data/lib/rails/tasks/log.rake +0 -1
  128. data/lib/rails/tasks/routes.rake +4 -26
  129. data/lib/rails/tasks/statistics.rake +1 -0
  130. data/lib/rails/tasks/yarn.rake +1 -1
  131. data/lib/rails/templates/rails/welcome/index.html.erb +2 -2
  132. data/lib/rails/test_help.rb +11 -9
  133. data/lib/rails/test_unit/reporter.rb +1 -1
  134. data/lib/rails/test_unit/runner.rb +5 -5
  135. data/lib/rails/test_unit/testing.rake +1 -1
  136. metadata +33 -27
  137. data/lib/rails/commands/encrypted/USAGE +0 -28
  138. data/lib/rails/generators/js/assets/assets_generator.rb +0 -15
  139. data/lib/rails/generators/js/assets/templates/javascript.js +0 -2
  140. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +0 -22
  141. data/lib/rails/generators/rails/app/templates/bin/bundle.tt +0 -2
  142. data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_5_2.rb.tt +0 -38
  143. data/lib/rails/generators/rails/assets/templates/javascript.js +0 -2
@@ -20,27 +20,29 @@ if defined?(ActiveRecord::Base)
20
20
  exit 1
21
21
  end
22
22
 
23
- module ActiveSupport
24
- class TestCase
25
- include ActiveRecord::TestFixtures
26
- self.fixture_path = "#{Rails.root}/test/fixtures/"
27
- self.file_fixture_path = fixture_path + "files"
28
- end
23
+ ActiveSupport.on_load(:active_support_test_case) do
24
+ include ActiveRecord::TestDatabases
25
+ include ActiveRecord::TestFixtures
26
+
27
+ self.fixture_path = "#{Rails.root}/test/fixtures/"
28
+ self.file_fixture_path = fixture_path + "files"
29
29
  end
30
30
 
31
- ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
31
+ ActiveSupport.on_load(:action_dispatch_integration_test) do
32
+ self.fixture_path = ActiveSupport::TestCase.fixture_path
33
+ end
32
34
  end
33
35
 
34
36
  # :enddoc:
35
37
 
36
- class ActionController::TestCase
38
+ ActiveSupport.on_load(:action_controller_test_case) do
37
39
  def before_setup # :nodoc:
38
40
  @routes = Rails.application.routes
39
41
  super
40
42
  end
41
43
  end
42
44
 
43
- class ActionDispatch::IntegrationTest
45
+ ActiveSupport.on_load(:action_dispatch_integration_test) do
44
46
  def before_setup # :nodoc:
45
47
  @routes = Rails.application.routes
46
48
  super
@@ -5,7 +5,7 @@ require "minitest"
5
5
 
6
6
  module Rails
7
7
  class TestUnitReporter < Minitest::StatisticsReporter
8
- class_attribute :executable, default: "bin/rails test"
8
+ class_attribute :executable, default: "rails test"
9
9
 
10
10
  def record(result)
11
11
  super
@@ -12,8 +12,8 @@ module Rails
12
12
 
13
13
  class << self
14
14
  def attach_before_load_options(opts)
15
- opts.on("--warnings", "-w", "Run with Ruby warnings enabled") {}
16
- opts.on("-e", "--environment ENV", "Run tests in the ENV environment") {}
15
+ opts.on("--warnings", "-w", "Run with Ruby warnings enabled") { }
16
+ opts.on("-e", "--environment ENV", "Run tests in the ENV environment") { }
17
17
  end
18
18
 
19
19
  def parse_options(argv)
@@ -63,7 +63,7 @@ module Rails
63
63
  # Extract absolute and relative paths but skip -n /.*/ regexp filters.
64
64
  argv.select { |arg| arg =~ %r%^/?\w+/% && !arg.end_with?("/") }.map do |path|
65
65
  case
66
- when path =~ /(:\d+)+$/
66
+ when /(:\d+)+$/.match?(path)
67
67
  file, *lines = path.split(":")
68
68
  filters << [ file, lines ]
69
69
  file
@@ -87,7 +87,7 @@ module Rails
87
87
  @filters = [ @named_filter, *derive_line_filters(patterns) ].compact
88
88
  end
89
89
 
90
- # Minitest uses === to find matching filters.
90
+ # minitest uses === to find matching filters.
91
91
  def ===(method)
92
92
  @filters.any? { |filter| filter === method }
93
93
  end
@@ -96,7 +96,7 @@ module Rails
96
96
  def derive_named_filter(filter)
97
97
  if filter.respond_to?(:named_filter)
98
98
  filter.named_filter
99
- elsif filter =~ %r%/(.*)/% # Regexp filtering copied from Minitest.
99
+ elsif filter =~ %r%/(.*)/% # Regexp filtering copied from minitest.
100
100
  Regexp.new $1
101
101
  elsif filter.is_a?(String)
102
102
  filter
@@ -28,7 +28,7 @@ namespace :test do
28
28
  desc "Run tests quickly, but also reset db"
29
29
  task db: %w[db:test:prepare test]
30
30
 
31
- ["models", "helpers", "controllers", "mailers", "integration", "jobs"].each do |name|
31
+ ["models", "helpers", "channels", "controllers", "mailers", "integration", "jobs", "mailboxes"].each do |name|
32
32
  task name => "test:prepare" do
33
33
  $: << "test"
34
34
  Rails::TestUnit::Runner.rake_run(["test/#{name}"])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railties
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.8.1
4
+ version: 6.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-12 00:00:00.000000000 Z
11
+ date: 2019-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.8.1
19
+ version: 6.0.0.beta1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.8.1
26
+ version: 6.0.0.beta1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actionpack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 5.2.8.1
33
+ version: 6.0.0.beta1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 5.2.8.1
40
+ version: 6.0.0.beta1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.19.0
61
+ version: 0.20.3
62
62
  - - "<"
63
63
  - !ruby/object:Gem::Version
64
64
  version: '2.0'
@@ -68,7 +68,7 @@ dependencies:
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: 0.19.0
71
+ version: 0.20.3
72
72
  - - "<"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '2.0'
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
- version: 5.2.8.1
95
+ version: 6.0.0.beta1
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - '='
101
101
  - !ruby/object:Gem::Version
102
- version: 5.2.8.1
102
+ version: 6.0.0.beta1
103
103
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
104
104
  email: david@loudthinking.com
105
105
  executables:
@@ -136,21 +136,26 @@ files:
136
136
  - lib/rails/command/behavior.rb
137
137
  - lib/rails/command/environment_argument.rb
138
138
  - lib/rails/command/helpers/editor.rb
139
+ - lib/rails/command/spellchecker.rb
139
140
  - lib/rails/commands.rb
140
141
  - lib/rails/commands/application/application_command.rb
141
142
  - lib/rails/commands/console/console_command.rb
142
143
  - lib/rails/commands/credentials/USAGE
143
144
  - lib/rails/commands/credentials/credentials_command.rb
145
+ - lib/rails/commands/db/system/change/change_command.rb
144
146
  - lib/rails/commands/dbconsole/dbconsole_command.rb
145
147
  - lib/rails/commands/destroy/destroy_command.rb
146
- - lib/rails/commands/encrypted/USAGE
148
+ - lib/rails/commands/dev/dev_command.rb
147
149
  - lib/rails/commands/encrypted/encrypted_command.rb
148
150
  - lib/rails/commands/generate/generate_command.rb
149
151
  - lib/rails/commands/help/USAGE
150
152
  - lib/rails/commands/help/help_command.rb
153
+ - lib/rails/commands/initializers/initializers_command.rb
151
154
  - lib/rails/commands/new/new_command.rb
155
+ - lib/rails/commands/notes/notes_command.rb
152
156
  - lib/rails/commands/plugin/plugin_command.rb
153
157
  - lib/rails/commands/rake/rake_command.rb
158
+ - lib/rails/commands/routes/routes_command.rb
154
159
  - lib/rails/commands/runner/USAGE
155
160
  - lib/rails/commands/runner/runner_command.rb
156
161
  - lib/rails/commands/secrets/USAGE
@@ -173,10 +178,12 @@ files:
173
178
  - lib/rails/generators/actions/create_migration.rb
174
179
  - lib/rails/generators/active_model.rb
175
180
  - lib/rails/generators/app_base.rb
181
+ - lib/rails/generators/app_name.rb
176
182
  - lib/rails/generators/base.rb
177
183
  - lib/rails/generators/css/assets/assets_generator.rb
178
184
  - lib/rails/generators/css/assets/templates/stylesheet.css
179
185
  - lib/rails/generators/css/scaffold/scaffold_generator.rb
186
+ - lib/rails/generators/database.rb
180
187
  - lib/rails/generators/erb.rb
181
188
  - lib/rails/generators/erb/controller/controller_generator.rb
182
189
  - lib/rails/generators/erb/controller/templates/view.html.erb.tt
@@ -192,8 +199,6 @@ files:
192
199
  - lib/rails/generators/erb/scaffold/templates/new.html.erb.tt
193
200
  - lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
194
201
  - lib/rails/generators/generated_attribute.rb
195
- - lib/rails/generators/js/assets/assets_generator.rb
196
- - lib/rails/generators/js/assets/templates/javascript.js
197
202
  - lib/rails/generators/migration.rb
198
203
  - lib/rails/generators/model_helpers.rb
199
204
  - lib/rails/generators/named_base.rb
@@ -203,20 +208,20 @@ files:
203
208
  - lib/rails/generators/rails/app/templates/README.md.tt
204
209
  - lib/rails/generators/rails/app/templates/Rakefile.tt
205
210
  - lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt
206
- - lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt
207
- - lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.js.tt
208
211
  - lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css.tt
209
212
  - lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb.tt
210
213
  - lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb.tt
211
214
  - lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb.tt
212
215
  - lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb.tt
216
+ - lib/rails/generators/rails/app/templates/app/javascript/channels/consumer.js
217
+ - lib/rails/generators/rails/app/templates/app/javascript/channels/index.js
218
+ - lib/rails/generators/rails/app/templates/app/javascript/packs/application.js.tt
213
219
  - lib/rails/generators/rails/app/templates/app/jobs/application_job.rb.tt
214
220
  - lib/rails/generators/rails/app/templates/app/mailers/application_mailer.rb.tt
215
221
  - lib/rails/generators/rails/app/templates/app/models/application_record.rb.tt
216
222
  - lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt
217
223
  - lib/rails/generators/rails/app/templates/app/views/layouts/mailer.html.erb.tt
218
224
  - lib/rails/generators/rails/app/templates/app/views/layouts/mailer.text.erb.tt
219
- - lib/rails/generators/rails/app/templates/bin/bundle.tt
220
225
  - lib/rails/generators/rails/app/templates/bin/rails.tt
221
226
  - lib/rails/generators/rails/app/templates/bin/rake.tt
222
227
  - lib/rails/generators/rails/app/templates/bin/setup.tt
@@ -250,7 +255,7 @@ files:
250
255
  - lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt
251
256
  - lib/rails/generators/rails/app/templates/config/initializers/inflections.rb.tt
252
257
  - lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb.tt
253
- - lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_5_2.rb.tt
258
+ - lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt
254
259
  - lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
255
260
  - lib/rails/generators/rails/app/templates/config/locales/en.yml
256
261
  - lib/rails/generators/rails/app/templates/config/puma.rb.tt
@@ -269,16 +274,17 @@ files:
269
274
  - lib/rails/generators/rails/app/templates/public/robots.txt
270
275
  - lib/rails/generators/rails/app/templates/ruby-version.tt
271
276
  - lib/rails/generators/rails/app/templates/test/application_system_test_case.rb.tt
277
+ - lib/rails/generators/rails/app/templates/test/channels/application_cable/connection_test.rb.tt
272
278
  - lib/rails/generators/rails/app/templates/test/test_helper.rb.tt
273
279
  - lib/rails/generators/rails/application_record/application_record_generator.rb
274
280
  - lib/rails/generators/rails/assets/USAGE
275
281
  - lib/rails/generators/rails/assets/assets_generator.rb
276
- - lib/rails/generators/rails/assets/templates/javascript.js
277
282
  - lib/rails/generators/rails/assets/templates/stylesheet.css
278
283
  - lib/rails/generators/rails/controller/USAGE
279
284
  - lib/rails/generators/rails/controller/controller_generator.rb
280
285
  - lib/rails/generators/rails/controller/templates/controller.rb.tt
281
286
  - lib/rails/generators/rails/credentials/credentials_generator.rb
287
+ - lib/rails/generators/rails/db/system/change/change_generator.rb
282
288
  - lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb
283
289
  - lib/rails/generators/rails/encryption_key_file/encryption_key_file_generator.rb
284
290
  - lib/rails/generators/rails/generator/USAGE
@@ -422,9 +428,9 @@ homepage: http://rubyonrails.org
422
428
  licenses:
423
429
  - MIT
424
430
  metadata:
425
- source_code_uri: https://github.com/rails/rails/tree/v5.2.8.1/railties
426
- changelog_uri: https://github.com/rails/rails/blob/v5.2.8.1/railties/CHANGELOG.md
427
- post_install_message:
431
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.0.beta1/railties
432
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.0.beta1/railties/CHANGELOG.md
433
+ post_install_message:
428
434
  rdoc_options:
429
435
  - "--exclude"
430
436
  - "."
@@ -434,15 +440,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
434
440
  requirements:
435
441
  - - ">="
436
442
  - !ruby/object:Gem::Version
437
- version: 2.2.2
443
+ version: 2.5.0
438
444
  required_rubygems_version: !ruby/object:Gem::Requirement
439
445
  requirements:
440
- - - ">="
446
+ - - ">"
441
447
  - !ruby/object:Gem::Version
442
- version: '0'
448
+ version: 1.3.1
443
449
  requirements: []
444
- rubygems_version: 3.3.3
445
- signing_key:
450
+ rubygems_version: 3.0.1
451
+ signing_key:
446
452
  specification_version: 4
447
453
  summary: Tools for creating, working with, and running Rails applications.
448
454
  test_files: []
@@ -1,28 +0,0 @@
1
- === Storing Encrypted Files in Source Control
2
-
3
- The Rails `encrypted` commands provide access to encrypted files or configurations.
4
- See the `Rails.application.encrypted` documentation for using them in your app.
5
-
6
- === Encryption Keys
7
-
8
- By default, Rails looks for the encryption key in `config/master.key` or
9
- `ENV["RAILS_MASTER_KEY"]`, but that lookup can be overriden with `--key`:
10
-
11
- rails encrypted:edit config/encrypted_file.yml.enc --key config/encrypted_file.key
12
-
13
- Don't commit the key! Add it to your source control's ignore file. If you use
14
- Git, Rails handles this for you.
15
-
16
- === Editing Files
17
-
18
- To edit or create an encrypted file use:
19
-
20
- rails encrypted:edit config/encrypted_file.yml.enc
21
-
22
- This opens a temporary file in `$EDITOR` with the decrypted contents for editing.
23
-
24
- === Viewing Files
25
-
26
- To print the decrypted contents of an encrypted file use:
27
-
28
- rails encrypted:show config/encrypted_file.yml.enc
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "rails/generators/named_base"
4
-
5
- module Js # :nodoc:
6
- module Generators # :nodoc:
7
- class AssetsGenerator < Rails::Generators::NamedBase # :nodoc:
8
- source_root File.expand_path("templates", __dir__)
9
-
10
- def copy_javascript
11
- copy_file "javascript.js", File.join("app/assets/javascripts", class_path, "#{file_name}.js")
12
- end
13
- end
14
- end
15
- end
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,22 +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, or any plugin's
5
- // vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- <% unless options[:skip_javascript] -%>
14
- //= require rails-ujs
15
- <% unless skip_active_storage? -%>
16
- //= require activestorage
17
- <% end -%>
18
- <% unless options[:skip_turbolinks] -%>
19
- //= require turbolinks
20
- <% end -%>
21
- <% end -%>
22
- //= require_tree .
@@ -1,2 +0,0 @@
1
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2
- load Gem.bin_path('bundler', 'bundle')
@@ -1,38 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains migration options to ease your Rails 5.2 upgrade.
4
- #
5
- # Once upgraded flip defaults one by one to migrate to the new default.
6
- #
7
- # Read the Guide for Upgrading Ruby on Rails for more info on each option.
8
-
9
- # Make Active Record use stable #cache_key alongside new #cache_version method.
10
- # This is needed for recyclable cache keys.
11
- # Rails.application.config.active_record.cache_versioning = true
12
-
13
- # Use AES-256-GCM authenticated encryption for encrypted cookies.
14
- # Also, embed cookie expiry in signed or encrypted cookies for increased security.
15
- #
16
- # This option is not backwards compatible with earlier Rails versions.
17
- # It's best enabled when your entire app is migrated and stable on 5.2.
18
- #
19
- # Existing cookies will be converted on read then written with the new scheme.
20
- # Rails.application.config.action_dispatch.use_authenticated_cookie_encryption = true
21
-
22
- # Use AES-256-GCM authenticated encryption as default cipher for encrypting messages
23
- # instead of AES-256-CBC, when use_authenticated_message_encryption is set to true.
24
- # Rails.application.config.active_support.use_authenticated_message_encryption = true
25
-
26
- # Add default protection from forgery to ActionController::Base instead of in
27
- # ApplicationController.
28
- # Rails.application.config.action_controller.default_protect_from_forgery = true
29
-
30
- # Store boolean values are in sqlite3 databases as 1 and 0 instead of 't' and
31
- # 'f' after migrating old data.
32
- # Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
33
-
34
- # Use SHA-1 instead of MD5 to generate non-sensitive digests, such as the ETag header.
35
- # Rails.application.config.active_support.use_sha1_digests = true
36
-
37
- # Make `form_with` generate id attributes for any generated HTML tags.
38
- # Rails.application.config.action_view.form_with_generates_ids = true
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.