railties 5.2.3 → 5.2.4.rc1

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: e4a69a54be1b33b98f67a2a6932d9f2d540d4ca4d709e71b76a63a69bcd929c2
4
- data.tar.gz: 744e8d2b51e5a551e55b7dee2c24290c025ca1e878cc4e694e92d2a78ab06ffe
3
+ metadata.gz: 596bc96d4a84b3fe00bf3a420eeddac6c9fa669d66f7f61143c80d85c46f12c4
4
+ data.tar.gz: 3d5d05d4bd393fcb62ed2ec4e723def22ac22ff78d8883eb738c0ca31b86c4eb
5
5
  SHA512:
6
- metadata.gz: 52fc352ae01776093655bb8b91d7489613a4ca2d185dca1de781f60230f5a91355c96f193c22ec8c8b177482e097b35e867020c4a0138a7e5bba4457ffda1621
7
- data.tar.gz: 53259a4704e7f80beddce4c93db9ef66fc0702907afbe52574bbac98f3e7cea5d8e2eeab4ca434255732a79d6b46c281f7751294982521491485254fec0da24e
6
+ metadata.gz: 994c70d561ee85193606fe7050db9d56ff204c051cec9dd0da64c29c2e7c4e921a26809b7f4bf8e91e86fbf8eb6e00a953f05ef43181ece607691a6d7d1dd6c8
7
+ data.tar.gz: 5a8b698fcc30d66117962171a300d38dfc04fa06cf39e7228189ef963ae7d5a40abef2ba8d9735484eba26cf615f803f65f812908aa76ae2c75e6c095e085a05
@@ -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
- * No changes.
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) ##
@@ -17,6 +17,10 @@ module Rails
17
17
  include Actions
18
18
 
19
19
  class << self
20
+ def exit_on_failure? # :nodoc:
21
+ false
22
+ end
23
+
20
24
  # Returns true when the app is a Rails engine.
21
25
  def engine?
22
26
  defined?(ENGINE_ROOT)
@@ -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(&Proc.new) if block_given?
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
- with_inline_jobs { load(seed_file) } if seed_file
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.
@@ -9,8 +9,8 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
- TINY = 3
13
- PRE = nil
12
+ TINY = 4
13
+ PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -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.with_clean_env do
418
- full_command = %Q["#{Gem.ruby}" "#{_bundle_command}" #{command}]
419
- if options[:quiet]
420
- system(full_command, out: File::NULL)
421
- else
422
- system(full_command)
423
- end
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
@@ -232,6 +232,7 @@ module Rails
232
232
 
233
233
  def tmp
234
234
  empty_directory_with_keep_file "tmp"
235
+ empty_directory_with_keep_file "tmp/pids"
235
236
  empty_directory "tmp/cache"
236
237
  empty_directory "tmp/cache/assets"
237
238
  end
@@ -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.3
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-03-28 00:00:00.000000000 Z
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.3
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.3
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.3
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.3
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.3
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.3
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.3/railties
426
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3/railties/CHANGELOG.md
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: '0'
442
+ version: 1.3.1
443
443
  requirements: []
444
- rubygems_version: 3.0.1
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.