railties 5.0.2 → 5.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79a83bbd3fe0ef24816a77ef6049fdf908a0d1e9
4
- data.tar.gz: 3d8c260021b819535ef9b0c199f06dacefde3fa6
3
+ metadata.gz: a9400fe254eb1f8bf0afd8d8dc8dc407f55956fb
4
+ data.tar.gz: 3706ef5dec22b48773a4640728b1f0909c9a8d09
5
5
  SHA512:
6
- metadata.gz: 14e9bf6d55aa31685b0e723be03badc68a0617a79ee212b61298b246424fc8cbe5ba83a1a612a78e01b6cfaea9866efc91c4fc5f8707bbc3315ef4bbafcf3583
7
- data.tar.gz: bdd76de92784b88e212a1606abf31b92dd2171149075f379fb7bfe17545651b85c6ff8673dd7b0a4ee4b0aeddcf123b6750612461df1ccd6b22d09b715fc06e5
6
+ metadata.gz: 4aaf5ee084713fc4ee0fc44bd7246c7c5e11ac81df8e601d0d43f864a47f48da5760f22e34529243cf6b037757e80e1def4dd701cba1feeb572e14cb3e408cd0
7
+ data.tar.gz: 6a47361c3c3f9135471b9c6489e9ca67e2de7bd100d0399f98c2fc800c9abde1c8dabaf3e35e91c9b2456669ff33758f45060923e7ff5776307127159b852617
@@ -1,3 +1,9 @@
1
+ * Namespace error pages' CSS selectors to stop the styles from bleeding into other pages
2
+ when using Turbolinks.
3
+
4
+ *Jan Krutisch*
5
+
6
+
1
7
  ## Rails 5.0.2 (March 01, 2017) ##
2
8
 
3
9
  * Fix running multiple tests in one `rake` command
@@ -58,10 +64,6 @@
58
64
 
59
65
  *Rafael Mendonça França*
60
66
 
61
- * Ensure `/rails/info` routes match in development for apps with a catch-all globbing route.
62
-
63
- *Nicholas Firth-McCoy*
64
-
65
67
 
66
68
  ## Rails 5.0.0 (June 30, 2016) ##
67
69
 
@@ -69,9 +71,10 @@
69
71
 
70
72
  *Nicholas Firth-McCoy*
71
73
 
72
- * Ensure `/rails/info` routes match in development for apps with a catch-all globbing route.
74
+ * Default `config.assets.quiet = true` in the development environment. Suppress
75
+ logging of assets requests by default.
73
76
 
74
- *Nicholas Firth-McCoy*
77
+ *Kevin McPhillips*
75
78
 
76
79
  * Add `config/initializers/to_time_preserves_timezone.rb`, which tells
77
80
  Active Support to preserve the receiver's timezone when calling `to_time`.
@@ -11,9 +11,13 @@ module Rails
11
11
 
12
12
  def parse!(args)
13
13
  args, options = args.dup, {}
14
+ options[:user_supplied_options] = []
15
+ options[:user_supplied_options] << :Host if ENV["Host"]
16
+ options[:user_supplied_options] << :Port if ENV["PORT"]
14
17
 
15
18
  option_parser(options).parse! args
16
19
 
20
+ options[:user_supplied_options].uniq!
17
21
  options[:log_stdout] = options[:daemonize].blank? && (options[:environment] || Rails.env) == "development"
18
22
  options[:server] = args.shift
19
23
  options
@@ -25,21 +29,42 @@ module Rails
25
29
  OptionParser.new do |opts|
26
30
  opts.banner = "Usage: rails server [mongrel, thin etc] [options]"
