actionpack 7.0.0.alpha1 → 7.0.0.alpha2
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_dispatch/middleware/stack.rb +1 -24
- data/lib/action_pack/gem_version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54388e4a1ef9b5042049784e3866619467e79e5c3944de4e7f46bc7b4484b9fc
|
4
|
+
data.tar.gz: c09a1504b3deaa3f14b5f169ca2a9df9c8d174ed4ba463e5f275f8ab6e803aa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1057c5a7b53bd81075c061b0235ba399f04976fd58df7de676539911a258f5ad32ab26c0576a7b33ae34084e80b17a778c349f26b6a3e83797f14d729cba6c89
|
7
|
+
data.tar.gz: 443b33703639b2382762d5752c00d37e29f07ff258a5bd38f325e3d6e7ffe1e4755053695fcdbb56844b36bb3c06ac0bde558a5690b368ffa44efc5bc64ee39e
|
data/CHANGELOG.md
CHANGED
@@ -5,16 +5,6 @@ require "active_support/dependencies"
|
|
5
5
|
|
6
6
|
module ActionDispatch
|
7
7
|
class MiddlewareStack
|
8
|
-
class FakeRuntime # :nodoc:
|
9
|
-
def initialize(app)
|
10
|
-
@app = app
|
11
|
-
end
|
12
|
-
|
13
|
-
def call(env)
|
14
|
-
@app.call(env)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
8
|
class Middleware
|
19
9
|
attr_reader :args, :block, :klass
|
20
10
|
|
@@ -79,7 +69,6 @@ module ActionDispatch
|
|
79
69
|
|
80
70
|
def initialize(*args)
|
81
71
|
@middlewares = []
|
82
|
-
@rack_runtime_deprecated = true
|
83
72
|
yield(self) if block_given?
|
84
73
|
end
|
85
74
|
|
@@ -187,24 +176,12 @@ module ActionDispatch
|
|
187
176
|
end
|
188
177
|
|
189
178
|
def build_middleware(klass, args, block)
|
190
|
-
@rack_runtime_deprecated = false if klass == Rack::Runtime
|
191
|
-
|
192
179
|
Middleware.new(klass, args, block)
|
193
180
|
end
|
194
181
|
|
195
182
|
def index_of(klass)
|
196
|
-
raise "ActionDispatch::MiddlewareStack::FakeRuntime can not be referenced in middleware operations" if klass == FakeRuntime
|
197
|
-
|
198
|
-
if klass == Rack::Runtime && @rack_runtime_deprecated
|
199
|
-
ActiveSupport::Deprecation.warn(<<-MSG.squish)
|
200
|
-
Rack::Runtime is removed from the default middleware stack in Rails
|
201
|
-
and referencing it in middleware operations without adding it back
|
202
|
-
is deprecated and will throw an error in Rails 7.1
|
203
|
-
MSG
|
204
|
-
end
|
205
|
-
|
206
183
|
middlewares.index do |m|
|
207
|
-
m.name == klass.name
|
184
|
+
m.name == klass.name
|
208
185
|
end
|
209
186
|
end
|
210
187
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.0.
|
4
|
+
version: 7.0.0.alpha2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.0.0.
|
19
|
+
version: 7.0.0.alpha2
|
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: 7.0.0.
|
26
|
+
version: 7.0.0.alpha2
|
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: 7.0.0.
|
101
|
+
version: 7.0.0.alpha2
|
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: 7.0.0.
|
108
|
+
version: 7.0.0.alpha2
|
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: 7.0.0.
|
115
|
+
version: 7.0.0.alpha2
|
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: 7.0.0.
|
122
|
+
version: 7.0.0.alpha2
|
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
|
@@ -310,10 +310,10 @@ licenses:
|
|
310
310
|
- MIT
|
311
311
|
metadata:
|
312
312
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
313
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.0.
|
314
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.0.
|
313
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.0.alpha2/actionpack/CHANGELOG.md
|
314
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.0.alpha2/
|
315
315
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
316
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.0.
|
316
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.0.alpha2/actionpack
|
317
317
|
post_install_message:
|
318
318
|
rdoc_options: []
|
319
319
|
require_paths:
|