|
1 |
| -* Ensure only directories exist in Rails default load paths |
2 |
| - |
3 |
| - Previously, some files put under `app` directory would contaminate the load paths. |
4 |
| - This commit removes files from the default load paths set up by the Rails framework. |
5 |
| - |
6 |
| - Now, only directories are included as default in the following paths: |
7 |
| - |
8 |
| - * autoload_paths |
9 |
| - * autoload_once_paths |
10 |
| - * eager_load_paths |
11 |
| - * load_paths |
| 1 | +* Ensure `autoload_paths`, `autoload_once_paths`, `eager_load_paths`, and |
| 2 | + `load_paths` only have directories when initialized from engine defaults. |
| 3 | + Previously, files under the `app` directory could end up there too. |
12 | 4 |
|
13 | 5 | *Takumasa Ochi*
|
14 | 6 |
|
|
20 | 12 |
|
21 | 13 | *Takumasa Ochi*
|
22 | 14 |
|
23 |
| -* Use `oven-sh/setup-bun` in GitHub CI when generating an app with bun |
| 15 | +* Use `oven-sh/setup-bun` in GitHub CI when generating an app with Bun. |
24 | 16 |
|
25 | 17 | *TangRufus*
|
26 | 18 |
|
27 |
| -* Disable `pidfile` generation in production environment. |
| 19 | +* Disable `pidfile` generation in the `production` environment. |
28 | 20 |
|
29 | 21 | *Hans Schnedlitz*
|
30 | 22 |
|
31 |
| -* Set `config.action_view.annotate_rendered_view_with_filenames` to `true` in the |
32 |
| - development environment. |
| 23 | +* Set `config.action_view.annotate_rendered_view_with_filenames` to `true` in |
| 24 | + the `development` environment. |
33 | 25 |
|
34 | 26 | *Adrian Marin*
|
35 | 27 |
|
36 |
| -* Support `BACKTRACE` ENV variable to turn off backtrace cleaning. |
| 28 | +* Support the `BACKTRACE` environment variable to turn off backtrace cleaning. |
37 | 29 |
|
38 | 30 | Useful for debugging framework code:
|
39 | 31 |
|
40 | 32 | ```sh
|
41 |
| - BACKTRACE=1 ./bin/rails server |
| 33 | + BACKTRACE=1 bin/rails server |
42 | 34 | ```
|
43 | 35 |
|
44 | 36 | *Alex Ghiculescu*
|
45 | 37 |
|
46 |
| -* Raise `ArgumentError` when reading `config.x.something` with arguments |
| 38 | +* Raise `ArgumentError` when reading `config.x.something` with arguments: |
47 | 39 |
|
48 | 40 | ```ruby
|
49 | 41 | config.x.this_works.this_raises true # raises ArgumentError
|
50 | 42 | ```
|
51 | 43 |
|
52 | 44 | *Sean Doyle*
|
53 | 45 |
|
54 |
| -* Add default PWA files for manifest and service-worker that are served from `app/views/pwa` and can be dynamically rendered through erb. Mount these files explicitly at the root with default routes in the generated routes file. |
| 46 | +* Add default PWA files for manifest and service-worker that are served from `app/views/pwa` and can be dynamically rendered through ERB. Mount these files explicitly at the root with default routes in the generated routes file. |
55 | 47 |
|
56 | 48 | *DHH*
|
57 | 49 |
|
58 | 50 | * Updated system tests to now use headless Chrome by default for the new applications.
|
59 | 51 |
|
60 | 52 | *DHH*
|
61 | 53 |
|
62 |
| -* Add GitHub CI files for dependabot, brakeman, rubocop, and running tests by default. Can be skipped with --skip-ci. |
| 54 | +* Add GitHub CI files for Dependabot, Brakeman, RuboCop, and running tests by default. Can be skipped with `--skip-ci`. |
63 | 55 |
|
64 | 56 | *DHH*
|
65 | 57 |
|
66 |
| -* Add brakeman gem by default for static analysis of security vulnerabilities. Allow skipping with --skip-brakeman option. |
| 58 | +* Add Brakeman by default for static analysis of security vulnerabilities. Allow skipping with `--skip-brakeman option`. |
67 | 59 |
|
68 | 60 | *vipulnsward*
|
69 | 61 |
|
70 |
| -* Add RuboCop with rules from rubocop-rails-omakase by default. Skip with --skip-rubocop. |
| 62 | +* Add RuboCop with rules from `rubocop-rails-omakase` by default. Skip with `--skip-rubocop`. |
71 | 63 |
|
72 | 64 | *DHH* and *zzak*
|
73 | 65 |
|
74 |
| -* Use `bin/rails runner --skip-executor` option to not wrap the runner script |
75 |
| - with an Executor. |
| 66 | +* Use `bin/rails runner --skip-executor` to not wrap the runner script with an |
| 67 | + Executor. |
76 | 68 |
|
77 | 69 | *Ben Sheldon*
|
78 | 70 |
|
|
82 | 74 |
|
83 | 75 | *Chedli Bourguiba*
|
84 | 76 |
|
85 |
| -* Fix running `db:system:change` when app has no Dockerfile. |
| 77 | +* Fix running `db:system:change` when the app has no Dockerfile. |
86 | 78 |
|
87 | 79 | *Hartley McGuire*
|
88 | 80 |
|
|
101 | 93 |
|
102 | 94 | *Christian Schmidt*
|
103 | 95 |
|
104 |
| -* Enable YJIT by default on new applications running Ruby 3.3+ |
| 96 | +* Enable YJIT by default on new applications running Ruby 3.3+. |
105 | 97 |
|
106 | 98 | Adds a `config/initializers/enable_yjit.rb` initializer that enables YJIT
|
107 | 99 | when running on Ruby 3.3+.
|
|
119 | 111 | * Use numeric UID and GID in Dockerfile template
|
120 | 112 |
|
121 | 113 | The Dockerfile generated by `rails new` sets the default user and group
|
122 |
| - by name instead of UID:GID. This can cause the following error in kubernetes: |
| 114 | + by name instead of UID:GID. This can cause the following error in Kubernetes: |
123 | 115 |
|
124 | 116 | ```
|
125 | 117 | container has runAsNonRoot and image has non-numeric user (rails), cannot verify user is non-root
|
|
131 | 123 |
|
132 | 124 | * Disallow invalid values for rails new options.
|
133 | 125 |
|
134 |
| - The `--database`, `--asset-pipeline`, `--css`, and `--javascript` flags for |
135 |
| - `rails new` can all take different options. This change adds checks to |
136 |
| - options to make sure the user enters the correct value. |
| 126 | + The `--database`, `--asset-pipeline`, `--css`, and `--javascript` options |
| 127 | + for `rails new` take different arguments. This change validates them. |
137 | 128 |
|
138 | 129 | *Tony Drake*, *Akhil G Krishnan*, *Petrik de Heus*
|
139 | 130 |
|
140 |
| -* Conditionally print `$stdout` when invoking `run_generator` |
| 131 | +* Conditionally print `$stdout` when invoking `run_generator`. |
141 | 132 |
|
142 | 133 | In an effort to improve the developer experience when debugging
|
143 | 134 | generator tests, we add the ability to conditionally print `$stdout`
|
|
0 commit comments