railties 5.0.7.2 → 5.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +77 -567
  3. data/MIT-LICENSE +1 -1
  4. data/RDOC_MAIN.rdoc +3 -3
  5. data/README.rdoc +1 -1
  6. data/exe/rails +2 -2
  7. data/lib/rails.rb +18 -18
  8. data/lib/rails/all.rb +1 -1
  9. data/lib/rails/api/generator.rb +28 -0
  10. data/lib/rails/api/task.rb +54 -42
  11. data/lib/rails/app_loader.rb +9 -9
  12. data/lib/rails/application.rb +30 -35
  13. data/lib/rails/application/bootstrap.rb +13 -7
  14. data/lib/rails/application/configuration.rb +30 -53
  15. data/lib/rails/application/default_middleware_stack.rb +3 -5
  16. data/lib/rails/application/finisher.rb +16 -7
  17. data/lib/rails/application/routes_reloader.rb +16 -1
  18. data/lib/rails/application_controller.rb +10 -10
  19. data/lib/rails/backtrace_cleaner.rb +5 -5
  20. data/lib/rails/cli.rb +7 -5
  21. data/lib/rails/code_statistics.rb +16 -17
  22. data/lib/rails/code_statistics_calculator.rb +3 -3
  23. data/lib/rails/command.rb +111 -0
  24. data/lib/rails/command/actions.rb +42 -0
  25. data/lib/rails/command/base.rb +149 -0
  26. data/lib/rails/command/behavior.rb +123 -0
  27. data/lib/rails/command/environment_argument.rb +34 -0
  28. data/lib/rails/commands.rb +2 -4
  29. data/lib/rails/commands/application/application_command.rb +29 -0
  30. data/lib/rails/commands/console/console_command.rb +89 -0
  31. data/lib/rails/commands/dbconsole/dbconsole_command.rb +155 -0
  32. data/lib/rails/commands/destroy/destroy_command.rb +21 -0
  33. data/lib/rails/commands/generate/generate_command.rb +23 -0
  34. data/lib/rails/commands/help/USAGE +15 -0
  35. data/lib/rails/commands/help/help_command.rb +13 -0
  36. data/lib/rails/commands/new/new_command.rb +15 -0
  37. data/lib/rails/commands/plugin/plugin_command.rb +43 -0
  38. data/lib/rails/commands/rake/rake_command.rb +49 -0
  39. data/lib/rails/commands/runner/USAGE +17 -0
  40. data/lib/rails/commands/runner/runner_command.rb +46 -0
  41. data/lib/rails/commands/secrets/USAGE +52 -0
  42. data/lib/rails/commands/secrets/secrets_command.rb +36 -0
  43. data/lib/rails/commands/server/server_command.rb +177 -0
  44. data/lib/rails/commands/test/test_command.rb +20 -0
  45. data/lib/rails/commands/version/version_command.rb +9 -0
  46. data/lib/rails/configuration.rb +7 -7
  47. data/lib/rails/console/app.rb +4 -4
  48. data/lib/rails/dev_caching.rb +8 -8
  49. data/lib/rails/engine.rb +62 -63
  50. data/lib/rails/engine/commands.rb +6 -13
  51. data/lib/rails/engine/configuration.rb +2 -2
  52. data/lib/rails/gem_version.rb +3 -3
  53. data/lib/rails/generators.rb +229 -313
  54. data/lib/rails/generators/actions.rb +20 -21
  55. data/lib/rails/generators/actions/create_migration.rb +24 -25
  56. data/lib/rails/generators/active_model.rb +3 -3
  57. data/lib/rails/generators/app_base.rb +123 -93
  58. data/lib/rails/generators/base.rb +32 -33
  59. data/lib/rails/generators/css/assets/assets_generator.rb +1 -1
  60. data/lib/rails/generators/erb.rb +14 -14
  61. data/lib/rails/generators/erb/controller/controller_generator.rb +1 -1
  62. data/lib/rails/generators/erb/mailer/mailer_generator.rb +12 -12
  63. data/lib/rails/generators/erb/scaffold/scaffold_generator.rb +3 -3
  64. data/lib/rails/generators/generated_attribute.rb +27 -27
  65. data/lib/rails/generators/js/assets/assets_generator.rb +1 -1
  66. data/lib/rails/generators/migration.rb +8 -8
  67. data/lib/rails/generators/model_helpers.rb +2 -2
  68. data/lib/rails/generators/named_base.rb +56 -56
  69. data/lib/rails/generators/rails/app/app_generator.rb +98 -81
  70. data/lib/rails/generators/rails/app/templates/Gemfile +7 -2
  71. data/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt +0 -2
  72. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +6 -4
  73. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.js +1 -1
  74. data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +2 -2
  75. data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +1 -1
  76. data/lib/rails/generators/rails/app/templates/bin/{setup → setup.tt} +6 -0
  77. data/lib/rails/generators/rails/app/templates/bin/{update → update.tt} +2 -1
  78. data/lib/rails/generators/rails/app/templates/bin/yarn +9 -0
  79. data/lib/rails/generators/rails/app/templates/config/cable.yml +1 -0
  80. data/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +1 -0
  81. data/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +1 -0
  82. data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +1 -0
  83. data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +2 -1
  84. data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +1 -0
  85. data/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +1 -0
  86. data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +2 -2
  87. data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +1 -0
  88. data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +1 -1
  89. data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +1 -1
  90. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +1 -1
  91. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +10 -1
  92. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +1 -1
  93. data/lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb +4 -6
  94. data/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt +8 -3
  95. data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt +6 -5
  96. data/lib/rails/generators/rails/app/templates/config/locales/en.yml +10 -0
  97. data/lib/rails/generators/rails/app/templates/config/puma.rb +16 -7
  98. data/lib/rails/generators/rails/app/templates/config/secrets.yml +12 -2
  99. data/lib/rails/generators/rails/app/templates/gitignore +5 -1
  100. data/lib/rails/generators/rails/app/templates/package.json +5 -0
  101. data/lib/rails/generators/rails/app/templates/public/404.html +6 -6
  102. data/lib/rails/generators/rails/app/templates/public/422.html +6 -6
  103. data/lib/rails/generators/rails/app/templates/public/500.html +6 -6
  104. data/lib/rails/generators/rails/app/templates/public/robots.txt +0 -4
  105. data/lib/rails/generators/rails/app/templates/test/application_system_test_case.rb +5 -0
  106. data/lib/rails/generators/rails/app/templates/test/test_helper.rb +0 -1
  107. data/lib/rails/generators/rails/assets/assets_generator.rb +10 -10
  108. data/lib/rails/generators/rails/controller/controller_generator.rb +15 -12
  109. data/lib/rails/generators/rails/encrypted_secrets/encrypted_secrets_generator.rb +66 -0
  110. data/lib/rails/generators/rails/encrypted_secrets/templates/config/secrets.yml.enc +3 -0
  111. data/lib/rails/generators/rails/generator/generator_generator.rb +2 -3
  112. data/lib/rails/generators/rails/helper/helper_generator.rb +1 -1
  113. data/lib/rails/generators/rails/model/model_generator.rb +1 -1
  114. data/lib/rails/generators/rails/plugin/plugin_generator.rb +21 -26
  115. data/lib/rails/generators/rails/plugin/templates/bin/rails.tt +1 -0
  116. data/lib/rails/generators/rails/plugin/templates/bin/test.tt +3 -9
  117. data/lib/rails/generators/rails/plugin/templates/test/application_system_test_case.rb +5 -0
  118. data/lib/rails/generators/rails/plugin/templates/test/test_helper.rb +0 -3
  119. data/lib/rails/generators/rails/resource/resource_generator.rb +2 -2
  120. data/lib/rails/generators/rails/scaffold/scaffold_generator.rb +5 -1
  121. data/lib/rails/generators/rails/scaffold/templates/scaffold.css +4 -8
  122. data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +2 -3
  123. data/lib/rails/generators/rails/system_test/USAGE +10 -0
  124. data/lib/rails/generators/rails/system_test/system_test_generator.rb +7 -0
  125. data/lib/rails/generators/rails/task/task_generator.rb +1 -2
  126. data/lib/rails/generators/resource_helpers.rb +13 -10
  127. data/lib/rails/generators/test_case.rb +5 -6
  128. data/lib/rails/generators/test_unit.rb +1 -1
  129. data/lib/rails/generators/test_unit/controller/controller_generator.rb +3 -3
  130. data/lib/rails/generators/test_unit/generator/generator_generator.rb +3 -3
  131. data/lib/rails/generators/test_unit/helper/helper_generator.rb +1 -1
  132. data/lib/rails/generators/test_unit/integration/integration_generator.rb +2 -2
  133. data/lib/rails/generators/test_unit/job/job_generator.rb +3 -3
  134. data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +5 -5
  135. data/lib/rails/generators/test_unit/model/model_generator.rb +3 -4
  136. data/lib/rails/generators/test_unit/plugin/plugin_generator.rb +2 -2
  137. data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +3 -3
  138. data/lib/rails/generators/test_unit/system/system_generator.rb +17 -0
  139. data/lib/rails/generators/test_unit/system/templates/application_system_test_case.rb +5 -0
  140. data/lib/rails/generators/test_unit/system/templates/system_test.rb +9 -0
  141. data/lib/rails/generators/testing/assertions.rb +4 -4
  142. data/lib/rails/generators/testing/behaviour.rb +20 -21
  143. data/lib/rails/info.rb +20 -20
  144. data/lib/rails/info_controller.rb +15 -15
  145. data/lib/rails/initializable.rb +6 -2
  146. data/lib/rails/mailers_controller.rb +11 -11
  147. data/lib/rails/paths.rb +4 -5
  148. data/lib/rails/plugin/test.rb +7 -0
  149. data/lib/rails/rack/logger.rb +44 -46
  150. data/lib/rails/railtie.rb +41 -38
  151. data/lib/rails/railtie/configurable.rb +6 -6
  152. data/lib/rails/railtie/configuration.rb +1 -1
  153. data/lib/rails/ruby_version_check.rb +1 -1
  154. data/lib/rails/secrets.rb +111 -0
  155. data/lib/rails/source_annotation_extractor.rb +15 -9
  156. data/lib/rails/tasks.rb +3 -2
  157. data/lib/rails/tasks/annotations.rake +3 -3
  158. data/lib/rails/tasks/dev.rake +2 -2
  159. data/lib/rails/tasks/engine.rake +4 -4
  160. data/lib/rails/tasks/framework.rake +4 -18
  161. data/lib/rails/tasks/initializers.rake +1 -1
  162. data/lib/rails/tasks/log.rake +14 -10
  163. data/lib/rails/tasks/middleware.rake +1 -1
  164. data/lib/rails/tasks/misc.rake +10 -10
  165. data/lib/rails/tasks/restart.rake +4 -4
  166. data/lib/rails/tasks/routes.rake +3 -12
  167. data/lib/rails/tasks/statistics.rake +3 -3
  168. data/lib/rails/tasks/tmp.rake +7 -7
  169. data/lib/rails/tasks/yarn.rake +11 -0
  170. data/lib/rails/templates/rails/mailers/email.html.erb +4 -1
  171. data/lib/rails/test_help.rb +28 -10
  172. data/lib/rails/test_unit/line_filtering.rb +69 -3
  173. data/lib/rails/test_unit/minitest_plugin.rb +139 -0
  174. data/lib/rails/test_unit/railtie.rb +2 -1
  175. data/lib/rails/test_unit/reporter.rb +3 -8
  176. data/lib/rails/test_unit/test_requirer.rb +28 -0
  177. data/lib/rails/test_unit/testing.rake +19 -14
  178. data/lib/rails/version.rb +1 -1
  179. data/lib/rails/welcome_controller.rb +1 -1
  180. metadata +53 -30
  181. data/lib/minitest/rails_plugin.rb +0 -49
  182. data/lib/rails/commands/application.rb +0 -17
  183. data/lib/rails/commands/commands_tasks.rb +0 -180
  184. data/lib/rails/commands/console.rb +0 -68
  185. data/lib/rails/commands/console_helper.rb +0 -34
  186. data/lib/rails/commands/dbconsole.rb +0 -173
  187. data/lib/rails/commands/destroy.rb +0 -11
  188. data/lib/rails/commands/generate.rb +0 -13
  189. data/lib/rails/commands/plugin.rb +0 -23
  190. data/lib/rails/commands/rake_proxy.rb +0 -41
  191. data/lib/rails/commands/runner.rb +0 -71
  192. data/lib/rails/commands/server.rb +0 -163
  193. data/lib/rails/commands/test.rb +0 -10
  194. data/lib/rails/engine/commands_tasks.rb +0 -118
  195. data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +0 -3
  196. data/lib/rails/rack/debugger.rb +0 -3
  197. data/lib/rails/test_unit/runner.rb +0 -141
