railties 5.2.1.1 → 5.2.2.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of railties might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ac62b7145047acaa2ca4089363697d3e41b87ac975d3342cb13af99a6d5aa07
4
- data.tar.gz: c843b07e8cdda6352c8e94410540ca9c05bcf9eafd98ae9636ea5b2a796499d4
3
+ metadata.gz: 7c34627f125262fd15127828e898af27ae9557e58fb259a1fc0ed01a654f56fa
4
+ data.tar.gz: dee100a04377ea9ee39d4046fe70c32b1836b6b0b68943069361faf6cccb8178
5
5
  SHA512:
6
- metadata.gz: 8c7db2109b887540c55a3f82aa7f72dc9ad373f9f6946fc65cd6aacbfe82652db54f925e81b85c69e93aa46db01166fb0cb6eed87110a48d728c4428f5c2f3b2
7
- data.tar.gz: 568086504c93ff9ae1205b8b68fa58a18e62ceb984adf5f676abb3e817b12726e42b33ba474aa4dab622d44ea00346ad35a195a0825a017c904f609567d86b4a
6
+ metadata.gz: 76ac1795e1f8236d7a9e7a53a0bd22d27f5c0c4d8aacf073892bc80faeb25a272ef121a6372207c49b109765854cabb1d01bde339d308925e51a055d3d2cef82
7
+ data.tar.gz: 24072b84aecf7c54244cf4f4a6c4075cb8dfcfcc5d15b672a6237c20400d8a9226c6152529459c626a3158314a86794d667d878bec17f05957d605f121d1ab5f
@@ -1,3 +1,14 @@
1
+ ## Rails 5.2.2.rc1 (November 28, 2018) ##
2
+
3
+ * Disable content security policy for mailer previews.
4
+
5
+ *Dylan Reile*
6
+
7
+ * Log the remote IP address of clients behind a proxy.
8
+
9
+ *Atul Bhosale*
10
+
11
+
1
12
  ## Rails 5.2.1.1 (November 27, 2018) ##
2
13
 
3
14
  * No changes.
@@ -191,7 +191,7 @@ module Rails
191
191
  "Please note that YAML must be consistently indented using spaces. Tabs are not allowed. " \
192
192
  "Error: #{e.message}"
193
193
  rescue => e
194
- raise e, "Cannot load `Rails.application.database_configuration`:\n#{e.message}", e.backtrace
194
+ raise e, "Cannot load database configuration:\n#{e.message}", e.backtrace
195
195
  end
196
196
 
197
197
  def colorize_logging
@@ -9,8 +9,8 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
- TINY = 1
13
- PRE = "1"
12
+ TINY = 2
13
+ PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -4,21 +4,30 @@ $:.push File.expand_path("lib", __dir__)
4
4
  require "<%= namespaced_name %>/version"
5
5
 
6
6
  # Describe your gem and declare its dependencies:
7
- Gem::Specification.new do |s|
8
- s.name = "<%= name %>"
9
- s.version = <%= camelized_modules %>::VERSION
10
- s.authors = ["<%= author %>"]
11
- s.email = ["<%= email %>"]
12
- s.homepage = "TODO"
13
- s.summary = "TODO: Summary of <%= camelized_modules %>."
14
- s.description = "TODO: Description of <%= camelized_modules %>."
15
- s.license = "MIT"
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "<%= name %>"
9
+ spec.version = <%= camelized_modules %>::VERSION
10
+ spec.authors = ["<%= author %>"]
11
+ spec.email = ["<%= email %>"]
12
+ spec.homepage = "TODO"
13
+ spec.summary = "TODO: Summary of <%= camelized_modules %>."
14
+ spec.description = "TODO: Description of <%= camelized_modules %>."
15
+ spec.license = "MIT"
16
16
 
17
- s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
18
25
 
19
- <%= '# ' if options.dev? || options.edge? -%>s.add_dependency "rails", "<%= Array(rails_version_specifier).join('", "') %>"
26
+ spec.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
27
+
28
+ <%= '# ' if options.dev? || options.edge? -%>spec.add_dependency "rails", "<%= Array(rails_version_specifier).join('", "') %>"
20
29
  <% unless options[:skip_active_record] -%>
21
30
 
22
- s.add_development_dependency "<%= gem_for_database[0] %>"
31
+ spec.add_development_dependency "<%= gem_for_database[0] %>"
23
32
  <% end -%>
24
33
  end
@@ -16,7 +16,7 @@ class <%= class_name.pluralize %>Test < ApplicationSystemTestCase
16
16
  click_on "New <%= class_name.titleize %>"
17
17
 
18
18
  <%- attributes_hash.each do |attr, value| -%>
19
- fill_in "<%= attr.humanize.titleize %>", with: <%= value %>
19
+ fill_in "<%= attr.humanize %>", with: <%= value %>
20
20
  <%- end -%>
21
21
  click_on "Create <%= human_name %>"
22
22
 
@@ -29,7 +29,7 @@ class <%= class_name.pluralize %>Test < ApplicationSystemTestCase
29
29
  click_on "Edit", match: :first
30
30
 
31
31
  <%- attributes_hash.each do |attr, value| -%>
32
- fill_in "<%= attr.humanize.titleize %>", with: <%= value %>
32
+ fill_in "<%= attr.humanize %>", with: <%= value %>
33
33
  <%- end -%>
34
34
  click_on "Update <%= human_name %>"
35
35
 
@@ -10,6 +10,8 @@ class Rails::MailersController < Rails::ApplicationController # :nodoc:
10
10
 
11
11
  helper_method :part_query, :locale_query
12
12
 
13
+ content_security_policy(false)
14
+
13
15
  def index
14
16
  @previews = ActionMailer::Preview.all
15
17
  @page_title = "Mailer Previews"
@@ -50,7 +50,7 @@ module Rails
50
50
  'Started %s "%s" for %s at %s' % [
51
51
  request.request_method,
52
52
  request.filtered_path,
53
- request.ip,
53
+ request.remote_ip,
54
54
  Time.now.to_default_s ]
55
55
  end
56
56
 
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.2.1.1
4
+ version: 5.2.2.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: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-11-28 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.2.1.1
19
+ version: 5.2.2.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.2.1.1
26
+ version: 5.2.2.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.2.1.1
33
+ version: 5.2.2.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.2.1.1
40
+ version: 5.2.2.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.2.1.1
95
+ version: 5.2.2.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.2.1.1
102
+ version: 5.2.2.rc1
103
103
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
104
104
  email: david@loudthinking.com
105
105
  executables:
@@ -421,8 +421,8 @@ homepage: http://rubyonrails.org
421
421
  licenses:
422
422
  - MIT
423
423
  metadata:
424
- source_code_uri: https://github.com/rails/rails/tree/v5.2.1.1/railties
425
- changelog_uri: https://github.com/rails/rails/blob/v5.2.1.1/railties/CHANGELOG.md
424
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.2.rc1/railties
425
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.2.rc1/railties/CHANGELOG.md
426
426
  post_install_message:
427
427
  rdoc_options:
428
428
  - "--exclude"
@@ -436,9 +436,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
436
436
  version: 2.2.2
437
437
  required_rubygems_version: !ruby/object:Gem::Requirement
438
438
  requirements:
439
- - - ">="
439
+ - - ">"
440
440
  - !ruby/object:Gem::Version
441
- version: '0'
441
+ version: 1.3.1
442
442
  requirements: []
443
443
  rubyforge_project:
444
444
  rubygems_version: 2.7.6