27
31
  opts.on("-p", "--port=port", Integer,
28
- "Runs Rails on the specified port.", "Default: 3000") { |v| options[:Port] = v }
32
+ "Runs Rails on the specified port.", "Default: 3000") { |v|
33
+ options[:user_supplied_options] << :Port
34
+ options[:Port] = v
35
+ }
29
36
  opts.on("-b", "--binding=IP", String,
30
- "Binds Rails to the specified IP.", "Default: localhost") { |v| options[:Host] = v }
37
+ "Binds Rails to the specified IP.", "Default: localhost") { |v|
38
+ options[:user_supplied_options] << :Host
39
+ options[:Host] = v
40
+ }
31
41
  opts.on("-c", "--config=file", String,
32
- "Uses a custom rackup configuration.") { |v| options[:config] = v }
33
- opts.on("-d", "--daemon", "Runs server as a Daemon.") { options[:daemonize] = true }
42
+ "Uses a custom rackup configuration.") { |v|
43
+ options[:user_supplied_options] << :config
44
+ options[:config] = v
45
+ }
46
+ opts.on("-d", "--daemon", "Runs server as a Daemon.") {
47
+ options[:user_supplied_options] << :daemonize
48
+ options[:daemonize] = true
49
+ }
34
50
  opts.on("-e", "--environment=name", String,
35
51
  "Specifies the environment to run this server under (test/development/production).",
36
- "Default: development") { |v| options[:environment] = v }
52
+ "Default: development") { |v|
53
+ options[:user_supplied_options] << :environment
54
+ options[:environment] = v
55
+ }
37
56
  opts.on("-P", "--pid=pid", String,
38
57
  "Specifies the PID file.",
39
- "Default: tmp/pids/server.pid") { |v| options[:pid] = v }
58
+ "Default: tmp/pids/server.pid") { |v|
59
+ options[:user_supplied_options] << :pid
60
+ options[:pid] = v
61
+ }
40
62
  opts.on("-C", "--[no-]dev-caching",
41
63
  "Specifies whether to perform caching in development.",
42
- "true or false") { |v| options[:caching] = v }
64
+ "true or false") { |v|
65
+ options[:user_supplied_options] << :caching
66
+ options[:caching] = v
67
+ }
43
68
 
44
69
  opts.separator ""
45
70
 
@@ -100,7 +125,6 @@ module Rails
100
125
  end
101
126
 
102
127
  private
103
-
104
128
  def setup_dev_caching
105
129
  if options[:environment] == "development"
106
130
  Rails::DevCaching.enable_by_argument(options[:caching])
@@ -7,7 +7,7 @@ module Rails
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 0
10
- TINY = 2
10
+ TINY = 3
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -7,6 +7,8 @@
7
7
  #
8
8
  <%- end -%>
9
9
  # Read the Guide for Upgrading Ruby on Rails for more info on each option.
10
+
11
+ Rails.application.config.raise_on_unfiltered_parameters = true
10
12
  <%- unless options[:api] -%>
11
13
 
12
14
  # Enable per-form CSRF tokens. Previous versions had false.
@@ -4,7 +4,7 @@
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
7
+ .rails-default-error-page {
8
8
  background-color: #EFEFEF;
9
9
  color: #2E2F30;
10
10
  text-align: center;
@@ -12,13 +12,13 @@
12
12
  margin: 0;
13
13
  }
14
14
 
