railties 4.2.11.3 → 5.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +262 -206
- data/MIT-LICENSE +20 -0
- data/README.rdoc +1 -1
- data/{bin → exe}/rails +0 -0
- data/lib/rails.rb +19 -1
- data/lib/rails/all.rb +10 -9
- data/lib/rails/api/task.rb +7 -14
- data/lib/rails/{app_rails_loader.rb → app_loader.rb} +4 -3
- data/lib/rails/application.rb +31 -41
- data/lib/rails/application/bootstrap.rb +1 -14
- data/lib/rails/application/configuration.rb +94 -95
- data/lib/rails/application/default_middleware_stack.rb +30 -16
- data/lib/rails/application/finisher.rb +11 -2
- data/lib/rails/application/routes_reloader.rb +1 -3
- data/lib/rails/application_controller.rb +1 -1
- data/lib/rails/cli.rb +2 -2
- data/lib/rails/code_statistics.rb +6 -8
- data/lib/rails/code_statistics_calculator.rb +8 -1
- data/lib/rails/command.rb +70 -0
- data/lib/rails/commands.rb +5 -3
- data/lib/rails/commands/commands_tasks.rb +25 -14
- data/lib/rails/commands/console.rb +7 -52
- data/lib/rails/commands/console_helper.rb +34 -0
- data/lib/rails/commands/dbconsole.rb +59 -78
- data/lib/rails/commands/dev_cache.rb +21 -0
- data/lib/rails/commands/plugin.rb +1 -1
- data/lib/rails/commands/rake_proxy.rb +34 -0
- data/lib/rails/commands/runner.rb +0 -1
- data/lib/rails/commands/server.rb +29 -36
- data/lib/rails/commands/test.rb +9 -0
- data/lib/rails/configuration.rb +21 -5
- data/lib/rails/console/app.rb +5 -0
- data/lib/rails/console/helpers.rb +1 -1
- data/lib/rails/engine.rb +68 -58
- data/lib/rails/engine/commands.rb +4 -2
- data/lib/rails/engine/configuration.rb +4 -10
- data/lib/rails/gem_version.rb +4 -4
- data/lib/rails/generators.rb +30 -7
- data/lib/rails/generators/.named_base.rb.swp +0 -0
- data/lib/rails/generators/actions.rb +19 -5
- data/lib/rails/generators/app_base.rb +65 -45
- data/lib/rails/generators/base.rb +6 -6
- data/lib/rails/generators/erb/mailer/mailer_generator.rb +5 -8
- data/lib/rails/generators/erb/scaffold/templates/_form.html.erb +9 -7
- data/lib/rails/generators/erb/scaffold/templates/edit.html.erb +1 -1
- data/lib/rails/generators/erb/scaffold/templates/index.html.erb +2 -2
- data/lib/rails/generators/erb/scaffold/templates/new.html.erb +1 -1
- data/lib/rails/generators/generated_attribute.rb +5 -1
- data/lib/rails/generators/migration.rb +7 -7
- data/lib/rails/generators/named_base.rb +21 -5
- data/lib/rails/generators/rails/app/USAGE +0 -1
- data/lib/rails/generators/rails/app/app_generator.rb +75 -11
- data/lib/rails/generators/rails/app/templates/Gemfile +17 -13
- data/lib/rails/generators/rails/app/templates/{README.rdoc → README.md} +1 -5
- data/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt +7 -0
- data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +1 -1
- data/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.coffee +11 -0
- data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +3 -3
- data/lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb +5 -0
- data/lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb +5 -0
- data/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb.tt +3 -1
- data/lib/rails/generators/rails/app/templates/app/jobs/application_job.rb +2 -0
- data/lib/rails/generators/rails/app/templates/app/mailers/application_mailer.rb +4 -0
- data/lib/rails/generators/rails/app/templates/app/models/application_record.rb +3 -0
- data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +20 -17
- data/lib/rails/generators/rails/app/templates/app/views/layouts/mailer.html.erb.tt +13 -0
- data/lib/rails/generators/{erb/mailer/templates/layout.text.erb → rails/app/templates/app/views/layouts/mailer.text.erb.tt} +0 -0
- data/lib/rails/generators/rails/app/templates/bin/setup +17 -12
- data/lib/rails/generators/rails/app/templates/bin/update +28 -0
- data/lib/rails/generators/rails/app/templates/config.ru.tt +11 -0
- data/lib/rails/generators/rails/app/templates/config/application.rb +9 -14
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +1 -1
- data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +2 -2
- data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +20 -3
- data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +18 -11
- data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +7 -3
- data/lib/rails/generators/rails/app/templates/config/initializers/active_record_belongs_to_required_by_default.rb +5 -0
- data/lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb +6 -0
- data/lib/rails/generators/rails/app/templates/config/initializers/callback_terminator.rb +5 -0
- data/lib/rails/generators/rails/app/templates/config/initializers/cookies_serializer.rb +1 -0
- data/lib/rails/generators/rails/app/templates/config/initializers/cors.rb +16 -0
- data/lib/rails/generators/rails/app/templates/config/initializers/request_forgery_protection.rb +4 -0
- data/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +2 -2
- data/lib/rails/generators/rails/app/templates/config/redis/cable.yml +9 -0
- data/lib/rails/generators/rails/app/templates/config/routes.rb +3 -53
- data/lib/rails/generators/rails/app/templates/db/seeds.rb.tt +3 -3
- data/lib/rails/generators/rails/app/templates/gitignore +7 -1
- data/lib/rails/generators/rails/controller/controller_generator.rb +6 -4
- data/lib/rails/generators/rails/migration/migration_generator.rb +1 -1
- data/lib/rails/generators/rails/model/USAGE +6 -1
- data/lib/rails/generators/rails/model/model_generator.rb +1 -1
- data/lib/rails/generators/rails/plugin/plugin_generator.rb +88 -35
- data/lib/rails/generators/rails/plugin/templates/%name%.gemspec +6 -9
- data/lib/rails/generators/rails/plugin/templates/Gemfile +3 -7
- data/lib/rails/generators/rails/plugin/templates/README.md +3 -0
- data/lib/rails/generators/rails/plugin/templates/Rakefile +2 -2
- data/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt +5 -0
- data/lib/rails/generators/rails/plugin/templates/app/helpers/%namespaced_name%/application_helper.rb.tt +5 -0
- data/lib/rails/generators/rails/plugin/templates/app/jobs/%namespaced_name%/application_job.rb.tt +5 -0
- data/lib/rails/generators/rails/plugin/templates/app/models/application_record.rb.tt +6 -0
- data/lib/rails/generators/rails/plugin/templates/app/views/layouts/%namespaced_name%/application.html.erb.tt +14 -0
- data/lib/rails/generators/rails/plugin/templates/bin/rails.tt +1 -1
- data/lib/rails/generators/rails/plugin/templates/bin/test.tt +8 -0
- data/lib/rails/generators/rails/plugin/templates/config/routes.rb +1 -1
- data/lib/rails/generators/rails/plugin/templates/gitignore +2 -3
- data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%.rb +5 -0
- data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/engine.rb +7 -0
- data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb +1 -0
- data/lib/rails/generators/rails/plugin/templates/lib/tasks/{%name%_tasks.rake → %namespaced_name%_tasks.rake} +1 -1
- data/lib/rails/generators/rails/plugin/templates/rails/application.rb +3 -3
- data/lib/rails/generators/rails/plugin/templates/rails/dummy_manifest.js +11 -0
- data/lib/rails/generators/rails/plugin/templates/rails/engine_manifest.js +6 -0
- data/lib/rails/generators/rails/plugin/templates/rails/javascripts.js +1 -1
- data/lib/rails/generators/rails/plugin/templates/rails/routes.rb +1 -2
- data/lib/rails/generators/rails/plugin/templates/rails/stylesheets.css +3 -3
- data/lib/rails/generators/rails/plugin/templates/test/%namespaced_name%_test.rb +7 -0
- data/lib/rails/generators/rails/plugin/templates/test/test_helper.rb +4 -2
- data/lib/rails/generators/rails/resource/resource_generator.rb +0 -1
- data/lib/rails/generators/rails/resource_route/resource_route_generator.rb +0 -1
- data/lib/rails/generators/rails/scaffold/USAGE +1 -1
- data/lib/rails/generators/rails/scaffold/scaffold_generator.rb +2 -1
- data/lib/rails/generators/rails/scaffold/templates/scaffold.css +35 -7
- data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +4 -1
- data/lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb +61 -0
- data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +1 -1
- data/lib/rails/generators/resource_helpers.rb +3 -3
- data/lib/rails/generators/test_unit/controller/templates/.functional_test.rb.swp +0 -0
- data/lib/rails/generators/test_unit/controller/templates/functional_test.rb +3 -5
- data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +8 -3
- data/lib/rails/generators/test_unit/mailer/templates/functional_test.rb +2 -2
- data/lib/rails/generators/test_unit/mailer/templates/preview.rb +4 -4
- data/lib/rails/generators/test_unit/model/model_generator.rb +1 -1
- data/lib/rails/generators/test_unit/model/templates/fixtures.yml +2 -0
- data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +5 -1
- data/lib/rails/generators/test_unit/scaffold/templates/.api_functional_test.rb.swp +0 -0
- data/lib/rails/generators/test_unit/scaffold/templates/.functional_test.rb.swp +0 -0
- data/lib/rails/generators/test_unit/scaffold/templates/api_functional_test.rb +44 -0
- data/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +14 -14
- data/lib/rails/generators/testing/assertions.rb +0 -2
- data/lib/rails/generators/testing/behaviour.rb +4 -17
- data/lib/rails/info.rb +2 -2
- data/lib/rails/info_controller.rb +23 -2
- data/lib/rails/mailers_controller.rb +2 -2
- data/lib/rails/paths.rb +14 -6
- data/lib/rails/rack.rb +1 -3
- data/lib/rails/rack/debugger.rb +2 -23
- data/lib/rails/rack/logger.rb +4 -0
- data/lib/rails/ruby_version_check.rb +3 -3
- data/lib/rails/source_annotation_extractor.rb +1 -1
- data/lib/rails/tasks.rb +4 -1
- data/lib/rails/tasks/engine.rake +1 -1
- data/lib/rails/tasks/framework.rake +18 -16
- data/lib/rails/tasks/initializers.rake +6 -0
- data/lib/rails/tasks/restart.rake +5 -0
- data/lib/rails/tasks/statistics.rake +5 -6
- data/lib/rails/tasks/tmp.rake +4 -12
- data/lib/rails/templates/rails/mailers/email.html.erb +17 -3
- data/lib/rails/templates/rails/welcome/index.html.erb +10 -3
- data/lib/rails/test_help.rb +7 -8
- data/lib/rails/test_unit/minitest_plugin.rb +91 -0
- data/lib/rails/test_unit/reporter.rb +74 -0
- data/lib/rails/test_unit/test_requirer.rb +28 -0
- data/lib/rails/test_unit/testing.rake +18 -39
- metadata +80 -33
- data/lib/rails/deprecation.rb +0 -19
- data/lib/rails/generators/erb/mailer/templates/layout.html.erb +0 -5
- data/lib/rails/generators/rails/app/templates/config.ru +0 -4
- data/lib/rails/generators/rails/app/templates/config/initializers/to_time_preserves_timezone.rb +0 -10
- data/lib/rails/generators/rails/plugin/templates/README.rdoc +0 -3
- data/lib/rails/generators/rails/plugin/templates/app/controllers/%name%/application_controller.rb.tt +0 -5
- data/lib/rails/generators/rails/plugin/templates/app/helpers/%name%/application_helper.rb.tt +0 -4
- data/lib/rails/generators/rails/plugin/templates/app/views/layouts/%name%/application.html.erb.tt +0 -14
- data/lib/rails/generators/rails/plugin/templates/lib/%name%.rb +0 -6
- data/lib/rails/generators/rails/plugin/templates/lib/%name%/engine.rb +0 -7
- data/lib/rails/generators/rails/plugin/templates/lib/%name%/version.rb +0 -3
- data/lib/rails/generators/rails/plugin/templates/test/%name%_test.rb +0 -7
- data/lib/rails/rack/log_tailer.rb +0 -38
- data/lib/rails/tasks/documentation.rake +0 -70
- data/lib/rails/test_unit/sub_test_task.rb +0 -126
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:
|
4
|
+
version: 5.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-12-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:
|
19
|
+
version: 5.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:
|
26
|
+
version: 5.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:
|
33
|
+
version: 5.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:
|
40
|
+
version: 5.0.0.beta1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,20 +72,34 @@ dependencies:
|
|
72
72
|
- - "<"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '2.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: method_source
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
90
|
name: actionview
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
78
92
|
requirements:
|
79
93
|
- - '='
|
80
94
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
95
|
+
version: 5.0.0.beta1
|
82
96
|
type: :development
|
83
97
|
prerelease: false
|
84
98
|
version_requirements: !ruby/object:Gem::Requirement
|
85
99
|
requirements:
|
86
100
|
- - '='
|
87
101
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
102
|
+
version: 5.0.0.beta1
|
89
103
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
90
104
|
email: david@loudthinking.com
|
91
105
|
executables:
|
@@ -94,13 +108,14 @@ extensions: []
|
|
94
108
|
extra_rdoc_files: []
|
95
109
|
files:
|
96
110
|
- CHANGELOG.md
|
111
|
+
- MIT-LICENSE
|
97
112
|
- RDOC_MAIN.rdoc
|
98
113
|
- README.rdoc
|
99
|
-
-
|
114
|
+
- exe/rails
|
100
115
|
- lib/rails.rb
|
101
116
|
- lib/rails/all.rb
|
102
117
|
- lib/rails/api/task.rb
|
103
|
-
- lib/rails/
|
118
|
+
- lib/rails/app_loader.rb
|
104
119
|
- lib/rails/application.rb
|
105
120
|
- lib/rails/application/bootstrap.rb
|
106
121
|
- lib/rails/application/configuration.rb
|
@@ -112,26 +127,31 @@ files:
|
|
112
127
|
- lib/rails/cli.rb
|
113
128
|
- lib/rails/code_statistics.rb
|
114
129
|
- lib/rails/code_statistics_calculator.rb
|
130
|
+
- lib/rails/command.rb
|
115
131
|
- lib/rails/commands.rb
|
116
132
|
- lib/rails/commands/application.rb
|
117
133
|
- lib/rails/commands/commands_tasks.rb
|
118
134
|
- lib/rails/commands/console.rb
|
135
|
+
- lib/rails/commands/console_helper.rb
|
119
136
|
- lib/rails/commands/dbconsole.rb
|
120
137
|
- lib/rails/commands/destroy.rb
|
138
|
+
- lib/rails/commands/dev_cache.rb
|
121
139
|
- lib/rails/commands/generate.rb
|
122
140
|
- lib/rails/commands/plugin.rb
|
141
|
+
- lib/rails/commands/rake_proxy.rb
|
123
142
|
- lib/rails/commands/runner.rb
|
124
143
|
- lib/rails/commands/server.rb
|
144
|
+
- lib/rails/commands/test.rb
|
125
145
|
- lib/rails/configuration.rb
|
126
146
|
- lib/rails/console/app.rb
|
127
147
|
- lib/rails/console/helpers.rb
|
128
|
-
- lib/rails/deprecation.rb
|
129
148
|
- lib/rails/engine.rb
|
130
149
|
- lib/rails/engine/commands.rb
|
131
150
|
- lib/rails/engine/configuration.rb
|
132
151
|
- lib/rails/engine/railties.rb
|
133
152
|
- lib/rails/gem_version.rb
|
134
153
|
- lib/rails/generators.rb
|
154
|
+
- lib/rails/generators/.named_base.rb.swp
|
135
155
|
- lib/rails/generators/actions.rb
|
136
156
|
- lib/rails/generators/actions/create_migration.rb
|
137
157
|
- lib/rails/generators/active_model.rb
|
@@ -144,8 +164,6 @@ files:
|
|
144
164
|
- lib/rails/generators/erb/controller/controller_generator.rb
|
145
165
|
- lib/rails/generators/erb/controller/templates/view.html.erb
|
146
166
|
- lib/rails/generators/erb/mailer/mailer_generator.rb
|
147
|
-
- lib/rails/generators/erb/mailer/templates/layout.html.erb
|
148
|
-
- lib/rails/generators/erb/mailer/templates/layout.text.erb
|
149
167
|
- lib/rails/generators/erb/mailer/templates/view.html.erb
|
150
168
|
- lib/rails/generators/erb/mailer/templates/view.text.erb
|
151
169
|
- lib/rails/generators/erb/scaffold/scaffold_generator.rb
|
@@ -163,18 +181,28 @@ files:
|
|
163
181
|
- lib/rails/generators/rails/app/USAGE
|
164
182
|
- lib/rails/generators/rails/app/app_generator.rb
|
165
183
|
- lib/rails/generators/rails/app/templates/Gemfile
|
166
|
-
- lib/rails/generators/rails/app/templates/README.
|
184
|
+
- lib/rails/generators/rails/app/templates/README.md
|
167
185
|
- lib/rails/generators/rails/app/templates/Rakefile
|
186
|
+
- lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt
|
168
187
|
- lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt
|
188
|
+
- lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.coffee
|
169
189
|
- lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css
|
190
|
+
- lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb
|
191
|
+
- lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb
|
170
192
|
- lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb.tt
|
171
193
|
- lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb
|
194
|
+
- lib/rails/generators/rails/app/templates/app/jobs/application_job.rb
|
195
|
+
- lib/rails/generators/rails/app/templates/app/mailers/application_mailer.rb
|
196
|
+
- lib/rails/generators/rails/app/templates/app/models/application_record.rb
|
172
197
|
- lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt
|
198
|
+
- lib/rails/generators/rails/app/templates/app/views/layouts/mailer.html.erb.tt
|
199
|
+
- lib/rails/generators/rails/app/templates/app/views/layouts/mailer.text.erb.tt
|
173
200
|
- lib/rails/generators/rails/app/templates/bin/bundle
|
174
201
|
- lib/rails/generators/rails/app/templates/bin/rails
|
175
202
|
- lib/rails/generators/rails/app/templates/bin/rake
|
176
203
|
- lib/rails/generators/rails/app/templates/bin/setup
|
177
|
-
- lib/rails/generators/rails/app/templates/
|
204
|
+
- lib/rails/generators/rails/app/templates/bin/update
|
205
|
+
- lib/rails/generators/rails/app/templates/config.ru.tt
|
178
206
|
- lib/rails/generators/rails/app/templates/config/application.rb
|
179
207
|
- lib/rails/generators/rails/app/templates/config/boot.rb
|
180
208
|
- lib/rails/generators/rails/app/templates/config/databases/frontbase.yml
|
@@ -192,16 +220,21 @@ files:
|
|
192
220
|
- lib/rails/generators/rails/app/templates/config/environments/development.rb.tt
|
193
221
|
- lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
|
194
222
|
- lib/rails/generators/rails/app/templates/config/environments/test.rb.tt
|
223
|
+
- lib/rails/generators/rails/app/templates/config/initializers/active_record_belongs_to_required_by_default.rb
|
224
|
+
- lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb
|
195
225
|
- lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt
|
196
226
|
- lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb
|
227
|
+
- lib/rails/generators/rails/app/templates/config/initializers/callback_terminator.rb
|
197
228
|
- lib/rails/generators/rails/app/templates/config/initializers/cookies_serializer.rb
|
229
|
+
- lib/rails/generators/rails/app/templates/config/initializers/cors.rb
|
198
230
|
- lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb
|
199
231
|
- lib/rails/generators/rails/app/templates/config/initializers/inflections.rb
|
200
232
|
- lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb
|
233
|
+
- lib/rails/generators/rails/app/templates/config/initializers/request_forgery_protection.rb
|
201
234
|
- lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt
|
202
|
-
- lib/rails/generators/rails/app/templates/config/initializers/to_time_preserves_timezone.rb
|
203
235
|
- lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
|
204
236
|
- lib/rails/generators/rails/app/templates/config/locales/en.yml
|
237
|
+
- lib/rails/generators/rails/app/templates/config/redis/cable.yml
|
205
238
|
- lib/rails/generators/rails/app/templates/config/routes.rb
|
206
239
|
- lib/rails/generators/rails/app/templates/config/secrets.yml
|
207
240
|
- lib/rails/generators/rails/app/templates/db/seeds.rb.tt
|
@@ -238,26 +271,31 @@ files:
|
|
238
271
|
- lib/rails/generators/rails/plugin/templates/%name%.gemspec
|
239
272
|
- lib/rails/generators/rails/plugin/templates/Gemfile
|
240
273
|
- lib/rails/generators/rails/plugin/templates/MIT-LICENSE
|
241
|
-
- lib/rails/generators/rails/plugin/templates/README.
|
274
|
+
- lib/rails/generators/rails/plugin/templates/README.md
|
242
275
|
- lib/rails/generators/rails/plugin/templates/Rakefile
|
243
|
-
- lib/rails/generators/rails/plugin/templates/app/controllers/%
|
244
|
-
- lib/rails/generators/rails/plugin/templates/app/helpers/%
|
276
|
+
- lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt
|
277
|
+
- lib/rails/generators/rails/plugin/templates/app/helpers/%namespaced_name%/application_helper.rb.tt
|
278
|
+
- lib/rails/generators/rails/plugin/templates/app/jobs/%namespaced_name%/application_job.rb.tt
|
245
279
|
- lib/rails/generators/rails/plugin/templates/app/mailers/.empty_directory
|
246
280
|
- lib/rails/generators/rails/plugin/templates/app/models/.empty_directory
|
247
|
-
- lib/rails/generators/rails/plugin/templates/app/
|
281
|
+
- lib/rails/generators/rails/plugin/templates/app/models/application_record.rb.tt
|
282
|
+
- lib/rails/generators/rails/plugin/templates/app/views/layouts/%namespaced_name%/application.html.erb.tt
|
248
283
|
- lib/rails/generators/rails/plugin/templates/bin/rails.tt
|
284
|
+
- lib/rails/generators/rails/plugin/templates/bin/test.tt
|
249
285
|
- lib/rails/generators/rails/plugin/templates/config/routes.rb
|
250
286
|
- lib/rails/generators/rails/plugin/templates/gitignore
|
251
|
-
- lib/rails/generators/rails/plugin/templates/lib/%
|
252
|
-
- lib/rails/generators/rails/plugin/templates/lib/%
|
253
|
-
- lib/rails/generators/rails/plugin/templates/lib/%
|
254
|
-
- lib/rails/generators/rails/plugin/templates/lib/tasks/%
|
287
|
+
- lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%.rb
|
288
|
+
- lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/engine.rb
|
289
|
+
- lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb
|
290
|
+
- lib/rails/generators/rails/plugin/templates/lib/tasks/%namespaced_name%_tasks.rake
|
255
291
|
- lib/rails/generators/rails/plugin/templates/rails/application.rb
|
256
292
|
- lib/rails/generators/rails/plugin/templates/rails/boot.rb
|
293
|
+
- lib/rails/generators/rails/plugin/templates/rails/dummy_manifest.js
|
294
|
+
- lib/rails/generators/rails/plugin/templates/rails/engine_manifest.js
|
257
295
|
- lib/rails/generators/rails/plugin/templates/rails/javascripts.js
|
258
296
|
- lib/rails/generators/rails/plugin/templates/rails/routes.rb
|
259
297
|
- lib/rails/generators/rails/plugin/templates/rails/stylesheets.css
|
260
|
-
- lib/rails/generators/rails/plugin/templates/test/%
|
298
|
+
- lib/rails/generators/rails/plugin/templates/test/%namespaced_name%_test.rb
|
261
299
|
- lib/rails/generators/rails/plugin/templates/test/integration/navigation_test.rb
|
262
300
|
- lib/rails/generators/rails/plugin/templates/test/test_helper.rb
|
263
301
|
- lib/rails/generators/rails/resource/USAGE
|
@@ -268,6 +306,7 @@ files:
|
|
268
306
|
- lib/rails/generators/rails/scaffold/templates/scaffold.css
|
269
307
|
- lib/rails/generators/rails/scaffold_controller/USAGE
|
270
308
|
- lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb
|
309
|
+
- lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb
|
271
310
|
- lib/rails/generators/rails/scaffold_controller/templates/controller.rb
|
272
311
|
- lib/rails/generators/rails/task/USAGE
|
273
312
|
- lib/rails/generators/rails/task/task_generator.rb
|
@@ -276,6 +315,7 @@ files:
|
|
276
315
|
- lib/rails/generators/test_case.rb
|
277
316
|
- lib/rails/generators/test_unit.rb
|
278
317
|
- lib/rails/generators/test_unit/controller/controller_generator.rb
|
318
|
+
- lib/rails/generators/test_unit/controller/templates/.functional_test.rb.swp
|
279
319
|
- lib/rails/generators/test_unit/controller/templates/functional_test.rb
|
280
320
|
- lib/rails/generators/test_unit/generator/generator_generator.rb
|
281
321
|
- lib/rails/generators/test_unit/generator/templates/generator_test.rb
|
@@ -294,6 +334,9 @@ files:
|
|
294
334
|
- lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt
|
295
335
|
- lib/rails/generators/test_unit/plugin/templates/test_helper.rb
|
296
336
|
- lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
|
337
|
+
- lib/rails/generators/test_unit/scaffold/templates/.api_functional_test.rb.swp
|
338
|
+
- lib/rails/generators/test_unit/scaffold/templates/.functional_test.rb.swp
|
339
|
+
- lib/rails/generators/test_unit/scaffold/templates/api_functional_test.rb
|
297
340
|
- lib/rails/generators/test_unit/scaffold/templates/functional_test.rb
|
298
341
|
- lib/rails/generators/testing/assertions.rb
|
299
342
|
- lib/rails/generators/testing/behaviour.rb
|
@@ -305,7 +348,6 @@ files:
|
|
305
348
|
- lib/rails/paths.rb
|
306
349
|
- lib/rails/rack.rb
|
307
350
|
- lib/rails/rack/debugger.rb
|
308
|
-
- lib/rails/rack/log_tailer.rb
|
309
351
|
- lib/rails/rack/logger.rb
|
310
352
|
- lib/rails/railtie.rb
|
311
353
|
- lib/rails/railtie/configurable.rb
|
@@ -314,12 +356,13 @@ files:
|
|
314
356
|
- lib/rails/source_annotation_extractor.rb
|
315
357
|
- lib/rails/tasks.rb
|
316
358
|
- lib/rails/tasks/annotations.rake
|
317
|
-
- lib/rails/tasks/documentation.rake
|
318
359
|
- lib/rails/tasks/engine.rake
|
319
360
|
- lib/rails/tasks/framework.rake
|
361
|
+
- lib/rails/tasks/initializers.rake
|
320
362
|
- lib/rails/tasks/log.rake
|
321
363
|
- lib/rails/tasks/middleware.rake
|
322
364
|
- lib/rails/tasks/misc.rake
|
365
|
+
- lib/rails/tasks/restart.rake
|
323
366
|
- lib/rails/tasks/routes.rake
|
324
367
|
- lib/rails/tasks/statistics.rake
|
325
368
|
- lib/rails/tasks/tmp.rake
|
@@ -331,8 +374,10 @@ files:
|
|
331
374
|
- lib/rails/templates/rails/mailers/mailer.html.erb
|
332
375
|
- lib/rails/templates/rails/welcome/index.html.erb
|
333
376
|
- lib/rails/test_help.rb
|
377
|
+
- lib/rails/test_unit/minitest_plugin.rb
|
334
378
|
- lib/rails/test_unit/railtie.rb
|
335
|
-
- lib/rails/test_unit/
|
379
|
+
- lib/rails/test_unit/reporter.rb
|
380
|
+
- lib/rails/test_unit/test_requirer.rb
|
336
381
|
- lib/rails/test_unit/testing.rake
|
337
382
|
- lib/rails/version.rb
|
338
383
|
- lib/rails/welcome_controller.rb
|
@@ -350,15 +395,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
350
395
|
requirements:
|
351
396
|
- - ">="
|
352
397
|
- !ruby/object:Gem::Version
|
353
|
-
version:
|
398
|
+
version: 2.2.2
|
354
399
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
355
400
|
requirements:
|
356
|
-
- - "
|
401
|
+
- - ">"
|
357
402
|
- !ruby/object:Gem::Version
|
358
|
-
version:
|
403
|
+
version: 1.3.1
|
359
404
|
requirements: []
|
360
|
-
|
405
|
+
rubyforge_project:
|
406
|
+
rubygems_version: 2.5.1
|
361
407
|
signing_key:
|
362
408
|
specification_version: 4
|
363
409
|
summary: Tools for creating, working with, and running Rails applications.
|
364
410
|
test_files: []
|
411
|
+
has_rdoc:
|
data/lib/rails/deprecation.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'active_support/deprecation/proxy_wrappers'
|
2
|
-
|
3
|
-
module Rails
|
4
|
-
class DeprecatedConstant < ActiveSupport::Deprecation::DeprecatedConstantProxy
|
5
|
-
def self.deprecate(old, current)
|
6
|
-
# double assignment is used to avoid "assigned but unused variable" warning
|
7
|
-
constant = constant = new(old, current)
|
8
|
-
eval "::#{old} = constant"
|
9
|
-
end
|
10
|
-
|
11
|
-
private
|
12
|
-
|
13
|
-
def target
|
14
|
-
::Kernel.eval @new_const.to_s
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
DeprecatedConstant.deprecate('RAILS_CACHE', '::Rails.cache')
|
19
|
-
end
|
data/lib/rails/generators/rails/app/templates/config/initializers/to_time_preserves_timezone.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Preserve the timezone of the receiver when calling to `to_time`.
|
4
|
-
# Ruby 2.4 will change the behavior of `to_time` to preserve the timezone
|
5
|
-
# when converting to an instance of `Time` instead of the previous behavior
|
6
|
-
# of converting to the local system timezone.
|
7
|
-
#
|
8
|
-
# Rails 5.0 introduced this config option so that apps made with earlier
|
9
|
-
# versions of Rails are not affected when upgrading.
|
10
|
-
ActiveSupport.to_time_preserves_timezone = true
|
data/lib/rails/generators/rails/plugin/templates/app/views/layouts/%name%/application.html.erb.tt
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title><%= camelized %></title>
|
5
|
-
<%%= stylesheet_link_tag "<%= name %>/application", media: "all" %>
|
6
|
-
<%%= javascript_include_tag "<%= name %>/application" %>
|
7
|
-
<%%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
@@ -1,38 +0,0 @@
|
|
1
|
-
require 'active_support/deprecation'
|
2
|
-
|
3
|
-
module Rails
|
4
|
-
module Rack
|
5
|
-
class LogTailer
|
6
|
-
def initialize(app, log = nil)
|
7
|
-
ActiveSupport::Deprecation.warn('LogTailer is deprecated and will be removed on Rails 5.')
|
8
|
-
|
9
|
-
@app = app
|
10
|
-
|
11
|
-
path = Pathname.new(log || "#{::File.expand_path(Rails.root)}/log/#{Rails.env}.log").cleanpath
|
12
|
-
|
13
|
-
@cursor = @file = nil
|
14
|
-
if ::File.exist?(path)
|
15
|
-
@cursor = ::File.size(path)
|
16
|
-
@file = ::File.open(path, 'r')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def call(env)
|
21
|
-
response = @app.call(env)
|
22
|
-
tail!
|
23
|
-
response
|
24
|
-
end
|
25
|
-
|
26
|
-
def tail!
|
27
|
-
return unless @cursor
|
28
|
-
@file.seek @cursor
|
29
|
-
|
30
|
-
unless @file.eof?
|
31
|
-
contents = @file.read
|
32
|
-
@cursor = @file.tell
|
33
|
-
$stdout.print contents
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|