railties 5.1.3 → 5.1.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
  SHA1:
3
- metadata.gz: ba845cef2c76a65ca48dd2753bfab4f30f9608f7
4
- data.tar.gz: 1da39e971af06fbcf916e897dd67e30a8a9c0d03
3
+ metadata.gz: 3b78c53ef7dd4bb51502196a7523f30037acdea4
4
+ data.tar.gz: 6466bf23087844b5d9846e3b5a6a577d6834aebc
5
5
  SHA512:
6
- metadata.gz: aa0bc4700627e14b7a49d3b63bce976679231cc34ddf11acce824f3560d881f5f818efd90fa5a59e23f72f9eb126eb13e66aa8ff46fad1e39d6c646e505a9b1f
7
- data.tar.gz: 26174f32f00e2a252b2f70435c3a95fe2cbafe74eb2d46c7fbe8d53a6996b3cc0554d241f7652722120b4444ba6f3d2a90e7ff744f0e0f92ac9453963d65f1a7
6
+ metadata.gz: 2c3bcfc373d25dbe65fff6f5e773af7b48233a60f20b5d40a33c49e93ee993f2eae83abe9d8758de17f60eab61c5e17734c94e869e42f046a064be8179914898
7
+ data.tar.gz: 93cc65c0a332894a66a348a13125cf3b64113907001ab25de41bfa71ac76b8a6f33a4de82dce907f73ee5cbb9eb2e11a181b7083078802e01fb3b18c755d6c65
@@ -1,3 +1,11 @@
1
+ ## Rails 5.1.4.rc1 (August 24, 2017) ##
2
+
3
+ * Allow irb options to be passed from `rails console` command.
4
+
5
+ Fixes #28988.
6
+
7
+ *Yuji Yaginuma*
8
+
1
9
  ## Rails 5.1.3 (August 03, 2017) ##
2
10
 
3
11
  * No changes.
@@ -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} on #{url}"
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
@@ -7,8 +7,8 @@ module Rails
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
- TINY = 3
11
- PRE = nil
10
+ TINY = 4
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -1,6 +1,8 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- # ApplicationController.renderer.defaults.merge!(
4
- # http_host: 'example.org',
5
- # https: false
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.3
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-03 00:00:00.000000000 Z
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.3
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.3
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.3
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.3
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.3
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.3
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: '0'
426
+ version: 1.3.1
432
427
  requirements: []
433
428
  rubyforge_project:
434
429
  rubygems_version: 2.6.12
Binary file
Binary file
Binary file
Binary file