@@ -1,7 +1,7 @@
1
1
  require "rails/test_unit/line_filtering"
2
2
 
3
3
  if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
4
- ENV["RAILS_ENV"] ||= Rake.application.options.show_tasks ? "development" : "test"
4
+ ENV["RAILS_ENV"] ||= "test"
5
5
  end
6
6
 
7
7
  module Rails
@@ -11,6 +11,7 @@ module Rails
11
11
  fixture_replacement: nil
12
12
 
13
13
  c.integration_tool :test_unit
14
+ c.system_tests :test_unit
14
15
  end
15
16
 
16
17
  initializer "test_unit.line_filtering" do
@@ -50,7 +50,7 @@ module Rails
50
50
  end
51
51
 
52
52
  def relative_path_for(file)
53
- file.sub(/^#{app_root}\/?/, '')
53
+ file.sub(/^#{app_root}\/?/, "")
54
54
  end
55
55
 
56
56
  private
@@ -68,16 +68,11 @@ module Rails
68
68
 
69
69
  def format_rerun_snippet(result)
70
70
  location, line = result.method(result.name).source_location
71
- "#{self.executable} #{relative_path_for(location)}:#{line}"
71
+ "#{executable} #{relative_path_for(location)}:#{line}"
72
72
  end
73
73
 
74
74
  def app_root
75
- @app_root ||=
76
- if defined?(ENGINE_ROOT)
77
- ENGINE_ROOT
78
- elsif Rails.respond_to?(:root)
79
- Rails.root
80
- end
75
+ @app_root ||= defined?(ENGINE_ROOT) ? ENGINE_ROOT : Rails.root
81
76
  end
82
77
 
83
78
  def colored_output?
@@ -0,0 +1,28 @@
1
+ require "active_support/core_ext/object/blank"
2
+ require "rake/file_list"
3
+
4
+ module Rails
5
+ class TestRequirer # :nodoc:
6
+ class << self
7
+ def require_files(patterns)
8
+ patterns = expand_patterns(patterns)
9
+
10
+ Rake::FileList[patterns.compact.presence || "test/**/*_test.rb"].to_a.each do |file|
11
+ require File.expand_path(file)
12
+ end
13
+ end
14
+
15
+ private
16
+ def expand_patterns(patterns)
17
+ patterns.map do |arg|
18
+ arg = arg.gsub(/(:\d+)+?$/, "")
19
+ if Dir.exist?(arg)
20
+ "#{arg}/**/*_test.rb"
21
+ else
22
+ arg
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -1,18 +1,18 @@
1
1
  gem "minitest"
2
2
  require "minitest"
3
- require_relative "runner"
3
+ require "rails/test_unit/minitest_plugin"
4
4
 
5
5
  task default: :test
6
6
 
7
7
  desc "Runs all tests in test folder"
8
8
  task :test do
9
9
  $: << "test"
10
-
11
- if ENV.key?("TEST")
12
- Rails::TestUnit::Runner.rake_run([ENV["TEST"]])
10
+ pattern = if ENV.key?("TEST")
11
+ ENV["TEST"]
13
12
  else
14
- Rails::TestUnit::Runner.rake_run
13
+ "test"
15
14
  end
15
+ Minitest.rake_run([pattern])
16
16
  end
17
17
 
18
18
  namespace :test do
@@ -21,30 +21,35 @@ namespace :test do
21
21
  # If used with Active Record, this task runs before the database schema is synchronized.
22
22
  end
23
23
 
24
- task :run => %w[test]
24
+ task run: %w[test]
25
25
 
26
26
  desc "Run tests quickly, but also reset db"
27
- task :db => %w[db:test:prepare test]
27
+ task db: %w[db:test:prepare test]
28
28
 
29
29
  ["models", "helpers", "controllers", "mailers", "integration", "jobs"].each do |name|
30
30
  task name => "test:prepare" do
31
31
  $: << "test"
32
- Rails::TestUnit::Runner.rake_run(["test/#{name}"])
32
+ Minitest.rake_run(["test/#{name}"])
33
33
  end
34
34
  end
35
35
 
36
- task :generators => "test:prepare" do
36
+ task generators: "test:prepare" do
37
+ $: << "test"
38
+ Minitest.rake_run(["test/lib/generators"])
39
+ end
40
+
41
+ task units: "test:prepare" do
37
42
  $: << "test"
38
- Rails::TestUnit::Runner.rake_run(["test/lib/generators"])
43
+ Minitest.rake_run(["test/models", "test/helpers", "test/unit"])
39
44
  end
40
45
 
41
- task :units => "test:prepare" do
46
+ task functionals: "test:prepare" do
42
47
  $: << "test"
43
- Rails::TestUnit::Runner.rake_run(["test/models", "test/helpers", "test/unit"])
48
+ Minitest.rake_run(["test/controllers", "test/mailers", "test/functional"])
44
49
  end
45
50
 
46
- task :functionals => "test:prepare" do
51
+ task system: "test:prepare" do
47
52
  $: << "test"
48
- Rails::TestUnit::Runner.rake_run(["test/controllers", "test/mailers", "test/functional"])
53
+ Minitest.rake_run(["test/system"])
49
54
  end
50
55
  end
@@ -1,4 +1,4 @@
1
- require_relative 'gem_version'
1
+ require_relative "gem_version"
2
2
 
3
3
  module Rails
4
4
  # Returns the version of the currently loaded Rails as a string.
@@ -1,4 +1,4 @@
1
- require 'rails/application_controller'
1
+ require "rails/application_controller"
2
2
 
3
3
  class Rails::WelcomeController < Rails::ApplicationController # :nodoc:
4
4
  layout false
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.0.7.2
4
+ version: 5.1.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2017-02-23 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.0.7.2
19
+ version: 5.1.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.0.7.2
26
+ version: 5.1.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.0.7.2
33
+ version: 5.1.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.0.7.2
40
+ version: 5.1.0.beta1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
- version: 5.0.7.2
95
+ version: 5.1.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.0.7.2
102
+ version: 5.1.0.beta1
103
103
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
104
104
  email: david@loudthinking.com
105
105
  executables:
@@ -112,9 +112,9 @@ files:
112
112
  - RDOC_MAIN.rdoc
113
113
  - README.rdoc
114
114
  - exe/rails
115
- - lib/minitest/rails_plugin.rb
116
115
  - lib/rails.rb
117
116
  - lib/rails/all.rb
117
+ - lib/rails/api/generator.rb
118
118
  - lib/rails/api/task.rb
119
119
  - lib/rails/app_loader.rb
120
120
  - lib/rails/application.rb
@@ -128,26 +128,35 @@ files:
128
128
  - lib/rails/cli.rb
129
129
  - lib/rails/code_statistics.rb
130
130
  - lib/rails/code_statistics_calculator.rb
131
+ - lib/rails/command.rb
132
+ - lib/rails/command/actions.rb
133
+ - lib/rails/command/base.rb
134
+ - lib/rails/command/behavior.rb
135
+ - lib/rails/command/environment_argument.rb
131
136
  - lib/rails/commands.rb
132
- - lib/rails/commands/application.rb
133
- - lib/rails/commands/commands_tasks.rb
134
- - lib/rails/commands/console.rb
135
- - lib/rails/commands/console_helper.rb
136
- - lib/rails/commands/dbconsole.rb
137
- - lib/rails/commands/destroy.rb
138
- - lib/rails/commands/generate.rb
139
- - lib/rails/commands/plugin.rb
140
- - lib/rails/commands/rake_proxy.rb
141
- - lib/rails/commands/runner.rb
142
- - lib/rails/commands/server.rb
143
- - lib/rails/commands/test.rb
137
+ - lib/rails/commands/application/application_command.rb
138
+ - lib/rails/commands/console/console_command.rb
139
+ - lib/rails/commands/dbconsole/dbconsole_command.rb
140
+ - lib/rails/commands/destroy/destroy_command.rb
141
+ - lib/rails/commands/generate/generate_command.rb
142
+ - lib/rails/commands/help/USAGE
143
+ - lib/rails/commands/help/help_command.rb
144
+ - lib/rails/commands/new/new_command.rb
145
+ - lib/rails/commands/plugin/plugin_command.rb
146
+ - lib/rails/commands/rake/rake_command.rb
147
+ - lib/rails/commands/runner/USAGE
148
+ - lib/rails/commands/runner/runner_command.rb
149
+ - lib/rails/commands/secrets/USAGE
150
+ - lib/rails/commands/secrets/secrets_command.rb
151
+ - lib/rails/commands/server/server_command.rb
152
+ - lib/rails/commands/test/test_command.rb
153
+ - lib/rails/commands/version/version_command.rb
144
154
  - lib/rails/configuration.rb
145
155
  - lib/rails/console/app.rb
146
156
  - lib/rails/console/helpers.rb
147
157
  - lib/rails/dev_caching.rb
148
158
  - lib/rails/engine.rb
149
159
  - lib/rails/engine/commands.rb
150
- - lib/rails/engine/commands_tasks.rb
151
160
  - lib/rails/engine/configuration.rb
152
161
  - lib/rails/engine/railties.rb
153
162
  - lib/rails/gem_version.rb
@@ -202,8 +211,9 @@ files:
202
211
  - lib/rails/generators/rails/app/templates/bin/bundle
203
212
  - lib/rails/generators/rails/app/templates/bin/rails
204
213
  - lib/rails/generators/rails/app/templates/bin/rake
205
- - lib/rails/generators/rails/app/templates/bin/setup
206
- - lib/rails/generators/rails/app/templates/bin/update
214
+ - lib/rails/generators/rails/app/templates/bin/setup.tt
215
+ - lib/rails/generators/rails/app/templates/bin/update.tt
216
+ - lib/rails/generators/rails/app/templates/bin/yarn
207
217
  - lib/rails/generators/rails/app/templates/config.ru
208
218
  - lib/rails/generators/rails/app/templates/config/application.rb
209
219
  - lib/rails/generators/rails/app/templates/config/boot.rb
@@ -232,7 +242,6 @@ files:
232
242
  - lib/rails/generators/rails/app/templates/config/initializers/inflections.rb
233
243
  - lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb
234
244
  - lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt
235
- - lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt
236
245
  - lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
237
246
  - lib/rails/generators/rails/app/templates/config/locales/en.yml
238
247
  - lib/rails/generators/rails/app/templates/config/puma.rb
@@ -241,6 +250,7 @@ files:
241
250
  - lib/rails/generators/rails/app/templates/config/spring.rb
242
251
  - lib/rails/generators/rails/app/templates/db/seeds.rb.tt
243
252
  - lib/rails/generators/rails/app/templates/gitignore
253
+ - lib/rails/generators/rails/app/templates/package.json
244
254
  - lib/rails/generators/rails/app/templates/public/404.html
245
255
  - lib/rails/generators/rails/app/templates/public/422.html
246
256
  - lib/rails/generators/rails/app/templates/public/500.html
@@ -248,6 +258,7 @@ files:
248
258
  - lib/rails/generators/rails/app/templates/public/apple-touch-icon.png
249
259
  - lib/rails/generators/rails/app/templates/public/favicon.ico
250
260
  - lib/rails/generators/rails/app/templates/public/robots.txt
261
+ - lib/rails/generators/rails/app/templates/test/application_system_test_case.rb
251
262
  - lib/rails/generators/rails/app/templates/test/test_helper.rb
252
263
  - lib/rails/generators/rails/assets/USAGE
253
264
  - lib/rails/generators/rails/assets/assets_generator.rb
@@ -256,6 +267,8 @@ files:
256
267
  - lib/rails/generators/rails/controller/USAGE
257
268
  - lib/rails/generators/rails/controller/controller_generator.rb
258
269
  - lib/rails/generators/rails/controller/templates/controller.rb
270
+ - lib/rails/generators/rails/encrypted_secrets/encrypted_secrets_generator.rb
271
+ - lib/rails/generators/rails/encrypted_secrets/templates/config/secrets.yml.enc
259
272
  - lib/rails/generators/rails/generator/USAGE
260
273
  - lib/rails/generators/rails/generator/generator_generator.rb
261
274
  - lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt
@@ -299,6 +312,7 @@ files:
299
312
  - lib/rails/generators/rails/plugin/templates/rails/routes.rb
300
313
  - lib/rails/generators/rails/plugin/templates/rails/stylesheets.css
301
314
  - lib/rails/generators/rails/plugin/templates/test/%namespaced_name%_test.rb
315
+ - lib/rails/generators/rails/plugin/templates/test/application_system_test_case.rb
302
316
  - lib/rails/generators/rails/plugin/templates/test/integration/navigation_test.rb
303
317
  - lib/rails/generators/rails/plugin/templates/test/test_helper.rb
304
318
  - lib/rails/generators/rails/resource/USAGE
@@ -311,6 +325,8 @@ files:
311
325
  - lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb
312
326
  - lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb
313
327
  - lib/rails/generators/rails/scaffold_controller/templates/controller.rb
328
+ - lib/rails/generators/rails/system_test/USAGE
329
+ - lib/rails/generators/rails/system_test/system_test_generator.rb
314
330
  - lib/rails/generators/rails/task/USAGE
315
331
  - lib/rails/generators/rails/task/task_generator.rb
316
332
  - lib/rails/generators/rails/task/templates/task.rb
@@ -338,6 +354,9 @@ files:
338
354
  - lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
339
355
  - lib/rails/generators/test_unit/scaffold/templates/api_functional_test.rb
340
356
  - lib/rails/generators/test_unit/scaffold/templates/functional_test.rb
357
+ - lib/rails/generators/test_unit/system/system_generator.rb
358
+ - lib/rails/generators/test_unit/system/templates/application_system_test_case.rb
359
+ - lib/rails/generators/test_unit/system/templates/system_test.rb
341
360
  - lib/rails/generators/testing/assertions.rb
342
361
  - lib/rails/generators/testing/behaviour.rb
343
362
  - lib/rails/generators/testing/setup_and_teardown.rb
@@ -346,13 +365,14 @@ files:
346
365
  - lib/rails/initializable.rb
347
366
  - lib/rails/mailers_controller.rb
348
367
  - lib/rails/paths.rb
368
+ - lib/rails/plugin/test.rb
349
369
  - lib/rails/rack.rb
350
- - lib/rails/rack/debugger.rb
351
370
  - lib/rails/rack/logger.rb
352
371
  - lib/rails/railtie.rb
353
372
  - lib/rails/railtie/configurable.rb
354
373
  - lib/rails/railtie/configuration.rb
355
374
  - lib/rails/ruby_version_check.rb
375
+ - lib/rails/secrets.rb
356
376
  - lib/rails/source_annotation_extractor.rb
357
377
  - lib/rails/tasks.rb
358
378
  - lib/rails/tasks/annotations.rake
@@ -367,6 +387,7 @@ files:
367
387
  - lib/rails/tasks/routes.rake
368
388
  - lib/rails/tasks/statistics.rake
369
389
  - lib/rails/tasks/tmp.rake
390
+ - lib/rails/tasks/yarn.rake
370
391
  - lib/rails/templates/layouts/application.html.erb
371
392
  - lib/rails/templates/rails/info/properties.html.erb
372
393
  - lib/rails/templates/rails/info/routes.html.erb
@@ -376,9 +397,10 @@ files:
376
397
  - lib/rails/templates/rails/welcome/index.html.erb
377
398
  - lib/rails/test_help.rb
378
399
  - lib/rails/test_unit/line_filtering.rb
400
+ - lib/rails/test_unit/minitest_plugin.rb
379
401
  - lib/rails/test_unit/railtie.rb
380
402
  - lib/rails/test_unit/reporter.rb
381
- - lib/rails/test_unit/runner.rb
403
+ - lib/rails/test_unit/test_requirer.rb
382
404
  - lib/rails/test_unit/testing.rake
383
405
  - lib/rails/version.rb
384
406
  - lib/rails/welcome_controller.rb
@@ -399,11 +421,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
399
421
  version: 2.2.2
400
422
  required_rubygems_version: !ruby/object:Gem::Requirement
401
423
  requirements:
402
- - - ">="
424
+ - - ">"
403
425
  - !ruby/object:Gem::Version
404
- version: '0'
426
+ version: 1.3.1
405
427
  requirements: []
406
- rubygems_version: 3.0.1
428
+ rubyforge_project:
429
+ rubygems_version: 2.6.10
407
430
  signing_key:
408
431
  specification_version: 4
409
432
  summary: Tools for creating, working with, and running Rails applications.
@@ -1,49 +0,0 @@
1
- require "active_support/core_ext/module/attribute_accessors"
2
- require "rails/test_unit/reporter"
3
-
4
- module Minitest
5
- class SuppressedSummaryReporter < SummaryReporter
6
- # Disable extra failure output after a run if output is inline.
7
- def aggregated_results(*)
8
- super unless options[:output_inline]
9
- end
10
- end
11
-
12
- def self.plugin_rails_options(opts, options)
13
- opts.on("-b", "--backtrace", "Show the complete backtrace") do
14
- options[:full_backtrace] = true
15
- end
16
-
17
- opts.on("-d", "--defer-output", "Output test failures and errors after the test run") do
18
- options[:output_inline] = false
19
- end
20
-
21
- opts.on("-f", "--fail-fast", "Abort test run on first failure or error") do
22
- options[:fail_fast] = true
23
- end
24
-
25
- opts.on("-c", "--[no-]color", "Enable color in the output") do |value|
26
- options[:color] = value
27
- end
28
-
29
- options[:color] = true
30
- options[:output_inline] = true
31
- end
32
-
33
- # Owes great inspiration to test runner trailblazers like RSpec,
34
- # minitest-reporters, maxitest and others.
35
- def self.plugin_rails_init(options)
36
- unless options[:full_backtrace] || ENV["BACKTRACE"]
37
- # Plugin can run without Rails loaded, check before filtering.
38
- Minitest.backtrace_filter = ::Rails.backtrace_cleaner if ::Rails.respond_to?(:backtrace_cleaner)
39
- end
40
-
41
- # Replace progress reporter for colors.
42
- reporter.reporters.delete_if { |reporter| reporter.kind_of?(SummaryReporter) || reporter.kind_of?(ProgressReporter) }
43
- reporter << SuppressedSummaryReporter.new(options[:io], options)
44
- reporter << ::Rails::TestUnitReporter.new(options[:io], options)
45
- end
46
-
47
- # Backwardscompatibility with Rails 5.0 generated plugin test scripts
48
- mattr_reader(:run_via) { Hash.new }
49
- end