railties 4.2.5 → 4.2.11.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
- SHA1:
3
- metadata.gz: 99b9a15de9b06ecd2ac589b7850664add72545a5
4
- data.tar.gz: 0696a5943717c327ccda2c4c5a5ef4c6698ba1af
2
+ SHA256:
3
+ metadata.gz: 79d31f00834539bbe62ada52b63070117a6162fb651ca336f1eb857b2c670ad1
4
+ data.tar.gz: 26c7373a1ee86c915059bf626f8a41acb2bed09245a77adbbfc8a4d0821e6a55
5
5
  SHA512:
6
- metadata.gz: 87e94d83997fce957aa397dbe08c16c81ea826c09bcb0e8fde0b78597b1ba6c0b4a8f9287c00d130d4cf68d340913935c77c116577e8e4ecc5c85049d62375e0
7
- data.tar.gz: 1a14c4a20d368bf95b896c681f85997846ce529d530daea8d00373c73fd29180c88ecf276ec2c73996995767f6a0d8d0c26e73d199a4490c8569a2cb0c2319f9
6
+ metadata.gz: 7b95f564f6166718dc712a1558d3c5c0b134f9809bc566f5cd004accede9b5f15e565091cd797becfec8d86578c0a884a7eecfe2d469696ed5bd9f4bb76feb03
7
+ data.tar.gz: 5eb15d0e1b87f381e09f24aee99342fe7da74894b86f3dc4a001ee180102228a351003b484eb2f1fe174b97430152c5a2965252d98dc10325a7f2b2fc9293f99
data/CHANGELOG.md CHANGED
@@ -1,3 +1,73 @@
1
+ ## Rails 4.2.11.1 (March 11, 2019) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 4.2.11 (November 27, 2018) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 4.2.10 (September 27, 2017) ##
12
+
13
+ * No changes.
14
+
15
+
16
+ ## Rails 4.2.9 (June 26, 2017) ##
17
+
18
+ * No changes.
19
+
20
+
21
+ ## Rails 4.2.8 (February 21, 2017) ##
22
+
23
+ * Add `config/initializers/to_time_preserves_timezone.rb`, which tells
24
+ Active Support to preserve the receiver's timezone when calling `to_time`.
25
+ This matches the new behavior that will be part of Ruby 2.4.
26
+
27
+ Fixes #24617.
28
+
29
+ *Andrew White*
30
+
31
+ * Reset a new session directly after its creation in ActionDispatch::IntegrationTest#open_session
32
+
33
+ Fixes Issue #22742
34
+
35
+ *Tawan Sierek*
36
+
37
+ * Run `before_configuration` callbacks as soon as application constant
38
+ inherits from `Rails::Application`.
39
+
40
+ Fixes #19880.
41
+
42
+ *Yuji Yaginuma*
43
+
44
+
45
+ ## Rails 4.2.7 (July 12, 2016) ##
46
+
47
+ * Do not run `bundle install` when generating a new plugin.
48
+
49
+ Since bundler 1.12.0, the gemspec is validated so the `bundle install`
50
+ command will fail just after the gem is created causing confusion to the
51
+ users. This change was a bug fix to correctly validate gemspecs.
52
+
53
+ *Rafael Mendonça França*
54
+
55
+
56
+ ## Rails 4.2.6 (March 07, 2016) ##
57
+
58
+ * No changes.
59
+
60
+
61
+ ## Rails 4.2.5.2 (February 26, 2016) ##
62
+
63
+ * No changes.
64
+
65
+
66
+ ## Rails 4.2.5.1 (January 25, 2016) ##
67
+
68
+ * No changes.
69
+
70
+
1
71
  ## Rails 4.2.5 (November 12, 2015) ##
2
72
 
3
73
  * Fix displaying mailer previews on non local requests when config
@@ -90,6 +90,7 @@ module Rails
90
90
  super
91
91
  Rails.app_class = base
92
92
  add_lib_to_load_path!(find_root(base.called_from))
