railties 5.2.2 → 5.2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc6d0a9549676d109f5863192e512326bd2ac07df40c06161ce9a45b929b64f8
4
- data.tar.gz: f7ab90b6813852496920d79d977bb819b6e58c32e51a07c82b3c4f2d51f4fe54
3
+ metadata.gz: cf63732307755762a9ac91ed5de479df1257e5a9c6b32782b80574903aa30ca4
4
+ data.tar.gz: a65edc62b075ed495aa9f194e98c958e430a8d20c7e7678af83344c59636533a
5
5
  SHA512:
6
- metadata.gz: 8ad61f17fc22e112c23fbfd0448fcbac10251087f65340b1f171faae50eef8bc93d9e1cab5bc0fe366a211d8971e107e6d47a9febc913db5d8e10b05d3609dc2
7
- data.tar.gz: edbad6cda49e8242bf8c5be9c40369b20859bee4c595b2a7b4b4634d40b0efe984c9a0a0b0f82a54d5f8aa290075a29d968fb63daed7c4e9d7e675f616e7f3d8
6
+ metadata.gz: c4c99b342ce3038a215d1e8e6f93db68550de6bb3769c9ff0e80583d6bd8bc0801dc4a9c1c1f1c3023d79695b0990c3c8297d529e535c0c99ef3ce97ce601aaf
7
+ data.tar.gz: 3cc12589b3ea9759fb9842072d505f8482a1b7f19cce448ad76fa38b49fc7f22740b887ce887dc4358b5d911351e141c4f1433533f1212c6cbc65f23a5ce3c8f
@@ -1,3 +1,8 @@
1
+ ## Rails 5.2.2.1 (March 11, 2019) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 5.2.2 (December 04, 2018) ##
2
7
 
3
8
  * Disable content security policy for mailer previews.
@@ -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.test? || Rails.env.development?
430
- secrets.secret_key_base || Digest::MD5.hexdigest(self.class.name)
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
@@ -10,7 +10,7 @@ module Rails
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
12
  TINY = 2
13
- PRE = nil
13
+ PRE = "1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
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: 2018-12-04 00:00:00.000000000 Z
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
- rubyforge_project:
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.