railties 5.2.2 → 5.2.2.1
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 +5 -0
- data/lib/rails/application.rb +17 -2
- data/lib/rails/gem_version.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf63732307755762a9ac91ed5de479df1257e5a9c6b32782b80574903aa30ca4
|
4
|
+
data.tar.gz: a65edc62b075ed495aa9f194e98c958e430a8d20c7e7678af83344c59636533a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4c99b342ce3038a215d1e8e6f93db68550de6bb3769c9ff0e80583d6bd8bc0801dc4a9c1c1f1c3023d79695b0990c3c8297d529e535c0c99ef3ce97ce601aaf
|
7
|
+
data.tar.gz: 3cc12589b3ea9759fb9842072d505f8482a1b7f19cce448ad76fa38b49fc7f22740b887ce887dc4358b5d911351e141c4f1433533f1212c6cbc65f23a5ce3c8f
|
data/CHANGELOG.md
CHANGED
data/lib/rails/application.rb
CHANGED
@@ -426,8 +426,8 @@ module Rails
|
|
426
426
|
# then credentials.secret_key_base, and finally secrets.secret_key_base. For most applications,
|
427
427
|
# the correct place to store it is in the encrypted credentials file.
|
428
428
|
def secret_key_base
|
429
|
-
if Rails.env.
|
430
|
-
secrets.secret_key_base
|
429
|
+
if Rails.env.development? || Rails.env.test?
|
430
|
+
secrets.secret_key_base ||= generate_development_secret
|
431
431
|
else
|
432
432
|
validate_secret_key_base(
|
433
433
|
ENV["SECRET_KEY_BASE"] || credentials.secret_key_base || secrets.secret_key_base
|
@@ -588,6 +588,21 @@ module Rails
|
|
588
588
|
|
589
589
|
private
|
590
590
|
|
591
|
+
def generate_development_secret
|
592
|
+
if secrets.secret_key_base.nil?
|
593
|
+
key_file = Rails.root.join("tmp/development_secret.txt")
|
594
|
+
|
595
|
+
if !File.exist?(key_file)
|
596
|
+
random_key = SecureRandom.hex(64)
|
597
|
+
File.binwrite(key_file, random_key)
|
598
|
+
end
|
599
|
+
|
600
|
+
secrets.secret_key_base = File.binread(key_file)
|
601
|
+
end
|
602
|
+
|
603
|
+
secrets.secret_key_base
|
604
|
+
end
|
605
|
+
|
591
606
|
def build_request(env)
|
592
607
|
req = super
|
593
608
|
env["ORIGINAL_FULLPATH"] = req.fullpath
|
data/lib/rails/gem_version.rb
CHANGED
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.2
|
4
|
+
version: 5.2.2.1
|
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:
|
11
|
+
date: 2019-03-13 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.2
|
19
|
+
version: 5.2.2.1
|
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.2
|
26
|
+
version: 5.2.2.1
|
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.2
|
33
|
+
version: 5.2.2.1
|
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.2
|
40
|
+
version: 5.2.2.1
|
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.2
|
95
|
+
version: 5.2.2.1
|
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.2
|
102
|
+
version: 5.2.2.1
|
103
103
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
104
104
|
email: david@loudthinking.com
|
105
105
|
executables:
|
@@ -421,8 +421,8 @@ homepage: http://rubyonrails.org
|
|
421
421
|
licenses:
|
422
422
|
- MIT
|
423
423
|
metadata:
|
424
|
-
source_code_uri: https://github.com/rails/rails/tree/v5.2.2/railties
|
425
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.2.2/railties/CHANGELOG.md
|
424
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.2.2.1/railties
|
425
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.2.1/railties/CHANGELOG.md
|
426
426
|
post_install_message:
|
427
427
|
rdoc_options:
|
428
428
|
- "--exclude"
|
@@ -440,8 +440,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
440
440
|
- !ruby/object:Gem::Version
|
441
441
|
version: '0'
|
442
442
|
requirements: []
|
443
|
-
|
444
|
-
rubygems_version: 2.7.6
|
443
|
+
rubygems_version: 3.0.1
|
445
444
|
signing_key:
|
446
445
|
specification_version: 4
|
447
446
|
summary: Tools for creating, working with, and running Rails applications.
|