railties 5.1.3 → 5.1.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 +8 -0
- data/lib/rails/commands/console/console_command.rb +14 -2
- data/lib/rails/commands/server/server_command.rb +6 -2
- data/lib/rails/gem_version.rb +2 -2
- data/lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb +6 -4
- metadata +10 -15
- data/lib/rails/.DS_Store +0 -0
- data/lib/rails/command/.DS_Store +0 -0
- data/lib/rails/commands/.DS_Store +0 -0
- data/lib/rails/commands/generate/.DS_Store +0 -0
- data/lib/rails/engine/.DS_Store +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b78c53ef7dd4bb51502196a7523f30037acdea4
|
|
4
|
+
data.tar.gz: 6466bf23087844b5d9846e3b5a6a577d6834aebc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c3bcfc373d25dbe65fff6f5e773af7b48233a60f20b5d40a33c49e93ee993f2eae83abe9d8758de17f60eab61c5e17734c94e869e42f046a064be8179914898
|
|
7
|
+
data.tar.gz: 93cc65c0a332894a66a348a13125cf3b64113907001ab25de41bfa71ac76b8a6f33a4de82dce907f73ee5cbb9eb2e11a181b7083078802e01fb3b18c755d6c65
|
data/CHANGELOG.md
CHANGED
|
@@ -73,14 +73,26 @@ module Rails
|
|
|
73
73
|
class_option :environment, aliases: "-e", type: :string,
|
|
74
74
|
desc: "Specifies the environment to run this console under (test/development/production)."
|
|
75
75
|
|
|
76
|
+
def initialize(args = [], local_options = {}, config = {})
|
|
77
|
+
console_options = []
|
|
78
|
+
|
|
79
|
+
# For the same behavior as OptionParser, leave only options after "--" in ARGV.
|
|
80
|
+
termination = local_options.find_index("--")
|
|
81
|
+
if termination
|
|
82
|
+
console_options = local_options[termination + 1..-1]
|
|
83
|
+
local_options = local_options[0...termination]
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
ARGV.replace(console_options)
|
|
87
|
+
super(args, local_options, config)
|
|
88
|
+
end
|
|
89
|
+
|
|
76
90
|
def perform
|
|
77
91
|
extract_environment_option_from_argument
|
|
78
92
|
|
|
79
93
|
# RAILS_ENV needs to be set before config/application is required.
|
|
80
94
|
ENV["RAILS_ENV"] = options[:environment]
|
|
81
95
|
|
|
82
|
-
ARGV.clear # Clear ARGV so IRB doesn't freak.
|
|
83
|
-
|
|
84
96
|
require_application_and_environment!
|
|
85
97
|
Rails::Console.start(Rails.application, options)
|
|
86
98
|
end
|
|
@@ -64,9 +64,9 @@ module Rails
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def print_boot_information
|
|
67
|
-
url = "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}"
|
|
67
|
+
url = "on #{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}" unless use_puma?
|
|
68
68
|
puts "=> Booting #{ActiveSupport::Inflector.demodulize(server)}"
|
|
69
|
-
puts "=> Rails #{Rails.version} application starting in #{Rails.env}
|
|
69
|
+
puts "=> Rails #{Rails.version} application starting in #{Rails.env} #{url}"
|
|
70
70
|
puts "=> Run `rails server -h` for more startup options"
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -91,6 +91,10 @@ module Rails
|
|
|
91
91
|
def restart_command
|
|
92
92
|
"bin/rails server #{ARGV.join(' ')}"
|
|
93
93
|
end
|
|
94
|
+
|
|
95
|
+
def use_puma?
|
|
96
|
+
server.to_s == "Rack::Handler::Puma"
|
|
97
|
+
end
|
|
94
98
|
end
|
|
95
99
|
|
|
96
100
|
module Command
|
data/lib/rails/gem_version.rb
CHANGED
data/lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
|
2
2
|
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
3
|
+
# ActiveSupport::Reloader.to_prepare do
|
|
4
|
+
# ApplicationController.renderer.defaults.merge!(
|
|
5
|
+
# http_host: 'example.org',
|
|
6
|
+
# https: false
|
|
7
|
+
# )
|
|
8
|
+
# 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.1.
|
|
4
|
+
version: 5.1.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: 2017-08-
|
|
11
|
+
date: 2017-08-24 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.1.
|
|
19
|
+
version: 5.1.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.1.
|
|
26
|
+
version: 5.1.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.1.
|
|
33
|
+
version: 5.1.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.1.
|
|
40
|
+
version: 5.1.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.1.
|
|
95
|
+
version: 5.1.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.1.
|
|
102
|
+
version: 5.1.4.rc1
|
|
103
103
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
|
104
104
|
email: david@loudthinking.com
|
|
105
105
|
executables:
|
|
@@ -114,7 +114,6 @@ files:
|
|
|
114
114
|
- exe/rails
|
|
115
115
|
- lib/minitest/rails_plugin.rb
|
|
116
116
|
- lib/rails.rb
|
|
117
|
-
- lib/rails/.DS_Store
|
|
118
117
|
- lib/rails/all.rb
|
|
119
118
|
- lib/rails/api/generator.rb
|
|
120
119
|
- lib/rails/api/task.rb
|
|
@@ -131,18 +130,15 @@ files:
|
|
|
131
130
|
- lib/rails/code_statistics.rb
|
|
132
131
|
- lib/rails/code_statistics_calculator.rb
|
|
133
132
|
- lib/rails/command.rb
|
|
134
|
-
- lib/rails/command/.DS_Store
|
|
135
133
|
- lib/rails/command/actions.rb
|
|
136
134
|
- lib/rails/command/base.rb
|
|
137
135
|
- lib/rails/command/behavior.rb
|
|
138
136
|
- lib/rails/command/environment_argument.rb
|
|
139
137
|
- lib/rails/commands.rb
|
|
140
|
-
- lib/rails/commands/.DS_Store
|
|
141
138
|
- lib/rails/commands/application/application_command.rb
|
|
142
139
|
- lib/rails/commands/console/console_command.rb
|
|
143
140
|
- lib/rails/commands/dbconsole/dbconsole_command.rb
|
|
144
141
|
- lib/rails/commands/destroy/destroy_command.rb
|
|
145
|
-
- lib/rails/commands/generate/.DS_Store
|
|
146
142
|
- lib/rails/commands/generate/generate_command.rb
|
|
147
143
|
- lib/rails/commands/help/USAGE
|
|
148
144
|
- lib/rails/commands/help/help_command.rb
|
|
@@ -161,7 +157,6 @@ files:
|
|
|
161
157
|
- lib/rails/console/helpers.rb
|
|
162
158
|
- lib/rails/dev_caching.rb
|
|
163
159
|
- lib/rails/engine.rb
|
|
164
|
-
- lib/rails/engine/.DS_Store
|
|
165
160
|
- lib/rails/engine/commands.rb
|
|
166
161
|
- lib/rails/engine/configuration.rb
|
|
167
162
|
- lib/rails/engine/railties.rb
|
|
@@ -426,9 +421,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
426
421
|
version: 2.2.2
|
|
427
422
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
428
423
|
requirements:
|
|
429
|
-
- - "
|
|
424
|
+
- - ">"
|
|
430
425
|
- !ruby/object:Gem::Version
|
|
431
|
-
version:
|
|
426
|
+
version: 1.3.1
|
|
432
427
|
requirements: []
|
|
433
428
|
rubyforge_project:
|
|
434
429
|
rubygems_version: 2.6.12
|
data/lib/rails/.DS_Store
DELETED
|
Binary file
|
data/lib/rails/command/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/rails/engine/.DS_Store
DELETED
|
Binary file
|