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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6be02fe1be60a0bf8a66be15adfe90b9610296af
4
- data.tar.gz: 57726a26a67abc5e1a318b912a4f37fab0bcd238
3
+ metadata.gz: 935898d05c4eaa13390dc01c86a6ebc63c6f8842
4
+ data.tar.gz: f3c166c76c84f36c106d61f38facfa16fadad0d7
5
5
  SHA512:
6
- metadata.gz: f5b842d5deeff2e7c2f0891eaca6112bfcbade41b7fd378560f2e13fbe4c0fdce7d19745f125b33442f423cb784acd4dcb2f63374e7ce2fa5d86ade4194a6ece
7
- data.tar.gz: bd4e8d367fbe310e5ef9d2e47f33508c7010ac29affb94b20748fa9c1dccd2fd153c5775ec026eb11496e5803c278cbff0a8944b2e56a997a04f5d9329bb18df
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, default: 3000
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", options[:port]).to_i
188
+ options[:port] || ENV.fetch("PORT", DEFAULT_PORT).to_i
188
189
  end
189
190
 
190
191
  def host
@@ -7,7 +7,7 @@ module Rails
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
- TINY = 0
10
+ TINY = 1
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -317,10 +317,6 @@ module Rails
317
317
 
318
318
  def create_vendor_files
319
319
  build(:vendor)
320
-
321
- if options[:skip_yarn]
322
- remove_file "package.json"
323
- end
324
320
  end
325
321
 
326
322
  def delete_app_assets_if_api_option
@@ -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.0'
37
+ gem 'capybara', '~> 2.13'
38
38
  gem 'selenium-webdriver'
39
39
  <%- end -%>
40
40
  end
@@ -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
- ActiveRecord::Migration.maintain_test_schema!
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
@@ -6,7 +6,7 @@ require "shellwords"
6
6
  module Minitest
7
7
  class SuppressedSummaryReporter < SummaryReporter
8
8
  # Disable extra failure output after a run if output is inline.
9
- def aggregated_results
9
+ def aggregated_results(*)
10
10
  super unless options[:output_inline]
11
11
  end
12
12
  end
@@ -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.0
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-04-27 00:00:00.000000000 Z
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.0
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.0
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.0
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.0
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.0
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.0
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.11
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: