railties 5.1.0 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails/commands/server/server_command.rb +3 -2
- data/lib/rails/gem_version.rb +1 -1
- data/lib/rails/generators/rails/app/app_generator.rb +0 -4
- data/lib/rails/generators/rails/app/templates/Gemfile +1 -1
- data/lib/rails/test_help.rb +6 -1
- data/lib/rails/test_unit/minitest_plugin.rb +1 -1
- data/lib/rails/test_unit/railtie.rb +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 935898d05c4eaa13390dc01c86a6ebc63c6f8842
|
4
|
+
data.tar.gz: f3c166c76c84f36c106d61f38facfa16fadad0d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 898ea53fede6af21c7f734fe7b5aafa4676fb0b8cc64142a026d9044b7e6685b7a75050e46d0b03dbe9a61de428d4d41ad85f3b5768919561df4371c37b5ebca
|
7
|
+
data.tar.gz: 5e1ff34efd72f10fa9e0f60b0ef9e4aa47714a3c3889f6c5b0a71405b9cdcf063c29f689fd084490f444e77b8362371c7773162d5403ffbce18d2daf1ef05f1c
|
@@ -95,10 +95,11 @@ module Rails
|
|
95
95
|
|
96
96
|
module Command
|
97
97
|
class ServerCommand < Base # :nodoc:
|
98
|
+
DEFAULT_PORT = 3000
|
98
99
|
DEFAULT_PID_PATH = "tmp/pids/server.pid".freeze
|
99
100
|
|
100
101
|
class_option :port, aliases: "-p", type: :numeric,
|
101
|
-
desc: "Runs Rails on the specified port.", banner: :port
|
102
|
+
desc: "Runs Rails on the specified port - defaults to 3000.", banner: :port
|
102
103
|
class_option :binding, aliases: "-b", type: :string,
|
103
104
|
desc: "Binds Rails to the specified IP - defaults to 'localhost' in development and '0.0.0.0' in other environments'.",
|
104
105
|
banner: :IP
|
@@ -184,7 +185,7 @@ module Rails
|
|
184
185
|
end
|
185
186
|
|
186
187
|
def port
|
187
|
-
ENV.fetch("PORT",
|
188
|
+
options[:port] || ENV.fetch("PORT", DEFAULT_PORT).to_i
|
188
189
|
end
|
189
190
|
|
190
191
|
def host
|
data/lib/rails/gem_version.rb
CHANGED
@@ -34,7 +34,7 @@ group :development, :test do
|
|
34
34
|
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
35
35
|
<%- if depends_on_system_test? -%>
|
36
36
|
# Adds support for Capybara system testing and selenium driver
|
37
|
-
gem 'capybara', '~> 2.13
|
37
|
+
gem 'capybara', '~> 2.13'
|
38
38
|
gem 'selenium-webdriver'
|
39
39
|
<%- end -%>
|
40
40
|
end
|
data/lib/rails/test_help.rb
CHANGED
@@ -12,7 +12,12 @@ require "rails/generators/test_case"
|
|
12
12
|
require "active_support/testing/autorun"
|
13
13
|
|
14
14
|
if defined?(ActiveRecord::Base)
|
15
|
-
|
15
|
+
begin
|
16
|
+
ActiveRecord::Migration.maintain_test_schema!
|
17
|
+
rescue ActiveRecord::PendingMigrationError => e
|
18
|
+
puts e.to_s.strip
|
19
|
+
exit 1
|
20
|
+
end
|
16
21
|
|
17
22
|
module ActiveSupport
|
18
23
|
class TestCase
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "rails/test_unit/line_filtering"
|
2
2
|
|
3
3
|
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
|
4
|
-
ENV["RAILS_ENV"] ||= "test"
|
4
|
+
ENV["RAILS_ENV"] ||= Rake.application.options.show_tasks ? "development" : "test"
|
5
5
|
end
|
6
6
|
|
7
7
|
module Rails
|
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.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: 2017-
|
11
|
+
date: 2017-05-12 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.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.1.
|
26
|
+
version: 5.1.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.1.
|
33
|
+
version: 5.1.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.1.
|
40
|
+
version: 5.1.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.1.
|
95
|
+
version: 5.1.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.1.
|
102
|
+
version: 5.1.1
|
103
103
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
104
104
|
email: david@loudthinking.com
|
105
105
|
executables:
|
@@ -427,8 +427,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
427
427
|
version: '0'
|
428
428
|
requirements: []
|
429
429
|
rubyforge_project:
|
430
|
-
rubygems_version: 2.6.
|
430
|
+
rubygems_version: 2.6.10
|
431
431
|
signing_key:
|
432
432
|
specification_version: 4
|
433
433
|
summary: Tools for creating, working with, and running Rails applications.
|
434
434
|
test_files: []
|
435
|
+
has_rdoc:
|