actionpack 4.2.7.1 → 4.2.8.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/action_controller/metal/renderers.rb +0 -2
- data/lib/action_dispatch/middleware/cookies.rb +2 -2
- data/lib/action_dispatch/routing/mapper.rb +3 -3
- data/lib/action_dispatch/testing/integration.rb +1 -0
- data/lib/action_pack/gem_version.rb +2 -2
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76b9ac1f62153da113473b841ac30b78f4ccac7c
|
4
|
+
data.tar.gz: 344d247914032a35dcc2ad061b779435f8cf89e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c65f396bf0f73945ff5124ce4d0a3925b17b9f24ea44db3edfc35b34d4b6a4524f6984e8298d01cff9dbbaf3aa93ce5c2870b8a0fa256de996054705fef55c0
|
7
|
+
data.tar.gz: f8970ac58b8ec95d0c3bbec6f5cb6e2f7d26081bc61061306de6285514ef6c043c9eb44cb63714997b7a3dd8d048ac430906f8e282765974cd3e750ee49597cc
|
data/CHANGELOG.md
CHANGED
@@ -85,8 +85,6 @@ module ActionController
|
|
85
85
|
# format.csv { render csv: @csvable, filename: @csvable.name }
|
86
86
|
# end
|
87
87
|
# end
|
88
|
-
# To use renderers and their mime types in more concise ways, see
|
89
|
-
# <tt>ActionController::MimeResponds::ClassMethods.respond_to</tt>
|
90
88
|
def self.add(key, &block)
|
91
89
|
define_method(_render_with_renderer_method_name(key), &block)
|
92
90
|
RENDERERS << key.to_sym
|
@@ -311,7 +311,7 @@ module ActionDispatch
|
|
311
311
|
|
312
312
|
handle_options(options)
|
313
313
|
|
314
|
-
if @cookies[name.to_s] != value
|
314
|
+
if @cookies[name.to_s] != value || options[:expires]
|
315
315
|
@cookies[name.to_s] = value
|
316
316
|
@set_cookies[name.to_s] = options
|
317
317
|
@delete_cookies.delete(name.to_s)
|
@@ -506,7 +506,7 @@ module ActionDispatch
|
|
506
506
|
|
507
507
|
@parent_jar = parent_jar
|
508
508
|
@options = options
|
509
|
-
secret = key_generator.generate_key(@options[:encrypted_cookie_salt])
|
509
|
+
secret = key_generator.generate_key(@options[:encrypted_cookie_salt])[0, ActiveSupport::MessageEncryptor.key_len]
|
510
510
|
sign_secret = key_generator.generate_key(@options[:encrypted_signed_cookie_salt])
|
511
511
|
@encryptor = ActiveSupport::MessageEncryptor.new(secret, sign_secret, digest: digest, serializer: ActiveSupport::MessageEncryptor::NullSerializer)
|
512
512
|
end
|
@@ -110,7 +110,7 @@ module ActionDispatch
|
|
110
110
|
if options_constraints.is_a?(Hash)
|
111
111
|
split_constraints path_params, options_constraints
|
112
112
|
options_constraints.each do |key, default|
|
113
|
-
if URL_OPTIONS.include?(key) && (String === default ||
|
113
|
+
if URL_OPTIONS.include?(key) && (String === default || Integer === default)
|
114
114
|
@defaults[key] ||= default
|
115
115
|
end
|
116
116
|
end
|
@@ -790,8 +790,8 @@ module ActionDispatch
|
|
790
790
|
end
|
791
791
|
|
792
792
|
if options[:constraints].is_a?(Hash)
|
793
|
-
defaults = options[:constraints].select do
|
794
|
-
|
793
|
+
defaults = options[:constraints].select do |k, v|
|
794
|
+
URL_OPTIONS.include?(k) && (v.is_a?(String) || v.is_a?(Integer))
|
795
795
|
end
|
796
796
|
|
797
797
|
(options[:defaults] ||= {}).reverse_merge!(defaults)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.8.rc1
|
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:
|
11
|
+
date: 2017-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2.
|
19
|
+
version: 4.2.8.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: 4.2.
|
26
|
+
version: 4.2.8.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,28 +98,28 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - '='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 4.2.
|
101
|
+
version: 4.2.8.rc1
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - '='
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 4.2.
|
108
|
+
version: 4.2.8.rc1
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: activemodel
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - '='
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 4.2.
|
115
|
+
version: 4.2.8.rc1
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - '='
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 4.2.
|
122
|
+
version: 4.2.8.rc1
|
123
123
|
description: Web apps on Rails. Simple, battle-tested conventions for building and
|
124
124
|
testing MVC web applications. Works with any Rack-compatible server.
|
125
125
|
email: david@loudthinking.com
|
@@ -294,15 +294,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: 1.9.3
|
295
295
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
296
|
requirements:
|
297
|
-
- - "
|
297
|
+
- - ">"
|
298
298
|
- !ruby/object:Gem::Version
|
299
|
-
version:
|
299
|
+
version: 1.3.1
|
300
300
|
requirements:
|
301
301
|
- none
|
302
302
|
rubyforge_project:
|
303
|
-
rubygems_version: 2.6.
|
303
|
+
rubygems_version: 2.6.10
|
304
304
|
signing_key:
|
305
305
|
specification_version: 4
|
306
306
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|
307
307
|
test_files: []
|
308
|
-
has_rdoc:
|