15
- div.dialog {
15
+ .rails-default-error-page div.dialog {
16
16
  width: 95%;
17
17
  max-width: 33em;
18
18
  margin: 4em auto 0;
19
19
  }
20
20
 
21
- div.dialog > div {
21
+ .rails-default-error-page div.dialog > div {
22
22
  border: 1px solid #CCC;
23
23
  border-right-color: #999;
24
24
  border-left-color: #999;
@@ -31,13 +31,13 @@
31
31
  box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
32
  }
33
33
 
34
- h1 {
34
+ .rails-default-error-page h1 {
35
35
  font-size: 100%;
36
36
  color: #730E15;
37
37
  line-height: 1.5em;
38
38
  }
39
39
 
40
- div.dialog > p {
40
+ .rails-default-error-page div.dialog > p {
41
41
  margin: 0 0 1em;
42
42
  padding: 1em;
43
43
  background-color: #F7F7F7;
@@ -54,7 +54,7 @@
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
57
+ <body class="rails-default-error-page">
58
58
  <!-- This file lives in public/404.html -->
59
59
  <div class="dialog">
60
60
  <div>
@@ -4,7 +4,7 @@
4
4
  <title>The change you wanted was rejected (422)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
7
+ .rails-default-error-page {
8
8
  background-color: #EFEFEF;
9
9
  color: #2E2F30;
10
10
  text-align: center;
@@ -12,13 +12,13 @@
12
12
  margin: 0;
13
13
  }
14
14
 
15
- div.dialog {
15
+ .rails-default-error-page div.dialog {
16
16
  width: 95%;
17
17
  max-width: 33em;
18
18
  margin: 4em auto 0;
19
19
  }
20
20
 
21
- div.dialog > div {
21
+ .rails-default-error-page div.dialog > div {
22
22
  border: 1px solid #CCC;
23
23
  border-right-color: #999;
24
24
  border-left-color: #999;
@@ -31,13 +31,13 @@
31
31
  box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
32
  }
33
33
 
34
- h1 {
34
+ .rails-default-error-page h1 {
35
35
  font-size: 100%;
36
36
  color: #730E15;
37
37
  line-height: 1.5em;
38
38
  }
39
39
 
40
- div.dialog > p {
40
+ .rails-default-error-page div.dialog > p {
41
41
  margin: 0 0 1em;
42
42
  padding: 1em;
43
43
  background-color: #F7F7F7;
@@ -54,7 +54,7 @@
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
57
+ <body class="rails-default-error-page">
58
58
  <!-- This file lives in public/422.html -->
59
59
  <div class="dialog">
60
60
  <div>
@@ -4,7 +4,7 @@
4
4
  <title>We're sorry, but something went wrong (500)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
7
+ .rails-default-error-page {
8
8
  background-color: #EFEFEF;
9
9
  color: #2E2F30;
10
10
  text-align: center;
@@ -12,13 +12,13 @@
12
12
  margin: 0;
13
13
  }
14
14
 
15
- div.dialog {
15
+ .rails-default-error-page div.dialog {
16
16
  width: 95%;
17
17
  max-width: 33em;
18
18
  margin: 4em auto 0;
19
19
  }
20
20
 
21
- div.dialog > div {
21
+ .rails-default-error-page div.dialog > div {
22
22
  border: 1px solid #CCC;
23
23
  border-right-color: #999;
24
24
  border-left-color: #999;
@@ -31,13 +31,13 @@
31
31
  box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
32
  }
33
33
 
34
- h1 {
34
+ .rails-default-error-page h1 {
35
35
  font-size: 100%;
36
36
  color: #730E15;
37
37
  line-height: 1.5em;
38
38
  }
39
39
 
40
- div.dialog > p {
40
+ .rails-default-error-page div.dialog > p {
41
41
  margin: 0 0 1em;
42
42
  padding: 1em;
43
43
  background-color: #F7F7F7;
@@ -54,7 +54,7 @@
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
57
+ <body class="rails-default-error-page">
58
58
  <!-- This file lives in public/500.html -->
59
59
  <div class="dialog">
60
60
  <div>
@@ -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.0.2
4
+ version: 5.0.3
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-03-01 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.0.2
19
+ version: 5.0.3
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.0.2
26
+ version: 5.0.3
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.0.2
33
+ version: 5.0.3
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.0.2
40
+ version: 5.0.3
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.0.2
95
+ version: 5.0.3
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.0.2
102
+ version: 5.0.3
103
103
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
104
104
  email: david@loudthinking.com
105
105
  executables:
@@ -409,3 +409,4 @@ signing_key:
409
409
  specification_version: 4
410
410
  summary: Tools for creating, working with, and running Rails applications.
411
411
  test_files: []
412
+ has_rdoc: