railties 5.2.3 → 5.2.4.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -1
- data/lib/rails/command/base.rb +4 -0
- data/lib/rails/engine.rb +9 -3
- data/lib/rails/gem_version.rb +2 -2
- data/lib/rails/generators/app_base.rb +11 -9
- data/lib/rails/generators/base.rb +4 -0
- data/lib/rails/generators/rails/app/app_generator.rb +1 -0
- data/lib/rails/generators/rails/app/templates/config/puma.rb.tt +3 -0
- metadata +13 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 596bc96d4a84b3fe00bf3a420eeddac6c9fa669d66f7f61143c80d85c46f12c4
|
|
4
|
+
data.tar.gz: 3d5d05d4bd393fcb62ed2ec4e723def22ac22ff78d8883eb738c0ca31b86c4eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 994c70d561ee85193606fe7050db9d56ff204c051cec9dd0da64c29c2e7c4e921a26809b7f4bf8e91e86fbf8eb6e00a953f05ef43181ece607691a6d7d1dd6c8
|
|
7
|
+
data.tar.gz: 5a8b698fcc30d66117962171a300d38dfc04fa06cf39e7228189ef963ae7d5a40abef2ba8d9735484eba26cf615f803f65f812908aa76ae2c75e6c095e085a05
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## Rails 5.2.4.rc1 (November 22, 2019) ##
|
|
2
|
+
|
|
3
|
+
* Use original `bundler` environment variables during the process of generating a new rails project.
|
|
4
|
+
|
|
5
|
+
*Marco Costa*
|
|
6
|
+
|
|
7
|
+
* Allow loading seeds without ActiveJob.
|
|
8
|
+
|
|
9
|
+
Fixes #35782
|
|
10
|
+
|
|
11
|
+
*Jeremy Weathers*
|
|
12
|
+
|
|
13
|
+
* Only force `:async` ActiveJob adapter to `:inline` during seeding.
|
|
14
|
+
|
|
15
|
+
*BatedUrGonnaDie*
|
|
16
|
+
|
|
17
|
+
|
|
1
18
|
## Rails 5.2.3 (March 27, 2019) ##
|
|
2
19
|
|
|
3
20
|
* Seed database with inline ActiveJob job adapter.
|
|
@@ -11,7 +28,16 @@
|
|
|
11
28
|
|
|
12
29
|
## Rails 5.2.2.1 (March 11, 2019) ##
|
|
13
30
|
|
|
14
|
-
*
|
|
31
|
+
* Generate random development secrets
|
|
32
|
+
|
|
33
|
+
A random development secret is now generated to tmp/development_secret.txt
|
|
34
|
+
|
|
35
|
+
This avoids an issue where development mode servers were vulnerable to
|
|
36
|
+
remote code execution.
|
|
37
|
+
|
|
38
|
+
Fixes CVE-2019-5420
|
|
39
|
+
|
|
40
|
+
*Eileen M. Uchitelle*, *Aaron Patterson*, *John Hawthorn*
|
|
15
41
|
|
|
16
42
|
|
|
17
43
|
## Rails 5.2.2 (December 04, 2018) ##
|
data/lib/rails/command/base.rb
CHANGED
data/lib/rails/engine.rb
CHANGED
|
@@ -531,9 +531,9 @@ module Rails
|
|
|
531
531
|
|
|
532
532
|
# Defines the routes for this engine. If a block is given to
|
|
533
533
|
# routes, it is appended to the engine.
|
|
534
|
-
def routes
|
|
534
|
+
def routes(&block)
|
|
535
535
|
@routes ||= ActionDispatch::Routing::RouteSet.new_with_config(config)
|
|
536
|
-
@routes.append(&
|
|
536
|
+
@routes.append(&block) if block_given?
|
|
537
537
|
@routes
|
|
538
538
|
end
|
|
539
539
|
|
|
@@ -548,7 +548,13 @@ module Rails
|
|
|
548
548
|
# Blog::Engine.load_seed
|
|
549
549
|
def load_seed
|
|
550
550
|
seed_file = paths["db/seeds.rb"].existent.first
|
|
551
|
-
|
|
551
|
+
return unless seed_file
|
|
552
|
+
|
|
553
|
+
if config.try(:active_job).try!(:queue_adapter) == :async
|
|
554
|
+
with_inline_jobs { load(seed_file) }
|
|
555
|
+
else
|
|
556
|
+
load(seed_file)
|
|
557
|
+
end
|
|
552
558
|
end
|
|
553
559
|
|
|
554
560
|
# Add configured load paths to Ruby's load path, and remove duplicate entries.
|
data/lib/rails/gem_version.rb
CHANGED
|
@@ -408,19 +408,21 @@ module Rails
|
|
|
408
408
|
# its own vendored Thor, which could be a different version. Running both
|
|
409
409
|
# things in the same process is a recipe for a night with paracetamol.
|
|
410
410
|
#
|
|
411
|
-
# We unset temporary bundler variables to load proper bundler and Gemfile.
|
|
412
|
-
#
|
|
413
411
|
# Thanks to James Tucker for the Gem tricks involved in this call.
|
|
414
412
|
_bundle_command = Gem.bin_path("bundler", "bundle")
|
|
415
413
|
|
|
416
414
|
require "bundler"
|
|
417
|
-
Bundler.
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
415
|
+
Bundler.with_original_env do
|
|
416
|
+
exec_bundle_command(_bundle_command, command)
|
|
417
|
+
end
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
def exec_bundle_command(bundle_command, command)
|
|
421
|
+
full_command = %Q["#{Gem.ruby}" "#{bundle_command}" #{command}]
|
|
422
|
+
if options[:quiet]
|
|
423
|
+
system(full_command, out: File::NULL)
|
|
424
|
+
else
|
|
425
|
+
system(full_command)
|
|
424
426
|
end
|
|
425
427
|
end
|
|
426
428
|
|
|
@@ -24,6 +24,10 @@ module Rails
|
|
|
24
24
|
add_runtime_options!
|
|
25
25
|
strict_args_position!
|
|
26
26
|
|
|
27
|
+
def self.exit_on_failure? # :nodoc:
|
|
28
|
+
false
|
|
29
|
+
end
|
|
30
|
+
|
|
27
31
|
# Returns the source root for this generator using default_source_root as default.
|
|
28
32
|
def self.source_root(path = nil)
|
|
29
33
|
@_source_root = path if path
|
|
@@ -15,6 +15,9 @@ port ENV.fetch("PORT") { 3000 }
|
|
|
15
15
|
#
|
|
16
16
|
environment ENV.fetch("RAILS_ENV") { "development" }
|
|
17
17
|
|
|
18
|
+
# Specifies the `pidfile` that Puma will use.
|
|
19
|
+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
|
20
|
+
|
|
18
21
|
# Specifies the number of `workers` to boot in clustered mode.
|
|
19
22
|
# Workers are forked webserver processes. If using threads and workers together
|
|
20
23
|
# the concurrency of the application would be max `threads` * `workers`.
|
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.
|
|
4
|
+
version: 5.2.4.rc1
|
|
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-
|
|
11
|
+
date: 2019-11-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.2.
|
|
19
|
+
version: 5.2.4.rc1
|
|
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.
|
|
26
|
+
version: 5.2.4.rc1
|
|
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.
|
|
33
|
+
version: 5.2.4.rc1
|
|
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.
|
|
40
|
+
version: 5.2.4.rc1
|
|
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.2.
|
|
95
|
+
version: 5.2.4.rc1
|
|
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.
|
|
102
|
+
version: 5.2.4.rc1
|
|
103
103
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
|
104
104
|
email: david@loudthinking.com
|
|
105
105
|
executables:
|
|
@@ -422,8 +422,8 @@ homepage: http://rubyonrails.org
|
|
|
422
422
|
licenses:
|
|
423
423
|
- MIT
|
|
424
424
|
metadata:
|
|
425
|
-
source_code_uri: https://github.com/rails/rails/tree/v5.2.
|
|
426
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.2.
|
|
425
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.2.4.rc1/railties
|
|
426
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.4.rc1/railties/CHANGELOG.md
|
|
427
427
|
post_install_message:
|
|
428
428
|
rdoc_options:
|
|
429
429
|
- "--exclude"
|
|
@@ -437,11 +437,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
437
437
|
version: 2.2.2
|
|
438
438
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
439
439
|
requirements:
|
|
440
|
-
- - "
|
|
440
|
+
- - ">"
|
|
441
441
|
- !ruby/object:Gem::Version
|
|
442
|
-
version:
|
|
442
|
+
version: 1.3.1
|
|
443
443
|
requirements: []
|
|
444
|
-
rubygems_version: 3.0.
|
|
444
|
+
rubygems_version: 3.0.3
|
|
445
445
|
signing_key:
|
|
446
446
|
specification_version: 4
|
|
447
447
|
summary: Tools for creating, working with, and running Rails applications.
|