actionpack 7.1.1 → 7.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01b6630f88d627d0e93a4343d0500faaff1f685bafad46d9600c44cf26d36b80
4
- data.tar.gz: cc0218731130dddac745ee72dec869ba75c96820d25928728f3514069966e6da
3
+ metadata.gz: 27b3fee0fa041bb5e11a19926a50910131e2a8e9f52678491f97626d28272f08
4
+ data.tar.gz: 6e7c091c13209ba730de05b35472f5f5af601506ed0a8c27b43ca9a64ee2a73a
5
5
  SHA512:
6
- metadata.gz: 1bcfbc773c2468fe2566cc6932742492fa92d364b102d30c5807550052e0bd80268bac976925df52bb9c9e5f2c226b69188e0d16aca67637cf963058b80e17d6
7
- data.tar.gz: aad1c61d934637ce06caac52edb2ab1680e55db73450033a39a625d5db5871b7030b672c0be7ae14342a07a87fa2081a84b6cf78dcdb7f2e7b583b811db8601f
6
+ metadata.gz: 57adb80fbb5071d15c3a89d9086ca18fe353168e5f06e8341815f124a1aaca6e6206443de95c3391ce9b5992313e20517c52bf44450dd03884e6ab084e33ec30
7
+ data.tar.gz: 309e1889aa0d61b31caf0f9aff3262480c5cca3b2b08bae86c6632b6cf500fabd9618768326594fffc52fa1ebab93aa1ad8629bc9ce8ca449780f35ca842fcb7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## Rails 7.1.2 (November 10, 2023) ##
2
+
3
+ * Fix a race condition that could cause a `Text file busy - chromedriver`
4
+ error with parallel system tests
5
+
6
+ *Matt Brictson*
7
+
8
+ * Fix `StrongParameters#extract_value` to include blank values
9
+
10
+ Otherwise composite parameters may not be parsed correctly when one of the
11
+ component is blank.
12
+
13
+ *fatkodima*, *Yasha Krasnou*, *Matthias Eiglsperger*
14
+
15
+ * Add `racc` as a dependency since it will become a bundled gem in Ruby 3.4.0
16
+
17
+ *Hartley McGuire*
18
+
19
+ * Support handling Enumerator for non-buffered responses.
20
+
21
+ *Zachary Scott*
22
+
23
+
1
24
  ## Rails 7.1.1 (October 11, 2023) ##
2
25
 
3
26
  * No changes.
@@ -21,7 +21,7 @@ module ActionController
21
21
  # def edit
22
22
  # render plain: "I'm only accessible if you know the password"
23
23
  # end
24
- # end
24
+ # end
25
25
  #
26
26
  # === Advanced \Basic example
27
27
  #
@@ -967,8 +967,14 @@ module ActionController
967
967
  # params.extract_value(:id) # => ["1", "123"]
968
968
  # params.extract_value(:tags, delimiter: ",") # => ["ruby", "rails"]
969
969
  # params.extract_value(:non_existent_key) # => nil
970
+ #
971
+ # Note that if the given +key+'s value contains blank elements, then
972
+ # the returned array will include empty strings.
973
+ #
974
+ # params = ActionController::Parameters.new(tags: "ruby,rails,,web")
975
+ # params.extract_value(:tags) # => ["ruby", "rails", "", "web"]
970
976
  def extract_value(key, delimiter: "_")
971
- @parameters[key]&.split(delimiter)
977
+ @parameters[key]&.split(delimiter, -1)
972
978
  end
973
979
 
974
980
  protected
@@ -104,7 +104,9 @@ module ActionDispatch # :nodoc:
104
104
  end
105
105
 
106
106
  def to_ary
107
- @buf.to_ary
107
+ @buf.respond_to?(:to_ary) ?
108
+ @buf.to_ary :
109
+ @buf.each
108
110
  end
109
111
 
110
112
  def body
@@ -26,15 +26,14 @@ module ActionDispatch
26
26
  yield options if block_given? && options
27
27
  end
28
28
 
29
- # driver_path can be configured as a proc. Running this proc early allows
30
- # us to only update the webdriver once and avoid race conditions when
31
- # using parallel tests.
29
+ # driver_path is lazily initialized by default. Eagerly set it to
30
+ # avoid race conditions when using parallel tests.
32
31
  def preload
33
32
  case type
34
33
  when :chrome
35
- ::Selenium::WebDriver::Chrome::Service.driver_path.try(:call)
34
+ resolve_driver_path(::Selenium::WebDriver::Chrome)
36
35
  when :firefox
37
- ::Selenium::WebDriver::Firefox::Service.driver_path.try(:call)
36
+ resolve_driver_path(::Selenium::WebDriver::Firefox)
38
37
  end
39
38
  end
40
39
 
@@ -70,6 +69,13 @@ module ActionDispatch
70
69
  capabilities.add_argument("-headless")
71
70
  end
72
71
  end
72
+
73
+ def resolve_driver_path(namespace)
74
+ namespace::Service.driver_path = ::Selenium::WebDriver::DriverFinder.path(
75
+ options || namespace::Options.new,
76
+ namespace::Service
77
+ )
78
+ end
73
79
  end
74
80
  end
75
81
  end
@@ -9,7 +9,7 @@ module ActionPack
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
- TINY = 1
12
+ TINY = 2
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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: 7.1.1
4
+ version: 7.1.2
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: 2023-10-11 00:00:00.000000000 Z
11
+ date: 2023-11-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: 7.1.1
19
+ version: 7.1.2
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.1.1
26
+ version: 7.1.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.8.5
41
+ - !ruby/object:Gem::Dependency
42
+ name: racc
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rack
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +128,28 @@ dependencies:
114
128
  requirements:
115
129
  - - '='
116
130
  - !ruby/object:Gem::Version
117
- version: 7.1.1
131
+ version: 7.1.2
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - '='
123
137
  - !ruby/object:Gem::Version
124
- version: 7.1.1
138
+ version: 7.1.2
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: activemodel
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - '='
130
144
  - !ruby/object:Gem::Version
131
- version: 7.1.1
145
+ version: 7.1.2
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - '='
137
151
  - !ruby/object:Gem::Version
138
- version: 7.1.1
152
+ version: 7.1.2
139
153
  description: Web apps on Rails. Simple, battle-tested conventions for building and
140
154
  testing MVC web applications. Works with any Rack-compatible server.
141
155
  email: david@loudthinking.com
@@ -332,10 +346,10 @@ licenses:
332
346
  - MIT
333
347
  metadata:
334
348
  bug_tracker_uri: https://github.com/rails/rails/issues
335
- changelog_uri: https://github.com/rails/rails/blob/v7.1.1/actionpack/CHANGELOG.md
336
- documentation_uri: https://api.rubyonrails.org/v7.1.1/
349
+ changelog_uri: https://github.com/rails/rails/blob/v7.1.2/actionpack/CHANGELOG.md
350
+ documentation_uri: https://api.rubyonrails.org/v7.1.2/
337
351
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
338
- source_code_uri: https://github.com/rails/rails/tree/v7.1.1/actionpack
352
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.2/actionpack
339
353
  rubygems_mfa_required: 'true'
340
354
  post_install_message:
341
355
  rdoc_options: []