93
+ ActiveSupport.run_load_hooks(:before_configuration, base)
93
94
  end
94
95
 
95
96
  def instance
@@ -145,7 +146,6 @@ module Rails
145
146
  def run_load_hooks! # :nodoc:
146
147
  return self if @ran_load_hooks
147
148
  @ran_load_hooks = true
148
- ActiveSupport.run_load_hooks(:before_configuration, self)
149
149
 
150
150
  @initial_variable_values.each do |variable_name, value|
151
151
  if INITIAL_VARIABLES.include?(variable_name)
@@ -202,6 +202,10 @@ module Rails
202
202
  }
203
203
  end
204
204
  end
205
+
206
+ def respond_to_missing?(symbol, *)
207
+ true
208
+ end
205
209
  end
206
210
  end
207
211
  end
@@ -30,7 +30,7 @@ module Rails
30
30
  'sslca' => '--ssl-ca',
31
31
  'sslcert' => '--ssl-cert',
32
32
  'sslcapath' => '--ssl-capath',
33
- 'sslcipher' => '--ssh-cipher',
33
+ 'sslcipher' => '--ssl-cipher',
34
34
  'sslkey' => '--ssl-key'
35
35
  }.map { |opt, arg| "#{arg}=#{config[opt]}" if config[opt] }.compact
36
36
 
@@ -178,7 +178,7 @@ module Rails
178
178
  found = commands.detect do |cmd|
179
179
  dirs_on_path.detect do |path|
180
180
  full_path_command = File.join(path, cmd)
181
- File.executable? full_path_command
181
+ File.file?(full_path_command) && File.executable?(full_path_command)
182
182
  end
183
183
  end
184
184
 
@@ -138,11 +138,13 @@ module Rails
138
138
  def log_to_stdout
139
139
  wrapped_app # touch the app so the logger is set up
140
140
 
141
- console = ActiveSupport::Logger.new($stdout)
141
+ console = ActiveSupport::Logger.new(STDOUT)
142
142
  console.formatter = Rails.logger.formatter
143
143
  console.level = Rails.logger.level
144
144
 
145
- Rails.logger.extend(ActiveSupport::Logger.broadcast(console))
145
+ unless ActiveSupport::Logger.logger_outputs_to?(Rails.logger, STDOUT)
146
+ Rails.logger.extend(ActiveSupport::Logger.broadcast(console))
147
+ end
146
148
  end
147
149
  end
148
150
  end
@@ -7,8 +7,8 @@ module Rails
7
7
  module VERSION
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
- TINY = 5
11
- PRE = nil
10
+ TINY = 11
11
+ PRE = "1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -68,7 +68,7 @@ module Rails
68
68
  class_option :skip_test_unit, type: :boolean, aliases: '-T', default: false,
69
69
  desc: 'Skip Test::Unit files'
70
70
 
71
- class_option :rc, type: :string, default: false,
71
+ class_option :rc, type: :string, default: nil,
72
72
  desc: "Path to file containing extra configuration options for rails command"
73
73
 
74
74
  class_option :no_rc, type: :boolean, default: false,
@@ -111,6 +111,7 @@ module Rails
111
111
  jbuilder_gemfile_entry,
112
112
  sdoc_gemfile_entry,
113
113
  psych_gemfile_entry,
114
+ mime_type_gemfile_entry,
114
115
  @extra_entries].flatten.find_all(&@gem_filter)
115
116
  end
116
117
 
@@ -226,7 +227,7 @@ module Rails
226
227
  when "oracle" then ["ruby-oci8", nil]
227
228
  when "postgresql" then ["pg", ["~> 0.15"]]
228
229
  when "frontbase" then ["ruby-frontbase", nil]
229
- when "mysql" then ["mysql2", [">= 0.3.13", "< 0.5"]]
230
+ when "mysql" then ["mysql2", [">= 0.3.13", "< 0.6.0"]]
230
231
  when "sqlserver" then ["activerecord-sqlserver-adapter", nil]
231
232
  when "jdbcmysql" then ["activerecord-jdbcmysql-adapter", nil]
232
233
  when "jdbcsqlite3" then ["activerecord-jdbcsqlite3-adapter", nil]
@@ -310,6 +311,12 @@ module Rails
310
311
  GemfileEntry.new('psych', '~> 2.0', comment, platforms: :rbx)
311
312
  end
312
313
 
314
+ def mime_type_gemfile_entry
315
+ return [] unless RUBY_VERSION < '2'
316
+
317
+ GemfileEntry.new('mime-types', '< 3', nil, require: false)
318
+ end
319
+
313
320
  def bundle_command(command)
314
321
  say_status :run, "bundle #{command}"
315
322
 
@@ -88,12 +88,17 @@ module Rails
88
88
 
89
89
  def config_when_updating
90
90
  cookie_serializer_config_exist = File.exist?('config/initializers/cookies_serializer.rb')
91
+ to_time_preserves_timezone_config_exist = File.exist?('config/initializers/to_time_preserves_timezone.rb')
91
92
 
92
93
  config
93
94
 
94
95
  unless cookie_serializer_config_exist
95
96
  gsub_file 'config/initializers/cookies_serializer.rb', /json/, 'marshal'
96
97
  end
98
+
99
+ unless to_time_preserves_timezone_config_exist
100
+ remove_file 'config/initializers/to_time_preserves_timezone.rb'
101
+ end
97
102
  end
98
103
 
99
104
  def database_yml
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Preserve the timezone of the receiver when calling to `to_time`.
4
+ # Ruby 2.4 will change the behavior of `to_time` to preserve the timezone
5
+ # when converting to an instance of `Time` instead of the previous behavior
6
+ # of converting to the local system timezone.
7
+ #
8
+ # Rails 5.0 introduced this config option so that apps made with earlier
9
+ # versions of Rails are not affected when upgrading.
10
+ ActiveSupport.to_time_preserves_timezone = true
@@ -241,7 +241,7 @@ task default: :test
241
241
  build(:leftovers)
242
242
  end
243
243
 
244
- public_task :apply_rails_template, :run_bundle
244
+ public_task :apply_rails_template
245
245
 
246
246
  def name
247
247
  @name ||= begin
@@ -1,4 +1,5 @@
1
1
  module <%= camelized %>
2
2
  class ApplicationController < ActionController::Base
3
+ protect_from_forgery with: :exception
3
4
  end
4
5
  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: 4.2.5
4
+ version: 4.2.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2019-03-11 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: 4.2.5
19
+ version: 4.2.11.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: 4.2.5
26
+ version: 4.2.11.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: 4.2.5
33
+ version: 4.2.11.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: 4.2.5
40
+ version: 4.2.11.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - '='
80
80
  - !ruby/object:Gem::Version
81
- version: 4.2.5
81
+ version: 4.2.11.1
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - '='
87
87
  - !ruby/object:Gem::Version
88
- version: 4.2.5
88
+ version: 4.2.11.1
89
89
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
90
90
  email: david@loudthinking.com
91
91
  executables:
@@ -199,6 +199,7 @@ files:
199
199
  - lib/rails/generators/rails/app/templates/config/initializers/inflections.rb
200
200
  - lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb
201
201
  - lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt
202
+ - lib/rails/generators/rails/app/templates/config/initializers/to_time_preserves_timezone.rb
202
203
  - lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
203
204
  - lib/rails/generators/rails/app/templates/config/locales/en.yml
204
205
  - lib/rails/generators/rails/app/templates/config/routes.rb
@@ -356,8 +357,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
356
357
  - !ruby/object:Gem::Version
357
358
  version: '0'
358
359
  requirements: []
359
- rubyforge_project:
360
- rubygems_version: 2.4.5.1
360
+ rubygems_version: 3.0.1
361
361
  signing_key:
362
362
  specification_version: 4
363
363
  summary: Tools for creating, working with, and running Rails applications.